Level 27

# Reverse Damage Calculator

### by supertoinkz

Description:
I saw many damage calculators where they calculate the Damage Base, Damage Number of Dice, and Damage Sides per die. But I never saw any calculator in the reverse mode (wherein it calculates the minimum and maximum damage to find the Base, Number of Dice, and Sides per die. This tutorial will teach us or you to calculate damage in the reverse mode. This is useful when you found a good game with good units that you want to exactly copy it. I personally used it with my upcoming map, Warcraft 2.

Hangin' with the Tutorial:
Before we start, you should learn the legends and abbreviations I used.
B - Damage Base
N - Number of Dice
S - Sides per Die
Min - Minimum
Max - Maximum

Needed:
Simple Math Knowledge
World Editor

Getting Started:
So, let's find a good unit.............I used footman\grunt from warcraft 2.The footman\grunt has a min damage of 2 and max damage of 9. So what will we do?
First, let's calculate the min damage. Think of 2 numbers when added the sum will be 2:
Possible Equations

1 + 1 = 2
1.5+ 0.5 = 2
The first addend should be greater than or equal to the second number.
The first number would be the B and the second number would be N.
Let us use the the first equation (Because wc3 doesn't use real numbers on those fields).
Now we had the minimum damage calculated right? Let us calculate the maximum damage. Here's the formula
Max Damage Formula
(B + (S * N))
so..
Equation according to our Min Damage results
(1 + (S * 1))
Here, think of a number when multiplied to N and the factor of it when added into the B the answer would be 9. I got this....
My results
(1 + (8 * 1))
That's it! Congratulations! Before I end, we need to check if our B,S,N is correct. Here's our result:

The BSN of our example
Footman\Grunt
Min-Max damage : 2-9
Damage Base (B): 1
Number of dice (N): 1
Sides per die (S): 8
Checking:
The formulas are:
Min damage: (B + N)
Max damage: (B + (S * N))
so....
Min damage: (1 + 1) = 2
Max damage: (1 + (8 * 1)) = 9

My other results:
Warcraft 2
Archer\Axethrower (3-9): B2, N1, S7
Ballista\Catapult (25-80): B24, N1, S56
Knight\Ogre (2-12): B1, N1, S11
Mage\Deathknight (5-9): B3, N2, S3
Grypon\Dragon (8-16): B6, N2, S5
Destroyer (2-35): B1, N1, S34
Submarine\Turtle (10-50): B8, N2, S21
Battleship\Juggernaught (50-130): B48, N2, S41

Author's Note:
Do not distribute without my permission.
Maximum Damage Base: 100000
Maximum Damage per Number of Dice: 100
Maximum Damage Sides per Die: 100

Changelogs:
None ATM

Last edited:

#### StaberFire

Level 12
The first addend should be grreater or equal than the second number.

Should say:
"The first addend should be greater than or equal to the second number."

Other than that, decent tutorial and moderately useful... I'd rate it a 3/5, as the Min and Max are usually what people want to find out, whereas, who really needs to know the BNS?

#### .Ragnaros

Level 6
Can you use the
Code:
tags for your calculations? It's sightly confusing since you they aren't seconded.

#### .Ragnaros

Level 6
Hehe, sorry I didn't answer your update reply, the operations part was disguised with the text and it was sightly confusing, thanks its easier to understand and probably gained more quality.

#### Reaper2008

Level 12
Goodbye .

Relax, someone'll see this soon, about a month from now it will be approved.

#### .Ragnaros

Level 6
Lol, so many bumps, don't worry, someday someone will come to the Tutorials Submission sections and approve or not each tutorial submitted

#### Darkness-4ever

Level 9
Feel the wrath of lazy tut mods!

#### Darkness-4ever

Level 9
Feel the wrath of lazy tut mods!

Feel the wrath of lazy tutorial moderators!

#### viktor1995

Level 7
very nice tutorial 5/5

#### Crazed_seal2

Level 14
This tutorial is officially Approved!
Thats what i'll be saying if i was a mod.
But im just a regular user
Anyway good tut!

#### viktor1995

Level 7
one question: in the peasant you add 0.5, 0.5 and 4.5 But how to? My regular editor cant't add this oO Or do you use custom editor?

#### PurgeandFire

Level 44
~Approved. Useful, I didn't really think about doing it the reverse way. It helps when you know the damage you want to use.

#### supertoinkz

Level 27
Updated, added a line where I note that wc3 uses integers on those fields, thanks viktor for the notification.

Replies
3
Views
608
Replies
7
Views
2K
Replies
15
Views
8K
Replies
5
Views
495
Replies
6
Views
733