Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Grundislav on Mon 15/09/2003 01:28:35

Title: Dialog Starts up when switching topics
Post by: Grundislav on Mon 15/09/2003 01:28:35
So, in previous versions of AGS, if you had a conversation it'd go something like this:
*startup dialog*
Ego:Hello!
Man:What do you want?
*option 1* Ego:What can you tell me about the bird?
Man:What do you want to know?
goto-dialog 2

*now we go to dialog 2 which is a list of new questions, but you decide not to ask any right now*

Ego:Never mind, I'll ask later.
Man:Ok.
goto-previous
*at this point you return to the previous topic and previous choices are shown*

But now with the latest version, when returning to the previous topic, it displays the startup dialog again, so you get.
Ego:Never mind, I'll ask later.
Man:Ok.
Ego:Hello!
Man:What do you want?

Is there any way to bypass the startup dialog when returning to the previous topic?
Title: Re:Dialog Starts up when switching topics
Post by: Ishmael on Mon 15/09/2003 05:22:43
I usually make one extra option, which is alone visible in the start, and turns on the other options, which contains the hello messages, in case I need then only once. Like:

@S
return
@1
Man: So?
Ego: Nevermind...
Man: Anything else?
return
@2
Man: I could think of a way...
Ego: Great! Could you tell me too?
Man: No.
Ego: What if we discuss a price?
Man: That could do...
goto-dialog x
@3
Ego: Hello!
Man: Whaddayawant?
option-off 3
option-on 1
option-on 2
return


Where, in the editor, the option 3 alone is "show", and when the dialog is firts time ran, the other options are turned on. This is just an example, so It lacks the "Goodbye" option and all...
Title: Re:Dialog Starts up when switching topics
Post by: SSH on Mon 15/09/2003 12:15:03
does option-off 0 turn of the start message? If not, it should!
Title: Re:Dialog Starts up when switching topics
Post by: Ishmael on Mon 15/09/2003 20:51:59
WHATTHEEF!??!?!?

...

:P lol
Title: Re:Dialog Starts up when switching topics
Post by: Pumaman on Mon 15/09/2003 21:11:53
This was actually a bug fix, the startup dialog was always supposed to be said when you went to a topic, but there was a bug for a while where it didn't.

The best way to do it if you want something to just be said when the dialog starts up is to have a few DisplaySpeech lines before you RunDialog.