Dialog help please

Started by ViperDream, Fri 05/09/2008 02:15:40

Previous topic - Next topic

ViperDream

Hey there,

First of all pretty awesome and easy to use game engine.

Anyhows just thought that i would go through the tutorial and got to the dialog stage and ecnoutered a small problem.

I put in all the dialog and when the other charecter has finished answering my go back to the dialog question it says the origonal "hey" Hiya".

The scripts cheessey but i just made anything up to test but here it is.

// Dialog script file
@S  // Dialog startup entry point
Ego: Hey there!
Merchant:Hiya!
return
@1
Merchant:My name is Derek.
Merchant:I am the local merchant

return
@2
Merchant:Yes raiders came this way yesterday!!!
Merchant:And it was awfully scary
goto-dialog dWares

return
@3
Merchant:Ok bye bye!


Stop




// Dialog script file
@S  // Dialog startup entry point
return
@1
Merchant:Vikings from the west lands
return
@2
Merchant:They killed many villagers!
Merchant:I am scared
return
@3
Merchant:Off to the east
Merchant:Do be careful tho
Merchant:I dont want u getting hurt
goto-previous


Khris

Just put the lines before starting the dialog; something like this:
Code: ags
  player.Say("Hey there!");
  cMerchant.Say("Hiya!");
  Merchantd.Start();


Gosh, that was too easy ;)

SMF spam blocked by CleanTalk