Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: miguel on Wed 07/05/2003 17:30:25

Title: dialog problem
Post by: miguel on Wed 07/05/2003 17:30:25
hello,
my question is a simple one,
I want that my main character talks to a npc ONCE. I used a variable to determine that and used it like:
talk
   if a variable is set to 1
   then run dialog(x)
   set variable to 0

I thought this would work but it looks like ags executes the set variable to 0 comand first the the run dialog

how can I make it work?
thanks
Title: Re:dialog problem
Post by: Jimi on Wed 07/05/2003 18:35:00
swap the 1 and the 0 around, AGS sets variables to 0 by default.
Title: Re:dialog problem
Post by: miguel on Thu 08/05/2003 00:04:28
thanks jimi, it worked perfectly!
btw, hendrix rox