Alice Community  

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

Reply
 
Thread Tools Display Modes
Random Methods
Old
Chris101b
Senior Member
 
Chris101b's Avatar
 
Status: Offline
Posts: 361
Join Date: Jun 2007
Default Random Methods - 10-23-2009, 10:30 PM

What is the easiest way to make alice choose a random method. I am trying to make a list of methods for alice to use so that it can choose a random one (I am testing a sort of artificial intelligence). Is there any way to do this or does alice not support a list of methods. I can make a list of strings, colors, textures, poses, point of view, etc. But methods are no where to be seen. I know how I could do this the hard way, but is there an easy way for you to make a list of methods and have alice choose a random one?


I am nowhere and everywhere at the same time.

www.facebook.com/chris101b
Xbox Live GT: Chris101b
Youtube: (You guessed it) www.youtube.com/chris101b
   
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 10-23-2009, 10:38 PM

Unfortunately no. You'd have to have a number assigned to each method and have a number variable be randomly chosen to determine which method is run, or use a "chooseTrue" sequence.


(')>
   
Reply With Quote
Old
Chris101b
Senior Member
 
Chris101b's Avatar
 
Status: Offline
Posts: 361
Join Date: Jun 2007
Default 10-23-2009, 10:59 PM

Yeah that's what I thought... that was my "hard way". I was just hoping that there was something I was overlooking instead of there not being a way. Oh well. Back to working on scenery. Lol.


I am nowhere and everywhere at the same time.

www.facebook.com/chris101b
Xbox Live GT: Chris101b
Youtube: (You guessed it) www.youtube.com/chris101b
   
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 ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.