From 5a343c71dcb5da732b93e0f6e3f0846de28f1670 Mon Sep 17 00:00:00 2001 From: Eduardo Alvaro Quezada D'Ottone Date: Sun, 20 Sep 2020 19:54:51 -0300 Subject: =?UTF-8?q?Created=20Disabling=20Union=20Room=20check=20when=20ent?= =?UTF-8?q?ering=20Pok=C3=A9mon=20Centers.=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...check-when-entering-Pok\303\251mon-Centers..md" | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 "Disabling-Union-Room-check-when-entering-Pok\303\251mon-Centers..md" diff --git "a/Disabling-Union-Room-check-when-entering-Pok\303\251mon-Centers..md" "b/Disabling-Union-Room-check-when-entering-Pok\303\251mon-Centers..md" new file mode 100644 index 0000000..1f9c596 --- /dev/null +++ "b/Disabling-Union-Room-check-when-entering-Pok\303\251mon-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! + -- cgit v1.2.3