Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Yes/No Function Issues
Old
yammie1122
Junior Member
 
Status: Offline
Posts: 11
Join Date: Mar 2012
Default Yes/No Function Issues - 04-25-2012, 10:58 PM

I have programmed a Monty game with a car as a prize. After the user selects a door, I have it to program to open one of the other doors, which has a monkey behind it, then ask the user whether they want to switch their decision or not.

The problem that I'm running into is how to program Alice, if the user selects Yes to do one thing and if the user selects No to do another thing. I figured I would use If/Else statement but can't figure out to say if yes was selected or if no was selected.

Right now it doesn't matter if you select yes or no, the program will open the door originally selected.

Thanks in advance.
   
Reply With Quote
Old
dakota95
Senior Member
 
dakota95's Avatar
 
Status: Offline
Posts: 426
Join Date: Aug 2011
Location: like I would tell you. ;)
Default 04-26-2012, 08:13 AM

Here is an example. Go to the double ferris wheel thing and it will ask you if you want to get on or not. The ferris wheel is the only ride that works because I never finished it
Attached Files
File Type: a2w Park 1.0.a2w (1.89 MB, 12 views)


<Insert_Signature_Here>
   
Reply With Quote
Old
yammie1122
Junior Member
 
Status: Offline
Posts: 11
Join Date: Mar 2012
Default 04-26-2012, 12:48 PM

Thanks.

After looking at the coding in your problem and some Google searches I was able to figure it out.

Last edited by yammie1122; 04-26-2012 at 02:29 PM. Reason: problem is resolved
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.