| Blockland Forums > Help |
| Random Number/Dice |
| (1/2) > >> |
| MonkeyFunkyMonkey:
Is it possible to make a brick that on activate gives a random number between 1 and 6? |
| Gen. Hothauser:
yes |
| Gen. Hothauser:
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. |
| Lugnut:
your example requires it you only need 3 lines. |
| Blocki:
--- Quote from: Gen. Hothauser on April 23, 2012, 12:53:37 AM ---It's easy, if you know VCE. -handicapcheck snip- --- End quote --- Why people still using handicapcheck Do that what Lugnut said |
| Navigation |
| Message Index |
| Next page |