PDA

View Full Version : Converting Damage Formula to find Sp[Atk] of opposing Pokemon



Eternal
05-30-2009, 02:37 AM
I will show you how to find the opponent's Sp.Atk or Atk by converting the damage formula so it can formulate Sp[Atk] instead of HP Damage.

Damage Formula = (((((((Level × 2 ÷ 5) + 2) × BasePower (http://teamuber.net/forum/l%20modifiers) × [Sp]Atk (http://teamuber.net/forum/l%20attack) ÷ 50) ÷ [Sp]Def (http://teamuber.net/forum/l%20defense)) × Mod1 (http://teamuber.net/forum/l%20mod1)) + 2) × CH × Mod2 (http://teamuber.net/forum/l%20mod2) × R (http://teamuber.net/forum/l%20random) ÷ 100) × STAB × Type1 × Type2 × Mod3 (http://teamuber.net/forum/l%20mod3)

Full description of Formula can be found here: http://www.smogon.com/dp/articles/damage_formula

Now lets test the damage formula to show you that it works. Lets say my Rotom-h (level 100) vs another Rotom-h (level 100). My Rotom-h's Sp.Def is 282 and 304 HP.
The opposing Rotom-h's Sp.Atk is 270. The opposing Rotom-h uses Shadow Ball on me. Lets calculate how much damage this would do:

Damage (Minimum Damage R = 85) = (((((((100 × 2 ÷ 5) + 2) × 80 × 270 ÷ 50) ÷ 282) × 1) + 2) × 1 × 1 × 85 ÷ 100) × 1.5 × 1 × 2 × 1 = 169.17 = 55.6% (169.17/304)

Damage (Maximum Damage R = 100) = (((((((100 × 2 ÷ 5) + 2) × 80 × 270 ÷ 50) ÷ 282) × 1) + 2) × 1 × 1 × 100 ÷ 100) × 1.5 × 1 × 2 × 1 = 169.17 = 65.4% (199/304)

Minimum-Maximum Damage = (55.6% ~ 65.4%)

Now I will convert the damage formula to compute for Sp[Atk] and not Damage. Here it is:

((Sp[Def] x Mod1)(Damage/(CH x Mod2 x R/100 x Type x STAB) - 2)/(0.84 x Base PowerxMod3) = Sp[Atk]

R = 85 = Minimum
R= 100 = Maximum
Note: 0.84 was computed for level 100 Pokemons only. ((100x2/5)+2)/50 = 0.84
So now lets input the same stats of the two Rotom-h's. Lets say the damage was 169 (which is R = 85 as it is the minimal damage)

((282 x 1)(169/(1 x 1 x 85/100 x 1.5 x 2) - 2)/(0.84 x 80) = 269.72 (Which is just about 270, 99.99% accurate here)

So as you can see, with this formula it is possible to find the opposing Pokemon's Atk or Sp.Atk by them damaging your Pokemon.

But how can you be accurate when the random factor (R) can be anything from 85 to 100? You can't. So I will try to be as accurate as I can be.... How?

By finding the average damage of R = 85 and R = 100. Or to simplify it, R = (100+85/2) = 92.5

So lets say that Rotom-h's Shadow Ball did 184HP damage. Lets use R = 92.5.
((282 x 1)(184/(1 x 1 x 92.5/100 x 1.5 x 2) - 2)/(0.84 x 80) = 269.86 (Since I used 184, which is the average of 169 and 199, I got 269.86 as the answer)

Now this formula doesn't work when the damage is at its lowest or highest. For example, if damage was 169 and R = 92.5 then the Sp[Atk] would be:
((282 x 1)(169/(1 x 1 x 92.5/100 x 1.5 x 2) - 2)/(0.84 x 80) = 247.17 (Which is very far from 270. This is 91.54% accurate)

I believe being as close to 91.53% is as good as it gets. 169 is minimum and getting 169 is extremely rare, thus it is 91.54% accurate and not higher. Lets try another to be sure that this formula works:

My Jirachi's HP is 361 and Def is 236. The opposing Pokemon is also a Jirachi. It did 150HP Damage with Fire Punch. No STAB and 200% damage due to super effective. Now lets find it's Atk stat:

((236 x 1)(150/(1 x 1 x 92.5/100 x 1 x 2) - 2)/(0.84 x 75) = 296.24 (This is 99.08% accurate, since 150HP damage might have been close to R being equal to 92~93)
From this we can conclude that Jirachi must be Jolly and Max attack on EVs (Jolly Jirachi's Max Atk is 299).

Me and James will try to create a calculator from this so we can all calculate and find the opponent's Sp[Atk] in less than 10 secs. Because all you need is to input your Sp[Def] and the opposing Pokemon's HP damage. If you are testing this, remember Leftovers restores 1/16 HP. Find 1/16 of your hp and add it to the HP daamge. Post here of what you think.

IF YOU CAN'T WAIT FOR THE CALCULATOR YOU CAN USE THIS METHOD:

USE THIS FORMULA:
(Sp[Def]*Mod1)*(HP Damage/(CH*Mod2*0.925*Type*STAB)-2)/(0.84*Base Power*Mod3)

HERE: http://www.math.sc.edu/cgi-bin/sumcgi/calculator.pl

zod
05-30-2009, 02:53 AM
Me and James will try to create a calculator from this so we can all calculate and find the opponent's Sp[Atk] in less than 10 secs. Because all you need is to input your Sp[Def] and the opposing Pokemon's Sp[Atk]. Post here of what you think.
[/FONT]
I thought the whole point of it was to find your opponents SpA...

Eternal
05-30-2009, 02:56 AM
I thought the whole point of it was to find your opponents SpA...

Lol, I meant HP Damage, not Sp[Atk]

cat
05-30-2009, 02:58 AM
i see.

mastaofFAGS
05-30-2009, 05:25 AM
LOL this post reeks of chinkness

i am cool
05-30-2009, 05:27 AM
This is absolutely terrific. Although, it takes a hell load of time to do it; even on a calculator. A specialized Calculator for this will make it awesome.

Wow...GG Battles, Formula nightmare?

Rudy
05-30-2009, 05:41 AM
Wow this is awsome!

Eternal
05-30-2009, 05:42 AM
This is absolutely terrific. Although, it takes a hell load of time to do it; even on a calculator. A specialized Calculator for this will make it awesome.

Wow...GG Battles, Formula nightmare?

Its faster than calculating damage with a damage calc. Why?

The calculator we're going to make, you don't need to know what the opponent's Sp[Atk] is, because that's what you're trying to find. You can use a damage calculator if you don't know the opponent's Sp[Atk].

You must input:

1. HP Damage
2. Sp[Def]
3. BasePower
4. If there is STAB, Type effect, and battle effects, like reflect, WoW, etc...

Won't take long. And you don't need to use this every time. Only when you most likely need to.

If this calculator is successful, I will also make a calculator to find the opponent's Sp[Def] and HP. Which is much more complicated, but is do-able.

Statigar
06-01-2009, 12:17 AM
Calculator added:

[/URL][URL="http://teamuber.net/forum/../strategy/attackcalc.php"]http://teamuber.net/strategy/attackcalc.php (http://teamuber.net/forum/../strategy/damagecalculation.php)

Enjoy.:)

Eternal
01-01-2010, 10:07 AM
Bump.

Iggylow
01-02-2010, 03:24 AM
nice

keep up the good work guys

Deva
01-02-2010, 04:50 PM
thts one big formula O.o
keep up the gd work