Author Topic: Mixed Events  (Read 549 times)

Is there a way to mix events up so there is no telling when one event can happen or the other?  An example would be if I were to toss a coin, I can either get heads or tails and there would be no pattern.  This can be helpful for many things.

I believe this is do-able with VCE, but I'm not sure how. I think it's an event called "ifRandomDice, which "rolls" a virtual die and gets a random result. Then another event could be rigged to activate when the die lands on a certain value.

Thanks, I will try this.

ifRandomDice no longer exists. What you do to simulate it is set a variable on the brick to the minimum random number, then randomize it with the number setting being the maximum random number. Then you check the random number and trigger events accordingly.

random variables, as amade said, with VCE