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

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