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

75 % chance to effect.

Status
Not open for further replies.
Level 1
Joined
Jun 20, 2006
Messages
2
Ok, ill start from that i'm not really advanced from math. I want to make 75 % chance to my skill that finishes enemies that are below 30 % of health.

So i made :

Set chance_ex = (Random integer number between 1 and 2)

And if chance_ex will be 1 then it will proc, but thats 50 % chance. How i will make a 75% with that? Random number between 1 and 3 = 33 %, between 1 and 4 = 25 % etc. I hope you understand what i mean, im not best in english ;)
 
Status
Not open for further replies.
Top