Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Estaog on Sat 26/06/2004 08:41:38

Title: Dialog script
Post by: Estaog on Sat 26/06/2004 08:41:38
I made this script for the run-script command:
     else if (value == 7) {
       if (money2==0) {}
       else if (money2==1) {
         option-on 5
}

It says undefined token `token`. Any suggestions?
Title: Re: Dialog script
Post by: strazer on Sat 26/06/2004 10:01:46
Just as normal script commands can't be used in dialog scripts, "option-on" is a dialog script command and can't be used in normal scripts.
Use the SetDialogOption function.