Author Topic: Events- Variables.. HELP  (Read 558 times)

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

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

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
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

ifrandom should work better, because then you can do 1/7 or 2/7 or 3/7 and so on