Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: AgentVenell on Mon 27/08/2012 17:35:38

Title: Exitting a dialog once an option has been chosen and moving a character. SOLVED
Post by: AgentVenell on Mon 27/08/2012 17:35:38
Okay, the premise:
I have a dialog setup, and when the character chooses one of the options, I want the dialog to exit and the character the player is talking to to walk to a certain position.
I pretty much know how to make the character walk and stuff, but I'm wondering how this would be started in a dialog.

Thanks!
Title: Re: Exitting a dialog once an option has been chosen and moving a character.
Post by: Andail on Mon 27/08/2012 17:43:58
You can script normally in the dialog editor, you just have to indent the line of code with a space.
Like:

Ego: Ok, good bye.
cEgo.Walk (x, y);
stop
Title: Re: Exitting a dialog once an option has been chosen and moving a character.
Post by: AgentVenell on Mon 27/08/2012 17:51:08
Quote from: Andail on Mon 27/08/2012 17:43:58
You can script normally in the dialog editor, you just have to indent the line of code with a space.
Like:

Ego: Ok, good bye.
cEgo.Walk (x, y);
stop

Oh cool! That's simpler than I would have thought. Thank you!