summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-07-19 01:08:34 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2018-07-19 01:08:34 -0400
commitc4a6592778645f940bd156b05f76470ed470b5d0 (patch)
tree69a02c1f5cbed7ad456131e9b5e37f2bb9f48289
parent27ab22ec2fcedcd619c2ea5acc00cf49225e15b8 (diff)
PERFECT_STAT_EXP
-rw-r--r--Allow-more-trainer-parties,-with-individual-DVs,-stat-experience,-and-nicknames.md6
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