Author Topic: yes or no question  (Read 14417 times)

0 Members and 3 Guests are viewing this topic.

Offline Ron

yes or no question
« 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.



Offline robingravel

Re:yes or no question
« Reply #1 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
« Last Edit: October 15, 2004, 01:43:29 PM by Robin_Gravel »

Offline Ron

Re:yes or no question
« Reply #2 on: October 15, 2004, 03:47:11 PM »
Thanks alot man!


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.041 seconds with 20 queries.