Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 29/03/2004 22:10:26

Title: A dialog problem
Post by: on Mon 29/03/2004 22:10:26
I have a minor problem with dialogs.
When i start a dialog for the second time with the same person, I want it to have other topics then the first dialog. So how do I do that?

Excuse me for my bad english
Title: Re:A dialog problem
Post by: on Tue 30/03/2004 01:46:52
The way I do it is by having two separate dialogs. The first one and then the modified one. I check a globalint to see which one to go to....

so in the interaction for talking to the char the first time

if (getglobalint(1)==0){
RunDialog (1);
}
else if (getglobalint(1)==1){
RunDialog (2);
}

so after you do whatever makes him say new stuff just do:
SetGlobalInt (1,1);
}


Also, double check the ags manual on those functions, I may not have gotten them spelled right...I'm at work...