Community
AGI Programming => Mega Tokyo AGI Archive => Topic started by: Ron on October 15, 2004, 09:38:30 AM
-
Hi,
How can i create make a yes or no question like in goldrush ?
example :
some one ask you question and you can replay only with yes or no.
the yes create diffrent resault and the no got different resault.
and the string changed to
yes or no>
Thanks, Ron.
-
I hope this will help you:
if (said("talk")){
set(f15);
print("Do you want hamburger?");
set.string(s2,"Yes");
set.cursor.char("");
set(f2);
get.string(s1,"Yes or No ",22,1,18);
parse(s1);
reset(f2);
if (compare.strings(s1,s2)) {
print("You get one.");
}
else {
print("You're not hungry.");
}
}
Robin Gravel
-
Thanks alot man!