diff options
-rw-r--r-- | Allow-more-trainer-parties,-with-individual-DVs,-stat-experience,-and-nicknames.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Allow-more-trainer-parties,-with-individual-DVs,-stat-experience,-and-nicknames.md b/Allow-more-trainer-parties,-with-individual-DVs,-stat-experience,-and-nicknames.md index c110b1e..7bac9eb 100644 --- a/Allow-more-trainer-parties,-with-individual-DVs,-stat-experience,-and-nicknames.md +++ b/Allow-more-trainer-parties,-with-individual-DVs,-stat-experience,-and-nicknames.md @@ -334,9 +334,9 @@ LoadEnemyMon: ld a, [wTempEnemyMonSpecies] ld [wd265], a - -- call GetPokemonName - +- call GetPokemonName + ; Did we catch it? ld a, [wBattleMode] and a @@ -774,6 +774,8 @@ Rival1Group: Which successfully loads in battle (no screenshot because stat experience isn't visible). +Again, since −1 ($FF) is the end-of-party marker, you can't use stat experience values with $FF in them. That's why `PERFECT_STAT_EXP` gets turned into $FFFF, as explained in the comments. It's defined as $1337 since you're unlikely to want that specific value, but you can use any value for it. If you want to use $0000, you should also replace the `cp LOW(PERFECT_STAT_EXP)` and `cp HIGH(PERFECT_STAT_EXP)` lines with `and a` since that's a more efficient way to check for zero. + ## 5. Allow trainer data to be stored in multiple banks |