PDA

View Full Version : Random variables


colin
03-15-2003, 11:24 PM
Ok someone please explain random factors to me again. I built a scenario with two routes, gave both routes random variables and some normal conditions. It seems that the units just sit there at the junction. Until one of the other conditions become true (under direct fire) Does it make any different if the value is "new" or X1,X22 etc?

Ssnake
03-16-2003, 01:58 PM
Yes, of course.
The simplest method for a 50/50 random chance to make one path picked is to set the condition 0 < Random number New < 50, and leave the other without a condition. When the unit arrives, dice will be rolled to see if the random bumber is below 50 (in which case the unit take the path with the condition). If not, it will take the first path without a condition (the other one).

Numbered random variables X1...X63 have one fixed value throughout the entire mission. Whenever two paths refer to random variable X1, it will always be the same number (which allows you to have coordinated random behavior of several units).