Go Back   Smogon Community > Contributions & Corrections > Archives
Register FAQ Social Groups Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools
Old Aug 17th, 2007, 5:09:20 PM   #76
david stone
Fast-moving, smart, sexy and alarming.
is a Pokémon Researcheris a Contributor to Smogonis a Site Staff Alumnusis a Super Moderator Alumnusis a Smogon IRC AOp Alumnusis a Battle Server Moderator Alumnus
 
david stone's Avatar
 
Join Date: Aug 2005
Posts: 5,152
Default

Correct me if I'm wrong, but how I'm reading it is you do all the multiplication and addition and such until you get to mod 2. You multiply that number by 1.3 for Life Orb, round down. Multiply by whatever's next, round down.
__________________
Previously obi.
Technical Machine, a Pokemon AI.
"Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat." - Sun Tzu
david stone is offline  
Old Aug 17th, 2007, 5:10:57 PM   #77
Peterko
Never give up!
is a Pokémon Researcheris a Contributor to Smogon
 
Peterko's Avatar
 
Join Date: Sep 2005
Posts: 1,070
Default

no he meant that the actual ingame formula uses
3/2 (x 3 / 2) instead of x 1.5, or
3/4 (x 3 / 4) instead of x 0.75, or
1/2 (x 1 / 2 ) instead of x 0.5
etc.

but it doesn´t make a difference, the result is the same
Peterko is offline  
Old Aug 17th, 2007, 6:03:50 PM   #78
.River
 
.River's Avatar
 
Join Date: Jun 2007
Posts: 1,270
Default

So you do Critical hit which will normaly be one, then you times that by Mod 2.

Which means that you are multiplying 1 by 1.3 then rounding down so Life Orb won't have any effect?
__________________
Take a Gander at my Meander - Trade Thread

pearl ~ 0861 1890 2489
diamond ~ 2363 7779 1153
platinum ~ 3782 5216 2334
(use platinum fc unless otherwise specified)
.River is offline  
Old Aug 17th, 2007, 6:21:49 PM   #79
david stone
Fast-moving, smart, sexy and alarming.
is a Pokémon Researcheris a Contributor to Smogonis a Site Staff Alumnusis a Super Moderator Alumnusis a Smogon IRC AOp Alumnusis a Battle Server Moderator Alumnus
 
david stone's Avatar
 
Join Date: Aug 2005
Posts: 5,152
Default

I don't know if you're trying to troll, but if you are, it's not going to work.

If you are not, there is an entire formula behind the CH. That will usually give a number that isn't 1, as it includes base power, Attack, Defense, and the like.
__________________
Previously obi.
Technical Machine, a Pokemon AI.
"Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat." - Sun Tzu
david stone is offline  
Old Aug 17th, 2007, 6:30:15 PM   #80
Peterko
Never give up!
is a Pokémon Researcheris a Contributor to Smogon
 
Peterko's Avatar
 
Join Date: Sep 2005
Posts: 1,070
Default

are you serious?

let´s say you are calculating and have 100 before coming to the CH part
normal hit with life orb: 100 x 1 x 1.3 = 130
critical hit with life orb: 100 x 2 x 1.3 = 260

you DON´T round down the individual modifiers, you round down the numbers after you apply the modifiers = AFTER EACH STEP...the formula would´ve been too long if we would write all possible modifiers into it, that´s why all modifiers affecting a particular part of the formula were listed in groups

I understand what you mean, but YOU DON´T ROUND DOWN MODIFIERS, YOU ROUND DOWN THE RESULTS YOU GET AFTER YOU APPLY A MODIFIER, do you understand that?

example:
Mod1 = BRN × RL × TVT × SR × FF

instead of doing (0.5 x 0.5 x 1 x 1 x 1) = x 0.25, rounded down = 0 (this is what you mean)
you do number that you´ve gotten in the previous steps x 0.5, rounded down, x 0.5, rounded down, x 1, rounded down, x 1 rounded down, x 1, rounded down
Peterko is offline  
Old Aug 17th, 2007, 6:33:05 PM   #81
.River
 
