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

[General] Damage question

Status
Not open for further replies.
Level 11
Joined
Aug 11, 2009
Messages
594
If à unit has 1-100 damage, Will it deal random damage between or Will it deal around 50 damage?

Because when testing it looks like it deals around the same damage all the time, maybe just à coincidense?
 
Not exactly random.

Let's say you have a base damage of 10.
Now, you have 6 faces to your dice, and each face of the dice deal 2*Number of the side.

The damages will be from 10+2*1 to 10+2*6 : 12-22

It won't be a random number between 12 and 22, but it will do a random face of the dice.

So, it might be those : 12-14-16-18-20-22, and not 12-13-14-15-16-17-18-19-20-21-22 (the damages it can deal).
 
Status
Not open for further replies.
Top