Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Duckbutcher on Wed 10/01/2007 15:28:07

Title: Switching Objects on/off in dialog
Post by: Duckbutcher on Wed 10/01/2007 15:28:07
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.
Title: Re: Switching Objects on/off in dialog
Post by: Akatosh on Wed 10/01/2007 15:32:18
*cough* MANUAL! *cough*

Seriously, look up "Dialog" and you'll find exactly those questions answered.
Title: Re: Switching Objects on/off in dialog
Post by: strazer on Wed 10/01/2007 16:12:01
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.
Title: Re: Switching Objects on/off in dialog
Post by: Ashen on Wed 10/01/2007 16:20:20
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).