.River's Avatar
 
Join Date: Jun 2007
Posts: 1,270
Default

So, only for Modifiers 1-3, you multiply what's before it with everything in that modifier, and then round down? What is trolling?

EDIT:

I am sorry for causing you guys the trouble.

From the Formula:

CH * Mod 2

Does this mean:

CH * ITM * TT * MF and then round down after that?

Or

CH * (ITM * TT * MF) and then round down after that?
__________________
Take a Gander at my Meander - Trade Thread

pearl ~ 0861 1890 2489
diamond ~ 2363 7779 1153
platinum ~ 3782 5216 2334
(use platinum fc unless otherwise specified)

Last edited by .River; Aug 17th, 2007 at 6:36:30 PM.
.River is offline  
Old Aug 18th, 2007, 4:47:28 AM   #82
X-Act
np: Biffy Clyro - Shock Shock
is a Researcher Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnusis an Administrator Alumnus
 
X-Act's Avatar
 
Join Date: Feb 2006
Posts: 4,679
Malta
Default

I think I made it absolutely clear in the guide that the order of multiplication is from left to right, otherwise the answer is incorrect. I even provided an example of one such calculation. Read the guide thoroughly, .River.
__________________
http://users.smogon.com/X-Act

For all your Pokemon needs (and more!) including: the Defensive EVs applet, the Probabilities of Breeding IVs in Pokemon applet, and the Ratings of Pokemon Base Stats applet (now Version 2.0!). And also the IV to PID applet!
X-Act is offline  
Old Aug 21st, 2007, 10:33:30 AM   #83
Arseus
is a Pre-Contributor
 
Join Date: Oct 2006
Posts: 869
Default

