Jayz Posted July 31, 2012 Posted July 31, 2012 (edited) how to make input = goto? example map,123,123,5 script [Test Script] 105,{ mes "Hello what label you want to go??"; mes "label1 or label 2??"; next; input .label; goto .label; // if input the label is incorrect we have failed message like sorry your label is not correct.. label1: mes "this is label 1"; close; label2: mes "this is label 2"; close; Edited August 1, 2012 by zaido78 Quote
Werdio Posted July 31, 2012 Posted July 31, 2012 (edited) switch(select("Label1","Label2")) { case 1: mes "Label1"; close; case 2: next; mes "Label2"; close; } } Edited July 31, 2012 by Nochii Quote
xRyusuke Posted July 31, 2012 Posted July 31, 2012 (edited) if( .label == label1 ) goto label1; if( .label == label2 ) goto label2; label1; //codes close; end; label1; //codes close; end; This a simple ways to do it, you can give it a try You could just do what Nochii did there, much simpler for players so they can choose from a menu, instead of inputting s set of string Well, just my comment, since I have no idea what you are planning *cheers* Edited July 31, 2012 by xRyusuke Quote
Pavi Posted July 31, 2012 Posted July 31, 2012 (edited) map,123,123,5 script [Test Script] 105,{ mes "Hello what label you want to go??"; mes "label1 or label 2??"; next; input .label$; if((.label$ != "label1") || (.label$ != "label2")){ mes "I'm sorry but your input was not a valid label"; close; } goto .label$; // if input the label is incorrect we have failed message like sorry your label is not correct.. label1: mes "this is label 1"; close; label2: mes "this is label 2"; close; } Try this. I noticed you didn't put a "$" at the end of the .label input, meaning it wouldn't of been counted as a text string. Edited July 31, 2012 by Pavi Quote
Question
Jayz
how to make input = goto?
example
map,123,123,5 script [Test Script] 105,{
mes "Hello what label you want to go??";
mes "label1 or label 2??";
next;
input .label;
goto .label;
// if input the label is incorrect we have failed message like sorry your label is not correct..
label1:
mes "this is label 1";
close;
label2:
mes "this is label 2";
close;
Edited by zaido785 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.