Well, this is kind of embarrassing, several problems for one scenario. I'm still working on the same scenario as in my prior thread, but i keep getting these scripting errors! I'm trying to make it so when the party searches a wheel, it asks them if they'd like to turn it. If they say yes, it turns on a stuff done flag.
but when i tested it, it gave me error message saying:
gatelever(The script) error: missing = in line 25.
here's the actual script: (It contains spoilers of my scenarios, so judges may not want to read it.)
Click to reveal..
beginterrainscript;
variables;
short y/n = 0;
body;
beginstate INIT_STATE;
break;
beginstate START_STATE;
break;
beginstate SEARCH_STATE;
reset_dialog();
add_dialog_str(1,"Before you is an old, rusty wheel that looks like it hasn't been used for a very long time.",0);
add_dialog_str(2,"Whoever built this here went to alot of trouble to hide it, especialy since the bandits couldn't find it.",0);
add_dialog_str(3,"Its obviously very important.",0);
add_dialog_str(4,"Would you like to turn it?",0);
add_dialog_choice(0,"Of course!");
add_dialog_choice(1,"Nah.");
y/n = run_dialog(1); //This is line 25
if (y/n == 1);{
set_flag(3,0) = 1;
play_sound = 99;
reset_dialog();
add_dialog_str(1,"Its amazingly easy to turn!",0);
run_dialog(1);
}
else;{
reset_dialog();
add_dialog_str(1,"Probably a wise choice.",0);
run_dialog(1);
}
break;
can anyone help me?