• Smogon Premier League is here and the team collection is now available. Support your team!

Research Legends: Z-A Mechanics Research

I've been working on the whole damage formula for a few weeks now. I wrote it up on Twitter here.

The highlights:
  • Stat up is 1.5x, and stat down is 0.67x. This is rounded half up at 0.5.
  • "DamagePerMegaAura" is a 30% damage modifier for attacking a Rogue Mega Pokémon with a non-Plus Move.
  • "DamagePerMegaTypeAff" and "DamagePerMegaTypeAffPlus" modify 4x and 8x effective damage to 63% versus Rogue Megas and Zygarde.
  • The 30% and 63% modifiers above can stack to 18.9% if you use a 4x or 8x effective non-Plus Move vs a Rogue Mega.
  • Only weather I found that does anything is Rain. This gives water moves 1.2x damage and fire moves 0.8x damage.
  • Sneak Attacks in the Z-A Royale deal extra damage by forcing the attack to be a critical hit.
  • "DamagePerTypeAff" is the non-Plus Move effectiveness table. Plus Moves increase damage by using the "DamagePerTypeAffPlus" table instead.
  • As I stated before, Rogue Megas use ExtentionType 2 moves multiple times so they can hit multiple opponents.
  • Rogue Megas hit through immunities with a 0.3 effectiveness modifier.
  • Rogue Mega data is posted here. This shows how their stats are amplified (usually HP). Their moves are scripted in some way because the moves in the encounters file don't match.
  • Plus Moves go through Protect and Plus Protect. The damage is reduced to 0.25x.
  • The reason wild alpha Pokémon are super strong is because this "StrengthenValue" config applies to ALL their stats. They have 2x HP, attacks, and defenses. (I did not check their speed but presume it's also 2x). When you save over them and reboot, they lose the 2x bonus to everything except for HP.
  • The Ange Floette flowers are weird props that let you hit them. They have 5 Def and Special Def, are typeless, and have 25k HP each. They apparently have no weight and take 120 BP Heat Crashes. Their attacks are scripted and do not go through the damage formula.
I've posted the disassembly with 15 different gdb logs from testing on my Gists. This can be used to check that damage calculators are rounding properly. A lot of these steps are now doing float math and then cast to unsigned int, so you would need to make sure each modifier is being applied correctly. The damage modifiers in particular appear to all be multiplied together as floats and applied once to the damage, rather than individually being applied and rounded down between each step.
 
I've been working on the whole damage formula for a few weeks now. I wrote it up on Twitter here.

The highlights:
  • Stat up is 1.5x, and stat down is 0.67x. This is rounded half up at 0.5.
  • "DamagePerMegaAura" is a 30% damage modifier for attacking a Rogue Mega Pokémon with a non-Plus Move.
  • "DamagePerMegaTypeAff" and "DamagePerMegaTypeAffPlus" modify 4x and 8x effective damage to 63% versus Rogue Megas and Zygarde.
  • The 30% and 63% modifiers above can stack to 18.9% if you use a 4x or 8x effective non-Plus Move vs a Rogue Mega.
  • Only weather I found that does anything is Rain. This gives water moves 1.2x damage and fire moves 0.8x damage.
  • Sneak Attacks in the Z-A Royale deal extra damage by forcing the attack to be a critical hit.
  • "DamagePerTypeAff" is the non-Plus Move effectiveness table. Plus Moves increase damage by using the "DamagePerTypeAffPlus" table instead.
  • As I stated before, Rogue Megas use ExtentionType 2 moves multiple times so they can hit multiple opponents.
  • Rogue Megas hit through immunities with a 0.3 effectiveness modifier.
  • Rogue Mega data is posted here. This shows how their stats are amplified (usually HP). Their moves are scripted in some way because the moves in the encounters file don't match.
  • Plus Moves go through Protect and Plus Protect. The damage is reduced to 0.25x.
  • The reason wild alpha Pokémon are super strong is because this "StrengthenValue" config applies to ALL their stats. They have 2x HP, attacks, and defenses. (I did not check their speed but presume it's also 2x). When you save over them and reboot, they lose the 2x bonus to everything except for HP.
  • The Ange Floette flowers are weird props that let you hit them. They have 5 Def and Special Def, are typeless, and have 25k HP each. They apparently have no weight and take 120 BP Heat Crashes. Their attacks are scripted and do not go through the damage formula.
I've posted the disassembly with 15 different gdb logs from testing on my Gists. This can be used to check that damage calculators are rounding properly. A lot of these steps are now doing float math and then cast to unsigned int, so you would need to make sure each modifier is being applied correctly. The damage modifiers in particular appear to all be multiplied together as floats and applied once to the damage, rather than individually being applied and rounded down between each step.
Hello, I have written a fork of the damage calculator to accurately simulate PvE calcs for this, including sample sets for easy calcing against the various boss fights in the game (namely rogue megas and zygarde): https://krisxv.github.io/ingame-calc/

It also has sample sets and accurately simulates PvP; if there are bugs, report them in the issues tab for the github repository: https://github.com/krisxv/ingame-calc/issues
 
Many people were probably already aware of this, but I couldn't find a post about it, so I'm putting it here for reference:

Multihit moves (other than Water Shuriken) get an extra hit when used as a Plus move, while still getting the 1.2x or 1.3x bonus to damage. This brings Bullet Seed, Pin Missile, and Rock Blast up to a combined 90BP, assuming you land all 6 hits.

Video proof: https://imgur.com/a/wTQJHtn

Damage calcs from the end of the video:
252+ Atk Excadrill Rock Blast+ vs. Lvl 54 0 HP 12 IVs / 0 Def 12 IVs Lucario on a critical hit: 18-22 (12.3 - 15%)
252+ Atk Excadrill Rock Blast+ (5 hits) vs. Lvl 54 0 HP 12 IVs / 0 Def 12 IVs Lucario: 60-70 (41 - 47.9%)
Combined average damage rolls: 86
Actual damage: 87
 
Is there an updated repository of the moves for the DLC?

I'd like to continue analyzing the Waza fields to see if these can further categorize move archetypes.
 
Some abilities are in the game, like with Mimikyu's Disguise etc. But here's another: Mega Raichu X seems to have an ability that boosts its Attack when it hits Volt Tackle specifically. No other move does this from what I've seen so far. Raichu Y doesn't get this boost either.
 
Do we have Tatsugiri-Dodonzo synergy of any sorts going on?
Apparently we do, actually, according to Joe Serebii. From a video i saw on the evil formerly-a-bird website, it seems that a pseudo-commander effect auto-activates if you send out Dozo with a Tatsugiri somewhere on your team, or something.

1765554970375.png

It's not implemented perfectly, but hey, it's there.
(I'd like to think that this is Dondozo going "ooh, my turn, my turn!" and trying to cram itself in Tatsugiri's mouth like a dog that doesn't realize it's too big to sit in your lap anymore)
 
Last edited:
Some abilities are in the game, like with Mimikyu's Disguise etc. But here's another: Mega Raichu X seems to have an ability that boosts its Attack when it hits Volt Tackle specifically. No other move does this from what I've seen so far. Raichu Y doesn't get this boost either.
I wonder if Raichu Y does get something with Thunder (or maybe Thunderbolt); i felt like it "double casted" Thunder in the quest battle against it. However it was a very hectic battle, so it might have been a mistake on my part. Still seems worth checking out?

Apparently we do, actually, according to Joe Serebii. From a video i saw on the evil formerly-a-bird website, it seems that a pseudo-commander effect auto-activates if you send out Dozo with a Tatsugiri somewhere on your team, or something.

View attachment 792664
It's not implemented perfectly, but hey, it's there.
(I'd like to think that this is Dondozo going "ooh, my turn, my turn!" and trying to cram itself in Tatsugiri's mouth like a dog that doesn't realize it's too big to sit in your lap anymore)
A testing request for this is if Order Up changes any based on if you use the Mega Tatsugiris
 
Some abilities are in the game, like with Mimikyu's Disguise etc. But here's another: Mega Raichu X seems to have an ability that boosts its Attack when it hits Volt Tackle specifically. No other move does this from what I've seen so far. Raichu Y doesn't get this boost either.
Is it specifically Volt Tackle or is it any recoil move? Cause Raichu gets Wild Charge in ZA and that seems worth testing.
 
Is it specifically Volt Tackle or is it any recoil move? Cause Raichu gets Wild Charge in ZA and that seems worth testing.
Checked Wild Charge since I happened to have Raichu X out: It didn't do anything special.


And incidentally I double checked Thunderbolt & Thunder on Raichu Y and it was normal, so the battle must have just been a little chaotic to follow.
 
I want to see if these Waza fields can be used to comprehensively classify the move archetypes. In Ranked, it's become the meta to run Heat Wave over Flamethrower, because the latter can get blocked by a bench or can go over a smaller target's head if too close. The move archetype is therefore key in determining whether or not using an Alpha is optimal and for moveset synergy.

Playing around with my spreadsheet, I was kinda able to devise these archetypes. This is not complete, and I'm pretty sure there are some additional holes that can be filled in.

PlayWazaMoveType basically categorizes moves into:
  • 0 -- self-targeting status moves (for these moves, this analysis is pretty irrelevant)
  • 1 -- short-range moves
  • 3 -- long-range moves
SpawnOrigin seem to represent where the attack will originate from-- the user's location, the target's location, etc; italics are values that only apply to short-range moves.
  • 0 -- default behavior
  • 1 -- AOE around target
  • 2 -- user blinks to target location
  • 4 -- AOE around the user
  • 5 -- AOE around the target, some with persisting effect (not 100% sure how it's different from 1)
  • 6 -- Disappear, then grounded attack
  • 7 -- Disappear, then aerial attack

SpawnLocator appears to dictate how a move will behave.
  • origin-- appears to be the default.
    • With SpawnOrigin = 0, this represents a lot of full-body attacks
  • eff_center01 -- circular AOE
  • eff_front01 -- attack directly in front (short-range only)
  • eff_rangeattack02 -- projectile attack, in front of user
  • eff_face01, eff_directionattack01, and eff_headcenter01 are all unique to just one move; I can't precisely determine how they're different from other SpawnLocators within the same SpawnOrigin


An update to this original move archetype analysis, now that we have a lot of new moves with the DLC update. I haven't finished my Dex yet, so haven't gotten a chance to see all these moves myself. But there are a lot more categories/combinations now, including long-range contact moves.

I'll put an updated table here, in case anyone wants to take a stab at it.

EDIT: In addition to Ranked battles, another benefit of archetypes is getting around Hyperspace's horrible pathing. For Mewtwo, I switched back to Psychic from Psystrike, due to the latter being a projectile that can be blocked by scaffolding when trying to hit a floating Poke Ball. Grounded moves like Earthquake and Stone Edge are also pretty terrible for clearing quests.


1765694846146.png
 
Last edited:
Multihit moves (other than Water Shuriken) get an extra hit when used as a Plus move, while still getting the 1.2x or 1.3x bonus to damage. This brings Bullet Seed, Pin Missile, and Rock Blast up to a combined 90BP, assuming you land all 6 hits.

This doesn't hold true for the multistrike moves added by the DLC that I've tested so far — the rule seems to be that only 5-hit moves receive an extra hit when used as Plus moves, but only if they're not simultaneous (like Icicle Spear).
 
Last edited:
does anyone have an idea if "all types" sparkling power will take further effect for dual type pokemon? i have a portal with scyther and its evos, wondering how that will kick in
 
So I am missing the Mega Scovillain mission and I've already beaten Darkrai huh, got every other Mega mission, so I suppose I'd have to spend time in the benches to get it to pop up; hoping this is not a bug, as AFAIK it is one of the first stones to unlock.
 
Hello, I have written a fork of the damage calculator to accurately simulate PvE calcs for this, including sample sets for easy calcing against the various boss fights in the game (namely rogue megas and zygarde): https://krisxv.github.io/ingame-calc/

It also has sample sets and accurately simulates PvP; if there are bugs, report them in the issues tab for the github repository: https://github.com/krisxv/ingame-calc/issues
Do we currently know if the stats for the Megas in Rouge Mega Rush are the same as the individual simulator refights? I'd like to use this for figuring out potential strategies for speedruns, but I want to make sure what I'm looking at will match.
 
Tested out the Flavor Powers for Move Power, Attack Power, Special Attack Power, Defense Power, Special Defense Power, and Speed Power. All of them multiply by these values:

Level 1: 1.1
Level 2: 1.25
Level 3: 1.5

Move Power is applied to the BP and rounded down, the stat powers are applied to the relevant stat and rounded down.
EDIT: Figured out Speed Power. Speed Power essentially reduces long cooldowns if they are over 3 seconds long.

Mega Power Charging uses the same multipliers as above to increase the energy gained per move, but the game stores the value as a float rather than rounding it. I didn't test if it modifies the energy gained from the orbs.
Observed gains when standing close by. You typically gain twice as much Mega Power if you are close to your Pokémon.
Level 0 = 11.5
Level 1 = 12.65
Level 2 = 14.3750015

How I think they're being calculated
Level 1 = 11.5 * 1.1 = 12.65
Level 2 = 11.5 * 1.25 = 14.3750015

----

Normally the mega energy orbs give 3%, 10%, and 25% gauge for the small, medium, and large orbs (thanks Dynam!)
With a Level 3 Mega Energy Charging, they give 4.5%, 15%, and 37.5%, respectively, which is a 1.5x multiplier.

Resistance Power is actually a defense modifier. If you get hit by a move of the matching type, it multiplies the relevant defense with these values:

Level 1: 1/0.9
Level 2: 1/0.8
Level 3: 1/0.65

I tested Mega Energy Conservation with the natural energy depletion to compare Z Megas and regular Megas. Mega Energy Depletion Values (at 30 FPS):
  • The Mega Energy gauge goes up to 100 points of energy.
  • Mega Feraligatr loses 1/15 points per frame normally.
  • Under Mega Energy Conservation 3, this becomes 1/30 points per frame (2x bonus)
  • Mega Absol Z loses 1/7.5 per frame normally (so it depletes twice as fast as Mega Feraligatr)
  • Under Mega Energy Conservation 2, this becomes 1/11.25 points per frame (1.5x bonus)
That matches up with this entry for the Flavor Powers for how much longer the Mega Evolution lasts:

Level 1: 1.3
Level 2: 1.5
Level 3: 2



Do we currently know if the stats for the Megas in Rouge Mega Rush are the same as the individual simulator refights? I'd like to use this for figuring out potential strategies for speedruns, but I want to make sure what I'm looking at will match.
It hasn't been updated afaik. I pulled the data here but I think the levels are before they get boosted, so I'd appreciate if people could help fill in the gaps for whether their levels change or not, and which encounters are possibly reused for the boss rush. The moves assigned to them in the data don't match either, so contributing their moves can also help the calculator get updated.
 
Last edited:
Tested out the Flavor Powers for Move Power, Attack Power, Special Attack Power, Defense Power, Special Defense Power, and all of them multiply by these values:

Level 1: 1.1
Level 2: 1.25
Level 3: 1.5

Move Power is applied to the BP and rounded down, the stat powers are applied to the relevant stat and rounded down.

I haven't tested Speed Power because I don't know if it would affect movement speed or cooldown. Does anyone know?

Mega Power Charging uses the same multipliers as above to increase the energy gained per move, but the game stores the value as a float rather than rounding it. I didn't test if it modifies the energy gained from the orbs.

Resistance Power is actually a defense modifier. If you get hit by a move of the matching type, it multiplies the relevant defense with these values:

Level 1: 1/0.9
Level 2: 1/0.8
Level 3: 1/0.65

I tested Mega Energy Conservation with the natural energy depletion to compare Z Megas and regular Megas. Mega Energy Depletion Values (at 30 FPS):
  • The Mega Energy gauge goes up to 100 points of energy.
  • Mega Feraligatr loses 1/15 points per frame normally.
  • Under Mega Energy Conservation 3, this becomes 1/30 points per frame (2x bonus)
  • Mega Absol Z loses 1/7.5 per frame normally (so it depletes twice as fast as Mega Feraligatr)
  • Under Mega Energy Conservation 2, this becomes 1/11.25 points per frame (1.5x bonus)
That matches up with this entry for the Flavor Powers for how much longer the Mega Evolution lasts:

Level 1: 1.3
Level 2: 1.5
Level 3: 2




It hasn't been updated afaik. I pulled the data here but I think the levels are before they get boosted, so I'd appreciate if people could help fill in the gaps for whether their levels change or not, and which encounters are possibly reused for the boss rush. The moves assigned to them in the data don't match either, so contributing their moves can also help the calculator get updated.
Doesn't that mean that Attack Power and Special Attack Power are directly inferior to Move Power? Even though Resistance Power is worse than Defense Power and Special Defense Power?
 
Back
Top