Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Mouth for war on Wed 29/02/2012 13:28:57

Title: Dialog troubles[Solved]
Post by: Mouth for war on Wed 29/02/2012 13:28:57
Bah! This is probably easy as hell but It just won't work...and maybe it never will :D here's the problem (after choosing option 4, obviously)
@4
if (mad==1){
Char1: "Well actually there is one thing. I have something to sell but I won't tell you what it is"
Ego: "Why won't you tell me?"
Char1: "Maybe you don't want it if I show you what it is. So...Do you have the guts to buy a surprise?"
Ego: "How much do you want?"
Char1: "500$"
Ego: "That's quite a lot. I'll have to think about it"
Char1: "Sure! I'll be here"
olaf=2;

stop //Putting stop here won't work...it only generates lots of errormessages

}
else if (mad==0){
Char1: "Well actually there is one thing. I have something to sell but I won't tell you what it is"
Ego: "Why won't you tell me?"
Char1: "Maybe you don't want it if I show you what it is. So...Do you have the guts to buy a surprise?"
Ego: "How much do you want?"
Char1: "350$"
Ego: "Hmmm...let me think about it"
olaf=1;}
stop       // again...stop doesn't work. After you have found out the price and the variable has been changed I just want the dialog to stop...How, where and when hehe? I've tried putting the brackets before the stop and after the stop but nothing happens. Thanks!
:D
Title: Re: Dialog troubles
Post by: Calin Leafshade on Wed 29/02/2012 15:01:35
replace stop with


return RUN_DIALOG_STOP_DIALOG;
Title: Re: Dialog troubles
Post by: Mouth for war on Wed 29/02/2012 17:34:21
THANK YOU KIND SIR :D That did the trick!