• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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