Dialog Problem

Started by ryan, Wed 21/07/2004 22:37:20

Previous topic - Next topic

ryan

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:



??? help please

Bernie

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.

ryan

ah, alright. thank you.  ;D

ryan

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?

Bernie

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').

ryan


Bernie

Ah.. well, almost! :D
Those 3 lines need to be UNDER the startup entry point, not above.

ryan

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)

Bernie

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.

ryan

#9
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)

Bernie

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.

ryan

'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?

Bernie

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.

ryan

nope, still dont do it... ???

ryan

ah, i got it. thanks for your help.  ;D

SMF spam blocked by CleanTalk