Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ryan on Wed 21/07/2004 22:37:20

Title: Dialog Problem
Post by: ryan on Wed 21/07/2004 22:37:20
well, i use the program DialogEditor to make my dialogs. what i do after making the dialog is copy all of it's script into the game dialogs script window. although, i'm having a problem: when i copy it all and try to save, i get this:

Dialog (line 14): Invalid Label Marker: Must be 1 ..NumOptions

this is the whole script:

(http://img33.exs.cx/img33/9320/error11.jpg)

??? help please
Title: Re: Dialog Problem
Post by: Bernie on Wed 21/07/2004 22:55:51
The number of options in the editor need to match up with the dialog script. Having more options in the dialog script than in the editor will cause this error.
Just add the 5 options to the list first, then fill in the dialogue in the script editor.
Title: Re: Dialog Problem
Post by: ryan on Wed 21/07/2004 23:43:32
ah, alright. thank you.  ;D
Title: Re: Dialog Problem
Post by: ryan on Wed 21/07/2004 23:52:47
well, it began to work, but it don't do it right.

first of all, when i talk to the one character, it doesn't come up with a dialog option box, it just does all the sentences from option one and freezes movement.  ???

and i also want to put 2 sentences for the 2 characters to say before the dialog starts. how do i do that?
Title: Re: Dialog Problem
Post by: Bernie on Wed 21/07/2004 23:59:34
See the part saying startup point? If you place a 'return' there, it'll go straight to the dialog selection when you talk to the other character. You can also put some dialog above that return under the startup entry point, like the 2 sentences you wanted.
Also, make sure you enable the dialog options you want to be available at the beginning in the editor (Column 'Show').
Title: Re: Dialog Problem
Post by: ryan on Thu 22/07/2004 00:07:12
so, like this?  ???

(http://img40.exs.cx/img40/4766/erro3.jpg)
Title: Re: Dialog Problem
Post by: Bernie on Thu 22/07/2004 00:15:37
Ah.. well, almost! :D
Those 3 lines need to be UNDER the startup entry point, not above.
Title: Re: Dialog Problem
Post by: ryan on Thu 22/07/2004 01:26:41
argh. well, now when i try to save it, i get this:

Dialog (line 5): Unknown command: displayspeech

(line 5 is a message that thats in the above pic, only below the startup point.

how do i make it stop doing this?  ??? (i didn't change anything expect where those two messages and the return command where)
Title: Re: Dialog Problem
Post by: Bernie on Thu 22/07/2004 01:30:55
Oops, didn't notice this before - don't use actual code there, do it like you did it below, Name: Blabla and so on. Normal code doesn't work in the dialog editor in general.
Title: Re: Dialog Problem
Post by: ryan on Thu 22/07/2004 01:36:03
ah, ok. well, i'm almost there, but i have one last problem: when i talk to the character, those two messages display perfectly with no problems, but after that, the game freezes.Ã,  ??? how do i stop this? (I'm just full of problems, lol m-(^¿^)-m)
Title: Re: Dialog Problem
Post by: Bernie on Thu 22/07/2004 02:11:26
Hmm, not sure... can you post the new code? Just copying and pasting the code here will do, you don't need to make images.
Title: Re: Dialog Problem
Post by: ryan on Thu 22/07/2004 02:27:13
'kay, here it is:

------------------------------

// dialog script file
@S // dialog startup entry point{
Davy: Hello bummy-bum!
Bum: Hello, young one.

@1 // Who are you today?
Davy: Who are you today?
Bum: What do you mean today? I'm the royal guard to the king, and I always have been. I have been assigned to the royal casing next to me.
Davy: Royal casing?
Bum: That's what I said, don't make me repeat myself.
Davy: Sorry.
option-off 1
option-on 2
return

@2 // Sooo...whats in the casing?
Davy: Sooo...whats in the casing?
Bum: The king's prized possession.
Davy: Which is?
Bum: How should I know? All I DO know is that it is golden, and of an abnormal shape.
option-on 3'
return

@3 // I don't suppose I could see whats inside, could I?
Davy: I don't suppose I could see whats inside, could I?
Bum: HAHAHA! Not in your life, little one!
Davy: Aw c'mon! And don't call me little!
Bum: There is nothing you can do to make me show you whats inside.
Davy: Are you sure??
Bum: Nothing!
Davy: Are you reeeeeally sure?
Bum: You can't do anything!
Davy: What if I give you something?
Bum: Listen, if you can get me the grandest object in my desires, you can see it.
Davy: And whats that object?
Bum: A light.
Davy: A....light?! Thats it? Thats your most desirable object? A LIGHT???
Davy: Ok...I guess I'll get you a light...
option-on 4
option-off 3
stop

@4 // See ya
Davy: See ya 'round
Bum: Good day young one!
stop

@5 // What do you need again?
Davy: What do you need again?
Bum: A light, if you wish to see whats inside the royal casing.
Davy: Right, got it..
return

------------------------------

anyone thing wrong?
Title: Re: Dialog Problem
Post by: Bernie on Thu 22/07/2004 02:42:49
Okay... put a 'return' after the last line under startup, otherwise it won't go to the dialog option selection in your game.
Also make sure to have the 'show' checkbox on the first option on.

By the way, if you have less than two dialog options, the game will not show the dialog selection, but it will automatically trigger it.

Hmm... can't think of anything else.
Title: Re: Dialog Problem
Post by: ryan on Thu 22/07/2004 02:58:56
nope, still dont do it... ???
Title: Re: Dialog Problem
Post by: ryan on Thu 22/07/2004 18:42:44
ah, i got it. thanks for your help.  ;D