Blockland Forums > Help
VCE Help - "Random Dice"
Deathwishez:
Yeah. And in whole numbers too.
Deathwishez:
Wait, no. The minimum value needs to be preset. Like VCE_modVariable > Self > [Gold] Set [2] than VCE_modVariable > Self > [Gold] Random [11].
Get it?
darerd:
--- Quote from: Deathwishez on December 20, 2009, 10:24:15 PM ---Wait, no. The minimum value needs to be preset. Like VCE_modVariable > Self > [Gold] Set [2] than VCE_modVariable > Self > [Gold] Random [11].
Get it?
--- End quote ---
Eh, I think it will randomize [from 2 to 2] then re randomizing [from 11 to 11] so it is basically forced to be 11.
1997man:
I need help with this too but like how to make a random chance on successfully chopping a tree.
phflack:
onactivate>self>vce_modvariable[randomvar]*setrandom*[10]
onactivate>self>vce_ifvariable[randomvar]*equals*[1]
onvariabletrue>player>kill
onactivate>self>vce_modvariable[randomvar]*set*[0]
that will set the "randomvar" to be between 0 and 10, if 1, player dies