Alternative method to use goto option

ToiletMaster

New member
Messages
146
Points
0
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.

 
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.

 
Back
Top