Jump to content
  • 0
Sign in to follow this  
ToiletMaster

Alternative method to use goto option

Question

Hi there,

 

imagine i have a script such as this

 

 

 

mes "message 1";next;mes "message 2";next;mes "message 3";next;setquest 80000switch(select("case 1","case 2","case 3";)){case 1:mes "case 1";close;case 2:mes "case 2";close;case 3:mes "case 3";close; } 

 

if i want to do a check such as

if(questprogress(80000) == 1){

 

and go back to message 2 onwards with the exact same conversation, it can be performed via a goto label, but i'd like to know if there's any alternative besides using the goto method as many has deemed this function to be quite dangerous and prefer to avoid this command.

 

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You can use the same method you were before, or would use with *goto command. Just simply use *callsub command instead. It'll function much the same way, but with the added benefit of passing information as well, should you choose to do so.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.