diff options
-rw-r--r-- | Allow-more-trainer-parties,-with-individual-DVs,-stat-experience,-and-nicknames.md | 10 |
1 files changed, 6 insertions, 4 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 f258d85..676f105 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 @@ -294,10 +294,10 @@ Finally, edit [engine/overworld/wildmons.asm](../blob/master/engine/overworld/wi + jr z, .no_item + inc c +.no_item -+; TRAINERTYPE_MOVES uses 4 more bytes ++; TRAINERTYPE_MOVES uses NUM_MOVES (4) more bytes + bit TRAINERTYPE_MOVES_F, b + jr z, .no_moves -+ ld a, 4 ++ ld a, NUM_MOVES + add c + ld c, a +.no_moves @@ -827,10 +827,10 @@ Finally, edit [engine/overworld/wildmons.asm](../blob/master/engine/overworld/wi inc c inc c .no_dvs -+; TRAINERTYPE_STAT_EXP uses 10 more bytes ++; TRAINERTYPE_STAT_EXP uses NUM_EXP_STATS * 2 (10) more bytes + bit TRAINERTYPE_STAT_EXP_F, b + jr z, .no_stat_exp -+ ld a, 10 ++ ld a, NUM_EXP_STATS * 2 + add c + ld c, a +.no_stat_exp @@ -840,6 +840,8 @@ Finally, edit [engine/overworld/wildmons.asm](../blob/master/engine/overworld/wi ... ``` +(Again, if you're using an older version of pokecrystal where `NUM_EXP_STATS` is not defined, then replace `ld a, NUM_EXP_STATS * 2` with `ld a, 10`.) + Now you can give custom stat experience to enemy Pokémon. Be sure to keep the data in order: level, species, nickname, DVs, stat experience, held item, moves. Stat experience is specified as five *words*, not bytes, because each of the five stats (HP, Attack, Defense, Speed, and Special) has two-byte experience going from $0000 to $FFFF (65,535). |