Blockland Forums > Help
Events- Variables.. HELP
(1/1)
Liek Dat:
Ok.. I am making a medevil times game and i need help with thes event...
IfRandom
I dont know what it means I tryed to use it...
IfRandom><blank><blank>greater than<blank>
WTF does it mean
phflack:
onactivate>self>ifrandom[1][5]equals[1]
variabletrue would happen about 1/5 the time
variablefalse would happen about 4/5 the time
input>self/namedbrick>ifrandom[X][Y][blank][Z]
X is an ammount, one number of the range
Y is the second number of the range
blank is the greaterthan, equal to stuff to Z
Z is the number the blank works on
Placid:

--- Quote from: phflack on July 10, 2009, 07:34:05 PM ---onactivate>self>ifrandom[1][5]equals[1]
variabletrue would happen about 1/5 the time
variablefalse would happen about 4/5 the time
input>self/namedbrick>ifrandom[X][Y][blank][Z]
X is an ammount, one number of the range
Y is the second number of the range
blank is the greaterthan, equal to stuff to Z
Z is the number the blank works on

--- End quote ---
This
Also, if you need help with ifRandomDice:

onActivate>Self>ifRandomDice>5>Equals>1
VariableFalse will happen if a 5 sided die that is rolled = anything other than 1
VariableTrue will happen if a 5 sided die that is rolled = 1
phflack:
ifrandom should work better, because then you can do 1/7 or 2/7 or 3/7 and so on
Navigation
Message Index

Go to full version