Hi guys, title says it all really. How do I switch an object on or off after a particular dialog option is chosen by the player? Also, how do I set a variable value as a result of a dialog option? Thanks.
*cough* MANUAL! *cough*
Seriously, look up "Dialog" and you'll find exactly those questions answered.
I think the dialog script commands are a bit hard to find, they can be found in the Tutorial section > Setting up the game > Conversations (http://www.adventuregamestudio.co.uk/manual/Conversations.htm)
The run-script command can be used to execute any normal script code from within a dialog option. Search the forum for "dialog_request" if you need more examples on how to use it.
The manual section is a little hard to find, and somewhat vague. However, it is meantioned in the BFAQ (http://americangirlscouts.org/agswiki/Scripting%2C_Code_%26_Interaction#Running_regular_code_inside_dialog) as well as on the forums (several times).