Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: veryrelevant on Sat 07/04/2007 20:55:59

Title: Need help with scripting error
Post by: veryrelevant on Sat 07/04/2007 20:55:59
I am new to this, and am currently working through the tutorial, but on part 8
I keep getting an error that says:

"There was an error compiling the script for dialog topic 1.  The error was: Dialog (line 4): Invalid label marker.  Must be 1 .. NumOptions."

I followed the tutorial script exactly, so what am I doing wrong?
Title: Re: Need help with scripting error
Post by: Jon on Sat 07/04/2007 20:57:10
Could you post your dialog, and what you did precisely?
Title: Re: Need help with scripting error
Post by: veryrelevant on Sat 07/04/2007 21:00:02
// dialog script file
@S  // dialog startup entry point
return
@1  // option 1
MERCHANT: "A nice leather jacket, what all the cool dudes are wearing, for you, just $200!"
EGO: "Yo dawg, that's kinda expensive, isn't it?"
MERCHANT: "Not for this windbreaker Sir, A guy in China made it special just for you."
EGO: "Hey man, that's aright."
return
@2  // option 2
MERCHANT: "A perfect item for a good joke.  The eyeball will only cost you $3.99."
return
@3  //option 3
MERCHANT: "OK, fine."
goto-dialog 0


EDIT:
I found my error-I forgot to enter in the option names for one, two and three, it works fine now.  Thanks for the help