Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: on Thu 21/10/2004 19:06:34

Title: Dialog problem (ending a dialog by clicking on any dialog-option) (SOLVED)
Post by: on Thu 21/10/2004 19:06:34
Is there a way to end a conversation when any of the dialog-options has been clicked? I have tried to do it with "stop"...

@1  // option 1
stop
@2  // option 2
stop
@3  // option 3
stop

...but it does not seem to work. I have also tried to make some kind of a function with dialog_request, but I am not that skilled with scripting and have not had any success with it...

I am trying to make the character say one of the options, and then comes a text (a commentary, different for all options) and then the dialog ends.

So any suggestions what I should do?
Title: Re: Dialog problem (ending a dialog by clicking on any dialog-option)
Post by: strazer on Thu 21/10/2004 19:38:59
Your first idea should work fine. What does happen if you try it?
If the dialog doesn't even show up, be sure that the dialog entry point (if you have one) says "return":

@S  // dialog startup entry point
return
@1  // option 1
stop
@2  // option 2
stop
@3  // option 3
stop

or remove it altogether. Also, be sure that each option's "Say" checkbox is ticked.
Works for me.
Title: Re: Dialog problem (ending a dialog by clicking on any dialog-option)
Post by: on Fri 22/10/2004 08:39:55
Thanks! I didn't have the "return" in dialog startup, but now it works.