Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Candle on Tue 01/02/2005 07:06:25

Title: Dialogs question
Post by: Candle on Tue 01/02/2005 07:06:25
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 ?
Title: Re: Dialogs question
Post by: Ishmael on Tue 01/02/2005 07:51:51
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.
Title: Re: Dialogs question
Post by: Candle on Tue 01/02/2005 07:56:51
Thank you Ishmael for the help .I will give that a try .