Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Hans on Tue 16/01/2007 17:33:42

Title: Turning topic options on and off
Post by: Hans on Tue 16/01/2007 17:33:42
I want dialog option 2 to turn on, when option 1 runs (and 1 off).
I can't use scripts like:
dialog[1].SetOptionState(2, eOptionOn);
in a dialog script.
What to do now?
How can I use normal scripting in a dialog?
Title: Re: Turning topic options on and off
Post by: SSH on Tue 16/01/2007 17:41:44
See this article: http://americangirlscouts.org/agswiki/Dialog_script
Title: Re: Turning topic options on and off
Post by: Ashen on Tue 16/01/2007 18:01:27
Also the BFAQ entry: Running regular code in dialogs (http://americangirlscouts.org/agswiki/Scripting%2C_Code_%26_Interaction#Running_regular_code_inside_dialog). For more information, search the forums for dialog_request. (Obviously, you don't need this for options, but for other 'normal' script it's handy to know.)