Alice Community  

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

Reply
 
Thread Tools Display Modes
End Program depending on situation
Old
FILIPINOY79
Junior Member
 
Status: Offline
Posts: 1
Join Date: Sep 2011
Location: California
Default End Program depending on situation - 09-20-2011, 01:20 PM

I have a question, how do i end a program early depending on a situation. I'm trying to program a garage sell with the buyer has 100 bucks. Depending on the first two items on sell she will run out of money, or be low on money. how do i end it at this time.

I know if i use the if/else to another method but it continues to the rest of the program.
   
Reply With Quote
Old
InsertName
Senior Member
 
InsertName's Avatar
 
Status: Offline
Posts: 341
Join Date: Jun 2011
Location: In a house
Default 09-23-2011, 06:37 PM

Make a world event where
if "money variable" is less than "the cost of cheapest object"
Set up the end program sequence

it could be text saying game over or whatever


__№_₤⅞__
Handguns: http://www.alice.org/community/showthread.php?p=45349
MINECRAFT IN ALICE: http://alice.org/community/showthread.php?p=48208
My Stupid Animations: http://alice.org/community/album.php?albumid=119
   
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 ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.