summaryrefslogtreecommitdiff
path: root/Disabling-Union-Room-check-when-entering-Pokémon-Centers..md
blob: 30d5e0d17fa2825a628d994502abaddf1da0b1c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 the GBA Wireless Adapter in 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!