summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Alvaro Quezada D'Ottone <eduardo602002@gmail.com>2020-09-20 19:54:51 -0300
committerEduardo Alvaro Quezada D'Ottone <eduardo602002@gmail.com>2020-09-20 19:54:51 -0300
commit5a343c71dcb5da732b93e0f6e3f0846de28f1670 (patch)
tree7f13849e0156d977a21b54cf7ad23f4376e1fb34
parent7f5957f9fee945c67a6f8fe24f432aff7d8d2462 (diff)
Created Disabling Union Room check when entering Pokémon Centers. (markdown)
-rw-r--r--Disabling-Union-Room-check-when-entering-Pokémon-Centers..md36
1 files changed, 36 insertions, 0 deletions
diff --git a/Disabling-Union-Room-check-when-entering-Pokémon-Centers..md b/Disabling-Union-Room-check-when-entering-Pokémon-Centers..md
new file mode 100644
index 0000000..1f9c596
--- /dev/null
+++ b/Disabling-Union-Room-check-when-entering-Pokémon-Centers..md
@@ -0,0 +1,36 @@
+Every time the player enters a Pokémon Center, the game checks for players that are currently in the Union Room. If they find someone, the Pokémon Center nurse informs the player about them.
+
+However, this has the side effect of pausing the game mid-transition to do this. As there's currently no support for GBA the Wireless Adapter for emulators, we're gonna ommit this check to avoid having this awkward pause in the middle of the game.
+
+You first need to look every instance of the following line and comment it:
+
+`map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume`
+
+After that, go to [data/scripts/pkmn_center_nurse.inc](../blob/master/data/scripts/pkmn_center_nurse.inc) and change the following two scripts:
+
+```diff
+EventScript_PkmnCenterNurse_HealPkmn:: @ 827195A
+ incrementgamestat GAME_STAT_USED_POKECENTER
+ compare VAR_0x8004, 0
+ call_if_eq EventScript_PkmnCenterNurse_IllTakeYourPkmn
+ compare VAR_0x8004, 1
+ call_if_eq EventScript_PkmnCenterNurse_IllTakeYourPkmn2
+ waitmessage
+ call EventScript_PkmnCenterNurse_TakeAndHealPkmn
+ goto_if_unset FLAG_POKERUS_EXPLAINED, EventScript_PkmnCenterNurse_CheckPokerus
+- goto EventScript_PkmnCenterNurse_CheckTrainerHillAndUnionRoom
++ goto EventScript_PkmnCenterNurse_ReturnPkmn
+ end
+```
+```diff
+EventScript_PkmnCenterNurse_CheckPokerus:: @ 8271A43
+ specialvar VAR_RESULT, IsPokerusInParty
+ compare VAR_RESULT, TRUE
+ goto_if_eq EventScript_PkmnCenterNurse_ExplainPokerus
+ compare VAR_RESULT, FALSE
+- goto_if_eq EventScript_PkmnCenterNurse_CheckTrainerHillAndUnionRoom
++ goto_if_eq EventScript_PkmnCenterNurse_ReturnPkmn
+ end
+```
+And that's it!
+