• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Need help calculating drop rate rarity

Status
Not open for further replies.
Level 8
Joined
Jul 17, 2004
Messages
283
say you roll a random number between 1-100

if the random number is between 1-95, would this be a 95% chance?

and then if the number rolls between 95-100, this would be a 5% chance?

I'm trying to figure out a good way to do drop rates in triggers.
 
Level 11
Joined
Dec 19, 2012
Messages
411
If you mean random number between 1-100 == number between 1-95, then number between 1-95 will be 95%, same as random number between 1-100 == number between 96-100 would be 5%.

If you mean random number between 1-100 == ExactlyNumber(Example "4"), then it would be 1%.

If the random number between 1-100 == random number between 1-100, then i not too sure if this is also 1% since it is hardly to achieve the exactly same number(Both numbers are random!).
 
Level 8
Joined
Jul 17, 2004
Messages
283
Confused.

What's a good way of calculating, for example, a 5% chance to drop an item from killing a monster?
 
Level 11
Joined
Dec 19, 2012
Messages
411
An example trigger is always the best and simplest way to explain every things :p

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • -------- check if random number equal to or greater than 96--------
      • (Random integer number between 1 and 100) Greater than or equal to 96
    • Then - Actions
      • -------- Here is actions (5% is achieve)--------
    • Else - Actions
There'er lot of way to achieve % drop rate, just depend on yourself. This's just the one of the method.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,207
For anything that is very rare (say 0.1% chance or lower) it may be a good idea to have some accumulating buffer that increases chances over time. This is to prevent players being "screwed over by the RNG" which was a major problem in Diablo III before they introduced such a system on legendary items.
 
Status
Not open for further replies.
Top