I noticed you have forgotten our good old friend Regigigas, and its Ability, Slow Start which is not mentioned as an Ability Modifier. It halves its Attack stat (giving an AM of 0.5) for 5 turns, renewing every time it switches in (it halves Speed as well, but that doesn't affect the Damage Formula). This cannot be removed via Skill Swap in the Japanese versions.
Arseus is offline  
Old Aug 25th, 2007, 6:27:51 AM   #84
X-Act
np: Biffy Clyro - Shock Shock
is a Researcher Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnusis an Administrator Alumnus
 
X-Act's Avatar
 
Join Date: Feb 2006
Posts: 4,679
Malta
Default

Made a lot of updates and fixes to the guide.
__________________
http://users.smogon.com/X-Act

For all your Pokemon needs (and more!) including: the Defensive EVs applet, the Probabilities of Breeding IVs in Pokemon applet, and the Ratings of Pokemon Base Stats applet (now Version 2.0!). And also the IV to PID applet!
X-Act is offline  
Old Sep 8th, 2007, 6:46:04 PM   #85
david stone
Fast-moving, smart, sexy and alarming.
is a Pokémon Researcheris a Contributor to Smogonis a Site Staff Alumnusis a Super Moderator Alumnusis a Smogon IRC AOp Alumnusis a Battle Server Moderator Alumnus
 
david stone's Avatar
 
Join Date: Aug 2005
Posts: 5,152
Default

OHKOs don't bring HP to 0, they actually do damage. They do damage equal to the target's max HP (which matters for purposes of passing Substitute). I think Endeavor also does something like damage = their HP - your HP.

I hear about these multi-billion damage reports, but I don't know how that works out. I can't get anything above 142,597,368. This is what I did:

(((((((100 × 2 ÷ 5) + 2) × 1440 × 4912 ÷ 50) ÷ 1) × 1) + 2) × 2 × 2 × 100 ÷ 100) × 1.5 × 2 × 2 × 1

Level 100, 1440 power (Defense Curl, Helping Hand, and 5th turn Rollout), 4912 Attack (614 Attack Shuckle from Power Trick, Pure Power, +6 Attack), nothing in mod 1, CH, Metronome to give x2, max damage in the random number, STAB, 4x weakness, nothing in mod 1. Am I leaving out a way to increase this damage, or did I calculate anything wrong?
__________________
Previously obi.
Technical Machine, a Pokemon AI.
"Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat." - Sun Tzu
david stone is offline  
Old Sep 9th, 2007, 10:48:40 AM   #86
X-Act
np: Biffy Clyro - Shock Shock
is a Researcher Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnusis an Administrator Alumnus
 
X-Act's Avatar
 
Join Date: Feb 2006
Posts: 4,679
Malta
Default

You're right about the OHKO moves dealing damage. I'll change that.

I don't know about Endeavor, though.
__________________
http://users.smogon.com/X-Act

For all your Pokemon needs (and more!) including: the Defensive EVs applet, the Probabilities of Breeding IVs in Pokemon applet, and the Ratings of Pokemon Base Stats applet (now Version 2.0!). And also the IV to PID applet!
X-Act is offline  
Old Sep 9th, 2007, 12:39:53 PM   #87
.River
 
.River's Avatar
 
Join Date: Jun 2007
Posts: 1,270
Default

Instead of Metronome, you are supposed to use Trick or something to obtain Choice Band, then Rollout.

Also, Lvl1 -Defense Combee is a good opponent.
__________________
Take a Gander at my Meander - Trade Thread

pearl ~ 0861 1890 2489
diamond ~ 2363 7779 1153
platinum ~ 3782 5216 2334
(use platinum fc unless otherwise specified)
.River is offline  
Old Sep 9th, 2007, 12:50:29 PM   #88
david stone
Fast-moving, smart, sexy and alarming.
is a Pokémon Researcheris a Contributor to Smogonis a Site Staff Alumnusis a Super Moderator Alumnusis a Smogon IRC AOp Alumnusis a Battle Server Moderator Alumnus
 
david stone's Avatar
 
Join Date: Aug 2005
Posts: 5,152
Default

Metronome essentially gives you x2, Choice Band is x1.5. Also forgot to mention my opponent in there, it is a Combee / Ledyba / whatever that's 4x weak and gets down to 4 Defense which is a lot of stuff.
__________________
Previously obi.
Technical Machine, a Pokemon AI.
"Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat." - Sun Tzu
david stone is offline  
Old Sep 12th, 2007, 12:06:50 PM   #89
.River
 
.River's Avatar
 
Join Date: Jun 2007
Posts: 1,270
Default

Quote:
Originally Posted by Fat Obi View Post
OHKOs don't bring HP to 0, they actually do damage. They do damage equal to the target's max HP (which matters for purposes of passing Substitute). I think Endeavor also does something like damage = their HP - your HP.

I hear about these multi-billion damage reports, but I don't know how that works out. I can't get anything above 142,597,368. This is what I did:

(((((((100 × 2 ÷ 5) + 2) × 1440 × 4912 ÷ 50) ÷ 1) × 1) + 2) × 2 × 2 × 100 ÷ 100) × 1.5 × 2 × 2 × 1

Level 100, 1440 power (Defense Curl, Helping Hand, and 5th turn Rollout), 4912 Attack (614 Attack Shuckle from Power Trick, Pure Power, +6 Attack), nothing in mod 1, CH, Metronome to give x2, max damage in the random number, STAB, 4x weakness, nothing in mod 1. Am I leaving out a way to increase this damage, or did I calculate anything wrong?

You didn't mention Defense -6, so you might have left that out.
__________________
Take a Gander at my Meander - Trade Thread

pearl ~ 0861 1890 2489
diamond ~ 2363 7779 1153
platinum ~ 3782 5216 2334
(use platinum fc unless otherwise specified)
.River is offline  
Old Sep 12th, 2007, 6:23:09 PM   #90
david stone
Fast-moving, smart, sexy and alarming.
is a Pokémon Researcheris a Contributor to Smogonis a Site Staff Alumnusis a Super Moderator Alumnusis a Smogon IRC AOp Alumnusis a Battle Server Moderator Alumnus
 
david stone's Avatar
 
Join Date: Aug 2005
Posts: 5,152
Default

Well, that's why I divide by 1. 4 Defense, -6 Defense stages means it's divided by 4, meaning it's brought down to 1, the lowest possible Defense.
__________________
Previously obi.
Technical Machine, a Pokemon AI.
"Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat." - Sun Tzu
david stone is offline  
Old Oct 12th, 2007, 8:25:06 AM   #91
X-Act
np: Biffy Clyro - Shock Shock
is a Researcher Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnusis an Administrator Alumnus
 
X-Act's Avatar
 
Join Date: Feb 2006
Posts: 4,679
Malta
Default

I have read somewhere that a Pokemon with Guts that uses Sleep Talk while asleep will not have Guts activated. Is this true?
__________________
http://users.smogon.com/X-Act

For all your Pokemon needs (and more!) including: the Defensive EVs applet, the Probabilities of Breeding IVs in Pokemon applet, and the Ratings of Pokemon Base Stats applet (now Version 2.0!). And also the IV to PID applet!
X-Act is offline  
Old Oct 12th, 2007, 3:54:09 PM   #92
david stone
Fast-moving, smart, sexy and alarming.
is a Pokémon Researcheris a Contributor to Smogonis a Site Staff Alumnusis a Super Moderator Alumnusis a Smogon IRC AOp Alumnusis a Battle Server Moderator Alumnus
 
david stone's Avatar
 
Join Date: Aug 2005
Posts: 5,152
Default

No, that's only Facade.
__________________
Previously obi.
Technical Machine, a Pokemon AI.
"Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat." - Sun Tzu
david stone is offline  
Old Oct 17th, 2007, 8:49:56 PM   #93
odnamrataizem
 
odnamrataizem's Avatar
 
Join Date: Dec 2004
Posts: 186
/dev/null
Default

I haven't seen it anywhere yet, so I've whipped up a little JavaScript damage calculator based on the formula. There might be a few mistakes left to iron out, and yes, the coding style is rather meh. Anyway, it will work on all four "major browsers" (Firefox, Opera, IE, Safari), and is also OS-independent depending on the browser.
__________________
Quote:
Originally Posted by Fat Lee View Post
There's never a bad time to get a period, because according to my theory, periods feel great. Women just pretend that they're awful so we buy them stuff and do chores. I mean, how would we ever figure out otherwise? It's an age-old conspiracy. Bitches.
odnamrataizem is offline  
Old Oct 26th, 2007, 7:50:07 PM   #94
david stone
Fast-moving, smart, sexy and alarming.
is a Pokémon Researcheris a Contributor to Smogonis a Site Staff Alumnusis a Super Moderator Alumnusis a Smogon IRC AOp Alumnusis a Battle Server Moderator Alumnus
 
david stone's Avatar
 
Join Date: Aug 2005
Posts: 5,152
Default

AMF, your calculator is the closest to accurate I have found so far (at least for this one calculation), but it appears to be slightly off. In the massive damage calculation I did above, I get:

142,597,368

Your calculator returns:

142,597,416

So one of us is slightly off.



Also in the first post, it says,

Quote:
Fissure, Guillotine, Horn Drill and Sheer Cold - Damage is equal to the foe's remaining HP, or to the substitute's HP if the foe is behind a substitute.
It does damage equal to the target's maximum HP, so if they are Baton Passed a Substitute with HP greater than their max HP, it will not break.
__________________
Previously obi.
Technical Machine, a Pokemon AI.
"Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat." - Sun Tzu
david stone is offline  
Old Oct 27th, 2007, 5:12:55 AM   #95
X-Act
np: Biffy Clyro - Shock Shock
is a Researcher Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnusis an Administrator Alumnus
 
X-Act's Avatar
 
Join Date: Feb 2006
Posts: 4,679
Malta
Default

I thought I saw something in the research thread that suggested that they do the foe's remaining HP as damage, and not the foe's max HP. Searching through the research thread again, I realised that I had misunderstood how they work. Sorry about that.
__________________
http://users.smogon.com/X-Act

For all your Pokemon needs (and more!) including: the Defensive EVs applet, the Probabilities of Breeding IVs in Pokemon applet, and the Ratings of Pokemon Base Stats applet (now Version 2.0!). And also the IV to PID applet!
X-Act is offline  
Old Oct 28th, 2007, 5:20:48 AM   #96
0n1l1nk.
 
Join Date: Jun 2005
Posts: 106
Default

sorry to bother you but actually in the game the rand number is coded as a multiplication by a rand number between 217 and 255 inclusive followed by another multiplication by 100 then divided by 255 (i know it changes very little)
__________________
zomg #92 Gastly: 28 / 21 / 30 / 31 / 18 / 30 <-- from the time I played pearl, few years ago
Hidden Power Type is 'Rock'. Hidden Power Power is 68.
0n1l1nk. is offline  
Old Oct 28th, 2007, 8:24:10 AM   #97
X-Act
np: Biffy Clyro - Shock Shock
is a Researcher Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnusis an Administrator Alumnus
 
X-Act's Avatar
 
Join Date: Feb 2006
Posts: 4,679
Malta
Default

That is very useful information. If it is true, that makes the numbers between 85 and 100 not being chosen with uniform probability.

85, 87, 89, 90, 92, 94, 96 and 98 have probability 3/39 of being chosen.
86, 88, 91, 93, 95, 97 and 99 have probability 2/39 of being chosen.
100 has probability 1/39 of being chosen.

Which means that it's not very likely that you'll actually deal maximum damage.
__________________
http://users.smogon.com/X-Act

For all your Pokemon needs (and more!) including: the Defensive EVs applet, the Probabilities of Breeding IVs in Pokemon applet, and the Ratings of Pokemon Base Stats applet (now Version 2.0!). And also the IV to PID applet!
X-Act is offline  
Old Nov 17th, 2007, 5:46:08 PM   #98
Toothache
Let the music play!
is a Forum Moderator Alumnus
 
Toothache's Avatar
 
Join Date: Dec 2004
Posts: 3,730
Default

ok, so how do I use these formulae with 2 v 2? What is the reduction in base power for moves that hit more than one target (Rock Slide), or those that hit all but the user (Earthquake)? What is the reduction, and at what point does this come into the formulae?
Toothache is offline  
Old Nov 17th, 2007, 11:45:17 PM   #99
david stone
Fast-moving, smart, sexy and alarming.
is a Pokémon Researcheris a Contributor to Smogonis a Site Staff Alumnusis a Super Moderator Alumnusis a Smogon IRC AOp Alumnusis a Battle Server Moderator Alumnus
 
david stone's Avatar
 
Join Date: Aug 2005
Posts: 5,152
Default

Mod1.

"TVT is 0.75 if the game is 2vs2 and the move used hits more than one Pokemon, and 1 otherwise. Note: These moves don't always hit for 75% damage. Research on what conditions trigger the 75% damage are being carried out."
__________________
Previously obi.
Technical Machine, a Pokemon AI.
"Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat." - Sun Tzu
david stone is offline  
Old Nov 18th, 2007, 12:17:36 PM   #100
chaos**
chaos
is a Tournament Directoris a Battle Server Administratoris a Programmeris a Smogon IRC SOpis a Pokémon Researcheris a Contributor to Smogonis an Administratoris a Site Staff Alumnus
 
chaos's Avatar
 
Administrator
Join Date: Dec 2004
Posts: 8,712
Default

SCMS crew: Could we get an HTML version of this up on the site? Diamond & Pearl -> Articles -> damage_formula please
__________________
!gabite fierce: y'd u mute me??
!gabite fierce: eh bro??
!gabite fierce: u scared that i might bash u cuz u r not replying?
~chaos: you can't honestly think that is the reason lol
!gabite fierce: tell me the reason oh is it cuz of bolding the writing?
!gabite fierce: eh?
!gabite fierce: u scared again?
chaos is offline  
  Smogon Community > Contributions & Corrections > Archives

« Previous Thread | Next Thread »
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 5:12:59 PM.