Dialogs question

Started by Candle, Tue 01/02/2005 07:06:25

Previous topic - Next topic

Candle

I have a room that if the player has been it one time and he comes  back to the room I want to turn off the Dialog so if  they click on the NPC the Dialog won't run again .
How can I turn it off with the "If player has been in room "  turn off Dialog ?

Ishmael

On Player Leaves Screen set a unused globalint to 1.

On the NPC's Talk to character run a script like:

if (GetGlobalInt(#)) {
  Display("They don't want to speak with you.");
} else {
  RunDialog(#);
}

Replacing the #'s with the globalint you used earlier and the dialog you want to be run.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Candle

Thank you Ishmael for the help .I will give that a try .

SMF spam blocked by CleanTalk