This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-06 03:57:20

jalkan
Scratcher
Registered: 2009-05-14
Posts: 25

pokemon damage formula

Damage = ((((2 * Level / 5 + 2) * AttackStat * AttackPower / DefenseStat) / 50) + 2) * STAB * Weakness/Resistance * RandomNumber / 100

STAB is 1.5x damage bonus from if the move is the same type as the pokemon
AttackPower is the move's power
RandomNumber is a number from 85-100
Weakness/Resistance is Weakness OR Resistance

Last edited by jalkan (2011-07-06 10:07:04)

Offline

 

#2 2011-07-06 05:12:51

helltank
Scratcher
Registered: 2010-05-21
Posts: 1000+

Re: pokemon damage formula

1)Is this real? Did you get it from the official pokemon website?
2)If this is real, then it's really pretty fail. Why are you adding Defense in damage? Also, I believe that Weakness/Resistance doesn't have anything to do with it. I believe you should subtract it at the end....


Error:Signature could not load. Please wait for an indefinite amount of time, until you realize you're gullible and go off to look for another potentially interesting signature to stare at.

Offline

 

#3 2011-07-06 05:18:51

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: pokemon damage formula

helltank wrote:

1)Is this real? Did you get it from the official pokemon website?
2)If this is real, then it's really pretty fail. Why are you adding Defense in damage? Also, I believe that Weakness/Resistance doesn't have anything to do with it. I believe you should subtract it at the end....

The defense stat is of the opposite creature i believe, as it is / (divide)


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#4 2011-07-06 10:09:19

jalkan
Scratcher
Registered: 2009-05-14
Posts: 25

Re: pokemon damage formula

helltank wrote:

1)Is this real? Did you get it from the official pokemon website?
2)If this is real, then it's really pretty fail. Why are you adding Defense in damage? Also, I believe that Weakness/Resistance doesn't have anything to do with it. I believe you should subtract it at the end....

its you that fails the Defense is the enemy's defense and Weakness/Resistance is weakness OR resistance that you get from the types

you fail

also for question 1 nope but i got it from someone who DID get it from them

EPIC FAILL

Last edited by jalkan (2011-07-06 10:10:52)

Offline

 

#5 2011-07-06 14:25:02

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: pokemon damage formula

jalkan wrote:

helltank wrote:

1)Is this real? Did you get it from the official pokemon website?
2)If this is real, then it's really pretty fail. Why are you adding Defense in damage? Also, I believe that Weakness/Resistance doesn't have anything to do with it. I believe you should subtract it at the end....

its you that fails the Defense is the enemy's defense and Weakness/Resistance is weakness OR resistance that you get from the types

you fail

also for question 1 nope but i got it from someone who DID get it from them

EPIC FAILL

You spelled epic fail incorrectly  tongue
Let me type up the formula, without blocks getting in the way...

Offline

 

#6 2011-07-06 14:36:20

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: pokemon damage formula

Damage = ( ( ( (2 * Level / 5 + 2) * AttackStat * AttackPower / DefenseStat) / 50) + 2) * STAB * Weakness/Resistance * RandomNumber / 100

If you're just going to copy/paste from serebii, at least put a little work into it...

The damage dealt to an opposing pokemon is equal to the quantity of the quantity of the quantity of the quantity of twice the level amount over five plus two, multiplied by the attack stat of the attacking pokemon and the power of the attack move over the defense stat of the defending pokemon, divided by fifty, plus two, multiplied by one and a half if and only if the move is the same as one of the attacking pokemons type, multiplied by zero, one fourth, one half, one, two, or four according to the defending pokemons weakness or resistance against the attacking pokemons move type, multiplied by a random number from eighty-five two a hundred, all over a hundred.

I wonder how that would look as an algebraic equation...

Last edited by kayybee (2011-07-06 14:40:10)

Offline

 

#7 2011-07-06 15:38:08

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: pokemon damage formula

Eh, that is the original forumla from red and blue, it is the most simple version of the forumla. Here is the newest one from http://www.smogon.com/dp/articles/damage_formula

Code:

Damage Formula = (((((((Level × 2 ÷ 5) + 2) × BasePower × [Sp]Atk ÷ 50) ÷ [Sp]Def) × Mod1) + 2) × 
                 CH × Mod2 × R ÷ 100) × STAB × Type1 × Type2 × Mod3)

Notable changes are the addition of another type modifier and other modifers for area effects and held items.

My project Collab Monsters uses the original R/B forumla without STAB.

Last edited by archmage (2011-07-06 15:38:30)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#8 2011-07-06 15:43:13

AnimeCreatorArtist
Scratcher
Registered: 2010-05-25
Posts: 1000+

Re: pokemon damage formula

kewlio...


http://images2.wikia.nocookie.net/__cb20121209020158/adventuretimewithfinnandjake/images/9/93/Prismo.png
I'm basically honorary nasty. N-n-n-n-nasty jazz

Offline

 

#9 2011-07-08 07:12:44

pokeywokey
Scratcher
Registered: 2009-05-16
Posts: 100+

Re: pokemon damage formula

I love these pokemon formulas.  tongue


http://fc07.deviantart.net/fs22/f/2008/002/f/f/Flying_Spaghetti_Monster_by_Deviant_Care.jpg

Offline

 

Board footer