Alice Community  

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

Thread Tools Display Modes
End Program depending on situation
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
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

My Stupid Animations:
Reply With Quote

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.