diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-07-19 17:12:47 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-07-19 17:12:47 -0400 |
commit | d54021e44a4e566582779fbd5010549c7ed006a2 (patch) | |
tree | 29675312e9fc9c4fd7a8f8f858170dd9338d29e6 | |
parent | f2c6c1972d343a567dffa7bb06c0170f34cc9e8d (diff) |
NUM_MOVES and NUM_EXP_STATS
-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). |