User talk:Ht14/Trainer

From Bulbapedia, the community-driven Pokémon encyclopedia.
< User talk:Ht14
Revision as of 00:11, 15 March 2016 by Tiddlywinks (talk | contribs) (→‎XD payouts: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Just so you know

You're missing 252-386 and 387-493. TTEchidna 09:12, 2 April 2010 (UTC)

Yeah, I know. I was planning to put them up as time went on, but I guess I could put it up. ht14 15:01, 2 April 2010 (UTC)
Hey, do you think you can update this with more? :D Thanks so much! Jello 22:52, 27 July 2010 (UTC)
Sure, sure! Problem is... it won't let me edit... I keep getting 504's every time I attempt to edit... -_- ht14 23:21, 27 July 2010 (UTC)
Actually, if any of you are able to bypass the 504's, I wouldn't mind if you edit. ht14 23:36, 27 July 2010 (UTC)

XD payouts

Some XD payouts are weird because of a bug in how the reward is calculated when a Shadow Pokemon is last in the party (FYI). (Colosseum shouldn't have the same problem because it handles Shadow Pokemon a little differently.) Miror B. makes a good example. His base payout is $20 (after accounting for the doubling), but in his first battle with the player (where a lv19 Shadow Voltorb is his last Pokemon) he gives a reward of $440 (20 * 19 = 380, not 440).

The way the game describes a Trainer's team, each Pokemon in the party has an index to reference its data in another table (let's say this is Table P; this defines things like moves), and there's a set of flags to mark which Pokemon are Shadow Pokemon. If a Pokemon is a Shadow Pokemon, its index actually references another table (let's call it Table S) with unique Shadow Pokemon data—but Table S also has another index that points back to Table P so the game can fill in all the stuff that's not in Table S. The thing is, both Table S and Table P have a "level" field; Table S's is the level you see for Shadow Pokemon, but apparently when calculating the payout, the game looks at the level from Table P.

So Miror B.'s Shadow Voltorb is lv19 (i.e., Table S has 19 for its level, which takes priority over Table P). But Table P has 22 for Voltorb's level. This makes Miror B.'s reward match: 20 * 22 = 440. Tiddlywinks (talk) 00:11, 15 March 2016 (UTC)