Author Topic: Random Number/Dice  (Read 429 times)

Is it possible to make a brick that on activate gives a random number between 1 and 6?


It's easy, if you know VCE.

All it is is
[check] [zero] [zero] [onactivate] [self] [retrocheck] [ifrandom] [==] [1] [1 1]
[check] [one] [zero] [onvariabletrue] [namedbrick] [dice] [setprint] [1]

Do this six times for a six sided dice.

This was done from memory so it might not be exactly correct.  And it does require the setprint event.

your example requires it

you only need 3 lines.

It's easy, if you know VCE.
-handicapcheck snip-
Why people still using handicapcheck
Do that what Lugnut said

or you could do it with projectiles and timing, but it's a bit more complicated