summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Doury <DamienDoury@users.noreply.github.com>2021-04-14 19:37:45 +0200
committerDamien Doury <DamienDoury@users.noreply.github.com>2021-04-14 19:37:45 +0200
commit3f839d8839528e8b1eee1511fca4b719331b2394 (patch)
treee4609048aadc38da5a914e958b14cc65a915deee
parent12def81ef31ace5d85f9c7497190b6e1bd64af37 (diff)
Added the fact that we can free up space by removing variables in wram.asm
-rw-r--r--Improve-the-trainer-rematch-system.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/Improve-the-trainer-rematch-system.md b/Improve-the-trainer-rematch-system.md
index 87cf27a..8a9c1b3 100644
--- a/Improve-the-trainer-rematch-system.md
+++ b/Improve-the-trainer-rematch-system.md
@@ -67,6 +67,8 @@ TrainerSchoolboyAlan1:
Again, you will need remove this code from every rematch trainer script. And that's it!
+You can then remove the variables in [wram.asm](../blob/master/wram.asm), as it is the only place where those are used. Removing those variables can free up to 28 bytes. Be sure to replace them with something else, or padding with a `ds`, or you will end up shifting all variables stored after, therefore rendering your save file corrupted.
+
## 3. Tips
The events that are checked in order to determine which party to load can be easily modified by swapping a `checkflag` ______ or `checkevent` ______ with any other listed in either [flypoints.asm](../blob/master/data/maps/flypoints.asm) or [event_flags.asm](../blob/master/constants/event_flags.asm). This is especially useful if you wish to add rematch parties or simply upgrade rematch parties more frequently, progression-wise.