Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: Ron on October 15, 2004, 09:38:30 AM

Title: yes or no question
Post 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.
Title: Re:yes or no question
Post by: robingravel on October 15, 2004, 01:41:52 PM
I hope this will help you:

Quote
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
Title: Re:yes or no question
Post by: Ron on October 15, 2004, 03:47:11 PM
Thanks alot man!