Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: VII Toast on Tue 23/11/2004 00:52:39

Title: Scripting Request
Post by: VII Toast on Tue 23/11/2004 00:52:39
Sense I'm learning to script in AGS weel, I'm not an expert at it. Can anyone help me out?

I would like a script that would give the player an option like,"Do you want to talk to this person, the game will move foward." and a "Yes" or "No". Then if they select yes, they would talk to the person, progressing in the game, but if they picked no the game would just continue and they could explore some more.

Thank you again...and again.
Title: Re: Scripting Request
Post by: Goot on Tue 23/11/2004 02:03:16
Make a dialog with options "yes" and "no." For the talk to character interaction run a script that says:

RunDialog(x); //where x is the dialog number with yes and no

In the script for that dialog, for the yes option, go to a different dialog with talking to the person (goto-dialog x) or whatever happens when you talk to them.

For the no optionscript, type:
stop