• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

how to make unstable damage?

Status
Not open for further replies.
Level 14
Joined
Jun 27, 2008
Messages
1,325
Didnt test, but it should be something like this...
Unit base damage: -2
Number of dice: 2
Sides per dice: 51

Is the base damage even possible though?

You can also do:
Code:
Base damage: -10
num of dice: 10
sides per dice: 11

or:
Code:
base damage: -1
num of dice: 1
sides per dice: 101
or one of many other combinations.

Both cobinations give you 0 - 100 damage. The difference is how the probabilities of different damage values are distributed.

If you have the combination with only 1 dice, then each damage (1, 2, 3, ... 100) has the same probability.
However if you use more than one dice the damage values close to the mean value (50) have a higher probability assigned than values closer to the tails (1 and 100). The more dice you have the bigger the difference of the probability of 50 and 1 or 100.

If you want a "more random feeling", go for fewer dice.
If you want mostly damage around 40-60 and sometimes a very low or high value, then use more dice.
 
Status
Not open for further replies.
Top