# Damage Formula

G

#### Guest

##### Guest

I just bought Flash and I was thinking of making an RPG with it along
the lines of Adventure Quest (http://www.battleon.com), except maybe
with superheroes. I think I have some understanding of how their damage
formula works, and I was wondering how Pokemon does it so I can compare
the two.

--

Chet "Tech" Weaver

"To the optimist, the glass is half full. To the pessimist, the glass
is half empty. To the engineer, the glass is twice as big as it needs
to be." -- The Magic Engineer

AIM: PanGatomon
MSN: Nichirasu@hotmail.com
eMail: zeroohki at netscape dot net
Yahoo! Messenger: tech_weaver
ICQ: 122744531

G

#### Guest

##### Guest

Chet Weaver - Happy New Year 2205! wrote:
> I just bought Flash and I was thinking of making an RPG with it along
> the lines of Adventure Quest (http://www.battleon.com), except maybe
> with superheroes. I think I have some understanding of how their damage
> formula works, and I was wondering how Pokemon does it so I can compare
> the two.

From Azure Heights:

Damage = ((2A/5+2)*B*C)/D)/50)+2)*X)*Y/10)*Z)/255

A = attacker's Level
B = attacker's Attack or Special
C = attack Power
D = defender's Defense or Special
X = same-Type attack bonus (1 or 1.5)
Y = Type modifiers (40, 20, 10, 5, 2.5, or 0)
Z = a random number between 217 and 255

-- White Cat
http://pokedex.kary.ca/

G

#### Guest

##### Guest

White Cat wrote:

> From Azure Heights:
>
> Damage = ((2A/5+2)*B*C)/D)/50)+2)*X)*Y/10)*Z)/255
>
> A = attacker's Level
> B = attacker's Attack or Special
> C = attack Power
> D = defender's Defense or Special
> X = same-Type attack bonus (1 or 1.5)
> Y = Type modifiers (40, 20, 10, 5, 2.5, or 0)

This is from the defending Pokemon's types, right? So 40 would be
quadruple damage, twenty is double damage, ten is normal damage, 5 is
half damage, 2.5 is quarter damage, and zero is total immunity?

> Z = a random number between 217 and 255
>

--

Chet "Tech" Weaver

"To the optimist, the glass is half full. To the pessimist, the glass
is half empty. To the engineer, the glass is twice as big as it needs
to be." -- The Magic Engineer

AIM: PanGatomon
MSN: Nichirasu@hotmail.com
eMail: zeroohki at netscape dot net
Yahoo! Messenger: tech_weaver
ICQ: 122744531

G

#### Guest

##### Guest

"Chet Weaver - Yo' Computer So Old, They Don't Even Make Viruses For It
Anymore! OH, Snap!" <zeroohki@netscape.net> wrote in message
news:39n2omF64ua46U1@individual.net...
> White Cat wrote:
>
>> From Azure Heights:
>>
>> Damage = ((2A/5+2)*B*C)/D)/50)+2)*X)*Y/10)*Z)/255
>>
>> A = attacker's Level
>> B = attacker's Attack or Special
>> C = attack Power
>> D = defender's Defense or Special
>> X = same-Type attack bonus (1 or 1.5)
>> Y = Type modifiers (40, 20, 10, 5, 2.5, or 0)
>
> This is from the defending Pokemon's types, right? So 40 would be quadruple
> damage, twenty is double damage, ten is normal damage, 5 is half damage, 2.5
> is quarter damage, and zero is total immunity?

IIRC, that's how it works. Though I didn't remember the /10 part. Did that
get found in the ROM?

--
fluxxdog
www.bellsouthpwp.net/f/l/fluxxdog