Seeking a "Roll-system"

Status
Not open for further replies.
Level 7
Joined
Aug 29, 2007
Messages
336
I'm currently making a map that would fiit nicely with a roll-system. But I got no idea of how to create one. So if anyone could make one for me or if it's allready done (I've checked but couldn't find one) then link it to me? It would be much appreciated :wthumbsup:
 
Level 6
Joined
Aug 15, 2007
Messages
209
You could just hold a player within a variable and the value that that player has rolled. The player variable would work like this....

Player types -roll
local integer a = RandomInteger(1,100)
If a > [IntegerVariable] then
Set a = [IntegerVariable]
Set [PlayerVariable] = GetTriggeringPlayer()
else
call DoNothing()

Good luck.
 
Status
Not open for further replies.
Top