Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 07/02/2005 00:11:27

Title: Characters say something different
Post by: on Mon 07/02/2005 00:11:27
Hi, I'm new here, I'm making a game called "Welcome to Gosten" Just one thing I'm concerned about is how do I make a character say something different after I've allready talked to them? I've tryed quite a few actions and none of them work. help me please. ???
Title: Re: Characters say something different
Post by: on Mon 07/02/2005 00:53:48
Well, you could try searching the help manual.  There's a way of setting global ints from the dialog editor, it's like

set globalint value

or something.  Run that at the end of the first dialogue, and test the value of the globalint with GetGlobalInt(value). ;)
Title: Re: Characters say something different
Post by: Candle on Mon 07/02/2005 00:59:54
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=18998.0
Title: Re: Characters say something different
Post by: on Mon 07/02/2005 01:18:32
I did what it said but it still only reads the thing he should say after it. It worked once and then it didn't
Title: Re: Characters say something different
Post by: Candle on Mon 07/02/2005 01:28:05
Well if will do it again if you restart the game . it will only do it one time .
Title: Re: Characters say something different
Post by: on Mon 07/02/2005 01:33:17
no i'm saying i tested it twice, it worked the first time, i saw i put the wrong message so i just changed the number of message and it stopped working and then i got mad and started screaming and hitting stuff. I tested it bazillions of other times and same deal
Title: Re: Characters say something different
Post by: Candle on Mon 07/02/2005 01:37:50
Well chill and put the code here so others can see it and help .
Title: Re: Characters say something different
Post by: on Mon 07/02/2005 01:53:56
http://www.toolkitzone.com/mygames/images/517/2034.PNG (Fixed BBCode - TerranRich)
What did I do wrong? And this is a ags game i'm just using my old file on toolkitzone to upload it
Title: Re: Characters say something different
Post by: on Mon 07/02/2005 02:24:51
Try setting your Interaction Editor up to look like this:

Talk to character
|->Conditional - If a variable is set to a certain value (1, 0)
|-->Game - Run dialog (0)
|-->Game - Set variable value (1, 1)
|-->Stop running more commands
|->Conditional - If a variable is set to a certain value (1, 1)
|-->Game - Display a message ( 8 )

Supposing that you want to run dialog "0" the first time around, and display message 8 all following times.  At least I think that's right.  I never did like using the Interaction Editor.  I like working with the script better...