Skip to content

Disabling Union Room check when entering Pokémon Centers

GriffinR edited this page Jul 10, 2022 · 12 revisions

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 the GBA Wireless Adapter in emulators, we're gonna ommit this check to avoid having this awkward pause in the middle of the game.

First, go to data/scripts/cable_club.inc and comment out the following line:

CableClub_OnResume:
-	special InitUnionRoom
+	@ special InitUnionRoom
	end

After that, go to data/scripts/pkmn_center_nurse.inc and change the following two scripts:

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
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!

Clone this wiki locally