Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Grapefruitologist on Sat 18/02/2006 00:47:35

Title: Problem with Dialogue...
Post by: Grapefruitologist on Sat 18/02/2006 00:47:35
Ok, well, I followed a tutorial, and I'm pretty sure I did everything I was supposed too. I've made dialogues that work in the past, but this time it didn't work. The dialogue is all out of order... all jumbled up. When you talk to the character, he says "welcome", and then he says "Sure, sure. Here you go." (which was supposed to come later). And then the conversation is over.
The script (first topic):
// dialog script file
@SÃ,  // dialog startup entry point
return
@1Ã,  // option 1
SCIENCE: "This is SeaLand, a zoo containing all the specimens of aquatic life forms from around the world."
goto-dialog 3
@2Ã,  // option 2
SCIENCE: "I'm sorry, but that jellyfish is property of SeaLand, and is not for sale."
goto-dialog 4
@3Ã,  // option 3
SCIENCE: "Ok. Have a good time at SeaLand!"
stop

Second topic:
// dialog script file
@SÃ,  // dialog startup entry point
@1Ã,  // option 1
SCIENCE: "Well, I didn't name it that!"
goto-previous
@2Ã,  // option 2
goto-previous

Third topic:
// dialog script file
@SÃ,  // dialog startup entry point
@1Ã,  // option 1
SCIENCE: "Well, I guess I can make an exception in this case.If you can find another jellyfish to replace this one, then I guess I can give you this jellyfish. (Good luck.)"
EGO: "Ok, then do you have a piece of paper we can sign as a contract or something?"
SCIENCE: "Sure, sure. Here you go."
stop
@2Ã,  // option 2
goto-previous

There are four dialogues, and the first one (0) is for a different conversation.
Title: Re: Problem with Dialogue...
Post by: strazer on Sat 18/02/2006 05:09:05
Quote
@S  // dialog startup entry point
@1  // option 1

If you don't put "return" at the end of the startup entry point, it runs the dialog script that follows (option 1) instead of showing the dialog options.
So for the second and third topic you also have to insert the "return" keyword after the startup entry point:


@S  // dialog startup entry point
return // show dialog options
@1  // option 1
Title: Re: Problem with Dialogue...
Post by: Grapefruitologist on Sat 18/02/2006 23:32:58
Okay, thanks.
Darn it, it's still not working. Better, but I get an error, and the speech is still jumbled up...
Title: Re: Problem with Dialogue...
Post by: strazer on Sat 18/02/2006 23:41:28
What error?
Describe the problem.
Title: Re: Problem with Dialogue...
Post by: Grapefruitologist on Sat 18/02/2006 23:51:14
Nevermind-I think I just got something wrong.