Alice Community  

Go Back   Alice Community > Alice 2 > Suggestion Box

Reply
 
Thread Tools Display Modes
Variables for Variables.
Old
zarfang8
Guest
 
Status:
Posts: n/a
Default Variables for Variables. - 12-14-2009, 04:23 PM

I'd like to actually be able to make a variable for a variable. like, <WhichVariable> become true, which you could set as a parameter, and use for a method, like being able to push a box, but only once. you use a boolean variable for every box, and then have a method WorldPushBox with parameters set as which box and what variable. you would push that specific box and the boolean variable would change to, pushed=true. then when you push it, it will asked if has been pushed with a boolean variable. make any sence?

Last edited by zarfang8; 12-14-2009 at 04:26 PM.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 12-14-2009, 11:31 PM

Sort of. You can't really do that with variables you create, but there are many built in variables, especially the seldom used properties, which allow this. I think this is the effect you wanted:
Attached Files
File Type: a2w WhichVariable.a2w (196.5 KB, 3 views)


(')>
   
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.