PDA

View Full Version : Random Methods


Chris101b
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?

x2495iiii
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.

Chris101b
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.