summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/event_scripts.s1679
-rw-r--r--data/maps/AncientTomb/scripts.inc8
-rw-r--r--data/maps/AquaHideout_B1F/scripts.inc4
-rw-r--r--data/maps/BattleFrontier_BattleTowerLobby/scripts.inc12
-rw-r--r--data/maps/BattleFrontier_Mart/scripts.inc4
-rw-r--r--data/maps/BattleFrontier_OutsideEast/scripts.inc2
-rw-r--r--data/maps/BattleFrontier_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/BirthIsland_Exterior/scripts.inc14
-rw-r--r--data/maps/DesertRuins/scripts.inc8
-rw-r--r--data/maps/DewfordTown/scripts.inc10
-rw-r--r--data/maps/DewfordTown_Gym/scripts.inc2
-rw-r--r--data/maps/DewfordTown_PokemonCenter_1F/scripts.inc4
-rw-r--r--data/maps/EverGrandeCity_ChampionsRoom/scripts.inc2
-rw-r--r--data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/EverGrandeCity_PokemonLeague_1F/scripts.inc6
-rw-r--r--data/maps/FallarborTown_House1/scripts.inc4
-rw-r--r--data/maps/FallarborTown_Mart/scripts.inc4
-rw-r--r--data/maps/FallarborTown_PokemonCenter_1F/scripts.inc4
-rw-r--r--data/maps/FarawayIsland_Interior/scripts.inc14
-rw-r--r--data/maps/FortreeCity_DecorationShop/scripts.inc8
-rw-r--r--data/maps/FortreeCity_Gym/scripts.inc2
-rw-r--r--data/maps/FortreeCity_Mart/scripts.inc4
-rw-r--r--data/maps/FortreeCity_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/GraniteCave_StevensRoom/scripts.inc4
-rw-r--r--data/maps/IslandCave/scripts.inc8
-rw-r--r--data/maps/LavaridgeTown/scripts.inc6
-rw-r--r--data/maps/LavaridgeTown_Gym_1F/scripts.inc2
-rw-r--r--data/maps/LavaridgeTown_HerbShop/scripts.inc2
-rw-r--r--data/maps/LavaridgeTown_Mart/scripts.inc4
-rw-r--r--data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc4
-rw-r--r--data/maps/LilycoveCity/scripts.inc2
-rw-r--r--data/maps/LilycoveCity_ContestLobby/scripts.inc4
-rw-r--r--data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc2
-rw-r--r--data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc6
-rw-r--r--data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc2
-rw-r--r--data/maps/LilycoveCity_DepartmentStore_2F/scripts.inc8
-rw-r--r--data/maps/LilycoveCity_DepartmentStore_3F/scripts.inc8
-rw-r--r--data/maps/LilycoveCity_DepartmentStore_4F/scripts.inc8
-rw-r--r--data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc16
-rw-r--r--data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/LittlerootTown/scripts.inc2
-rw-r--r--data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc6
-rw-r--r--data/maps/LittlerootTown_MaysHouse_2F/scripts.inc6
-rw-r--r--data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc28
-rw-r--r--data/maps/MarineCave_End/scripts.inc6
-rw-r--r--data/maps/MauvilleCity_BikeShop/scripts.inc4
-rw-r--r--data/maps/MauvilleCity_Gym/scripts.inc2
-rw-r--r--data/maps/MauvilleCity_Mart/scripts.inc4
-rw-r--r--data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc4
-rw-r--r--data/maps/MossdeepCity_Gym/scripts.inc2
-rw-r--r--data/maps/MossdeepCity_Mart/scripts.inc4
-rw-r--r--data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/MossdeepCity_StevensHouse/scripts.inc8
-rw-r--r--data/maps/MtChimney_CableCarStation/scripts.inc2
-rw-r--r--data/maps/NavelRock_Bottom/scripts.inc14
-rw-r--r--data/maps/NavelRock_Top/scripts.inc14
-rw-r--r--data/maps/NewMauville_Inside/scripts.inc6
-rw-r--r--data/maps/OldaleTown/scripts.inc2
-rw-r--r--data/maps/OldaleTown_Mart/scripts.inc6
-rw-r--r--data/maps/OldaleTown_PokemonCenter_1F/scripts.inc4
-rw-r--r--data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/PetalburgCity_Gym/scripts.inc2
-rw-r--r--data/maps/PetalburgCity_Mart/scripts.inc6
-rw-r--r--data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc4
-rw-r--r--data/maps/Route103/scripts.inc2
-rw-r--r--data/maps/Route104/scripts.inc8
-rw-r--r--data/maps/Route104_PrettyPetalFlowerShop/scripts.inc4
-rw-r--r--data/maps/Route109/scripts.inc4
-rw-r--r--data/maps/Route110/scripts.inc4
-rw-r--r--data/maps/Route111/scripts.inc2
-rw-r--r--data/maps/Route112_CableCarStation/scripts.inc2
-rw-r--r--data/maps/Route119/scripts.inc4
-rw-r--r--data/maps/Route119_WeatherInstitute_2F/scripts.inc8
-rw-r--r--data/maps/RustboroCity/scripts.inc2
-rw-r--r--data/maps/RustboroCity_DevonCorp_2F/scripts.inc16
-rw-r--r--data/maps/RustboroCity_Gym/scripts.inc2
-rw-r--r--data/maps/RustboroCity_Mart/scripts.inc6
-rw-r--r--data/maps/RustboroCity_PokemonCenter_1F/scripts.inc4
-rw-r--r--data/maps/SealedChamber_InnerRoom/scripts.inc2
-rw-r--r--data/maps/SealedChamber_OuterRoom/scripts.inc2
-rw-r--r--data/maps/SecretBase_BlueCave1/map.json3
-rw-r--r--data/maps/SecretBase_BlueCave1/scripts.inc1
-rw-r--r--data/maps/SecretBase_BlueCave2/map.json3
-rw-r--r--data/maps/SecretBase_BlueCave2/scripts.inc1
-rw-r--r--data/maps/SecretBase_BlueCave3/map.json3
-rw-r--r--data/maps/SecretBase_BlueCave3/scripts.inc1
-rw-r--r--data/maps/SecretBase_BlueCave4/map.json3
-rw-r--r--data/maps/SecretBase_BlueCave4/scripts.inc1
-rw-r--r--data/maps/SecretBase_BrownCave1/map.json3
-rw-r--r--data/maps/SecretBase_BrownCave1/scripts.inc1
-rw-r--r--data/maps/SecretBase_BrownCave2/map.json3
-rw-r--r--data/maps/SecretBase_BrownCave2/scripts.inc1
-rw-r--r--data/maps/SecretBase_BrownCave3/map.json3
-rw-r--r--data/maps/SecretBase_BrownCave3/scripts.inc1
-rw-r--r--data/maps/SecretBase_BrownCave4/map.json3
-rw-r--r--data/maps/SecretBase_BrownCave4/scripts.inc1
-rw-r--r--data/maps/SecretBase_RedCave1/map.json3
-rw-r--r--data/maps/SecretBase_RedCave1/scripts.inc1
-rw-r--r--data/maps/SecretBase_RedCave2/map.json3
-rw-r--r--data/maps/SecretBase_RedCave2/scripts.inc1
-rw-r--r--data/maps/SecretBase_RedCave3/map.json3
-rw-r--r--data/maps/SecretBase_RedCave3/scripts.inc1
-rw-r--r--data/maps/SecretBase_RedCave4/map.json3
-rw-r--r--data/maps/SecretBase_RedCave4/scripts.inc1
-rw-r--r--data/maps/SecretBase_Shrub1/map.json3
-rw-r--r--data/maps/SecretBase_Shrub1/scripts.inc1
-rw-r--r--data/maps/SecretBase_Shrub2/map.json3
-rw-r--r--data/maps/SecretBase_Shrub2/scripts.inc1
-rw-r--r--data/maps/SecretBase_Shrub3/map.json3
-rw-r--r--data/maps/SecretBase_Shrub3/scripts.inc1
-rw-r--r--data/maps/SecretBase_Shrub4/map.json3
-rw-r--r--data/maps/SecretBase_Shrub4/scripts.inc1
-rw-r--r--data/maps/SecretBase_Tree1/map.json3
-rw-r--r--data/maps/SecretBase_Tree1/scripts.inc1
-rw-r--r--data/maps/SecretBase_Tree2/map.json3
-rw-r--r--data/maps/SecretBase_Tree2/scripts.inc1
-rw-r--r--data/maps/SecretBase_Tree3/map.json3
-rw-r--r--data/maps/SecretBase_Tree3/scripts.inc1
-rw-r--r--data/maps/SecretBase_Tree4/map.json3
-rw-r--r--data/maps/SecretBase_Tree4/scripts.inc1
-rw-r--r--data/maps/SecretBase_YellowCave1/map.json3
-rw-r--r--data/maps/SecretBase_YellowCave1/scripts.inc1
-rw-r--r--data/maps/SecretBase_YellowCave2/map.json3
-rw-r--r--data/maps/SecretBase_YellowCave2/scripts.inc1
-rw-r--r--data/maps/SecretBase_YellowCave3/map.json3
-rw-r--r--data/maps/SecretBase_YellowCave3/scripts.inc1
-rw-r--r--data/maps/SecretBase_YellowCave4/map.json3
-rw-r--r--data/maps/SecretBase_YellowCave4/scripts.inc24
-rw-r--r--data/maps/SlateportCity/scripts.inc18
-rw-r--r--data/maps/SlateportCity_House1/scripts.inc2
-rw-r--r--data/maps/SlateportCity_Mart/scripts.inc4
-rw-r--r--data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc4
-rw-r--r--data/maps/SlateportCity_PokemonCenter_1F/scripts.inc4
-rw-r--r--data/maps/SootopolisCity_Gym_1F/scripts.inc2
-rw-r--r--data/maps/SootopolisCity_Mart/scripts.inc4
-rw-r--r--data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/SouthernIsland_Interior/scripts.inc8
-rw-r--r--data/maps/TerraCave_End/scripts.inc6
-rw-r--r--data/maps/TrainerHill_Entrance/scripts.inc8
-rw-r--r--data/maps/TrainerHill_Roof/scripts.inc4
-rw-r--r--data/maps/VerdanturfTown_Mart/scripts.inc4
-rw-r--r--data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc4
-rw-r--r--data/scripts/berry_tree.inc2
-rw-r--r--data/scripts/cable_club.inc22
-rw-r--r--data/scripts/contest_hall.inc2
-rw-r--r--data/scripts/field_move_scripts.inc6
-rw-r--r--data/scripts/lilycove_lady.inc856
-rw-r--r--data/scripts/pkmn_center_nurse.inc135
-rw-r--r--data/scripts/players_house.inc4
-rw-r--r--data/scripts/pokeblocks.inc2
-rw-r--r--data/scripts/secret_base.inc978
-rw-r--r--data/scripts/shared_secret_base.inc224
-rw-r--r--data/scripts/tv.inc6
-rw-r--r--data/specials.inc12
-rw-r--r--data/text/pkmn_center_nurse.inc51
-rw-r--r--data/text/pokedex_rating.inc8
-rw-r--r--data/text/secret_base_trainers.inc286
-rw-r--r--include/constants/flags.h2
-rw-r--r--include/constants/global.h2
-rw-r--r--include/constants/script_menu.h4
-rw-r--r--include/event_scripts.h54
-rw-r--r--include/global.h8
-rw-r--r--src/data/script_menu.h8
-rw-r--r--src/decoration.c155
-rw-r--r--src/field_control_avatar.c14
-rw-r--r--src/field_specials.c2
-rw-r--r--src/fldeff_misc.c6
-rw-r--r--src/match_call.c12
-rw-r--r--src/secret_base.c40
-rw-r--r--src/union_room.c18
170 files changed, 2618 insertions, 2595 deletions
diff --git a/data/event_scripts.s b/data/event_scripts.s
index 1ed8581f9..2b8678851 100644
--- a/data/event_scripts.s
+++ b/data/event_scripts.s
@@ -24,6 +24,7 @@
#include "constants/moves.h"
#include "constants/pokemon.h"
#include "constants/script_menu.h"
+#include "constants/secret_bases.h"
#include "constants/songs.h"
#include "constants/species.h"
#include "constants/trainer_hill.h"
@@ -425,227 +426,7 @@ gStdScripts_End:: @ 81DC2CC
.include "data/maps/TerraCave_End/scripts.inc"
.include "data/maps/AlteringCave/scripts.inc"
.include "data/maps/MeteorFalls_StevensCave/scripts.inc"
- .include "data/maps/SecretBase_BlueCave1/scripts.inc"
- .include "data/maps/SecretBase_BlueCave2/scripts.inc"
- .include "data/maps/SecretBase_BlueCave3/scripts.inc"
- .include "data/maps/SecretBase_BlueCave4/scripts.inc"
- .include "data/maps/SecretBase_BrownCave1/scripts.inc"
- .include "data/maps/SecretBase_BrownCave2/scripts.inc"
- .include "data/maps/SecretBase_BrownCave3/scripts.inc"
- .include "data/maps/SecretBase_BrownCave4/scripts.inc"
- .include "data/maps/SecretBase_RedCave1/scripts.inc"
- .include "data/maps/SecretBase_RedCave2/scripts.inc"
- .include "data/maps/SecretBase_RedCave3/scripts.inc"
- .include "data/maps/SecretBase_RedCave4/scripts.inc"
- .include "data/maps/SecretBase_Shrub1/scripts.inc"
- .include "data/maps/SecretBase_Shrub2/scripts.inc"
- .include "data/maps/SecretBase_Shrub3/scripts.inc"
- .include "data/maps/SecretBase_Shrub4/scripts.inc"
- .include "data/maps/SecretBase_Tree1/scripts.inc"
- .include "data/maps/SecretBase_Tree2/scripts.inc"
- .include "data/maps/SecretBase_Tree3/scripts.inc"
- .include "data/maps/SecretBase_Tree4/scripts.inc"
- .include "data/maps/SecretBase_YellowCave1/scripts.inc"
- .include "data/maps/SecretBase_YellowCave2/scripts.inc"
- .include "data/maps/SecretBase_YellowCave3/scripts.inc"
- .include "data/maps/SecretBase_YellowCave4/scripts.inc"
-
-EventScript_SecretBasePC:: @ 823B4BB
- lockall
- playse SE_PC_LOGIN
- message Text_SecretBaseBootUpPC
- dofieldeffect FLDEFF_PCTURN_ON
- waitstate
- waitmessage
- waitbuttonpress
- playse SE_SELECT
- goto EventScript_SecretBasePCShowMainMenu
- end
-
-EventScript_SecretBasePCShowMainMenu:: @ 823B4D3
- message Text_SecretBasePCStartMenu
- waitmessage
- goto_if_set FLAG_SECRET_BASE_REGISTRY_ENABLED, EventScript_SecretBasePCMainMenuChoice
- goto EventScript_23B531
- end
-
-gUnknown_0823B4E8:: @ 823B4E8 ;EventScript_SecretBasePCCancel?
- lockall
- goto EventScript_SecretBasePCShowMainMenu
- end
-
-EventScript_SecretBasePCMainMenuChoice:: @ 823B4EF
- multichoice 0, 0, MULTI_DECOR_REGISTRY, 0
- switch VAR_RESULT
- case 0, EventScript_23B581
- case 1, EventScript_23B568
- case 2, EventScript_23B585
- case 3, EventScript_23B66E
- case MULTI_B_PRESSED, EventScript_23B66E
- end
-
-EventScript_23B531:: @ 823B531
- multichoice 0, 0, MULTI_DECOR_NOREGISTRY, 0
- switch VAR_RESULT
- case 0, EventScript_23B581
- case 1, EventScript_23B568
- case 2, EventScript_23B66E
- case MULTI_B_PRESSED, EventScript_23B66E
- end
-
-EventScript_23B568:: @ 823B568
- msgbox Text_2766AA, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq EventScript_SecretBasePCShowMainMenu
- closemessage
- special MoveOutOfSecretBase
- releaseall
- end
-
-EventScript_23B581:: @ 823B581
- special ShowSecretBaseDecorationMenu
- end
-
-EventScript_23B585:: @ 823B585
- special ShowSecretBaseRegistryMenu
- end
-
-EventScript_RecordMixingSecretBasePC:: @ 823B589
- lockall
- message Text_SecretBaseBootUpPC
- playse SE_PC_LOGIN
- dofieldeffect FLDEFF_PCTURN_ON
- waitstate
- waitmessage
- waitbuttonpress
- playse SE_SELECT
- goto EventScript_23B5A1
- end
-
-EventScript_23B5A1:: @ 823B5A1
- message Text_SecretBasePCStartMenu
- waitmessage
- multichoice 0, 0, MULTI_REGISTER_MENU, 0
- switch VAR_RESULT
- case 0, EventScript_23B5F0
- case 1, EventScript_23B585
- case 2, EventScript_23B660
- case 3, EventScript_23B66E
- case MULTI_B_PRESSED, EventScript_23B66E
- end
-
-gUnknown_0823B5E9:: @ 823B5E9
- lockall
- goto EventScript_23B5A1
- end
-
-EventScript_23B5F0:: @ 823B5F0
- special GetCurSecretBaseRegistrationValidity
- compare VAR_RESULT, 1
- goto_if_eq EventScript_23B62F
- compare VAR_RESULT, 2
- goto_if_eq EventScript_CantRegisterTooManyBases
- special CopyCurSecretBaseOwnerName_StrVar1
- msgbox Text_WantToRegisterSecretBase, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq EventScript_23B5A1
- msgbox Text_2767D1, MSGBOX_SIGN
- special ToggleCurSecretBaseRegistry
- special DoSecretBasePCTurnOffEffect
- releaseall
- end
-
-EventScript_23B62F:: @ 823B62F
- msgbox Text_276731, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq EventScript_23B5A1
- msgbox Text_2767E9, MSGBOX_SIGN
- special ToggleCurSecretBaseRegistry
- special DoSecretBasePCTurnOffEffect
- releaseall
- end
-
-EventScript_CantRegisterTooManyBases:: @ 823B652
- msgbox Text_TooManyBasesDeleteSome, MSGBOX_SIGN
- special DoSecretBasePCTurnOffEffect
- closemessage
- releaseall
- end
-
-EventScript_23B660:: @ 823B660
- msgbox Text_276835, MSGBOX_DEFAULT
- goto EventScript_23B5A1
- end
-
-EventScript_23B66E:: @ 823B66E
- special DoSecretBasePCTurnOffEffect
- closemessage
- releaseall
- end
-
-EventScript_23B674:: @ 823B674
- special SetSecretBaseSecretsTvFlags_Poster
- end
-
-EventScript_23B678:: @ 823B678
- special SetSecretBaseSecretsTvFlags_MiscFurnature
- end
-
-EventScript_23B67C:: @ 823B67C
- special SetSecretBaseSecretsTvFlags_LargeDecorationSpot
- end
-
-EventScript_23B680:: @ 823B680
- special SetSecretBaseSecretsTvFlags_SmallDecorationSpot
- end
-
-EventScript_SecretBaseSandOrnament:: @ 823B684
- special SetSecretBaseSecretsTvFlags_SandOrnament
- dofieldeffect FLDEFF_SAND_PILLAR
- waitstate
- end
-
-EventScript_SecretBaseShieldOrToyTV:: @ 823B68C
- special GetShieldToyTVDecorationInfo
- compare VAR_RESULT, 0
- goto_if_eq EventScript_23B6BC
- compare VAR_RESULT, 1
- goto_if_eq EventScript_23B6C5
- compare VAR_RESULT, 2
- goto_if_eq EventScript_23B6CE
- compare VAR_RESULT, 3
- goto_if_eq EventScript_23B6D7
- end
-
-EventScript_23B6BC:: @ 823B6BC
- msgbox Text_27692B, MSGBOX_SIGN
- end
-
-EventScript_23B6C5:: @ 823B6C5
- msgbox Text_276974, MSGBOX_SIGN
- end
-
-EventScript_23B6CE:: @ 823B6CE
- msgbox Text_2769B8, MSGBOX_SIGN
- end
-
-EventScript_23B6D7:: @ 823B6D7
- msgbox Text_2769FF, MSGBOX_SIGN
- end
-
-gText_23B6E0:: @ 823B6E0
- .string "There's a small indent in the wall.$"
-
-gText_23B704:: @ 823B704
- .string "There's a small indent in the wall.\p"
- .string "Use the SECRET POWER?$"
-
-gText_23B73E:: @ 823B73E
- .string "Discovered a small cavern!$"
-
-SecretBase_RedCave1_Text_23B759: @ 823B759
- .string "Want to make your SECRET BASE here?$"
-
+ .include "data/scripts/shared_secret_base.inc"
.include "data/maps/SingleBattleColosseum/scripts.inc"
.include "data/maps/TradeCenter/scripts.inc"
.include "data/maps/RecordCorner/scripts.inc"
@@ -1211,184 +992,27 @@ EverGrandeCity_HallOfFame_EventScript_ResetEliteFour:: @ 82718CC
setvar VAR_ELITE_4_STATE, 0
return
-DewfordTown_PokemonCenter_1F_EventScript_2718DE:: @ 82718DE
-FallarborTown_PokemonCenter_1F_EventScript_2718DE:: @ 82718DE
-LavaridgeTown_PokemonCenter_1F_EventScript_2718DE:: @ 82718DE
-MauvilleCity_PokemonCenter_1F_EventScript_2718DE:: @ 82718DE
-OldaleTown_PokemonCenter_1F_EventScript_2718DE:: @ 82718DE
-PetalburgCity_PokemonCenter_1F_EventScript_2718DE:: @ 82718DE
-RustboroCity_PokemonCenter_1F_EventScript_2718DE:: @ 82718DE
-SlateportCity_PokemonCenter_1F_EventScript_2718DE:: @ 82718DE
-VerdanturfTown_PokemonCenter_1F_EventScript_2718DE:: @ 82718DE
+Common_EventScript_UpdateBrineyLocation:: @ 82718DE
goto_if_unset FLAG_RECEIVED_POKENAV, Common_EventScript_NopReturn
goto_if_set FLAG_DEFEATED_PETALBURG_GYM, Common_EventScript_NopReturn
- goto_if_unset FLAG_HIDE_ROUTE_104_MR_BRINEY_BOAT, OldaleTown_PokemonCenter_1F_EventScript_27190C
- goto_if_unset FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN, OldaleTown_PokemonCenter_1F_EventScript_271912
- goto_if_unset FLAG_HIDE_ROUTE_108_MR_BRINEY, OldaleTown_PokemonCenter_1F_EventScript_271918
+ goto_if_unset FLAG_HIDE_ROUTE_104_MR_BRINEY_BOAT, EventScript_SetBrineyLocation_House
+ goto_if_unset FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN, EventScript_SetBrineyLocation_Dewford
+ goto_if_unset FLAG_HIDE_ROUTE_108_MR_BRINEY, EventScript_SetBrineyLocation_Route108
return
-OldaleTown_PokemonCenter_1F_EventScript_27190C:: @ 827190C
+EventScript_SetBrineyLocation_House:: @ 827190C
setvar VAR_BRINEY_LOCATION, 1
return
-OldaleTown_PokemonCenter_1F_EventScript_271912:: @ 8271912
+EventScript_SetBrineyLocation_Dewford:: @ 8271912
setvar VAR_BRINEY_LOCATION, 2
return
-OldaleTown_PokemonCenter_1F_EventScript_271918:: @ 8271918
+EventScript_SetBrineyLocation_Route108:: @ 8271918
setvar VAR_BRINEY_LOCATION, 3
return
-BattleFrontier_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-DewfordTown_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-EverGrandeCity_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-EverGrandeCity_PokemonLeague_1F_EventScript_27191E:: @ 827191E
-FallarborTown_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-FortreeCity_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-LavaridgeTown_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-LilycoveCity_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-MauvilleCity_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-MossdeepCity_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-OldaleTown_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-PacifidlogTown_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-PetalburgCity_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-RustboroCity_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-SlateportCity_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-SootopolisCity_PokemonCenter_1F_EventScript_27191E:: @ 827191E
-TrainerHill_Entrance_EventScript_27191E:: @ 827191E
-VerdanturfTown_PokemonCenter_1F_EventScript_27191E:: @ 827191E
- lock
- faceplayer
- setvar VAR_0x8004, 0
- specialvar VAR_RESULT, CountPlayerTrainerStars
- compare VAR_RESULT, 4
- goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_271A68
- msgbox gUnknown_082726EB, MSGBOX_YESNO
- compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_27195A
- compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_271954
- end
-
-OldaleTown_PokemonCenter_1F_EventScript_271954:: @ 8271954
- message gUnknown_082727DB
- return
-
-OldaleTown_PokemonCenter_1F_EventScript_27195A:: @ 827195A
- incrementgamestat 15
- compare VAR_0x8004, 0
- call_if_eq OldaleTown_PokemonCenter_1F_EventScript_271987
- compare VAR_0x8004, 1
- call_if_eq OldaleTown_PokemonCenter_1F_EventScript_27198D
- waitmessage
- call OldaleTown_PokemonCenter_1F_EventScript_271993
- goto_if_unset FLAG_POKERUS_EXPLAINED, OldaleTown_PokemonCenter_1F_EventScript_271A43
- goto OldaleTown_PokemonCenter_1F_EventScript_2719B1
- end
-
-OldaleTown_PokemonCenter_1F_EventScript_271987:: @ 8271987
- message gUnknown_08272768
- return
-
-OldaleTown_PokemonCenter_1F_EventScript_27198D:: @ 827198D
- message gUnknown_082729C0
- return
-
-OldaleTown_PokemonCenter_1F_EventScript_271993:: @ 8271993
- applymovement VAR_0x800B, Common_Movement_WalkInPlaceLeft
- waitmovement 0
- dofieldeffect FLDEFF_POKECENTER_HEAL
- waitfieldeffect FLDEFF_POKECENTER_HEAL
- applymovement VAR_0x800B, Common_Movement_WalkInPlaceDown
- waitmovement 0
- special HealPlayerParty
- return
-
-OldaleTown_PokemonCenter_1F_EventScript_2719B1:: @ 82719B1
- specialvar VAR_RESULT, sub_8139ED0
- compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_2719E2
- specialvar VAR_RESULT, sp182_move_string
- copyvar VAR_0x8008, VAR_RESULT
- compare VAR_0x8008, 0
- goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_2719E2
- compare VAR_0x8008, 1
- goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_271A19
- end
-
-OldaleTown_PokemonCenter_1F_EventScript_2719E2:: @ 82719E2
- compare VAR_0x8004, 1
- goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_271A03
- message gUnknown_08272798
- waitmessage
- applymovement VAR_0x800B, OldaleTown_PokemonCenter_1F_Movement_271AD0
- waitmovement 0
- message gUnknown_082727DB
- return
-
-OldaleTown_PokemonCenter_1F_EventScript_271A03:: @ 8271A03
- message gUnknown_082729F0
- waitmessage
- applymovement VAR_0x800B, OldaleTown_PokemonCenter_1F_Movement_271AD0
- waitmovement 0
- message gUnknown_08272A07
- return
-
-OldaleTown_PokemonCenter_1F_EventScript_271A19:: @ 8271A19
- goto_if_set FLAG_NURSE_UNION_ROOM_REMINDER, OldaleTown_PokemonCenter_1F_EventScript_2719E2
- msgbox gUnknown_08272798, MSGBOX_DEFAULT
- setflag FLAG_NURSE_UNION_ROOM_REMINDER
- message OldaleTown_PokemonCenter_1F_Text_278A48
- waitmessage
- applymovement VAR_0x800B, OldaleTown_PokemonCenter_1F_Movement_271AD0
- waitmovement 0
- message gUnknown_082727DB
- return
-
-OldaleTown_PokemonCenter_1F_EventScript_271A43:: @ 8271A43
- specialvar VAR_RESULT, IsPokerusInParty
- compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_Explain_Pokerus
- compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_2719B1
- end
-
-OldaleTown_PokemonCenter_1F_EventScript_Explain_Pokerus:: @ 8271A5F
- message gText_PokerusExplanation
- setflag FLAG_POKERUS_EXPLAINED
- return
-
-OldaleTown_PokemonCenter_1F_EventScript_271A68:: @ 8271A68
- goto_if_set FLAG_OLDALE_NURSE_MENTIONS_GOLD_CARD, OldaleTown_PokemonCenter_1F_EventScript_271AAC
- setflag FLAG_OLDALE_NURSE_MENTIONS_GOLD_CARD
- msgbox gUnknown_082727F5, MSGBOX_DEFAULT
- playse SE_PIN
- applymovement VAR_0x800B, Common_Movement_ExclamationMark
- waitmovement 0
- applymovement VAR_0x800B, Common_Movement_Delay48
- waitmovement 0
- msgbox gUnknown_08272860, MSGBOX_YESNO
- compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_271AC5
- message gUnknown_08272A07
- return
-
-OldaleTown_PokemonCenter_1F_EventScript_271AAC:: @ 8271AAC
- msgbox gUnknown_08272982, MSGBOX_YESNO
- compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_271AC5
- message gUnknown_08272A07
- return
-
-OldaleTown_PokemonCenter_1F_EventScript_271AC5:: @ 8271AC5
- setvar VAR_0x8004, 1
- goto OldaleTown_PokemonCenter_1F_EventScript_27195A
- end
-
-OldaleTown_PokemonCenter_1F_Movement_271AD0: @ 8271AD0
- nurse_joy_bow
- delay_4
- step_end
+ .include "data/scripts/pkmn_center_nurse.inc"
Std_ObtainItem:: @ 8271AD3
giveitem VAR_0x8000, VAR_0x8001
@@ -1446,7 +1070,7 @@ EventScript_StdStringBerries:: @ 8271B85
return
EventScript_271B95:: @ 8271B95
- message gUnknown_08272A78
+ message gText_ObtainedTheItem
waitfanfare
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
setvar VAR_RESULT, 1
@@ -1480,9 +1104,9 @@ EventScript_271BC5:: @ 8271BC5
EventScript_271BE0:: @ 8271BE0
playfanfare MUS_FANFA4
- message gUnknown_08272B09
+ message gText_ObtainedTheMon
waitfanfare
- msgbox gUnknown_08272B48, MSGBOX_DEFAULT
+ msgbox gText_TheMonWasTransferredToThePC, MSGBOX_DEFAULT
setvar VAR_RESULT, 1
return
@@ -1541,7 +1165,7 @@ EventScript_271C9B:: @ 8271C9B
return
EventScript_271CA1:: @ 8271CA1
- msgbox gUnknown_08272A78, MSGBOX_DEFAULT
+ msgbox gText_ObtainedTheItem, MSGBOX_DEFAULT
msgbox gText_TooBadBagIsFull, MSGBOX_DEFAULT
setvar VAR_RESULT, 0
return
@@ -1744,80 +1368,74 @@ EventScript_CancelSurf:: @ 8271ED5
EventScript_CantSurf:: @ 8271ED6
end
-Common_EventScript_SetupRivalGender:: @ 8271ED7
+Common_EventScript_SetupRivalGfxId:: @ 8271ED7
checkplayergender
compare VAR_RESULT, MALE
- goto_if_eq RustboroCity_EventScript_271EEF
+ goto_if_eq EventScript_SetupRivalGfxIdFemale
compare VAR_RESULT, FEMALE
- goto_if_eq RustboroCity_EventScript_271EF5
+ goto_if_eq EventScript_SetupRivalGfxIdMale
end
-RustboroCity_EventScript_271EEF:: @ 8271EEF
+EventScript_SetupRivalGfxIdFemale:: @ 8271EEF
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_MAY_NORMAL
return
-RustboroCity_EventScript_271EF5:: @ 8271EF5
+EventScript_SetupRivalGfxIdMale:: @ 8271EF5
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_BRENDAN_NORMAL
return
-Common_EventScript_SetupRivalOnBikeGender:: @ 8271EFB
+Common_EventScript_SetupRivalOnBikeGfxId:: @ 8271EFB
checkplayergender
compare VAR_RESULT, MALE
- goto_if_eq LavaridgeTown_EventScript_271F13
+ goto_if_eq EventScript_SetupRivalOnBikeGfxIdFemale
compare VAR_RESULT, FEMALE
- goto_if_eq LavaridgeTown_EventScript_271F19
+ goto_if_eq EventScript_SetupRivalOnBikeGfxIdMale
end
-LavaridgeTown_EventScript_271F13:: @ 8271F13
+EventScript_SetupRivalOnBikeGfxIdFemale:: @ 8271F13
setvar VAR_OBJ_GFX_ID_3, EVENT_OBJ_GFX_RIVAL_MAY_MACH_BIKE
return
-LavaridgeTown_EventScript_271F19:: @ 8271F19
+EventScript_SetupRivalOnBikeGfxIdMale:: @ 8271F19
setvar VAR_OBJ_GFX_ID_3, EVENT_OBJ_GFX_RIVAL_BRENDAN_MACH_BIKE
return
-EventScript_271F1F:: @ 8271F1F
+@ Unused
+Common_EventScript_SetupRivalGfxIdSameGender:: @ 8271F1F
checkplayergender
compare VAR_RESULT, MALE
- goto_if_eq EventScript_271F37
+ goto_if_eq EventScript_SetupRivalGfxIdMale2
compare VAR_RESULT, FEMALE
- goto_if_eq EventScript_271F3D
+ goto_if_eq EventScript_SetupRivalGfxIdFemale2
end
-EventScript_271F37:: @ 8271F37
+EventScript_SetupRivalGfxIdMale2:: @ 8271F37
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_BRENDAN_NORMAL
return
-EventScript_271F3D:: @ 8271F3D
+EventScript_SetupRivalGfxIdFemale2:: @ 8271F3D
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_MAY_NORMAL
return
-DewfordTown_Gym_EventScript_271F43:: @ 8271F43
-FortreeCity_Gym_EventScript_271F43:: @ 8271F43
-LavaridgeTown_Gym_1F_EventScript_271F43:: @ 8271F43
-MauvilleCity_Gym_EventScript_271F43:: @ 8271F43
-MossdeepCity_Gym_EventScript_271F43:: @ 8271F43
-PetalburgCity_Gym_EventScript_271F43:: @ 8271F43
-RustboroCity_Gym_EventScript_271F43:: @ 8271F43
-SootopolisCity_Gym_1F_EventScript_271F43:: @ 8271F43
+Common_EventScript_SetGymTrainers:: @ 8271F43
switch VAR_0x8008
- case 1, DewfordTown_Gym_EventScript_271FA1
- case 2, DewfordTown_Gym_EventScript_271FAB
- case 3, DewfordTown_Gym_EventScript_271FBE
- case 4, DewfordTown_Gym_EventScript_271FCE
- case 5, DewfordTown_Gym_EventScript_271FE7
- case 6, DewfordTown_Gym_EventScript_271FFD
- case 7, DewfordTown_Gym_EventScript_272010
- case 8, DewfordTown_Gym_EventScript_272035
+ case 1, RusboroCity_Gym_SetGymTrainers
+ case 2, DewfordTown_Gym_SetGymTrainers
+ case 3, MauvilleCity_Gym_SetGymTrainers
+ case 4, LavaridgeTown_Gym_SetGymTrainers
+ case 5, PetalburgCity_Gym_SetGymTrainers
+ case 6, FortreeCity_Gym_SetGymTrainers
+ case 7, MossdeepCity_Gym_SetGymTrainers
+ case 8, SootopolisCity_Gym_SetGymTrainers
end
-DewfordTown_Gym_EventScript_271FA1:: @ 8271FA1
+RusboroCity_Gym_SetGymTrainers:: @ 8271FA1
settrainerflag TRAINER_JOSH
settrainerflag TRAINER_TOMMY
settrainerflag TRAINER_MARC
return
-DewfordTown_Gym_EventScript_271FAB:: @ 8271FAB
+DewfordTown_Gym_SetGymTrainers:: @ 8271FAB
settrainerflag TRAINER_TAKAO
settrainerflag TRAINER_JOCELYN
settrainerflag TRAINER_LAURA
@@ -1826,7 +1444,7 @@ DewfordTown_Gym_EventScript_271FAB:: @ 8271FAB
settrainerflag TRAINER_LILITH
return
-DewfordTown_Gym_EventScript_271FBE:: @ 8271FBE
+MauvilleCity_Gym_SetGymTrainers:: @ 8271FBE
settrainerflag TRAINER_KIRK
settrainerflag TRAINER_SHAWN
settrainerflag TRAINER_BEN
@@ -1834,7 +1452,7 @@ DewfordTown_Gym_EventScript_271FBE:: @ 8271FBE
settrainerflag TRAINER_ANGELO
return
-DewfordTown_Gym_EventScript_271FCE:: @ 8271FCE
+LavaridgeTown_Gym_SetGymTrainers:: @ 8271FCE
settrainerflag TRAINER_COLE
settrainerflag TRAINER_AXLE
settrainerflag TRAINER_KEEGAN
@@ -1845,7 +1463,7 @@ DewfordTown_Gym_EventScript_271FCE:: @ 8271FCE
settrainerflag TRAINER_ELI
return
-DewfordTown_Gym_EventScript_271FE7:: @ 8271FE7
+PetalburgCity_Gym_SetGymTrainers:: @ 8271FE7
settrainerflag TRAINER_RANDALL
settrainerflag TRAINER_PARKER
settrainerflag TRAINER_GEORGE
@@ -1855,7 +1473,7 @@ DewfordTown_Gym_EventScript_271FE7:: @ 8271FE7
settrainerflag TRAINER_JODY
return
-DewfordTown_Gym_EventScript_271FFD:: @ 8271FFD
+FortreeCity_Gym_SetGymTrainers:: @ 8271FFD
settrainerflag TRAINER_JARED
settrainerflag TRAINER_FLINT
settrainerflag TRAINER_ASHLEY
@@ -1864,7 +1482,7 @@ DewfordTown_Gym_EventScript_271FFD:: @ 8271FFD
settrainerflag TRAINER_DARIUS
return
-DewfordTown_Gym_EventScript_272010:: @ 8272010
+MossdeepCity_Gym_SetGymTrainers:: @ 8272010
settrainerflag TRAINER_PRESTON
settrainerflag TRAINER_VIRGIL
settrainerflag TRAINER_BLAKE
@@ -1879,7 +1497,7 @@ DewfordTown_Gym_EventScript_272010:: @ 8272010
settrainerflag TRAINER_NICHOLAS
return
-DewfordTown_Gym_EventScript_272035:: @ 8272035
+SootopolisCity_Gym_SetGymTrainers:: @ 8272035
settrainerflag TRAINER_ANDREA
settrainerflag TRAINER_CRISSY
settrainerflag TRAINER_BRIANNA
@@ -1936,16 +1554,12 @@ EventScript_RegionMap:: @ 827208F
releaseall
end
-DewfordTown_EventScript_2720A0:: @ 82720A0
-Route104_EventScript_2720A0:: @ 82720A0
-Route109_EventScript_2720A0:: @ 82720A0
+Common_EventScript_PlayBrineysBoatMusic:: @ 82720A0
setflag FLAG_SPECIAL_FLAG_0x4001
playbgm MUS_M_BOAT, 0
return
-DewfordTown_EventScript_2720A8:: @ 82720A8
-Route104_EventScript_2720A8:: @ 82720A8
-Route109_EventScript_2720A8:: @ 82720A8
+Common_EventScript_StopBrineysBoatMusic:: @ 82720A8
clearflag FLAG_SPECIAL_FLAG_0x4001
fadedefaultbgm
return
@@ -2004,7 +1618,7 @@ Route103_EventScript_272141:: @ 8272141
goto_if_unset FLAG_ENABLE_PROF_BIRCH_MATCH_CALL, Route101_EventScript_1FA2D2
Route101_EventScript_272155:: @ 8272155
- msgbox gUnknown_082A5C9C, MSGBOX_YESNO
+ msgbox gBirchDexRatingText_AreYouCurious, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq Route101_EventScript_27216F
call Route101_EventScript_272184
@@ -2012,7 +1626,7 @@ Route101_EventScript_272155:: @ 8272155
end
Route101_EventScript_27216F:: @ 827216F
- msgbox Route101_Text_2A5CEB, MSGBOX_DEFAULT
+ msgbox gBirchDexRatingText_Cancel, MSGBOX_DEFAULT
release
end
@@ -2032,7 +1646,7 @@ Route101_EventScript_272184:: @ 8272184
copyvar VAR_0x800A, VAR_RESULT
buffernumberstring 0, VAR_0x8008
buffernumberstring 1, VAR_0x8009
- msgbox gUnknown_082A5D2C, MSGBOX_DEFAULT
+ msgbox gBirchDexRatingText_SoYouveSeenAndCaught, MSGBOX_DEFAULT
call Route101_EventScript_272179
compare VAR_0x800A, 0
goto_if_eq Common_EventScript_NopReturn
@@ -2042,7 +1656,7 @@ Route101_EventScript_272184:: @ 8272184
copyvar VAR_0x8009, VAR_0x8006
buffernumberstring 0, VAR_0x8008
buffernumberstring 1, VAR_0x8009
- msgbox gUnknown_082A633D, MSGBOX_DEFAULT
+ msgbox gBirchDexRatingText_OnANationwideBasis, MSGBOX_DEFAULT
return
Common_EventScript_FerryDepart:: @ 82721E2
@@ -2241,16 +1855,16 @@ Route119_EventScript_272365:: @ 8272365
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 1
- goto_if_eq Route119_EventScript_2723C1
+ goto_if_eq EventScript_RemoveKecleon
compare VAR_RESULT, 4
- goto_if_eq Route119_EventScript_2723C1
+ goto_if_eq EventScript_RemoveKecleon
compare VAR_RESULT, 5
- goto_if_eq Route119_EventScript_2723C1
+ goto_if_eq EventScript_RemoveKecleon
release
end
-Route119_EventScript_2723C1:: @ 82723C1
- goto Route119_EventScript_27376D
+EventScript_RemoveKecleon:: @ 82723C1
+ goto Common_EventScript_RemoveStaticPokemon
end
FortreeCity_Movement_2723C7: @ 82723C7
@@ -2279,18 +1893,16 @@ Route120_Movement_2723C7: @ 82723C7
set_visible
step_end
-Common_EventScript_NameReceivedPokemon:: @ 82723DD
+Common_EventScript_NameReceivedPartyMon:: @ 82723DD
fadescreen 1
special ChangePokemonNickname
waitstate
return
-FallarborTown_House1_EventScript_2723E4:: @ 82723E4
-GraniteCave_StevensRoom_EventScript_2723E4:: @ 82723E4
-SlateportCity_OceanicMuseum_2F_EventScript_2723E4:: @ 82723E4
+Common_EventScript_PlayerHandedOverTheItem:: @ 82723E4
bufferitemname 0, VAR_0x8004
playfanfare MUS_ME_WAZA
- message gUnknown_08273161
+ message gText_PlayerHandedOverTheItem
waitmessage
waitfanfare
takeitem VAR_0x8004, 1
@@ -2526,196 +2138,252 @@ gText_AccessedPlayersPC:: @ 82726C2
gText_AccessedLanettesPC:: @ 82726D4
.string "Accessed LANETTE's PC.$"
-gUnknown_082726EB:: @ 82726EB
- .string "Hello, and welcome to\nthe POKéMON CENTER.\pWe restore your tired POKéMON\nto full health.\pWould you like to rest your POKéMON?$"
-
-gUnknown_08272768:: @ 8272768
- .string "Okay, I'll take your POKéMON\nfor a few seconds.$"
-
-gUnknown_08272798:: @ 8272798
- .string "Thank you for waiting.\pWe've restored your POKéMON\nto full health.$"
-
-gUnknown_082727DB:: @ 82727DB
- .string "We hope to see you again!$"
-
-gUnknown_082727F5:: @ 82727F5
- .string "Hello, and welcome to\nthe POKéMON CENTER.\pWe restore your tired POKéMON\nto full health.\pWould you like to…$"
+ .include "data/text/pkmn_center_nurse.inc"
-gUnknown_08272860:: @ 8272860
- .string "Th-that card…\nCould it be… The GOLD CARD?!\pOh, the gold color is brilliant!\nThe four stars seem to sparkle!\pI've seen several TRAINERS with\na SILVER CARD before, but, {PLAYER},\lyou're the first TRAINER I've ever\lseen with a GOLD CARD!\pOkay, {PLAYER}, please allow me\nthe honor of resting your POKéMON!$"
+gText_HowMayIServeYou:: @ 8272A21
+ .string "Welcome!\p"
+ .string "How may I serve you?$"
-gUnknown_08272982:: @ 8272982
- .string "I'm delighted to see you, {PLAYER}!\nYou want the usual, am I right?$"
-
-gUnknown_082729C0:: @ 82729C0
- .string "Okay, I'll take your POKéMON\nfor a few seconds.$"
-
-gUnknown_082729F0:: @ 82729F0
- .string "Thank you for waiting.$"
-
-gUnknown_08272A07:: @ 8272A07
- .string "We hope to see you again!$"
-
-gUnknown_08272A21:: @ 8272A21
- .string "Welcome!\pHow may I serve you?$"
-
-gUnknown_08272A3F:: @ 8272A3F
+gText_PleaseComeAgain:: @ 8272A3F
.string "Please come again!$"
-gUnknown_08272A52:: @ 8272A52
- .string "{PLAYER}{KUN}, welcome!\pWhat can I do for you?$"
+gText_PlayerWhatCanIDoForYou:: @ 8272A52
+ .string "{PLAYER}{STRING 5}, welcome!\p"
+ .string "What can I do for you?$"
-gUnknown_08272A78:: @ 8272A78
+gText_ObtainedTheItem:: @ 8272A78
.string "Obtained the {STR_VAR_2}!$"
-gUnknown_08272A89:: @ 8272A89
+gText_TheBagIsFull:: @ 8272A89
.string "The BAG is full…$"
gText_PutItemInPocket:: @ 8272A9A
- .string "{PLAYER} put away the {STR_VAR_2}\nin the {STR_VAR_3} POCKET.$"
+ .string "{PLAYER} put away the {STR_VAR_2}\n"
+ .string "in the {STR_VAR_3} POCKET.$"
gText_PlayerFoundOneItem:: @ 8272ABF
.string "{PLAYER} found one {STR_VAR_2}!$"
gText_TooBadBagIsFull:: @ 8272AD0
- .string "Too bad!\nThe BAG is full…$"
+ .string "Too bad!\n"
+ .string "The BAG is full…$"
gText_PlayerPutItemInBag:: @ 8272AEA
- .string "{PLAYER} put away the {STR_VAR_2}\nin the BAG.$"
+ .string "{PLAYER} put away the {STR_VAR_2}\n"
+ .string "in the BAG.$"
-gUnknown_08272B09:: @ 8272B09
+gText_ObtainedTheMon:: @ 8272B09
.string "Obtained the {STR_VAR_2}!$"
gText_NoRoomLeftForAnother:: @ 8272B1A
- .string "Too bad! There's no room left for\nanother {STR_VAR_2}…$"
+ .string "Too bad! There's no room left for\n"
+ .string "another {STR_VAR_2}…$"
-gUnknown_08272B48:: @ 8272B48
- .string "The {STR_VAR_2} was transferred\nto the PC.$"
+gText_TheMonWasTransferredToThePC:: @ 8272B48
+ .string "The {STR_VAR_2} was transferred\n"
+ .string "to the PC.$"
gText_PokemartSign:: @ 8272B6A
- .string "“Selected items for your convenience!”\nPOKéMON MART$"
+ .string "“Selected items for your convenience!”\n"
+ .string "POKéMON MART$"
gText_PokemonCenterSign:: @ 8272B9E
- .string "“Rejuvenate your tired partners!”\nPOKéMON CENTER$"
+ .string "“Rejuvenate your tired partners!”\n"
+ .string "POKéMON CENTER$"
-gUnknown_08272BCF:: @ 8272BCF
- .string "{STR_VAR_1} might like this program.\n… … … … … … … … … … … … … … … …\pBetter get going!$"
+gText_MomOrDadMightLikeThisProgram:: @ 8272BCF
+ .string "{STR_VAR_1} might like this program.\n"
+ .string "… … … … … … … … … … … … … … … …\p"
+ .string "Better get going!$"
-gUnknown_08272C1D:: @ 8272C1D
- .string "Welcome to LILYCOVE DEPARTMENT STORE.\pWhich floor would you like?$"
+gText_WhichFloorWouldYouLike:: @ 8272C1D
+ .string "Welcome to LILYCOVE DEPARTMENT STORE.\p"
+ .string "Which floor would you like?$"
-gUnknown_08272C5F:: @ 8272C5F
- .string "The sandstorm is vicious.\nIt's impossible to keep going.$"
+gText_SandstormIsVicious:: @ 8272C5F
+ .string "The sandstorm is vicious.\n"
+ .string "It's impossible to keep going.$"
gText_SelectWithoutRegisteredItem:: @ 8272C98
- .string "An item in the BAG can be\nregistered to SELECT for easy use.$"
-
-gUnknown_08272CD5:: @ 8272CD5
- .string "There's an e-mail from POKéMON TRAINER\nSCHOOL.\p… … … … … …\pA POKéMON may learn up to four moves.\pA TRAINER's expertise is tested on the\nmove sets chosen for POKéMON.\p… … … … … …$"
+ .string "An item in the BAG can be\n"
+ .string "registered to SELECT for easy use.$"
+
+gText_PokemonTrainerSchoolEmail:: @ 8272CD5
+ .string "There's an e-mail from POKéMON TRAINER\n"
+ .string "SCHOOL.\p"
+ .string "… … … … … …\p"
+ .string "A POKéMON may learn up to four moves.\p"
+ .string "A TRAINER's expertise is tested on the\n"
+ .string "move sets chosen for POKéMON.\p"
+ .string "… … … … … …$"
gText_PlayerHouseBootPC:: @ 8272D87
.string "{PLAYER} booted up the PC.$"
-gUnknown_08272D9C:: @ 8272D9C
+gText_PokeblockLinkCanceled:: @ 8272D9C
.string "The link was canceled.$"
-gUnknown_08272DB3:: @ 8272DB3
- .string "Want to give a nickname to\nthe {STR_VAR_2} you received?$"
+gText_UnusedNicknameReceivedPokemon:: @ 8272DB3
+ .string "Want to give a nickname to\n"
+ .string "the {STR_VAR_2} you received?$"
-gUnknown_08272DE3:: @ 8272DE3
- .string "{PLAYER} is out of usable\nPOKéMON!\p{PLAYER} whited out!$"
+gText_PlayerWhitedOut:: @ 8272DE3
+ .string "{PLAYER} is out of usable\n"
+ .string "POKéMON!\p{PLAYER} whited out!$"
gText_RegisteredTrainerinPokeNav:: @ 8272E0F
- .string "Registered {STR_VAR_1} {STR_VAR_2}\nin the POKéNAV.$"
-
-gUnknown_08272E30:: @ 8272E30
- .string "Do you know the TM SECRET POWER?\pOur group, we love the TM SECRET\nPOWER.\pOne of our members will give it to you.\nCome back and show me if you get it.\pWe'll accept you as a member and sell\nyou good stuff in secrecy.$"
+ .string "Registered {STR_VAR_1} {STR_VAR_2}\n"
+ .string "in the POKéNAV.$"
+
+gText_ComeBackWithSecretPower:: @ 8272E30
+ .string "Do you know the TM SECRET POWER?\p"
+ .string "Our group, we love the TM SECRET\n"
+ .string "POWER.\p"
+ .string "One of our members will give it to you.\n"
+ .string "Come back and show me if you get it.\p"
+ .string "We'll accept you as a member and sell\n"
+ .string "you good stuff in secrecy.$"
gText_PokerusExplanation:: @ 8272F07
- .string "Your POKéMON may be infected with\nPOKéRUS.\pLittle is known about the POKéRUS\nexcept that they are microscopic life-\lforms that attach to POKéMON.\pWhile infected, POKéMON are said to\ngrow exceptionally well.$"
+ .string "Your POKéMON may be infected with\n"
+ .string "POKéRUS.\p"
+ .string "Little is known about the POKéRUS\n"
+ .string "except that they are microscopic life-\l"
+ .string "forms that attach to POKéMON.\p"
+ .string "While infected, POKéMON are said to\n"
+ .string "grow exceptionally well.$"
.include "data/text/surf.inc"
-gUnknown_0827301B:: @ 827301B
- .string "It sounded as if a door opened\nsomewhere far away.$"
+gText_DoorOpenedFarAway:: @ 827301B
+ .string "It sounded as if a door opened\n"
+ .string "somewhere far away.$"
-gUnknown_0827304E:: @ 827304E
+gText_BigHoleInTheWall:: @ 827304E
.string "There is a big hole in the wall.$"
-gUnknown_0827306F:: @ 827306F
- .string "I'm terribly sorry.\nThe POKéMON WIRELESS CLUB is\lundergoing adjustments now.$"
+gText_SorryWirelessClubAdjustments:: @ 827306F
+ .string "I'm terribly sorry.\n"
+ .string "The POKéMON WIRELESS CLUB is\l"
+ .string "undergoing adjustments now.$"
-gUnknown_082730BC:: @ 82730BC
- .string "It appears to be undergoing\nadjustments…$"
+gText_UndergoingAdjustments:: @ 82730BC
+ .string "It appears to be undergoing\n"
+ .string "adjustments…$"
-gUnknown_082730E5:: @ 82730E5
- .string "I'm terribly sorry. The TRADE CENTER\nis undergoing inspections.$"
+@ Unused
+gText_SorryTradeCenterInspections:: @ 82730E5
+ .string "I'm terribly sorry. The TRADE CENTER\n"
+ .string "is undergoing inspections.$"
-gUnknown_08273125:: @ 8273125
- .string "I'm terribly sorry. The RECORD CORNER\nis under preparation.$"
+@ Unused
+gText_SorryRecordCornerPreparation:: @ 8273125
+ .string "I'm terribly sorry. The RECORD CORNER\n"
+ .string "is under preparation.$"
-gUnknown_08273161:: @ 8273161
- .string "{PLAYER} handed over the\n{STR_VAR_1}.$"
+gText_PlayerHandedOverTheItem:: @ 8273161
+ .string "{PLAYER} handed over the\n"
+ .string "{STR_VAR_1}.$"
-gUnknown_08273178:: @ 8273178
- .string "Thank you for accessing the\nMYSTERY GIFT System.$"
+gText_ThankYouForAccessingMysteryGift:: @ 8273178
+ .string "Thank you for accessing the\n"
+ .string "MYSTERY GIFT System.$"
gText_PlayerFoundOneItemTwoLines:: @ 82731A9
- .string "{PLAYER} found one {STR_VAR_1}\n{STR_VAR_2}!$"
+ .string "{PLAYER} found one {STR_VAR_1}\n"
+ .string "{STR_VAR_2}!$"
gText_Sudowoodo_Attacked:: @ 82731BD
- .string "The weird tree doesn't like the\nWAILMER PAIL!\pThe weird tree attacked!$"
+ .string "The weird tree doesn't like the\n"
+ .string "WAILMER PAIL!\p"
+ .string "The weird tree attacked!$"
gText_LegendaryFlewAway:: @ 8273204
.string "The {STR_VAR_1} flew away!$"
gText_PkmnTransferredSomeonesPC:: @ 8273216
- .string "{STR_VAR_2} was transferred to\nSOMEONE'S PC.\pIt was placed in \nBOX “{STR_VAR_1}.”$"
+ .string "{STR_VAR_2} was transferred to\n"
+ .string "SOMEONE'S PC.\p"
+ .string "It was placed in \n"
+ .string "BOX “{STR_VAR_1}.”$"
gText_PkmnTransferredLanettesPC:: @ 8273256
- .string "{STR_VAR_2} was transferred to\nLANETTE'S PC.\pIt was placed in \nBOX “{STR_VAR_1}.”$"
+ .string "{STR_VAR_2} was transferred to\nLANETTE'S PC.\p"
+ .string "It was placed in \n"
+ .string "BOX “{STR_VAR_1}.”$"
gText_PkmnBoxSomeonesPCFull:: @ 8273296
- .string "BOX “{STR_VAR_3}” on\nSOMEONE'S PC was full.\p{STR_VAR_2} was transferred to\nBOX “{STR_VAR_1}.”$"
+ .string "BOX “{STR_VAR_3}” on\n"
+ .string "SOMEONE'S PC was full.\p"
+ .string "{STR_VAR_2} was transferred to\n"
+ .string "BOX “{STR_VAR_1}.”$"
gText_PkmnBoxLanettesPCFull:: @ 82732D9
- .string "BOX “{STR_VAR_3}” on\nLANETTE'S PC was full.\p{STR_VAR_2} was transferred to\nBOX “{STR_VAR_1}.”$"
+ .string "BOX “{STR_VAR_3}” on\n"
+ .string "LANETTE'S PC was full.\p"
+ .string "{STR_VAR_2} was transferred to\n"
+ .string "BOX “{STR_VAR_1}.”$"
-gUnknown_0827331C:: @ 827331C
- .string "There's no more room for POKéMON!\pThe POKéMON BOXES are full and\ncan't accept any more!$"
+gText_NoMoreRoomForPokemon:: @ 827331C
+ .string "There's no more room for POKéMON!\p"
+ .string "The POKéMON BOXES are full and\n"
+ .string "can't accept any more!$"
gText_NicknameThisPokemon:: @ 8273374
- .string "Do you want to give a nickname to\nthis {STR_VAR_1}?$"
+ .string "Do you want to give a nickname to\n"
+ .string "this {STR_VAR_1}?$"
-gUnknown_0827339F:: @ 827339F
- .string "There is a questionnaire.\nWould you like to fill it out?$"
+gText_FillOutQuestionnaire:: @ 827339F
+ .string "There is a questionnaire.\n"
+ .string "Would you like to fill it out?$"
-gUnknown_082733D8:: @ 82733D8
- .string "Thank you for taking the time to\nfill out our questionnaire.\pYour feedback will be used for\nfuture reference.$"
+gText_ThankYouForTakingQuestionnaire:: @ 82733D8
+ .string "Thank you for taking the time to\n"
+ .string "fill out our questionnaire.\p"
+ .string "Your feedback will be used for\n"
+ .string "future reference.$"
gUnknown_08273446:: @ 8273446
- .string "Oh, hello!\nYou know those words?\pThat means you must know about\nthe MYSTERY GIFT.\pFrom now on, you should be\nreceiving MYSTERY GIFTS!$"
+ .string "Oh, hello!\n"
+ .string "You know those words?\p"
+ .string "That means you must know about\n"
+ .string "the MYSTERY GIFT.\p"
+ .string "From now on, you should be\n"
+ .string "receiving MYSTERY GIFTS!$"
gUnknown_082734CC:: @ 82734CC
- .string "Once you save your game, you can\naccess the MYSTERY GIFT.$"
+ .string "Once you save your game, you can\n"
+ .string "access the MYSTERY GIFT.$"
gUnknown_08273506:: @ 8273506
- .string "Oh, hello!\nYou know those words?\pThat means you must know about\nthe MYSTERY EVENT.$"
+ .string "Oh, hello!\n"
+ .string "You know those words?\p"
+ .string "That means you must know about\n"
+ .string "the MYSTERY EVENT.$"
gUnknown_08273559:: @ 8273559
- .string "Once you save your game, you can\naccess the MYSTERY EVENT.$"
+ .string "Once you save your game, you can\n"
+ .string "access the MYSTERY EVENT.$"
gUnknown_08273594:: @ 8273594
- .string "Thank you for using the MYSTERY\nEVENT System.\pYou must be {PLAYER}.\nThere is a ticket here for you.$"
+ .string "Thank you for using the MYSTERY\n"
+ .string "EVENT System.\p"
+ .string "You must be {PLAYER}.\n"
+ .string "There is a ticket here for you.$"
gUnknown_082735F2:: @ 82735F2
- .string "It appears to be for use at\nthe LILYCOVE CITY port.\pWhy not give it a try and see what\nit is about?$"
+ .string "It appears to be for use at\n"
+ .string "the LILYCOVE CITY port.\p"
+ .string "Why not give it a try and see what\n"
+ .string "it is about?$"
gText_UnusualWeatherEnded_Rain:: @ 8273656
- .string "The massive downpour appears to\nhave stopped…$"
+ .string "The massive downpour appears to\n"
+ .string "have stopped…$"
gText_UnusualWeatherEnded_Sun:: @ 8273684
- .string "The intense sunshine appears to\nhave subsided…$"
+ .string "The intense sunshine appears to\n"
+ .string "have subsided…$"
EventScript_SelectWithoutRegisteredItem:: @ 82736B3
msgbox gText_SelectWithoutRegisteredItem, MSGBOX_SIGN
@@ -2733,7 +2401,7 @@ EventScript_Poison:: @ 82736BC
end
EventScript_2736D9:: @ 82736D9
- message gUnknown_08272DE3
+ message gText_PlayerWhitedOut
waitmessage
waitbuttonpress
special sub_80B05B4
@@ -2749,7 +2417,7 @@ EventScript_2736F4:: @ 82736F4
return
EventScript_2736F8:: @ 82736F8
- message gUnknown_08272DE3
+ message gText_PlayerWhitedOut
waitmessage
waitbuttonpress
setvar VAR_0x8004, 16
@@ -2776,11 +2444,12 @@ EventScript_2736F8:: @ 82736F8
Common_EventScript_NopReturn:: @ 827374E
return
-EventScript_UnusedSetVarResult1:: @ 827374F
+@ Unused
+EventScript_CableClub_SetVarResult1:: @ 827374F
setvar VAR_RESULT, 1
return
-OldaleTown_PokemonCenter_2F_EventScript_273755:: @ 8273755
+EventScript_CableClub_SetVarResult0:: @ 8273755
setvar VAR_RESULT, 0
return
@@ -2844,30 +2513,14 @@ VerdanturfTown_PokemonCenter_2F_EventScript_273767:: @ 8273767
call OldaleTown_PokemonCenter_2F_EventScript_2776A4
end
-AncientTomb_EventScript_27376D:: @ 827376D
-AquaHideout_B1F_EventScript_27376D:: @ 827376D
-DesertRuins_EventScript_27376D:: @ 827376D
-IslandCave_EventScript_27376D:: @ 827376D
-MarineCave_End_EventScript_27376D:: @ 827376D
-NewMauville_Inside_EventScript_27376D:: @ 827376D
-Route119_EventScript_27376D:: @ 827376D
-TerraCave_End_EventScript_27376D:: @ 827376D
+Common_EventScript_RemoveStaticPokemon:: @ 827376D
fadescreenswapbuffers 1
removeobject VAR_LAST_TALKED
fadescreenswapbuffers 0
release
end
-AncientTomb_EventScript_273776:: @ 8273776
-BirthIsland_Exterior_EventScript_273776:: @ 8273776
-DesertRuins_EventScript_273776:: @ 8273776
-FarawayIsland_Interior_EventScript_273776:: @ 8273776
-IslandCave_EventScript_273776:: @ 8273776
-MarineCave_End_EventScript_273776:: @ 8273776
-NavelRock_Bottom_EventScript_273776:: @ 8273776
-NavelRock_Top_EventScript_273776:: @ 8273776
-SouthernIsland_Interior_EventScript_273776:: @ 8273776
-TerraCave_End_EventScript_273776:: @ 8273776
+Common_EventScript_LegendaryFlewAway:: @ 8273776
fadescreenswapbuffers 1
removeobject VAR_LAST_TALKED
fadescreenswapbuffers 0
@@ -2876,19 +2529,14 @@ TerraCave_End_EventScript_273776:: @ 8273776
release
end
-LittlerootTown_ProfessorBirchsLab_EventScript_27378B:: @ 827378B
-MossdeepCity_StevensHouse_EventScript_27378B:: @ 827378B
-Route119_WeatherInstitute_2F_EventScript_27378B:: @ 827378B
-RustboroCity_DevonCorp_2F_EventScript_27378B:: @ 827378B
+@ VAR_0x8004 here is used by ChangePokemonNickname
+Common_EventScript_GetGiftMonPartySlot:: @ 827378B
getpartysize
subvar VAR_RESULT, 1
copyvar VAR_0x8004, VAR_RESULT
return
-LittlerootTown_ProfessorBirchsLab_EventScript_273797:: @ 8273797
-MossdeepCity_StevensHouse_EventScript_273797:: @ 8273797
-Route119_WeatherInstitute_2F_EventScript_273797:: @ 8273797
-RustboroCity_DevonCorp_2F_EventScript_273797:: @ 8273797
+Common_EventScript_NameReceivedBoxMon:: @ 8273797
fadescreen 1
special ChangeBoxPokemonNickname
waitstate
@@ -2932,17 +2580,14 @@ LittlerootTown_ProfessorBirchsLab_EventScript_2737FF:: @ 82737FF
msgbox gText_PkmnBoxLanettesPCFull, MSGBOX_DEFAULT
return
-LittlerootTown_ProfessorBirchsLab_EventScript_273811:: @ 8273811
-MossdeepCity_StevensHouse_EventScript_273811:: @ 8273811
-Route119_WeatherInstitute_2F_EventScript_273811:: @ 8273811
-RustboroCity_DevonCorp_2F_EventScript_273811:: @ 8273811
- msgbox gUnknown_0827331C, MSGBOX_DEFAULT
+Common_EventScript_NoMoreRoomForPokemon:: @ 8273811
+ msgbox gText_NoMoreRoomForPokemon, MSGBOX_DEFAULT
release
end
EventScript_Questionnaire:: @ 827381B
lockall
- msgbox gUnknown_0827339F, MSGBOX_YESNO
+ msgbox gText_FillOutQuestionnaire, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq EventScript_2738FD
setvar VAR_0x8004, EASY_CHAT_TYPE_QUESTIONNAIRE
@@ -2999,7 +2644,7 @@ EventScript_2738FD:: @ 82738FD
EventScript_2738FF:: @ 82738FF
applymovement VAR_0x8008, Common_Movement_FaceDown
waitmovement 0
- msgbox gUnknown_082733D8, MSGBOX_DEFAULT
+ msgbox gText_ThankYouForTakingQuestionnaire, MSGBOX_DEFAULT
releaseall
end
@@ -3743,7 +3388,7 @@ LilycoveCity_ContestLobby_EventScript_28C7E9:: @ 828C7E9
SlateportCity_OceanicMuseum_1F_EventScript_28C7E9:: @ 828C7E9
SlateportCity_PokemonFanClub_EventScript_28C7E9:: @ 828C7E9
special InterviewAfter
- incrementgamestat 6
+ incrementgamestat GAME_STAT_GOT_INTERVIEWED
release
end
@@ -4287,863 +3932,7 @@ GraniteCave_B1F_Movement_2A8369: @ 82A8369
set_invisible
step_end
-LilycoveCity_PokemonCenter_1F_EventScript_2A836B:: @ 82A836B
- special Script_GetLilycoveLadyId
- switch VAR_RESULT
- case LILYCOVE_LADY_QUIZ, LilycoveCity_PokemonCenter_1F_EventScript_2A8554
- case LILYCOVE_LADY_FAVOR, LilycoveCity_PokemonCenter_1F_EventScript_2A8395
- case LILYCOVE_LADY_CONTEST, LilycoveCity_PokemonCenter_1F_EventScript_2A882A
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8395:: @ 82A8395
- lock
- faceplayer
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8A69, MSGBOX_DEFAULT
- specialvar VAR_RESULT, GetFavorLadyState
- compare VAR_RESULT, LILYCOVE_LADY_STATE_READY
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A83D0
- compare VAR_RESULT, LILYCOVE_LADY_STATE_COMPLETED
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A83C6
- compare VAR_RESULT, LILYCOVE_LADY_STATE_PRIZE
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8510
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A83C6:: @ 82A83C6
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8AB1, MSGBOX_DEFAULT
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A83D0:: @ 82A83D0
- special BufferFavorLadyRequest
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8A7D, MSGBOX_DEFAULT
- specialvar VAR_RESULT, HasAnotherPlayerGivenFavorLadyItem
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8435
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A83F7
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A83F7:: @ 82A83F7
- special BufferFavorLadyItemName
- special BufferFavorLadyPlayerName
- specialvar VAR_RESULT, DidFavorLadyLikeItem
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8419
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8427
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8419:: @ 82A8419
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8ACE, MSGBOX_DEFAULT
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A8435
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8427:: @ 82A8427
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8B36, MSGBOX_DEFAULT
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A8435
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8435:: @ 82A8435
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8B69, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8454
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A845E
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8454:: @ 82A8454
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8BCD, MSGBOX_DEFAULT
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A845E:: @ 82A845E
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8BAD, MSGBOX_DEFAULT
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A846C
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A846C:: @ 82A846C
- fadescreen 1
- setvar VAR_RESULT, 0
- special Script_FavorLadyOpenBagMenu
- waitstate
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A848E
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A84AD
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A848E:: @ 82A848E
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8BEE, MSGBOX_YESNO
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8454
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A846C
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A84AD:: @ 82A84AD
- specialvar VAR_RESULT, Script_DoesFavorLadyLikeItem
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A84C9
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A84D6
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A84C9:: @ 82A84C9
- special BufferFavorLadyRequest
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8C0F, MSGBOX_DEFAULT
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A84D6:: @ 82A84D6
- specialvar VAR_RESULT, IsFavorLadyThresholdMet
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A84F2
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A84FF
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A84F2:: @ 82A84F2
- special BufferFavorLadyRequest
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8C6F, MSGBOX_DEFAULT
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A84FF:: @ 82A84FF
- special BufferFavorLadyRequest
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8CC8, MSGBOX_DEFAULT
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A8510
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8510:: @ 82A8510
- setvar VAR_0x8004, 0
- specialvar VAR_0x8004, FavorLadyGetPrize
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8D5D, MSGBOX_DEFAULT
- giveitem_std VAR_0x8004
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8545
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A854F
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8545:: @ 82A8545
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8DBD, MSGBOX_DEFAULT
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A854F:: @ 82A854F
- special SetFavorLadyState_Complete
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8554:: @ 82A8554
- lock
- faceplayer
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8E2B, MSGBOX_DEFAULT
- specialvar VAR_RESULT, GetQuizLadyState
- compare VAR_RESULT, LILYCOVE_LADY_STATE_READY
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8585
- compare VAR_RESULT, LILYCOVE_LADY_STATE_COMPLETED
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A85AC
- compare VAR_RESULT, LILYCOVE_LADY_STATE_PRIZE
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A86EC
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8585:: @ 82A8585
- specialvar VAR_RESULT, GetQuizAuthor
- compare VAR_RESULT, QUIZ_AUTHOR_PLAYER
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A85C8
- compare VAR_RESULT, QUIZ_AUTHOR_OTHER_PLAYER
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A85D2
- compare VAR_RESULT, QUIZ_AUTHOR_LADY
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A85E0
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A85AC:: @ 82A85AC
- specialvar VAR_RESULT, IsQuizLadyWaitingForChallenger
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8759
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A85C8
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A85C8:: @ 82A85C8
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8E4E, MSGBOX_DEFAULT
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A85D2:: @ 82A85D2
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8EAC, MSGBOX_DEFAULT
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A85EE
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A85E0:: @ 82A85E0
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8EAC, MSGBOX_DEFAULT
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A85EE
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A85EE:: @ 82A85EE
- setvar VAR_0x8004, 0
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8EEC, MSGBOX_YESNO
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A861C
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8612
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8612:: @ 82A8612
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8F65, MSGBOX_DEFAULT
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A861C:: @ 82A861C
- special ClearQuizLadyPlayerAnswer
- compare VAR_0x8004, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A864C
- compare VAR_0x8004, EASY_CHAT_TYPE_QUIZ_ANSWER
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8656
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8635:: @ 82A8635
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8660
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8689
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A864C:: @ 82A864C
- special QuizLadyShowQuizQuestion
- waitstate
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A8635
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8656:: @ 82A8656
- special QuizLadyGetPlayerAnswer
- waitstate
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A8635
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8660:: @ 82A8660
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8F7E, MSGBOX_YESNO
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A867F
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A861C
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A867F:: @ 82A867F
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8F9A, MSGBOX_DEFAULT
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8689:: @ 82A8689
- special SetQuizLadyState_Complete
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8F4D, MSGBOX_DEFAULT
- specialvar VAR_RESULT, IsQuizAnswerCorrect
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A86C7
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A86B0
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A86B0:: @ 82A86B0
- playse SE_SEIKAI
- delay 10
- playse SE_SEIKAI
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A8FC7, MSGBOX_DEFAULT
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A86EC
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A86C7:: @ 82A86C7
- special BufferQuizCorrectAnswer
- special BufferQuizPrizeName
- playse SE_HAZURE
- delay 10
- playse SE_HAZURE
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A90A5, MSGBOX_DEFAULT
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A90CD, MSGBOX_DEFAULT
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A8759
- end
-
-@ VAR_RESULT is essentially ignored, both jumps are identical
-LilycoveCity_PokemonCenter_1F_EventScript_2A86EC:: @ 82A86EC
- specialvar VAR_RESULT, BufferQuizAuthorNameAndCheckIfLady
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8708
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8716
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8708:: @ 82A8708
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9007, MSGBOX_DEFAULT
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A8724
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8716:: @ 82A8716
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9007, MSGBOX_DEFAULT
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A8724
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8724:: @ 82A8724
- setvar VAR_0x8005, 0
- special BufferQuizPrizeItem
- special SetQuizLadyState_Complete
- giveitem_std VAR_0x8005
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A874C
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A8759
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A874C:: @ 82A874C
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A906A, MSGBOX_DEFAULT
- special SetQuizLadyState_GivePrize
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8759:: @ 82A8759
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A90FB, MSGBOX_YESNO
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8785
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8778
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8778:: @ 82A8778
- special QuizLadyPickNewQuestion
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9131, MSGBOX_DEFAULT
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8785:: @ 82A8785
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9153, MSGBOX_DEFAULT
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A878D:: @ 82A878D
- fadescreen 1
- setvar VAR_RESULT, 0
- special Script_QuizLadyOpenBagMenu
- waitstate
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A87AF
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A87CE
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A87AF:: @ 82A87AF
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9212, MSGBOX_YESNO
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8778
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A878D
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A87CE:: @ 82A87CE
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9270, MSGBOX_DEFAULT
- special ClearQuizLadyQuestionAndAnswer
- special ClearQuizLadyPlayerAnswer
- setvar VAR_0x8004, EASY_CHAT_TYPE_QUIZ_QUESTION
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A87E1:: @ 82A87E1
- fadescreen 1
- special QuizLadySetCustomQuestion
- waitstate
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A87F8
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A8817
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A87F8:: @ 82A87F8
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A92D3, MSGBOX_YESNO
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8778
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A87E1
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8817:: @ 82A8817
- special QuizLadyTakePrizeForCustomQuiz
- special QuizLadyRecordCustomQuizData
- special QuizLadySetWaitingForChallenger
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9336, MSGBOX_DEFAULT
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A882A:: @ 82A882A
- lock
- faceplayer
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A93A7, MSGBOX_DEFAULT
- specialvar VAR_RESULT, HasPlayerGivenContestLadyPokeblock
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8850
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A886C
- end
-
-@ Redundant with above script, VAR_RESULT will always be 0 here
-LilycoveCity_PokemonCenter_1F_EventScript_2A8850:: @ 82A8850
- specialvar VAR_RESULT, ShouldContestLadyShowGoOnAir
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8876
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A886C
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A886C:: @ 82A886C
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A93D6, MSGBOX_DEFAULT
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8876:: @ 82A8876
- special Script_BufferContestLadyCategoryAndMonName
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A93F4, MSGBOX_DEFAULT
- checkitem ITEM_POKEBLOCK_CASE, 1
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A89AE
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A94E8, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A88B0
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A88BA
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A88B0:: @ 82A88B0
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9556, MSGBOX_DEFAULT
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A88BA:: @ 82A88BA
- fadescreen 1
- special OpenPokeblockCaseForContestLady
- waitstate
- compare VAR_RESULT, 65535
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A88D7
- compare VAR_RESULT, 65535
- goto_if_ne LilycoveCity_PokemonCenter_1F_EventScript_2A88F6
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A88D7:: @ 82A88D7
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9537, MSGBOX_YESNO
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A88B0
- compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A88BA
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A88F6:: @ 82A88F6
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9571, MSGBOX_DEFAULT
- special SetContestLadyGivenPokeblock
- special GetContestLadyMonSpecies
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A890A
- end
-
-@ VAR_0x8004 here is the return value from GivePokeblockToContestLady
-LilycoveCity_PokemonCenter_1F_EventScript_2A890A:: @ 82A890A
- applymovement 4, LilycoveCity_PokemonCenter_1F_Movement_2A89B8
- waitmovement 0
- delay 60
- applymovement 5, LilycoveCity_PokemonCenter_1F_Movement_2A89BB
- waitmovement 0
- delay 60
- waitse
- playmoncry VAR_0x8005, 0
- delay 120
- waitmoncry
- compare VAR_0x8004, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A893F
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A894C
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A893F:: @ 82A893F
- applymovement 5, LilycoveCity_PokemonCenter_1F_Movement_2A89C2
- waitmovement 0
- delay 60
-
-@ VAR_0x8004 here is the return value from GivePokeblockToContestLady
-LilycoveCity_PokemonCenter_1F_EventScript_2A894C:: @ 82A894C
- applymovement 4, LilycoveCity_PokemonCenter_1F_Movement_2A89C0
- waitmovement 0
- delay 60
- compare VAR_0x8004, 0
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8970
- compare VAR_0x8004, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A897E
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8970:: @ 82A8970
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A95AD, MSGBOX_DEFAULT
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A898F
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A897E:: @ 82A897E
- special Script_BufferContestLadyCategoryAndMonName
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9605, MSGBOX_DEFAULT
- goto LilycoveCity_PokemonCenter_1F_EventScript_2A898F
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A898F:: @ 82A898F
- specialvar VAR_RESULT, ShouldContestLadyShowGoOnAir
- compare VAR_RESULT, 1
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A89A1
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A89A1:: @ 82A89A1
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9669, MSGBOX_DEFAULT
- special PutLilycoveContestLadyShowOnTheAir
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A89AE:: @ 82A89AE
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9451, MSGBOX_DEFAULT
- release
- end
-
-LilycoveCity_PokemonCenter_1F_Movement_2A89B8: @ 82A89B8
- face_right
- delay_8
- step_end
-
-LilycoveCity_PokemonCenter_1F_Movement_2A89BB: @ 82A89BB
- face_left
- delay_8
- step_end
-
-LilycoveCity_PokemonCenter_1F_Movement_2A89BE: @ 82A89BE
- face_down
- step_end
-
-LilycoveCity_PokemonCenter_1F_Movement_2A89C0: @ 82A89C0
- face_player
- step_end
-
-LilycoveCity_PokemonCenter_1F_Movement_2A89C2: @ 82A89C2
- disable_jump_landing_ground_effect
- jump_in_place_left
- disable_jump_landing_ground_effect
- jump_in_place_left
- step_end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A89C7:: @ 82A89C7
- specialvar VAR_RESULT, GetContestLadyCategory
- special Script_BufferContestLadyCategoryAndMonName
- special GetContestLadyMonSpecies
- compare VAR_RESULT, CONTEST_CATEGORY_COOL
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8A0A
- compare VAR_RESULT, CONTEST_CATEGORY_BEAUTY
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8A1D
- compare VAR_RESULT, CONTEST_CATEGORY_CUTE
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8A30
- compare VAR_RESULT, CONTEST_CATEGORY_SMART
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8A43
- compare VAR_RESULT, CONTEST_CATEGORY_TOUGH
- goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8A56
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8A0A:: @ 82A8A0A
- lock
- faceplayer
- waitse
- playmoncry VAR_0x8005, 0
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A96DA, MSGBOX_DEFAULT
- waitmoncry
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8A1D:: @ 82A8A1D
- lock
- faceplayer
- waitse
- playmoncry VAR_0x8005, 0
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A970E, MSGBOX_DEFAULT
- waitmoncry
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8A30:: @ 82A8A30
- lock
- faceplayer
- waitse
- playmoncry VAR_0x8005, 0
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A96F6, MSGBOX_DEFAULT
- waitmoncry
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8A43:: @ 82A8A43
- lock
- faceplayer
- waitse
- playmoncry VAR_0x8005, 0
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A96E6, MSGBOX_DEFAULT
- waitmoncry
- release
- end
-
-LilycoveCity_PokemonCenter_1F_EventScript_2A8A56:: @ 82A8A56
- lock
- faceplayer
- waitse
- playmoncry VAR_0x8005, 0
- msgbox LilycoveCity_PokemonCenter_1F_Text_2A9703, MSGBOX_DEFAULT
- waitmoncry
- release
- end
-
-LilycoveCity_PokemonCenter_1F_Text_2A8A69: @ 82A8A69
- .string "I'm the FAVOR LADY…$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8A7D: @ 82A8A7D
- .string "I've recently developed an obsession\n"
- .string "for {STR_VAR_1} things…$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8AB1: @ 82A8AB1
- .string "Oh…\n"
- .string "Thank you for last time…$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8ACE: @ 82A8ACE
- .string "Before, I think it was {STR_VAR_3}…\p"
- .string "{STR_VAR_3} gave me one {STR_VAR_2},\n"
- .string "saying it was {STR_VAR_1}.\p"
- .string "But it wasn't {STR_VAR_1}.\n"
- .string "Not in the least bit.$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8B36: @ 82A8B36
- .string "Before, {STR_VAR_3} gave me a very\n"
- .string "{STR_VAR_1} {STR_VAR_2}.\p"
- .string "I cherish it now.$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8B69: @ 82A8B69
- .string "Listen, if you have anything that\n"
- .string "is {STR_VAR_1}, will you share it\l"
- .string "with me?$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8BAD: @ 82A8BAD
- .string "…Really?\n"
- .string "What will you give me?$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8BCD: @ 82A8BCD
- .string "Is that so?\n"
- .string "Then, it's good-bye…$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8BEE: @ 82A8BEE
- .string "Oh…\n"
- .string "You're not willing to share?$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8C0F: @ 82A8C0F
- .string "Oh?\n"
- .string "That {STR_VAR_2} is {STR_VAR_1}?\p"
- .string "…Oh, is that right?\p"
- .string "Well, I owe you a thanks anyway.\n"
- .string "I'll try to cherish it…$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8C6F: @ 82A8C6F
- .string "Oh…\p"
- .string "That's a quite {STR_VAR_1}\n"
- .string "{STR_VAR_2}…\p"
- .string "Isn't it nice?\n"
- .string "It's so dreamy…\p"
- .string "Thank you…\n"
- .string "I will cherish this…$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8CC8: @ 82A8CC8
- .string "…Oh, oh, oh…\p"
- .string "This is amazing!\n"
- .string "This really is {STR_VAR_1}!\p"
- .string "I never knew that one {STR_VAR_2}\n"
- .string "could be this {STR_VAR_1}!\p"
- .string "Thank you!\p"
- .string "I will treasure this for the rest\n"
- .string "of my life!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8D5D: @ 82A8D5D
- .string "I'll give you this wonderful item in\n"
- .string "return for your fabulous gift.\p"
- .string "I hope you will cherish it…$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8DBD: @ 82A8DBD
- .string "Oh, you can't have it if you don't have\n"
- .string "the space for it.\p"
- .string "Please come see me when you get\n"
- .string "your BAG organized…$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8E2B: @ 82A8E2B
- .string "I'm the QUIZ LADY!\n"
- .string "I love quizzes!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8E4E: @ 82A8E4E
- .string "Oh?\p"
- .string "I'm waiting for a challenger to answer\n"
- .string "the quiz you made.\p"
- .string "We can chat another time, okay?$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8EAC: @ 82A8EAC
- .string "I'm waiting for someone to challenge\n"
- .string "a quiz this {STR_VAR_1} thought up!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8EEC: @ 82A8EEC
- .string "If you answer correctly, you can win\n"
- .string "fabulous prizes!\p"
- .string "Would you like to take the quiz\n"
- .string "challenge?$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8F4D: @ 82A8F4D
- .string "… … … … … …\n"
- .string "… … … … … …$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8F65: @ 82A8F65
- .string "Oh, how boring!\n"
- .string "Bye-bye!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8F7E: @ 82A8F7E
- .string "Awww!\n"
- .string "You're going to quit?$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8F9A: @ 82A8F9A
- .string "Please take the quiz challenge\n"
- .string "another time!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A8FC7: @ 82A8FC7
- .string "You're amazing! You've got it right!\n"
- .string "You're one sharp customer!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9007: @ 82A9007
- .string "Congratulations!\n"
- .string "You've got the quiz right!\p"
- .string "You've won a prize provided by\n"
- .string "{STR_VAR_1}!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9056: @ 82A9056
- .string "{STR_VAR_1} received\n"
- .string "one {STR_VAR_2}!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A906A: @ 82A906A
- .string "Oh? Your BAG is filled up!\n"
- .string "Come see me when you have room.$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A90A5: @ 82A90A5
- .string "Hmm… Wrong!\n"
- .string "The correct answer is “{STR_VAR_3}”!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A90CD: @ 82A90CD
- .string "Too bad!\p"
- .string "I get to keep the quiz prize\n"
- .string "{STR_VAR_1} now!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A90FB: @ 82A90FB
- .string "Listen, listen!\n"
- .string "Would you like to make your own quiz?$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9131: @ 82A9131
- .string "Oh, I see…\n"
- .string "Well, maybe next time!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9153: @ 82A9153
- .string "Okay, the first thing you have to do\n"
- .string "is pick the prize for the person that\l"
- .string "answers your quiz correctly.\p"
- .string "But beware, if the person taking\n"
- .string "the quiz can't get it right, I get to\l"
- .string "keep the prize!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9212: @ 82A9212
- .string "If you don't choose a prize,\n"
- .string "your quiz can't be made.\p"
- .string "Are you going to quit making\n"
- .string "your quiz?$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9270: @ 82A9270
- .string "Oh, how nice!\n"
- .string "That's a wonderful prize!\p"
- .string "Next, you need to write your quiz\n"
- .string "question and its answer.$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A92D3: @ 82A92D3
- .string "Are you going to quit writing\n"
- .string "your quiz question?$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9305: @ 82A9305
- .string "Are you going to quit choosing\n"
- .string "your quiz answer?$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9336: @ 82A9336
- .string "Thank you!\n"
- .string "You've put together a nice quiz.\p"
- .string "I'll go look for someone who'll take\n"
- .string "your quiz challenge right away.$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A93A7: @ 82A93A7
- .string "I'm the CONTEST LADY!\n"
- .string "I sure do love CONTESTS!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A93D6: @ 82A93D6
- .string "Thanks for your {POKEBLOCK} before!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A93F4: @ 82A93F4
- .string "This is my friend {STR_VAR_1}!\n"
- .string "It's the epitome of {STR_VAR_2}!\p"
- .string "But I think that it will display\n"
- .string "even more {STR_VAR_2}!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9451: @ 82A9451
- .string "So, I need your help!\p"
- .string "Please, may I have one {POKEBLOCK}?\n"
- .string "All I'm asking for is one!\p"
- .string "…Oh, but…\n"
- .string "Don't you have a {POKEBLOCK} CASE?\l"
- .string "That's no good. Next time, then!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A94E8: @ 82A94E8
- .string "So, I need your help!\p"
- .string "Please, may I have one {POKEBLOCK}?\n"
- .string "All I'm asking for is one!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9537: @ 82A9537
- .string "Awww!\n"
- .string "I can't have one {POKEBLOCK}?!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9556: @ 82A9556
- .string "Sheesh!\n"
- .string "What a cheapskate!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9571: @ 82A9571
- .string "Yay!\n"
- .string "Thank you!\p"
- .string "I'll feed my POKéMON your {POKEBLOCK}\n"
- .string "right away.$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A95AD: @ 82A95AD
- .string "…It doesn't seem to have changed\n"
- .string "in any way at all…\p"
- .string "Hmm…\p"
- .string "Oh, well!\n"
- .string "Thank you very much!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9605: @ 82A9605
- .string "Oh, yay!\n"
- .string "It's really delighted!\p"
- .string "I think it really improved {STR_VAR_1}'s\n"
- .string "{STR_VAR_2} quality, too.\p"
- .string "Thank you so much!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9669: @ 82A9669
- .string "Hmm…\p"
- .string "I think we may be ready to enter\n"
- .string "some CONTESTS.\p"
- .string "If you see us in one somewhere,\n"
- .string "I hope you'll cheer for us.$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A96DA: @ 82A96DA
- .string "{STR_VAR_1}: Guguuh!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A96E6: @ 82A96E6
- .string "{STR_VAR_1}: Igigigiiih!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A96F6: @ 82A96F6
- .string "{STR_VAR_1}: Baaarun…$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A9703: @ 82A9703
- .string "{STR_VAR_1}: Pikka!$"
-
-LilycoveCity_PokemonCenter_1F_Text_2A970E: @ 82A970E
- .string "{STR_VAR_1}: Umyaaaan!$"
-
+ .include "data/scripts/lilycove_lady.inc"
.include "data/text/match_call.inc"
.include "data/scripts/apprentice.inc"
diff --git a/data/maps/AncientTomb/scripts.inc b/data/maps/AncientTomb/scripts.inc
index 9bc404af6..48962d957 100644
--- a/data/maps/AncientTomb/scripts.inc
+++ b/data/maps/AncientTomb/scripts.inc
@@ -47,7 +47,7 @@ AncientTomb_EventScript_239033:: @ 8239033
end
AncientTomb_EventScript_239046:: @ 8239046
- msgbox gUnknown_0827304E, MSGBOX_DEFAULT
+ msgbox gText_BigHoleInTheWall, MSGBOX_DEFAULT
releaseall
end
@@ -84,11 +84,11 @@ AncientTomb_EventScript_23905A:: @ 823905A
AncientTomb_EventScript_2390A1:: @ 82390A1
setflag FLAG_DEFEATED_REGISTEEL
- goto AncientTomb_EventScript_27376D
+ goto Common_EventScript_RemoveStaticPokemon
end
AncientTomb_EventScript_2390AA:: @ 82390AA
- setvar VAR_0x8004, 403
- goto AncientTomb_EventScript_273776
+ setvar VAR_0x8004, SPECIES_REGISTEEL
+ goto Common_EventScript_LegendaryFlewAway
end
diff --git a/data/maps/AquaHideout_B1F/scripts.inc b/data/maps/AquaHideout_B1F/scripts.inc
index 589e41612..135926c77 100644
--- a/data/maps/AquaHideout_B1F/scripts.inc
+++ b/data/maps/AquaHideout_B1F/scripts.inc
@@ -51,7 +51,7 @@ AquaHideout_B1F_EventScript_2339EB:: @ 82339EB
AquaHideout_B1F_EventScript_233A2F:: @ 8233A2F
setflag FLAG_DEFEATED_ELECTRODE_1_AQUA_HIDEOUT
- goto AquaHideout_B1F_EventScript_27376D
+ goto Common_EventScript_RemoveStaticPokemon
end
AquaHideout_B1F_EventScript_233A38:: @ 8233A38
@@ -78,7 +78,7 @@ AquaHideout_B1F_EventScript_233A38:: @ 8233A38
AquaHideout_B1F_EventScript_233A7C:: @ 8233A7C
setflag FLAG_DEFEATED_ELECTRODE_2_AQUA_HIDEOUT
- goto AquaHideout_B1F_EventScript_27376D
+ goto Common_EventScript_RemoveStaticPokemon
end
AquaHideout_B1F_EventScript_233A85:: @ 8233A85
diff --git a/data/maps/BattleFrontier_BattleTowerLobby/scripts.inc b/data/maps/BattleFrontier_BattleTowerLobby/scripts.inc
index 9b6a406b8..888faa268 100644
--- a/data/maps/BattleFrontier_BattleTowerLobby/scripts.inc
+++ b/data/maps/BattleFrontier_BattleTowerLobby/scripts.inc
@@ -304,7 +304,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23EA2A:: @ 823EA2A
setvar VAR_TEMP_0, 255
compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_23F0D0
- incrementgamestat 30
+ incrementgamestat GAME_STAT_ENTERED_BATTLE_TOWER
setvar VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 1
goto BattleFrontier_BattleTowerLobby_EventScript_23F0F3
end
@@ -384,7 +384,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23EB93:: @ 823EB93
setvar VAR_TEMP_0, 255
compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_23F0D0
- incrementgamestat 30
+ incrementgamestat GAME_STAT_ENTERED_BATTLE_TOWER
setvar VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 0
goto BattleFrontier_BattleTowerLobby_EventScript_23F0F3
end
@@ -465,7 +465,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23ECFF:: @ 823ECFF
setvar VAR_TEMP_0, 255
compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_23F0D0
- incrementgamestat 30
+ incrementgamestat GAME_STAT_ENTERED_BATTLE_TOWER
setvar VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 0
goto BattleFrontier_BattleTowerLobby_EventScript_23F0F3
end
@@ -548,7 +548,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23EE68:: @ 823EE68
setvar VAR_TEMP_0, 255
compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_23F0D0
- incrementgamestat 30
+ incrementgamestat GAME_STAT_ENTERED_BATTLE_TOWER
specialvar VAR_RESULT, IsWirelessAdapterConnected
compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_23F3E8
@@ -994,7 +994,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23F3A6:: @ 823F3A6
return
BattleFrontier_BattleTowerLobby_EventScript_23F3AF:: @ 823F3AF
- incrementgamestat 30
+ incrementgamestat GAME_STAT_ENTERED_BATTLE_TOWER
setvar VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 0
message BattleFrontier_BattleTowerLobby_Text_24144D
waitmessage
@@ -1057,7 +1057,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23F463:: @ 823F463
return
BattleFrontier_BattleTowerLobby_EventScript_23F496:: @ 823F496
- incrementgamestat 30
+ incrementgamestat GAME_STAT_ENTERED_BATTLE_TOWER
setvar VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 0
message BattleFrontier_BattleTowerLobby_Text_24144D
waitmessage
diff --git a/data/maps/BattleFrontier_Mart/scripts.inc b/data/maps/BattleFrontier_Mart/scripts.inc
index d84b2cb0a..59ba707d8 100644
--- a/data/maps/BattleFrontier_Mart/scripts.inc
+++ b/data/maps/BattleFrontier_Mart/scripts.inc
@@ -4,10 +4,10 @@ BattleFrontier_Mart_MapScripts:: @ 8267ACB
BattleFrontier_Mart_EventScript_267ACC:: @ 8267ACC
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart BattleFrontier_Mart_Pokemart_267AE4
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/BattleFrontier_OutsideEast/scripts.inc b/data/maps/BattleFrontier_OutsideEast/scripts.inc
index b502da8ec..3873c5c01 100644
--- a/data/maps/BattleFrontier_OutsideEast/scripts.inc
+++ b/data/maps/BattleFrontier_OutsideEast/scripts.inc
@@ -145,7 +145,7 @@ BattleFrontier_OutsideEast_EventScript_242CFC:: @ 8242CFC
BattleFrontier_OutsideEast_EventScript_242D60:: @ 8242D60
setflag FLAG_DEFEATED_SUDOWOODO
- goto IslandCave_EventScript_27376D
+ goto Common_EventScript_RemoveStaticPokemon
end
BattleFrontier_OutsideEast_Movement_242D69: @ 8242D69
diff --git a/data/maps/BattleFrontier_PokemonCenter_1F/scripts.inc b/data/maps/BattleFrontier_PokemonCenter_1F/scripts.inc
index c99a0de38..167f9afa0 100644
--- a/data/maps/BattleFrontier_PokemonCenter_1F/scripts.inc
+++ b/data/maps/BattleFrontier_PokemonCenter_1F/scripts.inc
@@ -9,7 +9,7 @@ BattleFrontier_PokemonCenter_1F_MapScript1_267904: @ 8267904
BattleFrontier_PokemonCenter_1F_EventScript_267908:: @ 8267908
setvar VAR_0x800B, 1
- call BattleFrontier_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/BirthIsland_Exterior/scripts.inc b/data/maps/BirthIsland_Exterior/scripts.inc
index 3eb491e0f..b37d60a41 100644
--- a/data/maps/BirthIsland_Exterior/scripts.inc
+++ b/data/maps/BirthIsland_Exterior/scripts.inc
@@ -79,9 +79,9 @@ BirthIsland_Exterior_EventScript_267FC1:: @ 8267FC1
delay 40
waitmoncry
setvar VAR_LAST_TALKED, 2
- setvar VAR_0x8004, 410
- setvar VAR_0x8005, 30
- setvar VAR_0x8006, 0
+ setvar VAR_0x8004, SPECIES_DEOXYS
+ setvar VAR_0x8005, 30 @level
+ setvar VAR_0x8006, ITEM_NONE
special CreateObedientEnemyMon
setflag FLAG_SYS_CTRL_OBJ_DELETE
special BattleSetup_StartLegendaryBattle
@@ -100,13 +100,13 @@ BirthIsland_Exterior_EventScript_267FC1:: @ 8267FC1
BirthIsland_Exterior_EventScript_26803B:: @ 826803B
setflag FLAG_DEFEATED_DEOXYS
- setvar VAR_0x8004, 410
- goto BirthIsland_Exterior_EventScript_273776
+ setvar VAR_0x8004, SPECIES_DEOXYS
+ goto Common_EventScript_LegendaryFlewAway
end
BirthIsland_Exterior_EventScript_268049:: @ 8268049
- setvar VAR_0x8004, 410
- goto BirthIsland_Exterior_EventScript_273776
+ setvar VAR_0x8004, SPECIES_DEOXYS
+ goto Common_EventScript_LegendaryFlewAway
end
BirthIsland_Exterior_Movement_268054: @ 8268054
diff --git a/data/maps/DesertRuins/scripts.inc b/data/maps/DesertRuins/scripts.inc
index 5cadf3ec0..525bdff4a 100644
--- a/data/maps/DesertRuins/scripts.inc
+++ b/data/maps/DesertRuins/scripts.inc
@@ -47,7 +47,7 @@ DesertRuins_EventScript_22D9DB:: @ 822D9DB
end
DesertRuins_EventScript_22D9EE:: @ 822D9EE
- msgbox gUnknown_0827304E, MSGBOX_DEFAULT
+ msgbox gText_BigHoleInTheWall, MSGBOX_DEFAULT
releaseall
end
@@ -84,11 +84,11 @@ DesertRuins_EventScript_22DA02:: @ 822DA02
DesertRuins_EventScript_22DA49:: @ 822DA49
setflag FLAG_DEFEATED_REGIROCK
- goto DesertRuins_EventScript_27376D
+ goto Common_EventScript_RemoveStaticPokemon
end
DesertRuins_EventScript_22DA52:: @ 822DA52
- setvar VAR_0x8004, 401
- goto DesertRuins_EventScript_273776
+ setvar VAR_0x8004, SPECIES_REGIROCK
+ goto Common_EventScript_LegendaryFlewAway
end
diff --git a/data/maps/DewfordTown/scripts.inc b/data/maps/DewfordTown/scripts.inc
index 1711405e1..ac0155df9 100644
--- a/data/maps/DewfordTown/scripts.inc
+++ b/data/maps/DewfordTown/scripts.inc
@@ -124,12 +124,12 @@ DewfordTown_EventScript_1E9660:: @ 81E9660
applymovement EVENT_OBJ_ID_PLAYER, DewfordTown_Movement_1E9911
waitmovement 0
hideobjectat EVENT_OBJ_ID_PLAYER, MAP_DEWFORD_TOWN
- call DewfordTown_EventScript_2720A0
+ call Common_EventScript_PlayBrineysBoatMusic
applymovement 4, DewfordTown_Movement_1E97A2
applymovement EVENT_OBJ_ID_PLAYER, DewfordTown_Movement_1E97A2
waitmovement 0
showobjectat EVENT_OBJ_ID_PLAYER, MAP_ROUTE104
- call DewfordTown_EventScript_2720A8
+ call Common_EventScript_StopBrineysBoatMusic
applymovement EVENT_OBJ_ID_PLAYER, DewfordTown_Movement_1E9914
waitmovement 0
showobjectat EVENT_OBJ_ID_PLAYER, MAP_ROUTE104
@@ -156,11 +156,11 @@ DewfordTown_EventScript_1E96E7:: @ 81E96E7
applymovement EVENT_OBJ_ID_PLAYER, DewfordTown_Movement_1E9911
waitmovement 0
hideobjectat EVENT_OBJ_ID_PLAYER, MAP_DEWFORD_TOWN
- call DewfordTown_EventScript_2720A0
+ call Common_EventScript_PlayBrineysBoatMusic
applymovement 4, DewfordTown_Movement_1E9865
applymovement EVENT_OBJ_ID_PLAYER, DewfordTown_Movement_1E9865
waitmovement 0
- call DewfordTown_EventScript_2720A8
+ call Common_EventScript_StopBrineysBoatMusic
showobjectat EVENT_OBJ_ID_PLAYER, MAP_ROUTE109
applymovement EVENT_OBJ_ID_PLAYER, DewfordTown_Movement_1E9918
waitmovement 0
@@ -619,7 +619,7 @@ DewfordTown_EventScript_1E9952:: @ 81E9952
end
DewfordTown_EventScript_1E997D:: @ 81E997D
- incrementgamestat 2
+ incrementgamestat GAME_STAT_STARTED_TRENDS
compare VAR_0x8004, 0
goto_if_eq DewfordTown_EventScript_1E999E
msgbox DewfordTown_Text_1EA2AA, MSGBOX_DEFAULT
diff --git a/data/maps/DewfordTown_Gym/scripts.inc b/data/maps/DewfordTown_Gym/scripts.inc
index 5601c7477..7e406ea25 100644
--- a/data/maps/DewfordTown_Gym/scripts.inc
+++ b/data/maps/DewfordTown_Gym/scripts.inc
@@ -177,7 +177,7 @@ DewfordTown_Gym_EventScript_1FC7F7:: @ 81FC7F7
compare VAR_PETALBURG_GYM_STATE, 6
call_if_eq DewfordTown_Gym_EventScript_271E84
setvar VAR_0x8008, 2
- call DewfordTown_Gym_EventScript_271F43
+ call Common_EventScript_SetGymTrainers
call DewfordTown_Gym_EventScript_1FC855
closemessage
delay 30
diff --git a/data/maps/DewfordTown_PokemonCenter_1F/scripts.inc b/data/maps/DewfordTown_PokemonCenter_1F/scripts.inc
index be9005d7d..bde0f84fb 100644
--- a/data/maps/DewfordTown_PokemonCenter_1F/scripts.inc
+++ b/data/maps/DewfordTown_PokemonCenter_1F/scripts.inc
@@ -5,12 +5,12 @@ DewfordTown_PokemonCenter_1F_MapScripts:: @ 81FC523
DewfordTown_PokemonCenter_1F_OnTransition: @ 81FC52E
setrespawn HEAL_LOCATION_DEWFORD_TOWN
- call DewfordTown_PokemonCenter_1F_EventScript_2718DE
+ call Common_EventScript_UpdateBrineyLocation
end
DewfordTown_PokemonCenter_1F_EventScript_1FC537:: @ 81FC537
setvar VAR_0x800B, 1
- call DewfordTown_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc b/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc
index b26e0e030..99a1a6eb3 100644
--- a/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc
+++ b/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc
@@ -5,7 +5,7 @@ EverGrandeCity_ChampionsRoom_MapScripts:: @ 82289EF
.byte 0
EverGrandeCity_ChampionsRoom_OnTransition: @ 82289FF
- call Common_EventScript_SetupRivalGender
+ call Common_EventScript_SetupRivalGfxId
end
EverGrandeCity_ChampionsRoom_MapScript2_228A05: @ 8228A05
diff --git a/data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc b/data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc
index 0b292530e..b9dcc07dd 100644
--- a/data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc
@@ -15,7 +15,7 @@ EverGrandeCity_PokemonCenter_1F_EventScript_229A4C:: @ 8229A4C
EverGrandeCity_PokemonCenter_1F_EventScript_229A59:: @ 8229A59
setvar VAR_0x800B, 1
- call EverGrandeCity_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/EverGrandeCity_PokemonLeague_1F/scripts.inc b/data/maps/EverGrandeCity_PokemonLeague_1F/scripts.inc
index f688918ea..25899420f 100644
--- a/data/maps/EverGrandeCity_PokemonLeague_1F/scripts.inc
+++ b/data/maps/EverGrandeCity_PokemonLeague_1F/scripts.inc
@@ -16,7 +16,7 @@ EverGrandeCity_PokemonLeague_1F_EventScript_2295ED:: @ 82295ED
EverGrandeCity_PokemonLeague_1F_EventScript_2295FC:: @ 82295FC
setvar VAR_0x800B, 1
- call EverGrandeCity_PokemonLeague_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
@@ -25,10 +25,10 @@ EverGrandeCity_PokemonLeague_1F_EventScript_2295FC:: @ 82295FC
EverGrandeCity_PokemonLeague_1F_EventScript_22960A:: @ 822960A
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart EverGrandeCity_PokemonLeague_1F_Pokemart_229624
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/FallarborTown_House1/scripts.inc b/data/maps/FallarborTown_House1/scripts.inc
index 2255f90d3..e3299e096 100644
--- a/data/maps/FallarborTown_House1/scripts.inc
+++ b/data/maps/FallarborTown_House1/scripts.inc
@@ -21,8 +21,8 @@ FallarborTown_House1_EventScript_200F38:: @ 8200F38
giveitem_std ITEM_TM27
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_ShowBagIsFull
- setvar VAR_0x8004, 280
- call FallarborTown_House1_EventScript_2723E4
+ setvar VAR_0x8004, ITEM_METEORITE
+ call Common_EventScript_PlayerHandedOverTheItem
setflag FLAG_RECEIVED_TM27
msgbox FallarborTown_House1_Text_2011A5, MSGBOX_DEFAULT
release
diff --git a/data/maps/FallarborTown_Mart/scripts.inc b/data/maps/FallarborTown_Mart/scripts.inc
index bd9de930c..3ae8dc9dd 100644
--- a/data/maps/FallarborTown_Mart/scripts.inc
+++ b/data/maps/FallarborTown_Mart/scripts.inc
@@ -4,10 +4,10 @@ FallarborTown_Mart_MapScripts:: @ 81FFCBE
FallarborTown_Mart_EventScript_1FFCBF:: @ 81FFCBF
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart FallarborTown_Mart_Pokemart_1FFCD8
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/FallarborTown_PokemonCenter_1F/scripts.inc b/data/maps/FallarborTown_PokemonCenter_1F/scripts.inc
index 5dbd35b48..062e6dedc 100644
--- a/data/maps/FallarborTown_PokemonCenter_1F/scripts.inc
+++ b/data/maps/FallarborTown_PokemonCenter_1F/scripts.inc
@@ -5,12 +5,12 @@ FallarborTown_PokemonCenter_1F_MapScripts:: @ 8200BCD
FallarborTown_PokemonCenter_1F_OnTransition: @ 8200BD8
setrespawn HEAL_LOCATION_FALLARBOR_TOWN
- call FallarborTown_PokemonCenter_1F_EventScript_2718DE
+ call Common_EventScript_UpdateBrineyLocation
end
FallarborTown_PokemonCenter_1F_EventScript_200BE1:: @ 8200BE1
setvar VAR_0x800B, 1
- call FallarborTown_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/FarawayIsland_Interior/scripts.inc b/data/maps/FarawayIsland_Interior/scripts.inc
index 3b8f1f88f..9bbf0575d 100644
--- a/data/maps/FarawayIsland_Interior/scripts.inc
+++ b/data/maps/FarawayIsland_Interior/scripts.inc
@@ -136,9 +136,9 @@ FarawayIsland_Interior_EventScript_267DF2:: @ 8267DF2
special sub_81D4BEC
delay 40
waitmoncry
- setvar VAR_0x8004, 151
- setvar VAR_0x8005, 30
- setvar VAR_0x8006, 0
+ setvar VAR_0x8004, SPECIES_MEW
+ setvar VAR_0x8005, 30 @level
+ setvar VAR_0x8006, ITEM_NONE
special CreateObedientEnemyMon
setflag FLAG_SYS_CTRL_OBJ_DELETE
special BattleSetup_StartLegendaryBattle
@@ -159,13 +159,13 @@ FarawayIsland_Interior_EventScript_267DF2:: @ 8267DF2
FarawayIsland_Interior_EventScript_267E96:: @ 8267E96
setflag FLAG_DEFEATED_MEW
- setvar VAR_0x8004, 151
- goto FarawayIsland_Interior_EventScript_273776
+ setvar VAR_0x8004, SPECIES_MEW
+ goto Common_EventScript_LegendaryFlewAway
end
FarawayIsland_Interior_EventScript_267EA4:: @ 8267EA4
- setvar VAR_0x8004, 151
- goto FarawayIsland_Interior_EventScript_273776
+ setvar VAR_0x8004, SPECIES_MEW
+ goto Common_EventScript_LegendaryFlewAway
end
FarawayIsland_Interior_EventScript_267EAF:: @ 8267EAF
diff --git a/data/maps/FortreeCity_DecorationShop/scripts.inc b/data/maps/FortreeCity_DecorationShop/scripts.inc
index 3b0021cf3..14c864ee5 100644
--- a/data/maps/FortreeCity_DecorationShop/scripts.inc
+++ b/data/maps/FortreeCity_DecorationShop/scripts.inc
@@ -12,10 +12,10 @@ FortreeCity_DecorationShop_EventScript_218017:: @ 8218017
FortreeCity_DecorationShop_EventScript_218020:: @ 8218020
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemartdecoration FortreeCity_DecorationShop_PokemartDecor_Desks
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -36,10 +36,10 @@ FortreeCity_DecorationShop_PokemartDecor_Desks: @ 8218038
FortreeCity_DecorationShop_EventScript_21804C:: @ 821804C
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemartdecoration FortreeCity_DecorationShop_PokemartDecor_Chairs
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/FortreeCity_Gym/scripts.inc b/data/maps/FortreeCity_Gym/scripts.inc
index 1b3cf29e9..59ca317a7 100644
--- a/data/maps/FortreeCity_Gym/scripts.inc
+++ b/data/maps/FortreeCity_Gym/scripts.inc
@@ -33,7 +33,7 @@ FortreeCity_Gym_EventScript_2165FD:: @ 82165FD
setflag FLAG_DEFEATED_FORTREE_GYM
setflag FLAG_BADGE06_GET
setvar VAR_0x8008, 6
- call FortreeCity_Gym_EventScript_271F43
+ call Common_EventScript_SetGymTrainers
call FortreeCity_Gym_EventScript_21666A
closemessage
delay 30
diff --git a/data/maps/FortreeCity_Mart/scripts.inc b/data/maps/FortreeCity_Mart/scripts.inc
index 8d2f9b568..30caaeff3 100644
--- a/data/maps/FortreeCity_Mart/scripts.inc
+++ b/data/maps/FortreeCity_Mart/scripts.inc
@@ -4,10 +4,10 @@ FortreeCity_Mart_MapScripts:: @ 8217665
FortreeCity_Mart_EventScript_217666:: @ 8217666
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart FortreeCity_Mart_Pokemart_217680
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/FortreeCity_PokemonCenter_1F/scripts.inc b/data/maps/FortreeCity_PokemonCenter_1F/scripts.inc
index 0c62f97e2..2b7594959 100644
--- a/data/maps/FortreeCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/FortreeCity_PokemonCenter_1F/scripts.inc
@@ -9,7 +9,7 @@ FortreeCity_PokemonCenter_1F_OnTransition: @ 82173E3
FortreeCity_PokemonCenter_1F_EventScript_2173E7:: @ 82173E7
setvar VAR_0x800B, 1
- call FortreeCity_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/GraniteCave_StevensRoom/scripts.inc b/data/maps/GraniteCave_StevensRoom/scripts.inc
index d29ee13f2..c08e4c6af 100644
--- a/data/maps/GraniteCave_StevensRoom/scripts.inc
+++ b/data/maps/GraniteCave_StevensRoom/scripts.inc
@@ -5,8 +5,8 @@ GraniteCave_StevensRoom_EventScript_22DC7B:: @ 822DC7B
lock
faceplayer
msgbox GraniteCave_StevensRoom_Text_22DD5A, MSGBOX_DEFAULT
- setvar VAR_0x8004, 274
- call GraniteCave_StevensRoom_EventScript_2723E4
+ setvar VAR_0x8004, ITEM_LETTER
+ call Common_EventScript_PlayerHandedOverTheItem
setflag FLAG_DELIVERED_STEVEN_LETTER
msgbox GraniteCave_StevensRoom_Text_22DDBD, MSGBOX_DEFAULT
giveitem_std ITEM_TM47
diff --git a/data/maps/IslandCave/scripts.inc b/data/maps/IslandCave/scripts.inc
index 911e882f2..4664b7dcd 100644
--- a/data/maps/IslandCave/scripts.inc
+++ b/data/maps/IslandCave/scripts.inc
@@ -61,7 +61,7 @@ IslandCave_EventScript_238EEF:: @ 8238EEF
end
IslandCave_EventScript_238F13:: @ 8238F13
- msgbox gUnknown_0827304E, MSGBOX_DEFAULT
+ msgbox gText_BigHoleInTheWall, MSGBOX_DEFAULT
releaseall
end
@@ -113,10 +113,10 @@ IslandCave_EventScript_238F58:: @ 8238F58
IslandCave_EventScript_238F9F:: @ 8238F9F
setflag FLAG_DEFEATED_REGICE
- goto IslandCave_EventScript_27376D
+ goto Common_EventScript_RemoveStaticPokemon
end
IslandCave_EventScript_238FA8:: @ 8238FA8
- setvar VAR_0x8004, 402
- goto IslandCave_EventScript_273776
+ setvar VAR_0x8004, SPECIES_REGICE
+ goto Common_EventScript_LegendaryFlewAway
end
diff --git a/data/maps/LavaridgeTown/scripts.inc b/data/maps/LavaridgeTown/scripts.inc
index de1a2bcee..eb9bf1018 100644
--- a/data/maps/LavaridgeTown/scripts.inc
+++ b/data/maps/LavaridgeTown/scripts.inc
@@ -7,8 +7,8 @@ LavaridgeTown_OnTransition: @ 81EA4DE
setflag FLAG_VISITED_LAVARIDGE_TOWN
call_if_set FLAG_FLANNERY_GIVES_BADGE_INFO, LavaridgeTown_EventScript_1EA514
call_if_set FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY, LavaridgeTown_EventScript_1EA53F
- call Common_EventScript_SetupRivalGender
- call Common_EventScript_SetupRivalOnBikeGender
+ call Common_EventScript_SetupRivalGfxId
+ call Common_EventScript_SetupRivalOnBikeGfxId
compare VAR_LAVARIDGE_TOWN_STATE, 1
call_if_eq LavaridgeTown_EventScript_1EA518
compare VAR_LAVARIDGE_TOWN_STATE, 1
@@ -216,7 +216,7 @@ LavaridgeTown_EventScript_1EA6FA:: @ 81EA6FA
end
LavaridgeTown_EventScript_1EA70B:: @ 81EA70B
- incrementgamestat 49
+ incrementgamestat GAME_STAT_ENTERED_HOT_SPRINGS
end
LavaridgeTown_EventScript_1EA70E:: @ 81EA70E
diff --git a/data/maps/LavaridgeTown_Gym_1F/scripts.inc b/data/maps/LavaridgeTown_Gym_1F/scripts.inc
index 8eec8cf43..2399c4d3f 100644
--- a/data/maps/LavaridgeTown_Gym_1F/scripts.inc
+++ b/data/maps/LavaridgeTown_Gym_1F/scripts.inc
@@ -80,7 +80,7 @@ LavaridgeTown_Gym_1F_EventScript_1FE7C1:: @ 81FE7C1
compare VAR_PETALBURG_GYM_STATE, 6
call_if_eq LavaridgeTown_Gym_1F_EventScript_271E84
setvar VAR_0x8008, 4
- call LavaridgeTown_Gym_1F_EventScript_271F43
+ call Common_EventScript_SetGymTrainers
setflag FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WALLY
setvar VAR_LAVARIDGE_TOWN_STATE, 1
call LavaridgeTown_Gym_1F_EventScript_1FE841
diff --git a/data/maps/LavaridgeTown_HerbShop/scripts.inc b/data/maps/LavaridgeTown_HerbShop/scripts.inc
index f6ad8e26b..c7ae5fb9e 100644
--- a/data/maps/LavaridgeTown_HerbShop/scripts.inc
+++ b/data/maps/LavaridgeTown_HerbShop/scripts.inc
@@ -7,7 +7,7 @@ LavaridgeTown_HerbShop_EventScript_1FE4D7:: @ 81FE4D7
message LavaridgeTown_HerbShop_Text_1FE53E
waitmessage
pokemart LavaridgeTown_HerbShop_Pokemart_1FE4F0
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/LavaridgeTown_Mart/scripts.inc b/data/maps/LavaridgeTown_Mart/scripts.inc
index ff9772b1d..d1d2ec4d2 100644
--- a/data/maps/LavaridgeTown_Mart/scripts.inc
+++ b/data/maps/LavaridgeTown_Mart/scripts.inc
@@ -4,10 +4,10 @@ LavaridgeTown_Mart_MapScripts:: @ 81FF9CD
LavaridgeTown_Mart_EventScript_1FF9CE:: @ 81FF9CE
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart LavaridgeTown_Mart_Pokemart_1FF9E8
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc b/data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc
index 4905a5bce..3968430dd 100644
--- a/data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc
+++ b/data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc
@@ -5,12 +5,12 @@ LavaridgeTown_PokemonCenter_1F_MapScripts:: @ 81FFAFA
LavaridgeTown_PokemonCenter_1F_OnTransition: @ 81FFB05
setrespawn HEAL_LOCATION_LAVARIDGE_TOWN
- call LavaridgeTown_PokemonCenter_1F_EventScript_2718DE
+ call Common_EventScript_UpdateBrineyLocation
end
LavaridgeTown_PokemonCenter_1F_EventScript_1FFB0E:: @ 81FFB0E
setvar VAR_0x800B, 1
- call LavaridgeTown_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/LilycoveCity/scripts.inc b/data/maps/LilycoveCity/scripts.inc
index 364b376bf..8edf1b385 100644
--- a/data/maps/LilycoveCity/scripts.inc
+++ b/data/maps/LilycoveCity/scripts.inc
@@ -8,7 +8,7 @@ LilycoveCity_OnTransition: @ 81E2B47
setvar VAR_LINK_CONTEST_ROOM_STATE, 0
setflag FLAG_HIDE_LILYCOVE_CONTEST_HALL_REPORTER
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetWeather15
- call Common_EventScript_SetupRivalGender
+ call Common_EventScript_SetupRivalGfxId
end
LilycoveCity_MapScript1_1E2B61: @ 81E2B61
diff --git a/data/maps/LilycoveCity_ContestLobby/scripts.inc b/data/maps/LilycoveCity_ContestLobby/scripts.inc
index 3a4753d8a..a5ab9601c 100644
--- a/data/maps/LilycoveCity_ContestLobby/scripts.inc
+++ b/data/maps/LilycoveCity_ContestLobby/scripts.inc
@@ -81,7 +81,7 @@ LilycoveCity_ContestLobby_EventScript_21A2E4:: @ 821A2E4
end
LilycoveCity_ContestLobby_EventScript_21A314:: @ 821A314
- incrementgamestat 42
+ incrementgamestat GAME_STAT_RECEIVED_RIBBONS
special sub_80F8390
applymovement 4, LilycoveCity_ContestLobby_Movement_21A41A
waitmovement 0
@@ -253,7 +253,7 @@ LilycoveCity_ContestLobby_EventScript_21A4B4:: @ 821A4B4
end
LilycoveCity_ContestLobby_EventScript_21A4E4:: @ 821A4E4
- incrementgamestat 42
+ incrementgamestat GAME_STAT_RECEIVED_RIBBONS
setflag FLAG_SYS_RIBBON_GET
special sub_80F8390
applymovement 11, LilycoveCity_ContestLobby_Movement_21A547
diff --git a/data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc b/data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc
index c22e0c0ec..83a43a5b6 100644
--- a/data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc
+++ b/data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc
@@ -8,7 +8,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_220624:: @ 8220624
call_if_unset FLAG_TEMP_2, LilycoveCity_DepartmentStoreElevator_EventScript_2207FC
copyvar VAR_0x8005, VAR_DEPT_STORE_FLOOR
special ShowDeptStoreElevatorFloorSelect
- message gUnknown_08272C1D
+ message gText_WhichFloorWouldYouLike
waitmessage
setvar VAR_0x8004, 0
specialvar VAR_RESULT, GetDeptStoreDefaultFloorChoice
diff --git a/data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc b/data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc
index c9e423ebb..654395dde 100644
--- a/data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc
+++ b/data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc
@@ -21,10 +21,10 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_22022B:: @ 822022B
LilycoveCity_DepartmentStoreRooftop_EventScript_22022F:: @ 822022F
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemartdecoration LilycoveCity_DepartmentStoreRooftop_PokemartDecor_220248
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -190,7 +190,7 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_220442:: @ 8220442
end
LilycoveCity_DepartmentStoreRooftop_EventScript_220450:: @ 8220450
- msgbox gUnknown_08272A89, MSGBOX_DEFAULT
+ msgbox gText_TheBagIsFull, MSGBOX_DEFAULT
goto LilycoveCity_DepartmentStoreRooftop_EventScript_22045E
end
diff --git a/data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc b/data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc
index 1e01fc168..a99f92862 100644
--- a/data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc
+++ b/data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc
@@ -34,7 +34,7 @@ LilycoveCity_DepartmentStore_1F_EventScript_21F69C:: @ 821F69C
waitmovement 0
compare VAR_0x8004, 0
goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_21F7A1
- incrementgamestat 46
+ incrementgamestat GAME_STAT_WON_POKEMON_LOTTERY
compare VAR_0x8006, 0
call_if_eq LilycoveCity_DepartmentStore_1F_EventScript_21F77B
compare VAR_0x8006, 1
diff --git a/data/maps/LilycoveCity_DepartmentStore_2F/scripts.inc b/data/maps/LilycoveCity_DepartmentStore_2F/scripts.inc
index 4d4edf373..33f0bff9a 100644
--- a/data/maps/LilycoveCity_DepartmentStore_2F/scripts.inc
+++ b/data/maps/LilycoveCity_DepartmentStore_2F/scripts.inc
@@ -16,10 +16,10 @@ LilycoveCity_DepartmentStore_2F_EventScript_21FB3F:: @ 821FB3F
LilycoveCity_DepartmentStore_2F_EventScript_21FB48:: @ 821FB48
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart LilycoveCity_DepartmentStore_2F_Pokemart_21FB60
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -43,10 +43,10 @@ LilycoveCity_DepartmentStore_2F_Pokemart_21FB60: @ 821FB60
LilycoveCity_DepartmentStore_2F_EventScript_21FB7A:: @ 821FB7A
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart LilycoveCity_DepartmentStore_2F_Pokemart_21FB94
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/LilycoveCity_DepartmentStore_3F/scripts.inc b/data/maps/LilycoveCity_DepartmentStore_3F/scripts.inc
index 053ff4632..23c24b681 100644
--- a/data/maps/LilycoveCity_DepartmentStore_3F/scripts.inc
+++ b/data/maps/LilycoveCity_DepartmentStore_3F/scripts.inc
@@ -4,10 +4,10 @@ LilycoveCity_DepartmentStore_3F_MapScripts:: @ 821FC64
LilycoveCity_DepartmentStore_3F_EventScript_21FC65:: @ 821FC65
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart LilycoveCity_DepartmentStore_3F_Pokemart_21FC7C
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -25,10 +25,10 @@ LilycoveCity_DepartmentStore_3F_Pokemart_21FC7C: @ 821FC7C
LilycoveCity_DepartmentStore_3F_EventScript_21FC8C:: @ 821FC8C
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart LilycoveCity_DepartmentStore_3F_Pokemart_21FCA4
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/LilycoveCity_DepartmentStore_4F/scripts.inc b/data/maps/LilycoveCity_DepartmentStore_4F/scripts.inc
index d78baaf3d..25bc7c33c 100644
--- a/data/maps/LilycoveCity_DepartmentStore_4F/scripts.inc
+++ b/data/maps/LilycoveCity_DepartmentStore_4F/scripts.inc
@@ -16,10 +16,10 @@ LilycoveCity_DepartmentStore_4F_EventScript_21FDFD:: @ 821FDFD
LilycoveCity_DepartmentStore_4F_EventScript_21FE06:: @ 821FE06
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart LilycoveCity_DepartmentStore_4F_Pokemart_21FE20
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -36,10 +36,10 @@ LilycoveCity_DepartmentStore_4F_Pokemart_21FE20: @ 821FE20
LilycoveCity_DepartmentStore_4F_EventScript_21FE2C:: @ 821FE2C
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart LilycoveCity_DepartmentStore_4F_Pokemart_21FE44
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc b/data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc
index ccad13e27..3226e6961 100644
--- a/data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc
+++ b/data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc
@@ -16,10 +16,10 @@ LilycoveCity_DepartmentStore_5F_EventScript_21FF9A:: @ 821FF9A
LilycoveCity_DepartmentStore_5F_EventScript_21FFA6:: @ 821FFA6
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemartdecoration2 LilycoveCity_DepartmentStore_5F_Pokemart_Dolls
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -44,10 +44,10 @@ LilycoveCity_DepartmentStore_5F_Pokemart_Dolls: @ 821FFC0
LilycoveCity_DepartmentStore_5F_EventScript_21FFDC:: @ 821FFDC
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemartdecoration2 LilycoveCity_DepartmentStore_5F_Pokemart_Cushions
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -69,10 +69,10 @@ LilycoveCity_DepartmentStore_5F_Pokemart_Cushions: @ 821FFF4
LilycoveCity_DepartmentStore_5F_EventScript_22000A:: @ 822000A
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemartdecoration2 LilycoveCity_DepartmentStore_5F_Pokemart_Posters
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -94,10 +94,10 @@ LilycoveCity_DepartmentStore_5F_Pokemart_Posters: @ 8220024
LilycoveCity_DepartmentStore_5F_EventScript_22003A:: @ 822003A
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemartdecoration2 LilycoveCity_DepartmentStore_5F_Pokemart_Mats
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc b/data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc
index c2e1deb5d..615153530 100644
--- a/data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc
@@ -26,7 +26,7 @@ LilycoveCity_PokemonCenter_1F_EventScript_21C5E4:: @ 821C5E4
LilycoveCity_PokemonCenter_1F_EventScript_21C5E8:: @ 821C5E8
setvar VAR_0x800B, 1
- call LilycoveCity_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/LittlerootTown/scripts.inc b/data/maps/LittlerootTown/scripts.inc
index d42f277eb..c55f1db86 100644
--- a/data/maps/LittlerootTown/scripts.inc
+++ b/data/maps/LittlerootTown/scripts.inc
@@ -6,7 +6,7 @@ LittlerootTown_MapScripts:: @ 81E7DCB
LittlerootTown_MapScript1_1E7DDB: @ 81E7DDB
setflag FLAG_VISITED_LITTLEROOT_TOWN
- call Common_EventScript_SetupRivalGender
+ call Common_EventScript_SetupRivalGfxId
compare VAR_LITTLEROOT_INTRO_STATE, 2
call_if_eq LittlerootTown_EventScript_1E7E67
call_if_unset FLAG_RESCUED_BIRCH, LittlerootTown_EventScript_1E7E6F
diff --git a/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc b/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc
index 394db3e22..aef95daff 100644
--- a/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc
+++ b/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc
@@ -10,7 +10,7 @@ LittlerootTown_BrendansHouse_2F_MapScript1_1F83EE: @ 81F83EE
call_if_ge LittlerootTown_BrendansHouse_2F_EventScript_1F841A
compare VAR_LITTLEROOT_INTRO_STATE, 4
call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_2926FE
- call LittlerootTown_BrendansHouse_2F_EventScript_275CE1
+ call SecretBase_EventScript_SetDecorationFlags
setvar VAR_SECRET_BASE_INITIALIZED, 0
end
@@ -50,7 +50,7 @@ LittlerootTown_BrendansHouse_2F_MapScript2_1F846A: @ 81F846A
LittlerootTown_BrendansHouse_2F_EventScript_1F8474:: @ 81F8474
checkplayergender
compare VAR_RESULT, MALE
- goto_if_eq EventScript_275D0C
+ goto_if_eq SecretBase_EventScript_InitDecorations
end
LittlerootTown_BrendansHouse_2F_EventScript_1F8481:: @ 81F8481
@@ -271,7 +271,7 @@ LittlerootTown_BrendansHouse_2F_EventScript_1F863F:: @ 81F863F
end
LittlerootTown_BrendansHouse_2F_EventScript_1F864C:: @ 81F864C
- msgbox gUnknown_08272CD5, MSGBOX_DEFAULT
+ msgbox gText_PokemonTrainerSchoolEmail, MSGBOX_DEFAULT
releaseall
end
diff --git a/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc b/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc
index 13fefa5a3..997a4e2c1 100644
--- a/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc
+++ b/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc
@@ -10,7 +10,7 @@ LittlerootTown_MaysHouse_2F_MapScript1_1F92A1: @ 81F92A1
call_if_ge LittlerootTown_MaysHouse_2F_EventScript_1F92CD
compare VAR_LITTLEROOT_INTRO_STATE, 4
call_if_eq LittlerootTown_MaysHouse_2F_EventScript_2926FE
- call LittlerootTown_MaysHouse_2F_EventScript_275CE1
+ call SecretBase_EventScript_SetDecorationFlags
setvar VAR_SECRET_BASE_INITIALIZED, 0
end
@@ -51,7 +51,7 @@ LittlerootTown_MaysHouse_2F_MapScript2_1F931D: @ 81F931D
LittlerootTown_MaysHouse_2F_EventScript_1F9327:: @ 81F9327
checkplayergender
compare VAR_RESULT, FEMALE
- goto_if_eq EventScript_275D0C
+ goto_if_eq SecretBase_EventScript_InitDecorations
end
LittlerootTown_MaysHouse_2F_EventScript_1F9334:: @ 81F9334
@@ -307,7 +307,7 @@ EventScript_PlayerPCFemale:: @ 81F9553
end
LittlerootTown_MaysHouse_2F_EventScript_1F956C:: @ 81F956C
- msgbox gUnknown_08272CD5, MSGBOX_DEFAULT
+ msgbox gText_PokemonTrainerSchoolEmail, MSGBOX_DEFAULT
releaseall
end
diff --git a/data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc b/data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc
index 9949df08c..b0275642c 100644
--- a/data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc
+++ b/data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc
@@ -5,7 +5,7 @@ LittlerootTown_ProfessorBirchsLab_MapScripts:: @ 81F9C91
.byte 0
LittlerootTown_ProfessorBirchsLab_MapScript1_1F9CA1: @ 81F9CA1
- call Common_EventScript_SetupRivalGender
+ call Common_EventScript_SetupRivalGfxId
call LittlerootTown_ProfessorBirchsLab_EventScript_2720AD
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_1F9CF7
@@ -107,7 +107,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1F9DDB:: @ 81F9DDB
LittlerootTown_ProfessorBirchsLab_EventScript_1F9E07:: @ 81F9E07
setvar VAR_0x8004, 0
- call Common_EventScript_NameReceivedPokemon
+ call Common_EventScript_NameReceivedPartyMon
goto LittlerootTown_ProfessorBirchsLab_EventScript_1F9E17
end
@@ -341,7 +341,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA06C:: @ 81FA06C
compare VAR_RESULT, 1
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA0CC
erasemonpic
- goto LittlerootTown_ProfessorBirchsLab_EventScript_273811
+ goto Common_EventScript_NoMoreRoomForPokemon
end
LittlerootTown_ProfessorBirchsLab_EventScript_1FA0A1:: @ 81FA0A1
@@ -350,8 +350,8 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA0A1:: @ 81FA0A1
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA0FD
- call LittlerootTown_ProfessorBirchsLab_EventScript_27378B
- call Common_EventScript_NameReceivedPokemon
+ call Common_EventScript_GetGiftMonPartySlot
+ call Common_EventScript_NameReceivedPartyMon
goto LittlerootTown_ProfessorBirchsLab_EventScript_1FA0FD
end
@@ -361,7 +361,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA0CC:: @ 81FA0CC
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA0F2
- call LittlerootTown_ProfessorBirchsLab_EventScript_273797
+ call Common_EventScript_NameReceivedBoxMon
goto LittlerootTown_ProfessorBirchsLab_EventScript_1FA0F2
end
@@ -386,7 +386,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA10D:: @ 81FA10D
compare VAR_RESULT, 1
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA16D
erasemonpic
- goto LittlerootTown_ProfessorBirchsLab_EventScript_273811
+ goto Common_EventScript_NoMoreRoomForPokemon
end
LittlerootTown_ProfessorBirchsLab_EventScript_1FA142:: @ 81FA142
@@ -395,8 +395,8 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA142:: @ 81FA142
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA19E
- call LittlerootTown_ProfessorBirchsLab_EventScript_27378B
- call Common_EventScript_NameReceivedPokemon
+ call Common_EventScript_GetGiftMonPartySlot
+ call Common_EventScript_NameReceivedPartyMon
goto LittlerootTown_ProfessorBirchsLab_EventScript_1FA19E
end
@@ -406,7 +406,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA16D:: @ 81FA16D
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA193
- call LittlerootTown_ProfessorBirchsLab_EventScript_273797
+ call Common_EventScript_NameReceivedBoxMon
goto LittlerootTown_ProfessorBirchsLab_EventScript_1FA193
end
@@ -431,7 +431,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA1AE:: @ 81FA1AE
compare VAR_RESULT, 1
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA20E
erasemonpic
- goto LittlerootTown_ProfessorBirchsLab_EventScript_273811
+ goto Common_EventScript_NoMoreRoomForPokemon
end
LittlerootTown_ProfessorBirchsLab_EventScript_1FA1E3:: @ 81FA1E3
@@ -440,8 +440,8 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA1E3:: @ 81FA1E3
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA23F
- call LittlerootTown_ProfessorBirchsLab_EventScript_27378B
- call Common_EventScript_NameReceivedPokemon
+ call Common_EventScript_GetGiftMonPartySlot
+ call Common_EventScript_NameReceivedPartyMon
goto LittlerootTown_ProfessorBirchsLab_EventScript_1FA23F
end
@@ -451,7 +451,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA20E:: @ 81FA20E
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA234
- call LittlerootTown_ProfessorBirchsLab_EventScript_273797
+ call Common_EventScript_NameReceivedBoxMon
goto LittlerootTown_ProfessorBirchsLab_EventScript_1FA234
end
diff --git a/data/maps/MarineCave_End/scripts.inc b/data/maps/MarineCave_End/scripts.inc
index be3a6a57b..2fadf18ca 100644
--- a/data/maps/MarineCave_End/scripts.inc
+++ b/data/maps/MarineCave_End/scripts.inc
@@ -55,12 +55,12 @@ MarineCave_End_EventScript_23B01B:: @ 823B01B
MarineCave_End_EventScript_23B084:: @ 823B084
setvar VAR_SHOULD_END_UNUSUAL_WEATHER, 1
setflag FLAG_DEFEATED_KYOGRE
- goto MarineCave_End_EventScript_27376D
+ goto Common_EventScript_RemoveStaticPokemon
end
MarineCave_End_EventScript_23B092:: @ 823B092
- setvar VAR_0x8004, 404
- goto MarineCave_End_EventScript_273776
+ setvar VAR_0x8004, SPECIES_KYOGRE
+ goto Common_EventScript_LegendaryFlewAway
end
MarineCave_End_Movement_23B09D: @ 823B09D
diff --git a/data/maps/MauvilleCity_BikeShop/scripts.inc b/data/maps/MauvilleCity_BikeShop/scripts.inc
index a5b20cf60..4c4afd8e2 100644
--- a/data/maps/MauvilleCity_BikeShop/scripts.inc
+++ b/data/maps/MauvilleCity_BikeShop/scripts.inc
@@ -86,7 +86,7 @@ MauvilleCity_BikeShop_EventScript_20ECE5:: @ 820ECE5
end
MauvilleCity_BikeShop_EventScript_20ECEF:: @ 820ECEF
- incrementgamestat 4
+ incrementgamestat GAME_STAT_TRADED_BIKES
msgbox MauvilleCity_BikeShop_Text_20F294, MSGBOX_DEFAULT
takeitem ITEM_ACRO_BIKE, 1
giveitem_std ITEM_MACH_BIKE
@@ -94,7 +94,7 @@ MauvilleCity_BikeShop_EventScript_20ECEF:: @ 820ECEF
end
MauvilleCity_BikeShop_EventScript_20ED10:: @ 820ED10
- incrementgamestat 4
+ incrementgamestat GAME_STAT_TRADED_BIKES
msgbox MauvilleCity_BikeShop_Text_20F263, MSGBOX_DEFAULT
takeitem ITEM_MACH_BIKE, 1
giveitem_std ITEM_ACRO_BIKE
diff --git a/data/maps/MauvilleCity_Gym/scripts.inc b/data/maps/MauvilleCity_Gym/scripts.inc
index 811cdc9de..10837e269 100644
--- a/data/maps/MauvilleCity_Gym/scripts.inc
+++ b/data/maps/MauvilleCity_Gym/scripts.inc
@@ -98,7 +98,7 @@ MauvilleCity_Gym_EventScript_20DF2B:: @ 820DF2B
compare VAR_PETALBURG_GYM_STATE, 6
call_if_eq MauvilleCity_Gym_EventScript_271E84
setvar VAR_0x8008, 3
- call MauvilleCity_Gym_EventScript_271F43
+ call Common_EventScript_SetGymTrainers
special MauvilleGymSpecial3
special DrawWholeMapView
playse SE_KI_GASYAN
diff --git a/data/maps/MauvilleCity_Mart/scripts.inc b/data/maps/MauvilleCity_Mart/scripts.inc
index 44e36489a..25d52e015 100644
--- a/data/maps/MauvilleCity_Mart/scripts.inc
+++ b/data/maps/MauvilleCity_Mart/scripts.inc
@@ -4,10 +4,10 @@ MauvilleCity_Mart_MapScripts:: @ 82110E5
MauvilleCity_Mart_EventScript_2110E6:: @ 82110E6
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart MauvilleCity_Mart_Pokemart_211100
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc b/data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc
index 50250de8e..6343bd090 100644
--- a/data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc
@@ -5,7 +5,7 @@ MauvilleCity_PokemonCenter_1F_MapScripts:: @ 8210E5B
MauvilleCity_PokemonCenter_1F_OnTransition: @ 8210E66
setrespawn HEAL_LOCATION_MAUVILLE_CITY
- call MauvilleCity_PokemonCenter_1F_EventScript_2718DE
+ call Common_EventScript_UpdateBrineyLocation
goto MauvilleCity_PokemonCenter_1F_EventScript_210E74
end
@@ -15,7 +15,7 @@ MauvilleCity_PokemonCenter_1F_EventScript_210E74:: @ 8210E74
MauvilleCity_PokemonCenter_1F_EventScript_210E78:: @ 8210E78
setvar VAR_0x800B, 1
- call MauvilleCity_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/MossdeepCity_Gym/scripts.inc b/data/maps/MossdeepCity_Gym/scripts.inc
index 3779fa8d2..0b0bed197 100644
--- a/data/maps/MossdeepCity_Gym/scripts.inc
+++ b/data/maps/MossdeepCity_Gym/scripts.inc
@@ -65,7 +65,7 @@ MossdeepCity_Gym_EventScript_2208D1:: @ 82208D1
clearflag FLAG_HIDE_SLATEPORT_CITY_STERNS_SHIPYARD_MR_BRINEY
clearflag FLAG_UNKNOWN_0x393
setvar VAR_0x8008, 7
- call MossdeepCity_Gym_EventScript_271F43
+ call Common_EventScript_SetGymTrainers
clearflag FLAG_HIDE_SLATEPORT_CITY_HARBOR_PATRONS
clearflag FLAG_HIDE_MOSSDEEP_CITY_TEAM_MAGMA
clearflag FLAG_HIDE_MOSSDEEP_CITY_SPACE_CENTER_1F_TEAM_MAGMA
diff --git a/data/maps/MossdeepCity_Mart/scripts.inc b/data/maps/MossdeepCity_Mart/scripts.inc
index 11c911c45..1a555af48 100644
--- a/data/maps/MossdeepCity_Mart/scripts.inc
+++ b/data/maps/MossdeepCity_Mart/scripts.inc
@@ -4,10 +4,10 @@ MossdeepCity_Mart_MapScripts:: @ 82223C7
MossdeepCity_Mart_EventScript_2223C8:: @ 82223C8
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart MossdeepCity_Mart_Pokemart_2223E0
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc b/data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc
index 3806bfc5a..6611238ab 100644
--- a/data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc
@@ -9,7 +9,7 @@ MossdeepCity_PokemonCenter_1F_OnTransition: @ 822224A
MossdeepCity_PokemonCenter_1F_EventScript_22224E:: @ 822224E
setvar VAR_0x800B, 1
- call MossdeepCity_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/MossdeepCity_StevensHouse/scripts.inc b/data/maps/MossdeepCity_StevensHouse/scripts.inc
index 62ddcf9ca..677f1d382 100644
--- a/data/maps/MossdeepCity_StevensHouse/scripts.inc
+++ b/data/maps/MossdeepCity_StevensHouse/scripts.inc
@@ -90,7 +90,7 @@ MossdeepCity_StevensHouse_EventScript_222865:: @ 8222865
goto_if_eq MossdeepCity_StevensHouse_EventScript_222895
compare VAR_RESULT, 1
goto_if_eq MossdeepCity_StevensHouse_EventScript_2228BD
- goto MossdeepCity_StevensHouse_EventScript_273811
+ goto Common_EventScript_NoMoreRoomForPokemon
end
MossdeepCity_StevensHouse_EventScript_222895:: @ 8222895
@@ -98,8 +98,8 @@ MossdeepCity_StevensHouse_EventScript_222895:: @ 8222895
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq MossdeepCity_StevensHouse_EventScript_222901
- call MossdeepCity_StevensHouse_EventScript_27378B
- call Common_EventScript_NameReceivedPokemon
+ call Common_EventScript_GetGiftMonPartySlot
+ call Common_EventScript_NameReceivedPartyMon
goto MossdeepCity_StevensHouse_EventScript_222901
end
@@ -108,7 +108,7 @@ MossdeepCity_StevensHouse_EventScript_2228BD:: @ 82228BD
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq MossdeepCity_StevensHouse_EventScript_2228E0
- call MossdeepCity_StevensHouse_EventScript_273797
+ call Common_EventScript_NameReceivedBoxMon
goto MossdeepCity_StevensHouse_EventScript_2228E0
end
diff --git a/data/maps/MtChimney_CableCarStation/scripts.inc b/data/maps/MtChimney_CableCarStation/scripts.inc
index 444f62d9f..4b8cd3fe5 100644
--- a/data/maps/MtChimney_CableCarStation/scripts.inc
+++ b/data/maps/MtChimney_CableCarStation/scripts.inc
@@ -46,7 +46,7 @@ MtChimney_CableCarStation_EventScript_22AC6C:: @ 822AC6C
waitmovement 0
setvar VAR_0x8004, 1
setvar VAR_CABLE_CAR_STATION_STATE, 2
- incrementgamestat 48
+ incrementgamestat GAME_STAT_RODE_CABLE_CAR
special CableCarWarp
special CableCar
waitstate
diff --git a/data/maps/NavelRock_Bottom/scripts.inc b/data/maps/NavelRock_Bottom/scripts.inc
index f3c244e3d..c67c9897c 100644
--- a/data/maps/NavelRock_Bottom/scripts.inc
+++ b/data/maps/NavelRock_Bottom/scripts.inc
@@ -52,9 +52,9 @@ NavelRock_Bottom_EventScript_2692A2:: @ 82692A2
playmoncry SPECIES_LUGIA, 2
waitmoncry
delay 20
- setvar VAR_0x8004, 249
- setvar VAR_0x8005, 70
- setvar VAR_0x8006, 0
+ setvar VAR_0x8004, SPECIES_LUGIA
+ setvar VAR_0x8005, 70 @level
+ setvar VAR_0x8006, ITEM_NONE
special CreateObedientEnemyMon
setflag FLAG_SYS_CTRL_OBJ_DELETE
special BattleSetup_StartLegendaryBattle
@@ -73,11 +73,11 @@ NavelRock_Bottom_EventScript_2692A2:: @ 82692A2
NavelRock_Bottom_EventScript_269336:: @ 8269336
setflag FLAG_DEFEATED_LUGIA
- setvar VAR_0x8004, 249
- goto NavelRock_Bottom_EventScript_273776
+ setvar VAR_0x8004, SPECIES_LUGIA
+ goto Common_EventScript_LegendaryFlewAway
end
NavelRock_Bottom_EventScript_269344:: @ 8269344
- setvar VAR_0x8004, 249
- goto NavelRock_Bottom_EventScript_273776
+ setvar VAR_0x8004, SPECIES_LUGIA
+ goto Common_EventScript_LegendaryFlewAway
end
diff --git a/data/maps/NavelRock_Top/scripts.inc b/data/maps/NavelRock_Top/scripts.inc
index 816e20206..577d2cdd3 100644
--- a/data/maps/NavelRock_Top/scripts.inc
+++ b/data/maps/NavelRock_Top/scripts.inc
@@ -56,9 +56,9 @@ NavelRock_Top_EventScript_26916F:: @ 826916F
applymovement 1, NavelRock_Top_Movement_26923A
waitmovement 0
special RemoveCameraObject
- setvar VAR_0x8004, 250
- setvar VAR_0x8005, 70
- setvar VAR_0x8006, 0
+ setvar VAR_0x8004, SPECIES_HO_OH
+ setvar VAR_0x8005, 70 @level
+ setvar VAR_0x8006, ITEM_NONE
special CreateObedientEnemyMon
setflag FLAG_SYS_CTRL_OBJ_DELETE
special BattleSetup_StartLegendaryBattle
@@ -78,13 +78,13 @@ NavelRock_Top_EventScript_26916F:: @ 826916F
NavelRock_Top_EventScript_269217:: @ 8269217
setflag FLAG_DEFEATED_HO_OH
- setvar VAR_0x8004, 250
- goto NavelRock_Top_EventScript_273776
+ setvar VAR_0x8004, SPECIES_HO_OH
+ goto Common_EventScript_LegendaryFlewAway
end
NavelRock_Top_EventScript_269225:: @ 8269225
- setvar VAR_0x8004, 250
- goto NavelRock_Top_EventScript_273776
+ setvar VAR_0x8004, SPECIES_HO_OH
+ goto Common_EventScript_LegendaryFlewAway
end
NavelRock_Top_Movement_269230: @ 8269230
diff --git a/data/maps/NewMauville_Inside/scripts.inc b/data/maps/NewMauville_Inside/scripts.inc
index 5d871f170..427b0ed72 100644
--- a/data/maps/NewMauville_Inside/scripts.inc
+++ b/data/maps/NewMauville_Inside/scripts.inc
@@ -202,7 +202,7 @@ NewMauville_Inside_EventScript_2377AF:: @ 82377AF
NewMauville_Inside_EventScript_2377F3:: @ 82377F3
setflag FLAG_DEFEATED_VOLTORB_1_NEW_MAUVILLE
- goto NewMauville_Inside_EventScript_27376D
+ goto Common_EventScript_RemoveStaticPokemon
end
NewMauville_Inside_EventScript_2377FC:: @ 82377FC
@@ -229,7 +229,7 @@ NewMauville_Inside_EventScript_2377FC:: @ 82377FC
NewMauville_Inside_EventScript_237840:: @ 8237840
setflag FLAG_DEFEATED_VOLTORB_2_NEW_MAUVILLE
- goto NewMauville_Inside_EventScript_27376D
+ goto Common_EventScript_RemoveStaticPokemon
end
NewMauville_Inside_EventScript_237849:: @ 8237849
@@ -256,7 +256,7 @@ NewMauville_Inside_EventScript_237849:: @ 8237849
NewMauville_Inside_EventScript_23788D:: @ 823788D
setflag FLAG_DEFEATED_VOLTORB_3_NEW_MAUVILLE
- goto NewMauville_Inside_EventScript_27376D
+ goto Common_EventScript_RemoveStaticPokemon
end
NewMauville_Inside_Text_237896: @ 8237896
diff --git a/data/maps/OldaleTown/scripts.inc b/data/maps/OldaleTown/scripts.inc
index 71b930b83..655081dc4 100644
--- a/data/maps/OldaleTown/scripts.inc
+++ b/data/maps/OldaleTown/scripts.inc
@@ -3,7 +3,7 @@ OldaleTown_MapScripts:: @ 81E8EA2
.byte 0
OldaleTown_OnTransition: @ 81E8EA8
- call Common_EventScript_SetupRivalGender
+ call Common_EventScript_SetupRivalGfxId
setflag FLAG_VISITED_OLDALE_TOWN
call_if_unset FLAG_ADVENTURE_STARTED, OldaleTown_EventScript_1E8ED2
call_if_unset FLAG_RECEIVED_POTION_OLDALE, OldaleTown_EventScript_1E8EDE
diff --git a/data/maps/OldaleTown_Mart/scripts.inc b/data/maps/OldaleTown_Mart/scripts.inc
index 980b0e4d6..38b978d45 100644
--- a/data/maps/OldaleTown_Mart/scripts.inc
+++ b/data/maps/OldaleTown_Mart/scripts.inc
@@ -4,11 +4,11 @@ OldaleTown_Mart_MapScripts:: @ 81FC23F
OldaleTown_Mart_EventScript_1FC240:: @ 81FC240
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
goto_if_set FLAG_ADVENTURE_STARTED, OldaleTown_Mart_EventScript_1FC26C
pokemart OldaleTown_Mart_Pokemart_1FC260
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -23,7 +23,7 @@ OldaleTown_Mart_Pokemart_1FC260: @ 81FC260
OldaleTown_Mart_EventScript_1FC26C:: @ 81FC26C
pokemart OldaleTown_Mart_Pokemart_1FC27C
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/OldaleTown_PokemonCenter_1F/scripts.inc b/data/maps/OldaleTown_PokemonCenter_1F/scripts.inc
index 2396573dc..87c8693a7 100644
--- a/data/maps/OldaleTown_PokemonCenter_1F/scripts.inc
+++ b/data/maps/OldaleTown_PokemonCenter_1F/scripts.inc
@@ -5,12 +5,12 @@ OldaleTown_PokemonCenter_1F_MapScripts:: @ 81FC006
OldaleTown_PokemonCenter_1F_OnTransition: @ 81FC011
setrespawn HEAL_LOCATION_OLDALE_TOWN
- call OldaleTown_PokemonCenter_1F_EventScript_2718DE
+ call Common_EventScript_UpdateBrineyLocation
end
OldaleTown_PokemonCenter_1F_EventScript_1FC01A:: @ 81FC01A
setvar VAR_0x800B, 1
- call OldaleTown_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc b/data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc
index f4fe115e5..1a30d620b 100644
--- a/data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc
+++ b/data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc
@@ -9,7 +9,7 @@ PacifidlogTown_PokemonCenter_1F_OnTransition: @ 82034B2
PacifidlogTown_PokemonCenter_1F_EventScript_2034B6:: @ 82034B6
setvar VAR_0x800B, 1
- call PacifidlogTown_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/PetalburgCity_Gym/scripts.inc b/data/maps/PetalburgCity_Gym/scripts.inc
index 749ed18f2..6bc1426ae 100644
--- a/data/maps/PetalburgCity_Gym/scripts.inc
+++ b/data/maps/PetalburgCity_Gym/scripts.inc
@@ -423,7 +423,7 @@ PetalburgCity_Gym_EventScript_204E3B:: @ 8204E3B
setflag FLAG_HIDE_MAUVILLE_GYM_WATTSON
clearflag FLAG_HIDE_MAUVILLE_CITY_WATTSON
setvar VAR_0x8008, 5
- call PetalburgCity_Gym_EventScript_271F43
+ call Common_EventScript_SetGymTrainers
clearflag FLAG_HIDE_DEWFORD_HALL_SLUDGE_BOMB_MAN
call PetalburgCity_Gym_EventScript_2048FF
special DrawWholeMapView
diff --git a/data/maps/PetalburgCity_Mart/scripts.inc b/data/maps/PetalburgCity_Mart/scripts.inc
index 2bd72b69e..0b4d9808f 100644
--- a/data/maps/PetalburgCity_Mart/scripts.inc
+++ b/data/maps/PetalburgCity_Mart/scripts.inc
@@ -4,11 +4,11 @@ PetalburgCity_Mart_MapScripts:: @ 8207D68
PetalburgCity_Mart_EventScript_207D69:: @ 8207D69
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
goto_if_set FLAG_PETALBURG_MART_EXPANDED_ITEMS, PetalburgCity_Mart_EventScript_207DA6
pokemart PetalburgCity_Mart_Pokemart_207D8C
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -31,7 +31,7 @@ PetalburgCity_Mart_Pokemart_207D8C: @ 8207D8C
PetalburgCity_Mart_EventScript_207DA6:: @ 8207DA6
pokemart PetalburgCity_Mart_Pokemart_207DB8
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc b/data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc
index 286b9f7d9..85a16914f 100644
--- a/data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc
@@ -5,12 +5,12 @@ PetalburgCity_PokemonCenter_1F_MapScripts:: @ 82079E8
PetalburgCity_PokemonCenter_1F_OnTransition: @ 82079F3
setrespawn HEAL_LOCATION_PETALBURG_CITY
- call PetalburgCity_PokemonCenter_1F_EventScript_2718DE
+ call Common_EventScript_UpdateBrineyLocation
end
PetalburgCity_PokemonCenter_1F_EventScript_2079FC:: @ 82079FC
setvar VAR_0x800B, 1
- call PetalburgCity_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/Route103/scripts.inc b/data/maps/Route103/scripts.inc
index 36b2c6c14..84e7ad98b 100644
--- a/data/maps/Route103/scripts.inc
+++ b/data/maps/Route103/scripts.inc
@@ -4,7 +4,7 @@ Route103_MapScripts:: @ 81EC38E
.byte 0
Route103_OnTransition: @ 81EC399
- call Common_EventScript_SetupRivalGender
+ call Common_EventScript_SetupRivalGfxId
call Route103_EventScript_2720AD
end
diff --git a/data/maps/Route104/scripts.inc b/data/maps/Route104/scripts.inc
index fd195b973..74a7e3ddf 100644
--- a/data/maps/Route104/scripts.inc
+++ b/data/maps/Route104/scripts.inc
@@ -13,7 +13,7 @@ Route104_EventScript_1ECC47:: @ 81ECC47
end
Route104_OnTransition: @ 81ECC4E
- call Common_EventScript_SetupRivalGender
+ call Common_EventScript_SetupRivalGfxId
call Route104_EventScript_1ECC78
call Route104_EventScript_1ECC5E
end
@@ -364,7 +364,7 @@ Route104_EventScript_1ED099:: @ 81ED099
applymovement EVENT_OBJ_ID_PLAYER, Route104_Movement_1ED34F
waitmovement 0
hideobjectat EVENT_OBJ_ID_PLAYER, MAP_ROUTE104
- call Route104_EventScript_2720A0
+ call Common_EventScript_PlayBrineysBoatMusic
goto_if_set FLAG_ENABLE_NORMAN_MATCH_CALL, Route104_EventScript_1ED0D9
goto_if_unset FLAG_ENABLE_NORMAN_MATCH_CALL, Route104_EventScript_1ED0EF
end
@@ -398,7 +398,7 @@ Route104_EventScript_1ED139:: @ 81ED139
delay 50
applymovement EVENT_OBJ_ID_PLAYER, Route104_Movement_1ED353
waitmovement 0
- call Route104_EventScript_2720A8
+ call Common_EventScript_StopBrineysBoatMusic
showobjectat EVENT_OBJ_ID_PLAYER, MAP_DEWFORD_TOWN
applymovement EVENT_OBJ_ID_PLAYER, Route104_Movement_1ED355
waitmovement 0
@@ -410,7 +410,7 @@ Route104_EventScript_1ED139:: @ 81ED139
waitmovement 0
addobject 4
clearflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN
- call Route104_EventScript_2720A8
+ call Common_EventScript_StopBrineysBoatMusic
setflag FLAG_HIDE_ROUTE_104_MR_BRINEY_BOAT
hideobjectat 7, MAP_ROUTE104
copyvar VAR_BRINEY_LOCATION, VAR_0x8008
diff --git a/data/maps/Route104_PrettyPetalFlowerShop/scripts.inc b/data/maps/Route104_PrettyPetalFlowerShop/scripts.inc
index c70318fc9..0b8d2217f 100644
--- a/data/maps/Route104_PrettyPetalFlowerShop/scripts.inc
+++ b/data/maps/Route104_PrettyPetalFlowerShop/scripts.inc
@@ -46,10 +46,10 @@ Route104_PrettyPetalFlowerShop_EventScript_22A3DB:: @ 822A3DB
return
Route104_PrettyPetalFlowerShop_EventScript_22A3E4:: @ 822A3E4
- message gUnknown_08272A52
+ message gText_PlayerWhatCanIDoForYou
waitmessage
pokemartdecoration2 Route104_PrettyPetalFlowerShop_Pokemart_Plants
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/Route109/scripts.inc b/data/maps/Route109/scripts.inc
index e4c04f0d2..a74c3223d 100644
--- a/data/maps/Route109/scripts.inc
+++ b/data/maps/Route109/scripts.inc
@@ -34,12 +34,12 @@ Route109_EventScript_1EE7C5:: @ 81EE7C5
Route109_EventScript_1EE7D5:: @ 81EE7D5
hideobjectat EVENT_OBJ_ID_PLAYER, MAP_ROUTE109
- call Route109_EventScript_2720A0
+ call Common_EventScript_PlayBrineysBoatMusic
applymovement 1, Route109_Movement_1EE84F
applymovement EVENT_OBJ_ID_PLAYER, Route109_Movement_1EE84F
waitmovement 0
delay 50
- call Route109_EventScript_2720A8
+ call Common_EventScript_StopBrineysBoatMusic
showobjectat EVENT_OBJ_ID_PLAYER, MAP_DEWFORD_TOWN
applymovement EVENT_OBJ_ID_PLAYER, Route109_Movement_1EE900
waitmovement 0
diff --git a/data/maps/Route110/scripts.inc b/data/maps/Route110/scripts.inc
index 67fbbd0a8..140687c2e 100644
--- a/data/maps/Route110/scripts.inc
+++ b/data/maps/Route110/scripts.inc
@@ -9,8 +9,8 @@ Route110_MapScript1_1EF279: @ 81EF279
end
Route110_OnTransition: @ 81EF27D
- call Common_EventScript_SetupRivalGender
- call Common_EventScript_SetupRivalOnBikeGender
+ call Common_EventScript_SetupRivalGfxId
+ call Common_EventScript_SetupRivalOnBikeGfxId
compare VAR_CYCLING_CHALLENGE_STATE, 1
call_if_eq Route110_EventScript_1EF293
end
diff --git a/data/maps/Route111/scripts.inc b/data/maps/Route111/scripts.inc
index 6e820d426..88b2f1add 100644
--- a/data/maps/Route111/scripts.inc
+++ b/data/maps/Route111/scripts.inc
@@ -209,7 +209,7 @@ Route111_EventScript_1F0F2E:: @ 81F0F2E
end
Route111_EventScript_1F0F45:: @ 81F0F45
- msgbox gUnknown_08272C5F, MSGBOX_DEFAULT
+ msgbox gText_SandstormIsVicious, MSGBOX_DEFAULT
closemessage
compare VAR_0x8004, 0
call_if_eq Route111_EventScript_1F0F7C
diff --git a/data/maps/Route112_CableCarStation/scripts.inc b/data/maps/Route112_CableCarStation/scripts.inc
index d9eec8efd..d3a98870b 100644
--- a/data/maps/Route112_CableCarStation/scripts.inc
+++ b/data/maps/Route112_CableCarStation/scripts.inc
@@ -47,7 +47,7 @@ Route112_CableCarStation_EventScript_22AB38:: @ 822AB38
waitmovement 0
setvar VAR_0x8004, 0
setvar VAR_CABLE_CAR_STATION_STATE, 1
- incrementgamestat 48
+ incrementgamestat GAME_STAT_RODE_CABLE_CAR
special CableCarWarp
special CableCar
waitstate
diff --git a/data/maps/Route119/scripts.inc b/data/maps/Route119/scripts.inc
index 1902333ed..1dff6a6e2 100644
--- a/data/maps/Route119/scripts.inc
+++ b/data/maps/Route119/scripts.inc
@@ -15,8 +15,8 @@ Route119_EventScript_1F4439:: @ 81F4439
return
Route119_OnTransition: @ 81F444D
- call Common_EventScript_SetupRivalGender
- call Common_EventScript_SetupRivalOnBikeGender
+ call Common_EventScript_SetupRivalGfxId
+ call Common_EventScript_SetupRivalOnBikeGfxId
compare VAR_WEATHER_INSTITUTE_STATE, 1
call_if_eq Route119_EventScript_1F4466
special SetRoute119Weather
diff --git a/data/maps/Route119_WeatherInstitute_2F/scripts.inc b/data/maps/Route119_WeatherInstitute_2F/scripts.inc
index c15673dad..ac47539c7 100644
--- a/data/maps/Route119_WeatherInstitute_2F/scripts.inc
+++ b/data/maps/Route119_WeatherInstitute_2F/scripts.inc
@@ -89,7 +89,7 @@ Route119_WeatherInstitute_2F_EventScript_27004D:: @ 827004D
goto_if_eq Route119_WeatherInstitute_2F_EventScript_270085
compare VAR_RESULT, 1
goto_if_eq Route119_WeatherInstitute_2F_EventScript_2700AD
- goto Route119_WeatherInstitute_2F_EventScript_273811
+ goto Common_EventScript_NoMoreRoomForPokemon
end
Route119_WeatherInstitute_2F_EventScript_270085:: @ 8270085
@@ -97,8 +97,8 @@ Route119_WeatherInstitute_2F_EventScript_270085:: @ 8270085
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq Route119_WeatherInstitute_2F_EventScript_2700EA
- call Route119_WeatherInstitute_2F_EventScript_27378B
- call Common_EventScript_NameReceivedPokemon
+ call Common_EventScript_GetGiftMonPartySlot
+ call Common_EventScript_NameReceivedPartyMon
goto Route119_WeatherInstitute_2F_EventScript_2700EA
end
@@ -107,7 +107,7 @@ Route119_WeatherInstitute_2F_EventScript_2700AD:: @ 82700AD
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq Route119_WeatherInstitute_2F_EventScript_2700D0
- call Route119_WeatherInstitute_2F_EventScript_273797
+ call Common_EventScript_NameReceivedBoxMon
goto Route119_WeatherInstitute_2F_EventScript_2700D0
end
diff --git a/data/maps/RustboroCity/scripts.inc b/data/maps/RustboroCity/scripts.inc
index 3caeebfc6..666691135 100644
--- a/data/maps/RustboroCity/scripts.inc
+++ b/data/maps/RustboroCity/scripts.inc
@@ -5,7 +5,7 @@ RustboroCity_MapScripts:: @ 81E06BD
RustboroCity_OnTransition: @ 81E06C8
setflag FLAG_VISITED_RUSTBORO_CITY
- call Common_EventScript_SetupRivalGender
+ call Common_EventScript_SetupRivalGfxId
compare VAR_RUSTBORO_CITY_STATE, 6
call_if_eq RustboroCity_EventScript_1E0707
getplayerxy VAR_TEMP_0, VAR_TEMP_1
diff --git a/data/maps/RustboroCity_DevonCorp_2F/scripts.inc b/data/maps/RustboroCity_DevonCorp_2F/scripts.inc
index f920bda55..0784f523c 100644
--- a/data/maps/RustboroCity_DevonCorp_2F/scripts.inc
+++ b/data/maps/RustboroCity_DevonCorp_2F/scripts.inc
@@ -162,7 +162,7 @@ RustboroCity_DevonCorp_2F_EventScript_211A3E:: @ 8211A3E
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_211A6E
compare VAR_RESULT, 1
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_211A96
- goto RustboroCity_DevonCorp_2F_EventScript_273811
+ goto Common_EventScript_NoMoreRoomForPokemon
end
RustboroCity_DevonCorp_2F_EventScript_211A6E:: @ 8211A6E
@@ -170,8 +170,8 @@ RustboroCity_DevonCorp_2F_EventScript_211A6E:: @ 8211A6E
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_211AD7
- call RustboroCity_DevonCorp_2F_EventScript_27378B
- call Common_EventScript_NameReceivedPokemon
+ call Common_EventScript_GetGiftMonPartySlot
+ call Common_EventScript_NameReceivedPartyMon
goto RustboroCity_DevonCorp_2F_EventScript_211AD7
end
@@ -180,7 +180,7 @@ RustboroCity_DevonCorp_2F_EventScript_211A96:: @ 8211A96
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_211AB9
- call RustboroCity_DevonCorp_2F_EventScript_273797
+ call Common_EventScript_NameReceivedBoxMon
goto RustboroCity_DevonCorp_2F_EventScript_211AB9
end
@@ -211,7 +211,7 @@ RustboroCity_DevonCorp_2F_EventScript_211AE1:: @ 8211AE1
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_211B11
compare VAR_RESULT, 1
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_211B39
- goto RustboroCity_DevonCorp_2F_EventScript_273811
+ goto Common_EventScript_NoMoreRoomForPokemon
end
RustboroCity_DevonCorp_2F_EventScript_211B11:: @ 8211B11
@@ -219,8 +219,8 @@ RustboroCity_DevonCorp_2F_EventScript_211B11:: @ 8211B11
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_211B7A
- call RustboroCity_DevonCorp_2F_EventScript_27378B
- call Common_EventScript_NameReceivedPokemon
+ call Common_EventScript_GetGiftMonPartySlot
+ call Common_EventScript_NameReceivedPartyMon
goto RustboroCity_DevonCorp_2F_EventScript_211B7A
end
@@ -229,7 +229,7 @@ RustboroCity_DevonCorp_2F_EventScript_211B39:: @ 8211B39
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_211B5C
- call RustboroCity_DevonCorp_2F_EventScript_273797
+ call Common_EventScript_NameReceivedBoxMon
goto RustboroCity_DevonCorp_2F_EventScript_211B5C
end
diff --git a/data/maps/RustboroCity_Gym/scripts.inc b/data/maps/RustboroCity_Gym/scripts.inc
index 04027dfa7..dc11d3a10 100644
--- a/data/maps/RustboroCity_Gym/scripts.inc
+++ b/data/maps/RustboroCity_Gym/scripts.inc
@@ -21,7 +21,7 @@ RustboroCity_Gym_EventScript_212F66:: @ 8212F66
setvar VAR_RUSTBORO_CITY_STATE, 1
addvar VAR_PETALBURG_GYM_STATE, 1
setvar VAR_0x8008, 1
- call RustboroCity_Gym_EventScript_271F43
+ call Common_EventScript_SetGymTrainers
compare VAR_PETALBURG_GYM_STATE, 6
call_if_eq RustboroCity_Gym_EventScript_271E84
goto RustboroCity_Gym_EventScript_212FA4
diff --git a/data/maps/RustboroCity_Mart/scripts.inc b/data/maps/RustboroCity_Mart/scripts.inc
index a5693847c..88a540356 100644
--- a/data/maps/RustboroCity_Mart/scripts.inc
+++ b/data/maps/RustboroCity_Mart/scripts.inc
@@ -4,7 +4,7 @@ RustboroCity_Mart_MapScripts:: @ 8214F05
RustboroCity_Mart_EventScript_214F06:: @ 8214F06
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
goto_if_unset FLAG_MET_DEVON_EMPLOYEE, RustboroCity_Mart_EventScript_214F21
goto_if_set FLAG_MET_DEVON_EMPLOYEE, RustboroCity_Mart_EventScript_214F48
@@ -12,7 +12,7 @@ RustboroCity_Mart_EventScript_214F06:: @ 8214F06
RustboroCity_Mart_EventScript_214F21:: @ 8214F21
pokemart RustboroCity_Mart_Pokemart_214F30
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -33,7 +33,7 @@ RustboroCity_Mart_Pokemart_214F30: @ 8214F30
RustboroCity_Mart_EventScript_214F48:: @ 8214F48
pokemart RustboroCity_Mart_Pokemart_214F58
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/RustboroCity_PokemonCenter_1F/scripts.inc b/data/maps/RustboroCity_PokemonCenter_1F/scripts.inc
index 4d50ca89c..116d0fb50 100644
--- a/data/maps/RustboroCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/RustboroCity_PokemonCenter_1F/scripts.inc
@@ -5,12 +5,12 @@ RustboroCity_PokemonCenter_1F_MapScripts:: @ 8214D62
RustboroCity_PokemonCenter_1F_OnTransition: @ 8214D6D
setrespawn HEAL_LOCATION_RUSTBORO_CITY
- call RustboroCity_PokemonCenter_1F_EventScript_2718DE
+ call Common_EventScript_UpdateBrineyLocation
end
RustboroCity_PokemonCenter_1F_EventScript_214D76:: @ 8214D76
setvar VAR_0x800B, 1
- call RustboroCity_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/SealedChamber_InnerRoom/scripts.inc b/data/maps/SealedChamber_InnerRoom/scripts.inc
index 5c4cb2199..b34355e3f 100644
--- a/data/maps/SealedChamber_InnerRoom/scripts.inc
+++ b/data/maps/SealedChamber_InnerRoom/scripts.inc
@@ -27,7 +27,7 @@ SealedChamber_InnerRoom_EventScript_2391F8:: @ 82391F8
waitstate
playse SE_DOOR
delay 40
- msgbox gUnknown_0827301B, MSGBOX_DEFAULT
+ msgbox gText_DoorOpenedFarAway, MSGBOX_DEFAULT
closemessage
fadeinbgm 0
setflag FLAG_REGI_DOORS_OPENED
diff --git a/data/maps/SealedChamber_OuterRoom/scripts.inc b/data/maps/SealedChamber_OuterRoom/scripts.inc
index 865be8963..4d9ed93d4 100644
--- a/data/maps/SealedChamber_OuterRoom/scripts.inc
+++ b/data/maps/SealedChamber_OuterRoom/scripts.inc
@@ -116,7 +116,7 @@ SealedChamber_OuterRoom_EventScript_2391D0:: @ 82391D0
end
SealedChamber_OuterRoom_EventScript_2391E3:: @ 82391E3
- msgbox gUnknown_0827304E, MSGBOX_DEFAULT
+ msgbox gText_BigHoleInTheWall, MSGBOX_DEFAULT
releaseall
end
diff --git a/data/maps/SecretBase_BlueCave1/map.json b/data/maps/SecretBase_BlueCave1/map.json
index 8f255972f..8ac45a147 100644
--- a/data/maps/SecretBase_BlueCave1/map.json
+++ b/data/maps/SecretBase_BlueCave1/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_BLUE_CAVE1",
"name": "SecretBase_BlueCave1",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_BLUE_CAVE1",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_BlueCave1_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_BlueCave1/scripts.inc b/data/maps/SecretBase_BlueCave1/scripts.inc
deleted file mode 100644
index a7f979bde..000000000
--- a/data/maps/SecretBase_BlueCave1/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_BlueCave1_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_BlueCave2/map.json b/data/maps/SecretBase_BlueCave2/map.json
index ec5d74d2f..1e8cf98fd 100644
--- a/data/maps/SecretBase_BlueCave2/map.json
+++ b/data/maps/SecretBase_BlueCave2/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_BLUE_CAVE2",
"name": "SecretBase_BlueCave2",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_BLUE_CAVE2",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_BlueCave2_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_BlueCave2/scripts.inc b/data/maps/SecretBase_BlueCave2/scripts.inc
deleted file mode 100644
index cb4ad3565..000000000
--- a/data/maps/SecretBase_BlueCave2/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_BlueCave2_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_BlueCave3/map.json b/data/maps/SecretBase_BlueCave3/map.json
index 07be1610a..d057ade30 100644
--- a/data/maps/SecretBase_BlueCave3/map.json
+++ b/data/maps/SecretBase_BlueCave3/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_BLUE_CAVE3",
"name": "SecretBase_BlueCave3",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_BLUE_CAVE3",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_BlueCave3_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_BlueCave3/scripts.inc b/data/maps/SecretBase_BlueCave3/scripts.inc
deleted file mode 100644
index f49ff6dc1..000000000
--- a/data/maps/SecretBase_BlueCave3/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_BlueCave3_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_BlueCave4/map.json b/data/maps/SecretBase_BlueCave4/map.json
index 45762d619..4cdb8de60 100644
--- a/data/maps/SecretBase_BlueCave4/map.json
+++ b/data/maps/SecretBase_BlueCave4/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_BLUE_CAVE4",
"name": "SecretBase_BlueCave4",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_BLUE_CAVE4",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_BlueCave4_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_BlueCave4/scripts.inc b/data/maps/SecretBase_BlueCave4/scripts.inc
deleted file mode 100644
index faa808545..000000000
--- a/data/maps/SecretBase_BlueCave4/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_BlueCave4_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_BrownCave1/map.json b/data/maps/SecretBase_BrownCave1/map.json
index 679564ba7..39d7d3d92 100644
--- a/data/maps/SecretBase_BrownCave1/map.json
+++ b/data/maps/SecretBase_BrownCave1/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_BROWN_CAVE1",
"name": "SecretBase_BrownCave1",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_BROWN_CAVE1",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_BrownCave1_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_BrownCave1/scripts.inc b/data/maps/SecretBase_BrownCave1/scripts.inc
deleted file mode 100644
index 9d2925611..000000000
--- a/data/maps/SecretBase_BrownCave1/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_BrownCave1_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_BrownCave2/map.json b/data/maps/SecretBase_BrownCave2/map.json
index 35d5be558..d268e604a 100644
--- a/data/maps/SecretBase_BrownCave2/map.json
+++ b/data/maps/SecretBase_BrownCave2/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_BROWN_CAVE2",
"name": "SecretBase_BrownCave2",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_BROWN_CAVE2",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_BrownCave2_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_BrownCave2/scripts.inc b/data/maps/SecretBase_BrownCave2/scripts.inc
deleted file mode 100644
index e9c497fac..000000000
--- a/data/maps/SecretBase_BrownCave2/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_BrownCave2_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_BrownCave3/map.json b/data/maps/SecretBase_BrownCave3/map.json
index 5424ee85e..f1a4f656c 100644
--- a/data/maps/SecretBase_BrownCave3/map.json
+++ b/data/maps/SecretBase_BrownCave3/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_BROWN_CAVE3",
"name": "SecretBase_BrownCave3",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_BROWN_CAVE3",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_BrownCave3_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_BrownCave3/scripts.inc b/data/maps/SecretBase_BrownCave3/scripts.inc
deleted file mode 100644
index 284262d91..000000000
--- a/data/maps/SecretBase_BrownCave3/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_BrownCave3_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_BrownCave4/map.json b/data/maps/SecretBase_BrownCave4/map.json
index de3b4709e..80199de73 100644
--- a/data/maps/SecretBase_BrownCave4/map.json
+++ b/data/maps/SecretBase_BrownCave4/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_BROWN_CAVE4",
"name": "SecretBase_BrownCave4",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_BROWN_CAVE4",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_BrownCave4_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_BrownCave4/scripts.inc b/data/maps/SecretBase_BrownCave4/scripts.inc
deleted file mode 100644
index 84f685508..000000000
--- a/data/maps/SecretBase_BrownCave4/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_BrownCave4_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_RedCave1/map.json b/data/maps/SecretBase_RedCave1/map.json
index eac0366c1..b485575b3 100644
--- a/data/maps/SecretBase_RedCave1/map.json
+++ b/data/maps/SecretBase_RedCave1/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_RED_CAVE1",
"name": "SecretBase_RedCave1",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_RED_CAVE1",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_RedCave1_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_RedCave1/scripts.inc b/data/maps/SecretBase_RedCave1/scripts.inc
deleted file mode 100644
index f9c55a2b5..000000000
--- a/data/maps/SecretBase_RedCave1/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_RedCave1_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_RedCave2/map.json b/data/maps/SecretBase_RedCave2/map.json
index bcbfbd0f2..fb2dd3da3 100644
--- a/data/maps/SecretBase_RedCave2/map.json
+++ b/data/maps/SecretBase_RedCave2/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_RED_CAVE2",
"name": "SecretBase_RedCave2",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_RED_CAVE2",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_RedCave2_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_RedCave2/scripts.inc b/data/maps/SecretBase_RedCave2/scripts.inc
deleted file mode 100644
index e7e0c7ba5..000000000
--- a/data/maps/SecretBase_RedCave2/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_RedCave2_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_RedCave3/map.json b/data/maps/SecretBase_RedCave3/map.json
index 00c14d3f3..ac1b8c103 100644
--- a/data/maps/SecretBase_RedCave3/map.json
+++ b/data/maps/SecretBase_RedCave3/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_RED_CAVE3",
"name": "SecretBase_RedCave3",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_RED_CAVE3",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_RedCave3_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_RedCave3/scripts.inc b/data/maps/SecretBase_RedCave3/scripts.inc
deleted file mode 100644
index 512f7f92a..000000000
--- a/data/maps/SecretBase_RedCave3/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_RedCave3_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_RedCave4/map.json b/data/maps/SecretBase_RedCave4/map.json
index b54974c4c..b3f5998f2 100644
--- a/data/maps/SecretBase_RedCave4/map.json
+++ b/data/maps/SecretBase_RedCave4/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_RED_CAVE4",
"name": "SecretBase_RedCave4",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_RED_CAVE4",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_RedCave4_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_RedCave4/scripts.inc b/data/maps/SecretBase_RedCave4/scripts.inc
deleted file mode 100644
index 98e79f89f..000000000
--- a/data/maps/SecretBase_RedCave4/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_RedCave4_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_Shrub1/map.json b/data/maps/SecretBase_Shrub1/map.json
index 38cb8997f..b43accd3c 100644
--- a/data/maps/SecretBase_Shrub1/map.json
+++ b/data/maps/SecretBase_Shrub1/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_SHRUB1",
"name": "SecretBase_Shrub1",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_SHRUB1",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_Shrub1_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_Shrub1/scripts.inc b/data/maps/SecretBase_Shrub1/scripts.inc
deleted file mode 100644
index 24b8685a0..000000000
--- a/data/maps/SecretBase_Shrub1/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_Shrub1_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_Shrub2/map.json b/data/maps/SecretBase_Shrub2/map.json
index 728226fdc..86590e0c3 100644
--- a/data/maps/SecretBase_Shrub2/map.json
+++ b/data/maps/SecretBase_Shrub2/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_SHRUB2",
"name": "SecretBase_Shrub2",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_SHRUB2",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_Shrub2_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_Shrub2/scripts.inc b/data/maps/SecretBase_Shrub2/scripts.inc
deleted file mode 100644
index dad94f46d..000000000
--- a/data/maps/SecretBase_Shrub2/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_Shrub2_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_Shrub3/map.json b/data/maps/SecretBase_Shrub3/map.json
index a3c5cdf05..ac14a8e45 100644
--- a/data/maps/SecretBase_Shrub3/map.json
+++ b/data/maps/SecretBase_Shrub3/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_SHRUB3",
"name": "SecretBase_Shrub3",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_SHRUB3",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_Shrub3_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_Shrub3/scripts.inc b/data/maps/SecretBase_Shrub3/scripts.inc
deleted file mode 100644
index 22c67c939..000000000
--- a/data/maps/SecretBase_Shrub3/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_Shrub3_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_Shrub4/map.json b/data/maps/SecretBase_Shrub4/map.json
index 9977f6eeb..c8b86decb 100644
--- a/data/maps/SecretBase_Shrub4/map.json
+++ b/data/maps/SecretBase_Shrub4/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_SHRUB4",
"name": "SecretBase_Shrub4",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_SHRUB4",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_Shrub4_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_Shrub4/scripts.inc b/data/maps/SecretBase_Shrub4/scripts.inc
deleted file mode 100644
index 1a9952232..000000000
--- a/data/maps/SecretBase_Shrub4/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_Shrub4_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_Tree1/map.json b/data/maps/SecretBase_Tree1/map.json
index 5d3309cc7..93f119a92 100644
--- a/data/maps/SecretBase_Tree1/map.json
+++ b/data/maps/SecretBase_Tree1/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_TREE1",
"name": "SecretBase_Tree1",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_TREE1",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_Tree1_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_Tree1/scripts.inc b/data/maps/SecretBase_Tree1/scripts.inc
deleted file mode 100644
index 7e7704d6a..000000000
--- a/data/maps/SecretBase_Tree1/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_Tree1_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_Tree2/map.json b/data/maps/SecretBase_Tree2/map.json
index 67deb9a10..96a4fc7f7 100644
--- a/data/maps/SecretBase_Tree2/map.json
+++ b/data/maps/SecretBase_Tree2/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_TREE2",
"name": "SecretBase_Tree2",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_TREE2",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_Tree2_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_Tree2/scripts.inc b/data/maps/SecretBase_Tree2/scripts.inc
deleted file mode 100644
index b30a6ec74..000000000
--- a/data/maps/SecretBase_Tree2/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_Tree2_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_Tree3/map.json b/data/maps/SecretBase_Tree3/map.json
index 6e4494836..89fd3cf49 100644
--- a/data/maps/SecretBase_Tree3/map.json
+++ b/data/maps/SecretBase_Tree3/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_TREE3",
"name": "SecretBase_Tree3",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_TREE3",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_Tree3_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_Tree3/scripts.inc b/data/maps/SecretBase_Tree3/scripts.inc
deleted file mode 100644
index 9512bbb80..000000000
--- a/data/maps/SecretBase_Tree3/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_Tree3_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_Tree4/map.json b/data/maps/SecretBase_Tree4/map.json
index 465b1d50b..da6c9e727 100644
--- a/data/maps/SecretBase_Tree4/map.json
+++ b/data/maps/SecretBase_Tree4/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_TREE4",
"name": "SecretBase_Tree4",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_TREE4",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_Tree4_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_Tree4/scripts.inc b/data/maps/SecretBase_Tree4/scripts.inc
deleted file mode 100644
index 62f41627f..000000000
--- a/data/maps/SecretBase_Tree4/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_Tree4_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_YellowCave1/map.json b/data/maps/SecretBase_YellowCave1/map.json
index a14826a3a..e8ebdd91a 100644
--- a/data/maps/SecretBase_YellowCave1/map.json
+++ b/data/maps/SecretBase_YellowCave1/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_YELLOW_CAVE1",
"name": "SecretBase_YellowCave1",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_YELLOW_CAVE1",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_YellowCave1_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_YellowCave1/scripts.inc b/data/maps/SecretBase_YellowCave1/scripts.inc
deleted file mode 100644
index fa56be0eb..000000000
--- a/data/maps/SecretBase_YellowCave1/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_YellowCave1_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_YellowCave2/map.json b/data/maps/SecretBase_YellowCave2/map.json
index 97b6baa22..9eb60caab 100644
--- a/data/maps/SecretBase_YellowCave2/map.json
+++ b/data/maps/SecretBase_YellowCave2/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_YELLOW_CAVE2",
"name": "SecretBase_YellowCave2",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_YELLOW_CAVE2",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_YellowCave2_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_YellowCave2/scripts.inc b/data/maps/SecretBase_YellowCave2/scripts.inc
deleted file mode 100644
index 86c3c876f..000000000
--- a/data/maps/SecretBase_YellowCave2/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_YellowCave2_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_YellowCave3/map.json b/data/maps/SecretBase_YellowCave3/map.json
index 581a3479f..567255385 100644
--- a/data/maps/SecretBase_YellowCave3/map.json
+++ b/data/maps/SecretBase_YellowCave3/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_YELLOW_CAVE3",
"name": "SecretBase_YellowCave3",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_YELLOW_CAVE3",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_YellowCave3_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_YellowCave3/scripts.inc b/data/maps/SecretBase_YellowCave3/scripts.inc
deleted file mode 100644
index 26311e6c5..000000000
--- a/data/maps/SecretBase_YellowCave3/scripts.inc
+++ /dev/null
@@ -1 +0,0 @@
-SecretBase_YellowCave3_MapScripts:: @ 823B483
diff --git a/data/maps/SecretBase_YellowCave4/map.json b/data/maps/SecretBase_YellowCave4/map.json
index 3dfa7cc08..26a3873fc 100644
--- a/data/maps/SecretBase_YellowCave4/map.json
+++ b/data/maps/SecretBase_YellowCave4/map.json
@@ -1,6 +1,7 @@
{
"id": "MAP_SECRET_BASE_YELLOW_CAVE4",
"name": "SecretBase_YellowCave4",
+ "shared_scripts_map": "SecretBase",
"layout": "LAYOUT_SECRET_BASE_YELLOW_CAVE4",
"music": "MUS_MACHI_S3",
"region_map_section": "MAPSEC_SECRET_BASE",
@@ -24,7 +25,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SecretBase_YellowCave4_EventScript_275D64",
+ "script": "SecretBase_EventScript_RecordMixTrainer",
"flag": "FLAG_DECORATION_0"
},
{
diff --git a/data/maps/SecretBase_YellowCave4/scripts.inc b/data/maps/SecretBase_YellowCave4/scripts.inc
deleted file mode 100644
index c05ea13c0..000000000
--- a/data/maps/SecretBase_YellowCave4/scripts.inc
+++ /dev/null
@@ -1,24 +0,0 @@
-SecretBase_YellowCave4_MapScripts:: @ 823B483
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, SecretBase_RedCave1_MapScript2_23B498
- map_script MAP_SCRIPT_ON_TRANSITION, SecretBase_RedCave1_OnTransition
- map_script MAP_SCRIPT_ON_FRAME_TABLE, SecretBase_RedCave1_MapScript2_23B4AE
- map_script MAP_SCRIPT_ON_RESUME, SecretBase_RedCave1_MapScript1_23B4B8
- .byte 0
-
-SecretBase_RedCave1_MapScript2_23B498: @ 823B498
- map_script_2 VAR_SECRET_BASE_INITIALIZED, 0, EventScript_275D0C
- .2byte 0
-
-SecretBase_RedCave1_OnTransition: @ 823B4A2
- call SecretBase_RedCave1_EventScript_275CE1
- special SetSecretBaseOwnerGfxId
- special sub_80EB1AC
- end
-
-SecretBase_RedCave1_MapScript2_23B4AE: @ 823B4AE
- map_script_2 VAR_INIT_SECRET_BASE, 0, SecretBase_RedCave1_EventScript_275B81
- .2byte 0
-
-SecretBase_RedCave1_MapScript1_23B4B8: @ 823B4B8
- setstepcallback 6
- end
diff --git a/data/maps/SlateportCity/scripts.inc b/data/maps/SlateportCity/scripts.inc
index d245cdff4..e4753b501 100644
--- a/data/maps/SlateportCity/scripts.inc
+++ b/data/maps/SlateportCity/scripts.inc
@@ -122,7 +122,7 @@ SlateportCity_EventScript_1DCDBD:: @ 81DCDBD
message SlateportCity_Text_1DD64A
waitmessage
pokemart SlateportCity_Pokemart_1DCDD4
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -489,10 +489,10 @@ SlateportCity_EventScript_1DD153:: @ 81DD153
SlateportCity_EventScript_1DD16A:: @ 81DD16A
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemartdecoration SlateportCity_PokemartDecor_Dolls
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -506,7 +506,7 @@ SlateportCity_PokemartDecor_Dolls: @ 81DD184
end
SlateportCity_EventScript_1DD18E:: @ 81DD18E
- msgbox gUnknown_08272E30, MSGBOX_DEFAULT
+ msgbox gText_ComeBackWithSecretPower, MSGBOX_DEFAULT
release
end
@@ -514,10 +514,10 @@ SlateportCity_EventScript_1DD198:: @ 81DD198
lock
faceplayer
goto_if_unset FLAG_RECEIVED_SECRET_POWER, SlateportCity_EventScript_1DD18E
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemartdecoration SlateportCity_PokemartDecor_1DD1B8
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -543,10 +543,10 @@ SlateportCity_PokemartDecor_1DD1B8: @ 81DD1B8
SlateportCity_EventScript_1DD1D8:: @ 81DD1D8
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart SlateportCity_Pokemart_1DD1F0
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -873,7 +873,7 @@ SlateportCity_EventScript_1DD557:: @ 81DD557
end
SlateportCity_EventScript_1DD5C1:: @ 81DD5C1
- msgbox gUnknown_08272A89, MSGBOX_DEFAULT
+ msgbox gText_TheBagIsFull, MSGBOX_DEFAULT
special RemoveBerryPowderVendorMenu
release
end
diff --git a/data/maps/SlateportCity_House1/scripts.inc b/data/maps/SlateportCity_House1/scripts.inc
index b1d07c5bb..1203c2333 100644
--- a/data/maps/SlateportCity_House1/scripts.inc
+++ b/data/maps/SlateportCity_House1/scripts.inc
@@ -57,7 +57,7 @@ SlateportCity_House1_EventScript_209B50:: @ 8209B50
SlateportCity_House1_EventScript_209B5A:: @ 8209B5A
msgbox SlateportCity_House1_Text_209CA4, MSGBOX_DEFAULT
- call Common_EventScript_NameReceivedPokemon
+ call Common_EventScript_NameReceivedPartyMon
specialvar VAR_RESULT, TV_PutNameRaterShowOnTheAirIfNicknameChanged
special TV_CopyNicknameToStringVar1AndEnsureTerminated
compare VAR_RESULT, 1
diff --git a/data/maps/SlateportCity_Mart/scripts.inc b/data/maps/SlateportCity_Mart/scripts.inc
index cc1eff7f6..63042338b 100644
--- a/data/maps/SlateportCity_Mart/scripts.inc
+++ b/data/maps/SlateportCity_Mart/scripts.inc
@@ -4,10 +4,10 @@ SlateportCity_Mart_MapScripts:: @ 820DC48
SlateportCity_Mart_EventScript_20DC49:: @ 820DC49
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart SlateportCity_Mart_Pokemart_20DC60
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc b/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc
index d15a23558..7a03202ad 100644
--- a/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc
+++ b/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc
@@ -71,8 +71,8 @@ SlateportCity_OceanicMuseum_2F_EventScript_20BB00:: @ 820BB00
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
waitmovement 0
msgbox SlateportCity_OceanicMuseum_2F_Text_20C2BE, MSGBOX_DEFAULT
- setvar VAR_0x8004, 269
- call SlateportCity_OceanicMuseum_2F_EventScript_2723E4
+ setvar VAR_0x8004, ITEM_DEVON_GOODS
+ call Common_EventScript_PlayerHandedOverTheItem
msgbox SlateportCity_OceanicMuseum_2F_Text_20C36C, MSGBOX_DEFAULT
closemessage
fadescreen 1
diff --git a/data/maps/SlateportCity_PokemonCenter_1F/scripts.inc b/data/maps/SlateportCity_PokemonCenter_1F/scripts.inc
index 4c6b3ec7f..a6c344a21 100644
--- a/data/maps/SlateportCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/SlateportCity_PokemonCenter_1F/scripts.inc
@@ -5,12 +5,12 @@ SlateportCity_PokemonCenter_1F_MapScripts:: @ 820DABF
SlateportCity_PokemonCenter_1F_OnTransition: @ 820DACA
setrespawn HEAL_LOCATION_SLATEPORT_CITY
- call SlateportCity_PokemonCenter_1F_EventScript_2718DE
+ call Common_EventScript_UpdateBrineyLocation
end
SlateportCity_PokemonCenter_1F_EventScript_20DAD3:: @ 820DAD3
setvar VAR_0x800B, 1
- call SlateportCity_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/SootopolisCity_Gym_1F/scripts.inc b/data/maps/SootopolisCity_Gym_1F/scripts.inc
index 8db708e9c..fa69aadc2 100644
--- a/data/maps/SootopolisCity_Gym_1F/scripts.inc
+++ b/data/maps/SootopolisCity_Gym_1F/scripts.inc
@@ -109,7 +109,7 @@ SootopolisCity_Gym_1F_EventScript_224F82:: @ 8224F82
setvar VAR_SOOTOPOLIS_CITY_STATE, 6
clearflag FLAG_HIDE_SOOTOPOLIS_CITY_MAN_1
setvar VAR_0x8008, 8
- call SootopolisCity_Gym_1F_EventScript_271F43
+ call Common_EventScript_SetGymTrainers
call SootopolisCity_Gym_1F_EventScript_224FD4
closemessage
delay 30
diff --git a/data/maps/SootopolisCity_Mart/scripts.inc b/data/maps/SootopolisCity_Mart/scripts.inc
index fe0270d62..0b477ce47 100644
--- a/data/maps/SootopolisCity_Mart/scripts.inc
+++ b/data/maps/SootopolisCity_Mart/scripts.inc
@@ -4,10 +4,10 @@ SootopolisCity_Mart_MapScripts:: @ 8226794
SootopolisCity_Mart_EventScript_226795:: @ 8226795
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart SootopolisCity_Mart_Pokemart_2267AC
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc b/data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc
index d3dfb91b0..41a180c4f 100644
--- a/data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc
@@ -9,7 +9,7 @@ SootopolisCity_PokemonCenter_1F_OnTransition: @ 82264FC
SootopolisCity_PokemonCenter_1F_EventScript_226500:: @ 8226500
setvar VAR_0x800B, 1
- call SootopolisCity_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/maps/SouthernIsland_Interior/scripts.inc b/data/maps/SouthernIsland_Interior/scripts.inc
index a9b8c5e0c..6283516b0 100644
--- a/data/maps/SouthernIsland_Interior/scripts.inc
+++ b/data/maps/SouthernIsland_Interior/scripts.inc
@@ -99,12 +99,12 @@ SouthernIsland_Interior_EventScript_242AD0:: @ 8242AD0
SouthernIsland_Interior_EventScript_242B81:: @ 8242B81
setflag FLAG_DEFEATED_LATIAS_OR_LATIOS
copyvar VAR_0x8004, VAR_TEMP_4
- goto SouthernIsland_Interior_EventScript_273776
+ goto Common_EventScript_LegendaryFlewAway
end
SouthernIsland_Interior_EventScript_242B8F:: @ 8242B8F
copyvar VAR_0x8004, VAR_TEMP_4
- goto SouthernIsland_Interior_EventScript_273776
+ goto Common_EventScript_LegendaryFlewAway
end
SouthernIsland_Interior_EventScript_242B9A:: @ 8242B9A
@@ -114,14 +114,14 @@ SouthernIsland_Interior_EventScript_242B9A:: @ 8242B9A
SouthernIsland_Interior_EventScript_242BA4:: @ 8242BA4
setvar VAR_0x8004, SPECIES_LATIOS
- setvar VAR_0x8005, 50
+ setvar VAR_0x8005, 50 @level
setvar VAR_0x8006, ITEM_SOUL_DEW
special CreateObedientEnemyMon
return
SouthernIsland_Interior_EventScript_242BB7:: @ 8242BB7
setvar VAR_0x8004, SPECIES_LATIAS
- setvar VAR_0x8005, 50
+ setvar VAR_0x8005, 50 @level
setvar VAR_0x8006, ITEM_SOUL_DEW
special CreateObedientEnemyMon
return
diff --git a/data/maps/TerraCave_End/scripts.inc b/data/maps/TerraCave_End/scripts.inc
index 79b209e8a..df2e6f969 100644
--- a/data/maps/TerraCave_End/scripts.inc
+++ b/data/maps/TerraCave_End/scripts.inc
@@ -55,12 +55,12 @@ TerraCave_End_EventScript_23B0EC:: @ 823B0EC
TerraCave_End_EventScript_23B155:: @ 823B155
setvar VAR_SHOULD_END_UNUSUAL_WEATHER, 1
setflag FLAG_DEFEATED_GROUDON
- goto TerraCave_End_EventScript_27376D
+ goto Common_EventScript_RemoveStaticPokemon
end
TerraCave_End_EventScript_23B163:: @ 823B163
- setvar VAR_0x8004, 405
- goto TerraCave_End_EventScript_273776
+ setvar VAR_0x8004, SPECIES_GROUDON
+ goto Common_EventScript_LegendaryFlewAway
end
TerraCave_End_Movement_23B16E: @ 823B16E
diff --git a/data/maps/TrainerHill_Entrance/scripts.inc b/data/maps/TrainerHill_Entrance/scripts.inc
index d09768f2b..840822780 100644
--- a/data/maps/TrainerHill_Entrance/scripts.inc
+++ b/data/maps/TrainerHill_Entrance/scripts.inc
@@ -105,7 +105,7 @@ TrainerHill_Entrance_EventScript_2681EE:: @ 82681EE
TrainerHill_Entrance_EventScript_2681EF:: @ 82681EF
setvar VAR_0x800B, 2
- call TrainerHill_Entrance_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
@@ -261,11 +261,11 @@ TrainerHill_Entrance_EventScript_2683BE:: @ 82683BE
TrainerHill_Entrance_EventScript_2683C7:: @ 82683C7
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
goto_if_set FLAG_SYS_GAME_CLEAR, TrainerHill_Entrance_EventScript_268402
pokemart TrainerHill_Entrance_Pokemart_2683E8
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
@@ -288,7 +288,7 @@ TrainerHill_Entrance_Pokemart_2683E8: @ 82683E8
TrainerHill_Entrance_EventScript_268402:: @ 8268402
pokemart TrainerHill_Entrance_Pokemart_268414
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/TrainerHill_Roof/scripts.inc b/data/maps/TrainerHill_Roof/scripts.inc
index bf467e100..f7ced5d07 100644
--- a/data/maps/TrainerHill_Roof/scripts.inc
+++ b/data/maps/TrainerHill_Roof/scripts.inc
@@ -29,14 +29,14 @@ TrainerHill_Roof_EventScript_268FF2:: @ 8268FF2
TrainerHill_Roof_EventScript_269020:: @ 8269020
msgbox TrainerHill_Roof_Text_268AC5, MSGBOX_DEFAULT
playfanfare MUS_FANFA1
- message gUnknown_08272A78
+ message gText_ObtainedTheItem
waitfanfare
waitmessage
goto TrainerHill_Roof_EventScript_269054
TrainerHill_Roof_EventScript_269037:: @ 8269037
msgbox TrainerHill_Roof_Text_268AC5, MSGBOX_DEFAULT
- msgbox gUnknown_08272A89, MSGBOX_DEFAULT
+ msgbox gText_TheBagIsFull, MSGBOX_DEFAULT
msgbox TrainerHill_Roof_Text_268B07, MSGBOX_DEFAULT
goto TrainerHill_Roof_EventScript_269054
diff --git a/data/maps/VerdanturfTown_Mart/scripts.inc b/data/maps/VerdanturfTown_Mart/scripts.inc
index 6457aa626..2b3ccfc3a 100644
--- a/data/maps/VerdanturfTown_Mart/scripts.inc
+++ b/data/maps/VerdanturfTown_Mart/scripts.inc
@@ -4,10 +4,10 @@ VerdanturfTown_Mart_MapScripts:: @ 8202586
VerdanturfTown_Mart_EventScript_202587:: @ 8202587
lock
faceplayer
- message gUnknown_08272A21
+ message gText_HowMayIServeYou
waitmessage
pokemart VerdanturfTown_Mart_Pokemart_2025A0
- msgbox gUnknown_08272A3F, MSGBOX_DEFAULT
+ msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
diff --git a/data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc b/data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc
index 5eb738e73..f785e8771 100644
--- a/data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc
+++ b/data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc
@@ -5,12 +5,12 @@ VerdanturfTown_PokemonCenter_1F_MapScripts:: @ 8202726
VerdanturfTown_PokemonCenter_1F_OnTransition: @ 8202731
setrespawn HEAL_LOCATION_VERDANTURF_TOWN
- call VerdanturfTown_PokemonCenter_1F_EventScript_2718DE
+ call Common_EventScript_UpdateBrineyLocation
end
VerdanturfTown_PokemonCenter_1F_EventScript_20273A:: @ 820273A
setvar VAR_0x800B, 1
- call VerdanturfTown_PokemonCenter_1F_EventScript_27191E
+ call Common_EventScript_PkmnCenterNurse
waitmessage
waitbuttonpress
release
diff --git a/data/scripts/berry_tree.inc b/data/scripts/berry_tree.inc
index 2dc016a52..63d1f0bcc 100644
--- a/data/scripts/berry_tree.inc
+++ b/data/scripts/berry_tree.inc
@@ -184,7 +184,7 @@ BerryTree_EventScript_WaterBerry:: @ 82744C4
BerryTree_EventScript_PlantBerry:: @ 82744DD
special EventObjectInteractionPlantBerryTree
- incrementgamestat 3
+ incrementgamestat GAME_STAT_PLANTED_BERRIES
special sub_80EED10
special EventObjectInteractionGetBerryCountString
message BerryTree_Text_PlantedOneBerry
diff --git a/data/scripts/cable_club.inc b/data/scripts/cable_club.inc
index 8e49c982f..3fcb25807 100644
--- a/data/scripts/cable_club.inc
+++ b/data/scripts/cable_club.inc
@@ -47,7 +47,7 @@ OldaleTown_PokemonCenter_2F_EventScript_276B19:: @ 8276B19
gotoram
OldaleTown_PokemonCenter_2F_EventScript_276B1A:: @ 8276B1A
- msgbox gUnknown_08273178, MSGBOX_NPC
+ msgbox gText_ThankYouForAccessingMysteryGift, MSGBOX_NPC
end
OldaleTown_PokemonCenter_2F_EventScript_276B23:: @ 8276B23
@@ -64,7 +64,7 @@ OldaleTown_PokemonCenter_2F_EventScript_276B23:: @ 8276B23
end
OldaleTown_PokemonCenter_2F_EventScript_276B62:: @ 8276B62
- msgbox gUnknown_08273178, MSGBOX_DEFAULT
+ msgbox gText_ThankYouForAccessingMysteryGift, MSGBOX_DEFAULT
release
end
@@ -707,13 +707,13 @@ OldaleTown_PokemonCenter_2F_EventScript_277328:: @ 8277328
release
end
-OldaleTown_PokemonCenter_2F_EventScript_277335:: @ 8277335
- msgbox gUnknown_0827306F, MSGBOX_DEFAULT
+CableClub_EventScript_WirelessClubAdjustements:: @ 8277335
+ msgbox gText_SorryWirelessClubAdjustments, MSGBOX_DEFAULT
release
end
OldaleTown_PokemonCenter_2F_EventScript_27733F:: @ 827733F
- msgbox gUnknown_082730BC, MSGBOX_DEFAULT
+ msgbox gText_UndergoingAdjustments, MSGBOX_DEFAULT
releaseall
end
@@ -977,7 +977,7 @@ OldaleTown_PokemonCenter_2F_EventScript_27751B:: @ 827751B
lock
faceplayer
setvar VAR_FRONTIER_FACILITY, 8
- goto_if_unset FLAG_SYS_POKEDEX_GET, OldaleTown_PokemonCenter_2F_EventScript_277335
+ goto_if_unset FLAG_SYS_POKEDEX_GET, CableClub_EventScript_WirelessClubAdjustements
specialvar VAR_RESULT, IsBadEggInParty
compare VAR_RESULT, 1
goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_27731B
@@ -1052,12 +1052,12 @@ OldaleTown_PokemonCenter_2F_EventScript_277626:: @ 8277626
OldaleTown_PokemonCenter_2F_EventScript_27764C:: @ 827764C
msgbox OldaleTown_PokemonCenter_2F_Text_27893E, MSGBOX_DEFAULT
- goto OldaleTown_PokemonCenter_2F_EventScript_273755
+ goto EventScript_CableClub_SetVarResult0
end
OldaleTown_PokemonCenter_2F_EventScript_27765A:: @ 827765A
msgbox OldaleTown_PokemonCenter_2F_Text_27897B, MSGBOX_DEFAULT
- goto OldaleTown_PokemonCenter_2F_EventScript_273755
+ goto EventScript_CableClub_SetVarResult0
end
OldaleTown_PokemonCenter_2F_EventScript_277668:: @ 8277668
@@ -1068,7 +1068,7 @@ OldaleTown_PokemonCenter_2F_EventScript_277668:: @ 8277668
OldaleTown_PokemonCenter_2F_EventScript_277672:: @ 8277672
lock
faceplayer
- goto_if_unset FLAG_SYS_POKEDEX_GET, OldaleTown_PokemonCenter_2F_EventScript_277335
+ goto_if_unset FLAG_SYS_POKEDEX_GET, CableClub_EventScript_WirelessClubAdjustements
msgbox OldaleTown_PokemonCenter_2F_Text_279937, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_27769A
@@ -1085,7 +1085,7 @@ OldaleTown_PokemonCenter_2F_EventScript_2776A4:: @ 82776A4
lock
faceplayer
setvar VAR_FRONTIER_FACILITY, 9
- goto_if_unset FLAG_SYS_POKEDEX_GET, OldaleTown_PokemonCenter_2F_EventScript_277335
+ goto_if_unset FLAG_SYS_POKEDEX_GET, CableClub_EventScript_WirelessClubAdjustements
specialvar VAR_RESULT, IsBadEggInParty
compare VAR_RESULT, 1
goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_27731B
@@ -1856,7 +1856,7 @@ OldaleTown_PokemonCenter_2F_Text_278A39: @ 8278A39
.string "Oh…\n"
.string "Excuse me!$"
-OldaleTown_PokemonCenter_1F_Text_278A48: @ 8278A48
+CableClub_Text_PlayerIsWaiting: @ 8278A48
.string "It appears as if {STR_VAR_1} is playing\n"
.string "right now.\l"
.string "Go for it!$"
diff --git a/data/scripts/contest_hall.inc b/data/scripts/contest_hall.inc
index 03863eb40..9a9816a5f 100644
--- a/data/scripts/contest_hall.inc
+++ b/data/scripts/contest_hall.inc
@@ -1232,7 +1232,7 @@ LinkContestRoom1_EventScript_27ACBD:: @ 827ACBD
LinkContestRoom1_EventScript_27ACDF:: @ 827ACDF
special sub_80F7FFC
- incrementgamestat 42
+ incrementgamestat GAME_STAT_RECEIVED_RIBBONS
setflag FLAG_SYS_RIBBON_GET
lockall
msgbox LinkContestRoom1_Text_27BBD4, MSGBOX_DEFAULT
diff --git a/data/scripts/field_move_scripts.inc b/data/scripts/field_move_scripts.inc
index 6eae55294..71d4b725c 100644
--- a/data/scripts/field_move_scripts.inc
+++ b/data/scripts/field_move_scripts.inc
@@ -11,7 +11,7 @@ EventScript_CutTree:: @ 82906BB
msgbox Text_WantToCut, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq EventScript_CancelCut
- msgbox Text_MonUsedHM, MSGBOX_DEFAULT
+ msgbox Text_MonUsedFieldMove, MSGBOX_DEFAULT
closemessage
dofieldeffect FLDEFF_USE_CUT_ON_TREE
waitstate
@@ -51,7 +51,7 @@ Text_WantToCut: @ 829072E
.string "CUT down!\p"
.string "Would you like to CUT it?$"
-Text_MonUsedHM: @ 8290771
+Text_MonUsedFieldMove: @ 8290771
.string "{STR_VAR_1} used {STR_VAR_2}!$"
Text_CantCut: @ 829077D
@@ -70,7 +70,7 @@ EventScript_RockSmash:: @ 82907A6
msgbox Text_WantToSmash, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq EventScript_CancelSmash
- msgbox Text_MonUsedHM, MSGBOX_DEFAULT
+ msgbox Text_MonUsedFieldMove, MSGBOX_DEFAULT
closemessage
dofieldeffect FLDEFF_USE_ROCK_SMASH
waitstate
diff --git a/data/scripts/lilycove_lady.inc b/data/scripts/lilycove_lady.inc
new file mode 100644
index 000000000..77b842d3d
--- /dev/null
+++ b/data/scripts/lilycove_lady.inc
@@ -0,0 +1,856 @@
+LilycoveCity_PokemonCenter_1F_EventScript_2A836B:: @ 82A836B
+ special Script_GetLilycoveLadyId
+ switch VAR_RESULT
+ case LILYCOVE_LADY_QUIZ, LilycoveCity_PokemonCenter_1F_EventScript_2A8554
+ case LILYCOVE_LADY_FAVOR, LilycoveCity_PokemonCenter_1F_EventScript_2A8395
+ case LILYCOVE_LADY_CONTEST, LilycoveCity_PokemonCenter_1F_EventScript_2A882A
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8395:: @ 82A8395
+ lock
+ faceplayer
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8A69, MSGBOX_DEFAULT
+ specialvar VAR_RESULT, GetFavorLadyState
+ compare VAR_RESULT, LILYCOVE_LADY_STATE_READY
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A83D0
+ compare VAR_RESULT, LILYCOVE_LADY_STATE_COMPLETED
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A83C6
+ compare VAR_RESULT, LILYCOVE_LADY_STATE_PRIZE
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8510
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A83C6:: @ 82A83C6
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8AB1, MSGBOX_DEFAULT
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A83D0:: @ 82A83D0
+ special BufferFavorLadyRequest
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8A7D, MSGBOX_DEFAULT
+ specialvar VAR_RESULT, HasAnotherPlayerGivenFavorLadyItem
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8435
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A83F7
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A83F7:: @ 82A83F7
+ special BufferFavorLadyItemName
+ special BufferFavorLadyPlayerName
+ specialvar VAR_RESULT, DidFavorLadyLikeItem
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8419
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8427
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8419:: @ 82A8419
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8ACE, MSGBOX_DEFAULT
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A8435
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8427:: @ 82A8427
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8B36, MSGBOX_DEFAULT
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A8435
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8435:: @ 82A8435
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8B69, MSGBOX_YESNO
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8454
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A845E
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8454:: @ 82A8454
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8BCD, MSGBOX_DEFAULT
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A845E:: @ 82A845E
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8BAD, MSGBOX_DEFAULT
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A846C
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A846C:: @ 82A846C
+ fadescreen 1
+ setvar VAR_RESULT, 0
+ special Script_FavorLadyOpenBagMenu
+ waitstate
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A848E
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A84AD
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A848E:: @ 82A848E
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8BEE, MSGBOX_YESNO
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8454
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A846C
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A84AD:: @ 82A84AD
+ specialvar VAR_RESULT, Script_DoesFavorLadyLikeItem
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A84C9
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A84D6
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A84C9:: @ 82A84C9
+ special BufferFavorLadyRequest
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8C0F, MSGBOX_DEFAULT
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A84D6:: @ 82A84D6
+ specialvar VAR_RESULT, IsFavorLadyThresholdMet
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A84F2
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A84FF
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A84F2:: @ 82A84F2
+ special BufferFavorLadyRequest
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8C6F, MSGBOX_DEFAULT
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A84FF:: @ 82A84FF
+ special BufferFavorLadyRequest
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8CC8, MSGBOX_DEFAULT
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A8510
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8510:: @ 82A8510
+ setvar VAR_0x8004, 0
+ specialvar VAR_0x8004, FavorLadyGetPrize
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8D5D, MSGBOX_DEFAULT
+ giveitem_std VAR_0x8004
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8545
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A854F
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8545:: @ 82A8545
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8DBD, MSGBOX_DEFAULT
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A854F:: @ 82A854F
+ special SetFavorLadyState_Complete
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8554:: @ 82A8554
+ lock
+ faceplayer
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8E2B, MSGBOX_DEFAULT
+ specialvar VAR_RESULT, GetQuizLadyState
+ compare VAR_RESULT, LILYCOVE_LADY_STATE_READY
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8585
+ compare VAR_RESULT, LILYCOVE_LADY_STATE_COMPLETED
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A85AC
+ compare VAR_RESULT, LILYCOVE_LADY_STATE_PRIZE
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A86EC
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8585:: @ 82A8585
+ specialvar VAR_RESULT, GetQuizAuthor
+ compare VAR_RESULT, QUIZ_AUTHOR_PLAYER
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A85C8
+ compare VAR_RESULT, QUIZ_AUTHOR_OTHER_PLAYER
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A85D2
+ compare VAR_RESULT, QUIZ_AUTHOR_LADY
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A85E0
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A85AC:: @ 82A85AC
+ specialvar VAR_RESULT, IsQuizLadyWaitingForChallenger
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8759
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A85C8
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A85C8:: @ 82A85C8
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8E4E, MSGBOX_DEFAULT
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A85D2:: @ 82A85D2
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8EAC, MSGBOX_DEFAULT
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A85EE
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A85E0:: @ 82A85E0
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8EAC, MSGBOX_DEFAULT
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A85EE
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A85EE:: @ 82A85EE
+ setvar VAR_0x8004, 0
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8EEC, MSGBOX_YESNO
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A861C
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8612
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8612:: @ 82A8612
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8F65, MSGBOX_DEFAULT
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A861C:: @ 82A861C
+ special ClearQuizLadyPlayerAnswer
+ compare VAR_0x8004, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A864C
+ compare VAR_0x8004, EASY_CHAT_TYPE_QUIZ_ANSWER
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8656
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8635:: @ 82A8635
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8660
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8689
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A864C:: @ 82A864C
+ special QuizLadyShowQuizQuestion
+ waitstate
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A8635
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8656:: @ 82A8656
+ special QuizLadyGetPlayerAnswer
+ waitstate
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A8635
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8660:: @ 82A8660
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8F7E, MSGBOX_YESNO
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A867F
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A861C
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A867F:: @ 82A867F
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8F9A, MSGBOX_DEFAULT
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8689:: @ 82A8689
+ special SetQuizLadyState_Complete
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8F4D, MSGBOX_DEFAULT
+ specialvar VAR_RESULT, IsQuizAnswerCorrect
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A86C7
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A86B0
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A86B0:: @ 82A86B0
+ playse SE_SEIKAI
+ delay 10
+ playse SE_SEIKAI
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A8FC7, MSGBOX_DEFAULT
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A86EC
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A86C7:: @ 82A86C7
+ special BufferQuizCorrectAnswer
+ special BufferQuizPrizeName
+ playse SE_HAZURE
+ delay 10
+ playse SE_HAZURE
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A90A5, MSGBOX_DEFAULT
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A90CD, MSGBOX_DEFAULT
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A8759
+ end
+
+@ VAR_RESULT is essentially ignored, both jumps are identical
+LilycoveCity_PokemonCenter_1F_EventScript_2A86EC:: @ 82A86EC
+ specialvar VAR_RESULT, BufferQuizAuthorNameAndCheckIfLady
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8708
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8716
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8708:: @ 82A8708
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9007, MSGBOX_DEFAULT
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A8724
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8716:: @ 82A8716
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9007, MSGBOX_DEFAULT
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A8724
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8724:: @ 82A8724
+ setvar VAR_0x8005, 0
+ special BufferQuizPrizeItem
+ special SetQuizLadyState_Complete
+ giveitem_std VAR_0x8005
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A874C
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A8759
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A874C:: @ 82A874C
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A906A, MSGBOX_DEFAULT
+ special SetQuizLadyState_GivePrize
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8759:: @ 82A8759
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A90FB, MSGBOX_YESNO
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8785
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8778
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8778:: @ 82A8778
+ special QuizLadyPickNewQuestion
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9131, MSGBOX_DEFAULT
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8785:: @ 82A8785
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9153, MSGBOX_DEFAULT
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A878D:: @ 82A878D
+ fadescreen 1
+ setvar VAR_RESULT, 0
+ special Script_QuizLadyOpenBagMenu
+ waitstate
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A87AF
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A87CE
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A87AF:: @ 82A87AF
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9212, MSGBOX_YESNO
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8778
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A878D
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A87CE:: @ 82A87CE
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9270, MSGBOX_DEFAULT
+ special ClearQuizLadyQuestionAndAnswer
+ special ClearQuizLadyPlayerAnswer
+ setvar VAR_0x8004, EASY_CHAT_TYPE_QUIZ_QUESTION
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A87E1:: @ 82A87E1
+ fadescreen 1
+ special QuizLadySetCustomQuestion
+ waitstate
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A87F8
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A8817
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A87F8:: @ 82A87F8
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A92D3, MSGBOX_YESNO
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8778
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A87E1
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8817:: @ 82A8817
+ special QuizLadyTakePrizeForCustomQuiz
+ special QuizLadyRecordCustomQuizData
+ special QuizLadySetWaitingForChallenger
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9336, MSGBOX_DEFAULT
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A882A:: @ 82A882A
+ lock
+ faceplayer
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A93A7, MSGBOX_DEFAULT
+ specialvar VAR_RESULT, HasPlayerGivenContestLadyPokeblock
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8850
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A886C
+ end
+
+@ Redundant with above script, VAR_RESULT will always be 0 here
+LilycoveCity_PokemonCenter_1F_EventScript_2A8850:: @ 82A8850
+ specialvar VAR_RESULT, ShouldContestLadyShowGoOnAir
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8876
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A886C
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A886C:: @ 82A886C
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A93D6, MSGBOX_DEFAULT
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8876:: @ 82A8876
+ special Script_BufferContestLadyCategoryAndMonName
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A93F4, MSGBOX_DEFAULT
+ checkitem ITEM_POKEBLOCK_CASE, 1
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A89AE
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A94E8, MSGBOX_YESNO
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A88B0
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A88BA
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A88B0:: @ 82A88B0
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9556, MSGBOX_DEFAULT
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A88BA:: @ 82A88BA
+ fadescreen 1
+ special OpenPokeblockCaseForContestLady
+ waitstate
+ compare VAR_RESULT, 0xFFFF
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A88D7
+ compare VAR_RESULT, 0xFFFF
+ goto_if_ne LilycoveCity_PokemonCenter_1F_EventScript_2A88F6
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A88D7:: @ 82A88D7
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9537, MSGBOX_YESNO
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A88B0
+ compare VAR_RESULT, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A88BA
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A88F6:: @ 82A88F6
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9571, MSGBOX_DEFAULT
+ special SetContestLadyGivenPokeblock
+ special GetContestLadyMonSpecies
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A890A
+ end
+
+@ VAR_0x8004 here is the return value from GivePokeblockToContestLady
+LilycoveCity_PokemonCenter_1F_EventScript_2A890A:: @ 82A890A
+ applymovement 4, LilycoveCity_PokemonCenter_1F_Movement_2A89B8
+ waitmovement 0
+ delay 60
+ applymovement 5, LilycoveCity_PokemonCenter_1F_Movement_2A89BB
+ waitmovement 0
+ delay 60
+ waitse
+ playmoncry VAR_0x8005, 0
+ delay 120
+ waitmoncry
+ compare VAR_0x8004, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A893F
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A894C
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A893F:: @ 82A893F
+ applymovement 5, LilycoveCity_PokemonCenter_1F_Movement_2A89C2
+ waitmovement 0
+ delay 60
+
+@ VAR_0x8004 here is the return value from GivePokeblockToContestLady
+LilycoveCity_PokemonCenter_1F_EventScript_2A894C:: @ 82A894C
+ applymovement 4, LilycoveCity_PokemonCenter_1F_Movement_2A89C0
+ waitmovement 0
+ delay 60
+ compare VAR_0x8004, 0
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8970
+ compare VAR_0x8004, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A897E
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8970:: @ 82A8970
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A95AD, MSGBOX_DEFAULT
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A898F
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A897E:: @ 82A897E
+ special Script_BufferContestLadyCategoryAndMonName
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9605, MSGBOX_DEFAULT
+ goto LilycoveCity_PokemonCenter_1F_EventScript_2A898F
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A898F:: @ 82A898F
+ specialvar VAR_RESULT, ShouldContestLadyShowGoOnAir
+ compare VAR_RESULT, 1
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A89A1
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A89A1:: @ 82A89A1
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9669, MSGBOX_DEFAULT
+ special PutLilycoveContestLadyShowOnTheAir
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A89AE:: @ 82A89AE
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9451, MSGBOX_DEFAULT
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_Movement_2A89B8: @ 82A89B8
+ face_right
+ delay_8
+ step_end
+
+LilycoveCity_PokemonCenter_1F_Movement_2A89BB: @ 82A89BB
+ face_left
+ delay_8
+ step_end
+
+LilycoveCity_PokemonCenter_1F_Movement_2A89BE: @ 82A89BE
+ face_down
+ step_end
+
+LilycoveCity_PokemonCenter_1F_Movement_2A89C0: @ 82A89C0
+ face_player
+ step_end
+
+LilycoveCity_PokemonCenter_1F_Movement_2A89C2: @ 82A89C2
+ disable_jump_landing_ground_effect
+ jump_in_place_left
+ disable_jump_landing_ground_effect
+ jump_in_place_left
+ step_end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A89C7:: @ 82A89C7
+ specialvar VAR_RESULT, GetContestLadyCategory
+ special Script_BufferContestLadyCategoryAndMonName
+ special GetContestLadyMonSpecies
+ compare VAR_RESULT, CONTEST_CATEGORY_COOL
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8A0A
+ compare VAR_RESULT, CONTEST_CATEGORY_BEAUTY
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8A1D
+ compare VAR_RESULT, CONTEST_CATEGORY_CUTE
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8A30
+ compare VAR_RESULT, CONTEST_CATEGORY_SMART
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8A43
+ compare VAR_RESULT, CONTEST_CATEGORY_TOUGH
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_2A8A56
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8A0A:: @ 82A8A0A
+ lock
+ faceplayer
+ waitse
+ playmoncry VAR_0x8005, 0
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A96DA, MSGBOX_DEFAULT
+ waitmoncry
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8A1D:: @ 82A8A1D
+ lock
+ faceplayer
+ waitse
+ playmoncry VAR_0x8005, 0
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A970E, MSGBOX_DEFAULT
+ waitmoncry
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8A30:: @ 82A8A30
+ lock
+ faceplayer
+ waitse
+ playmoncry VAR_0x8005, 0
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A96F6, MSGBOX_DEFAULT
+ waitmoncry
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8A43:: @ 82A8A43
+ lock
+ faceplayer
+ waitse
+ playmoncry VAR_0x8005, 0
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A96E6, MSGBOX_DEFAULT
+ waitmoncry
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_2A8A56:: @ 82A8A56
+ lock
+ faceplayer
+ waitse
+ playmoncry VAR_0x8005, 0
+ msgbox LilycoveCity_PokemonCenter_1F_Text_2A9703, MSGBOX_DEFAULT
+ waitmoncry
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_Text_2A8A69: @ 82A8A69
+ .string "I'm the FAVOR LADY…$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8A7D: @ 82A8A7D
+ .string "I've recently developed an obsession\n"
+ .string "for {STR_VAR_1} things…$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8AB1: @ 82A8AB1
+ .string "Oh…\n"
+ .string "Thank you for last time…$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8ACE: @ 82A8ACE
+ .string "Before, I think it was {STR_VAR_3}…\p"
+ .string "{STR_VAR_3} gave me one {STR_VAR_2},\n"
+ .string "saying it was {STR_VAR_1}.\p"
+ .string "But it wasn't {STR_VAR_1}.\n"
+ .string "Not in the least bit.$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8B36: @ 82A8B36
+ .string "Before, {STR_VAR_3} gave me a very\n"
+ .string "{STR_VAR_1} {STR_VAR_2}.\p"
+ .string "I cherish it now.$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8B69: @ 82A8B69
+ .string "Listen, if you have anything that\n"
+ .string "is {STR_VAR_1}, will you share it\l"
+ .string "with me?$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8BAD: @ 82A8BAD
+ .string "…Really?\n"
+ .string "What will you give me?$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8BCD: @ 82A8BCD
+ .string "Is that so?\n"
+ .string "Then, it's good-bye…$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8BEE: @ 82A8BEE
+ .string "Oh…\n"
+ .string "You're not willing to share?$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8C0F: @ 82A8C0F
+ .string "Oh?\n"
+ .string "That {STR_VAR_2} is {STR_VAR_1}?\p"
+ .string "…Oh, is that right?\p"
+ .string "Well, I owe you a thanks anyway.\n"
+ .string "I'll try to cherish it…$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8C6F: @ 82A8C6F
+ .string "Oh…\p"
+ .string "That's a quite {STR_VAR_1}\n"
+ .string "{STR_VAR_2}…\p"
+ .string "Isn't it nice?\n"
+ .string "It's so dreamy…\p"
+ .string "Thank you…\n"
+ .string "I will cherish this…$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8CC8: @ 82A8CC8
+ .string "…Oh, oh, oh…\p"
+ .string "This is amazing!\n"
+ .string "This really is {STR_VAR_1}!\p"
+ .string "I never knew that one {STR_VAR_2}\n"
+ .string "could be this {STR_VAR_1}!\p"
+ .string "Thank you!\p"
+ .string "I will treasure this for the rest\n"
+ .string "of my life!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8D5D: @ 82A8D5D
+ .string "I'll give you this wonderful item in\n"
+ .string "return for your fabulous gift.\p"
+ .string "I hope you will cherish it…$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8DBD: @ 82A8DBD
+ .string "Oh, you can't have it if you don't have\n"
+ .string "the space for it.\p"
+ .string "Please come see me when you get\n"
+ .string "your BAG organized…$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8E2B: @ 82A8E2B
+ .string "I'm the QUIZ LADY!\n"
+ .string "I love quizzes!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8E4E: @ 82A8E4E
+ .string "Oh?\p"
+ .string "I'm waiting for a challenger to answer\n"
+ .string "the quiz you made.\p"
+ .string "We can chat another time, okay?$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8EAC: @ 82A8EAC
+ .string "I'm waiting for someone to challenge\n"
+ .string "a quiz this {STR_VAR_1} thought up!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8EEC: @ 82A8EEC
+ .string "If you answer correctly, you can win\n"
+ .string "fabulous prizes!\p"
+ .string "Would you like to take the quiz\n"
+ .string "challenge?$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8F4D: @ 82A8F4D
+ .string "… … … … … …\n"
+ .string "… … … … … …$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8F65: @ 82A8F65
+ .string "Oh, how boring!\n"
+ .string "Bye-bye!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8F7E: @ 82A8F7E
+ .string "Awww!\n"
+ .string "You're going to quit?$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8F9A: @ 82A8F9A
+ .string "Please take the quiz challenge\n"
+ .string "another time!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A8FC7: @ 82A8FC7
+ .string "You're amazing! You've got it right!\n"
+ .string "You're one sharp customer!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9007: @ 82A9007
+ .string "Congratulations!\n"
+ .string "You've got the quiz right!\p"
+ .string "You've won a prize provided by\n"
+ .string "{STR_VAR_1}!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9056: @ 82A9056
+ .string "{STR_VAR_1} received\n"
+ .string "one {STR_VAR_2}!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A906A: @ 82A906A
+ .string "Oh? Your BAG is filled up!\n"
+ .string "Come see me when you have room.$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A90A5: @ 82A90A5
+ .string "Hmm… Wrong!\n"
+ .string "The correct answer is “{STR_VAR_3}”!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A90CD: @ 82A90CD
+ .string "Too bad!\p"
+ .string "I get to keep the quiz prize\n"
+ .string "{STR_VAR_1} now!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A90FB: @ 82A90FB
+ .string "Listen, listen!\n"
+ .string "Would you like to make your own quiz?$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9131: @ 82A9131
+ .string "Oh, I see…\n"
+ .string "Well, maybe next time!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9153: @ 82A9153
+ .string "Okay, the first thing you have to do\n"
+ .string "is pick the prize for the person that\l"
+ .string "answers your quiz correctly.\p"
+ .string "But beware, if the person taking\n"
+ .string "the quiz can't get it right, I get to\l"
+ .string "keep the prize!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9212: @ 82A9212
+ .string "If you don't choose a prize,\n"
+ .string "your quiz can't be made.\p"
+ .string "Are you going to quit making\n"
+ .string "your quiz?$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9270: @ 82A9270
+ .string "Oh, how nice!\n"
+ .string "That's a wonderful prize!\p"
+ .string "Next, you need to write your quiz\n"
+ .string "question and its answer.$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A92D3: @ 82A92D3
+ .string "Are you going to quit writing\n"
+ .string "your quiz question?$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9305: @ 82A9305
+ .string "Are you going to quit choosing\n"
+ .string "your quiz answer?$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9336: @ 82A9336
+ .string "Thank you!\n"
+ .string "You've put together a nice quiz.\p"
+ .string "I'll go look for someone who'll take\n"
+ .string "your quiz challenge right away.$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A93A7: @ 82A93A7
+ .string "I'm the CONTEST LADY!\n"
+ .string "I sure do love CONTESTS!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A93D6: @ 82A93D6
+ .string "Thanks for your {POKEBLOCK} before!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A93F4: @ 82A93F4
+ .string "This is my friend {STR_VAR_1}!\n"
+ .string "It's the epitome of {STR_VAR_2}!\p"
+ .string "But I think that it will display\n"
+ .string "even more {STR_VAR_2}!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9451: @ 82A9451
+ .string "So, I need your help!\p"
+ .string "Please, may I have one {POKEBLOCK}?\n"
+ .string "All I'm asking for is one!\p"
+ .string "…Oh, but…\n"
+ .string "Don't you have a {POKEBLOCK} CASE?\l"
+ .string "That's no good. Next time, then!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A94E8: @ 82A94E8
+ .string "So, I need your help!\p"
+ .string "Please, may I have one {POKEBLOCK}?\n"
+ .string "All I'm asking for is one!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9537: @ 82A9537
+ .string "Awww!\n"
+ .string "I can't have one {POKEBLOCK}?!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9556: @ 82A9556
+ .string "Sheesh!\n"
+ .string "What a cheapskate!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9571: @ 82A9571
+ .string "Yay!\n"
+ .string "Thank you!\p"
+ .string "I'll feed my POKéMON your {POKEBLOCK}\n"
+ .string "right away.$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A95AD: @ 82A95AD
+ .string "…It doesn't seem to have changed\n"
+ .string "in any way at all…\p"
+ .string "Hmm…\p"
+ .string "Oh, well!\n"
+ .string "Thank you very much!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9605: @ 82A9605
+ .string "Oh, yay!\n"
+ .string "It's really delighted!\p"
+ .string "I think it really improved {STR_VAR_1}'s\n"
+ .string "{STR_VAR_2} quality, too.\p"
+ .string "Thank you so much!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9669: @ 82A9669
+ .string "Hmm…\p"
+ .string "I think we may be ready to enter\n"
+ .string "some CONTESTS.\p"
+ .string "If you see us in one somewhere,\n"
+ .string "I hope you'll cheer for us.$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A96DA: @ 82A96DA
+ .string "{STR_VAR_1}: Guguuh!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A96E6: @ 82A96E6
+ .string "{STR_VAR_1}: Igigigiiih!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A96F6: @ 82A96F6
+ .string "{STR_VAR_1}: Baaarun…$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A9703: @ 82A9703
+ .string "{STR_VAR_1}: Pikka!$"
+
+LilycoveCity_PokemonCenter_1F_Text_2A970E: @ 82A970E
+ .string "{STR_VAR_1}: Umyaaaan!$"
diff --git a/data/scripts/pkmn_center_nurse.inc b/data/scripts/pkmn_center_nurse.inc
new file mode 100644
index 000000000..bfeba79e3
--- /dev/null
+++ b/data/scripts/pkmn_center_nurse.inc
@@ -0,0 +1,135 @@
+Common_EventScript_PkmnCenterNurse:: @ 827191E
+ lock
+ faceplayer
+ setvar VAR_0x8004, 0
+ specialvar VAR_RESULT, CountPlayerTrainerStars
+ compare VAR_RESULT, 4
+ goto_if_eq EventScript_PkmnCenterNurse_GoldCard
+ msgbox gText_WouldYouLikeToRestYourPkmn, MSGBOX_YESNO
+ compare VAR_RESULT, 1
+ goto_if_eq EventScript_PkmnCenterNurse_HealPkmn
+ compare VAR_RESULT, 0
+ goto_if_eq EventScript_PkmnCenterNurse_Goodbye
+ end
+
+EventScript_PkmnCenterNurse_Goodbye:: @ 8271954
+ message gText_WeHopeToSeeYouAgain
+ return
+
+@ VAR_0x8004 is 1 when player has Gold Card; jumps are identical
+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
+ end
+
+EventScript_PkmnCenterNurse_IllTakeYourPkmn:: @ 8271987
+ message gText_IllTakeYourPkmn
+ return
+
+EventScript_PkmnCenterNurse_IllTakeYourPkmn2:: @ 827198D
+ message gText_IllTakeYourPkmn2
+ return
+
+EventScript_PkmnCenterNurse_TakeAndHealPkmn:: @ 8271993
+ applymovement VAR_0x800B, Common_Movement_WalkInPlaceLeft
+ waitmovement 0
+ dofieldeffect FLDEFF_POKECENTER_HEAL
+ waitfieldeffect FLDEFF_POKECENTER_HEAL
+ applymovement VAR_0x800B, Common_Movement_WalkInPlaceDown
+ waitmovement 0
+ special HealPlayerParty
+ return
+
+EventScript_PkmnCenterNurse_CheckTrainerHillAndUnionRoom:: @ 82719B1
+ specialvar VAR_RESULT, PlayerNotAtTrainerHillEntrance
+ compare VAR_RESULT, 0
+ goto_if_eq EventScript_PkmnCenterNurse_ReturnPkmn
+ specialvar VAR_RESULT, BufferUnionRoomPlayerName
+ copyvar VAR_0x8008, VAR_RESULT
+ compare VAR_0x8008, 0
+ goto_if_eq EventScript_PkmnCenterNurse_ReturnPkmn
+ compare VAR_0x8008, 1
+ goto_if_eq EventScript_PkmnCenterNurse_PlayerWaitingInUnionRoom
+ end
+
+@ VAR_0x8004 is 1 when player has Gold Card
+EventScript_PkmnCenterNurse_ReturnPkmn:: @ 82719E2
+ compare VAR_0x8004, 1
+ goto_if_eq EventScript_PkmnCenterNurse_ReturnPkmn2
+ message gText_RestoredPkmnToFullHealth
+ waitmessage
+ applymovement VAR_0x800B, EventScript_PkmnCenterNurse_Bow
+ waitmovement 0
+ message gText_WeHopeToSeeYouAgain
+ return
+
+EventScript_PkmnCenterNurse_ReturnPkmn2:: @ 8271A03
+ message gText_ThankYouForWaiting
+ waitmessage
+ applymovement VAR_0x800B, EventScript_PkmnCenterNurse_Bow
+ waitmovement 0
+ message gText_WeHopeToSeeYouAgain2
+ return
+
+EventScript_PkmnCenterNurse_PlayerWaitingInUnionRoom:: @ 8271A19
+ goto_if_set FLAG_NURSE_UNION_ROOM_REMINDER, EventScript_PkmnCenterNurse_ReturnPkmn
+ msgbox gText_RestoredPkmnToFullHealth, MSGBOX_DEFAULT
+ setflag FLAG_NURSE_UNION_ROOM_REMINDER
+ message CableClub_Text_PlayerIsWaiting
+ waitmessage
+ applymovement VAR_0x800B, EventScript_PkmnCenterNurse_Bow
+ waitmovement 0
+ message gText_WeHopeToSeeYouAgain
+ return
+
+EventScript_PkmnCenterNurse_CheckPokerus:: @ 8271A43
+ specialvar VAR_RESULT, IsPokerusInParty
+ compare VAR_RESULT, 1
+ goto_if_eq EventScript_PkmnCenterNurse_ExplainPokerus
+ compare VAR_RESULT, 0
+ goto_if_eq EventScript_PkmnCenterNurse_CheckTrainerHillAndUnionRoom
+ end
+
+EventScript_PkmnCenterNurse_ExplainPokerus:: @ 8271A5F
+ message gText_PokerusExplanation
+ setflag FLAG_POKERUS_EXPLAINED
+ return
+
+EventScript_PkmnCenterNurse_GoldCard:: @ 8271A68
+ goto_if_set FLAG_NURSE_MENTIONS_GOLD_CARD, EventScript_PkmnCenterNurse_AskForUsual
+ setflag FLAG_NURSE_MENTIONS_GOLD_CARD
+ msgbox gText_WelcomeCutShort, MSGBOX_DEFAULT
+ playse SE_PIN
+ applymovement VAR_0x800B, Common_Movement_ExclamationMark
+ waitmovement 0
+ applymovement VAR_0x800B, Common_Movement_Delay48
+ waitmovement 0
+ msgbox gText_NoticesGoldCard, MSGBOX_YESNO
+ compare VAR_RESULT, 1
+ goto_if_eq EventScript_PkmnCenterNurse_GoldCardHealPkmn
+ message gText_WeHopeToSeeYouAgain2
+ return
+
+EventScript_PkmnCenterNurse_AskForUsual:: @ 8271AAC
+ msgbox gText_YouWantTheUsual, MSGBOX_YESNO
+ compare VAR_RESULT, 1
+ goto_if_eq EventScript_PkmnCenterNurse_GoldCardHealPkmn
+ message gText_WeHopeToSeeYouAgain2
+ return
+
+EventScript_PkmnCenterNurse_GoldCardHealPkmn:: @ 8271AC5
+ setvar VAR_0x8004, 1
+ goto EventScript_PkmnCenterNurse_HealPkmn
+ end
+
+EventScript_PkmnCenterNurse_Bow: @ 8271AD0
+ nurse_joy_bow
+ delay_4
+ step_end
diff --git a/data/scripts/players_house.inc b/data/scripts/players_house.inc
index 855c5eac2..149fb52cc 100644
--- a/data/scripts/players_house.inc
+++ b/data/scripts/players_house.inc
@@ -104,7 +104,7 @@ LittlerootTown_BrendansHouse_2F_EventScript_29280F:: @ 829280F
return
LittlerootTown_BrendansHouse_2F_EventScript_29283F:: @ 829283F
- incrementgamestat 45
+ incrementgamestat GAME_STAT_CHECKED_CLOCK
fadescreen 1
special Special_ViewWallClock
waitstate
@@ -374,7 +374,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_292A94:: @ 8292A94
LittlerootTown_BrendansHouse_1F_EventScript_292A9E:: @ 8292A9E
closemessage
call Common_EventScript_OutOfCenterPartyHeal
- incrementgamestat 16
+ incrementgamestat GAME_STAT_RESTED_AT_HOME
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7D5C, MSGBOX_DEFAULT
release
end
diff --git a/data/scripts/pokeblocks.inc b/data/scripts/pokeblocks.inc
index 7b3932341..10ced77c4 100644
--- a/data/scripts/pokeblocks.inc
+++ b/data/scripts/pokeblocks.inc
@@ -679,7 +679,7 @@ EventScript_PblocLink_DifferentSelections: @ 8294183
EventScript_PblocLink_CloseLink: @ 8294190
special CloseLink
- msgbox gUnknown_08272D9C, MSGBOX_DEFAULT
+ msgbox gText_PokeblockLinkCanceled, MSGBOX_DEFAULT
releaseall
end
diff --git a/data/scripts/secret_base.inc b/data/scripts/secret_base.inc
index 81bd388f8..f2a99cd36 100644
--- a/data/scripts/secret_base.inc
+++ b/data/scripts/secret_base.inc
@@ -1,433 +1,148 @@
-Text_274746: @ 8274746
+SecretBase_Text_TreeCanBeClimbed: @ 8274746
.string "If some vines drop down, this tree can\n"
.string "be climbed.$"
-Text_274779: @ 8274779
+SecretBase_Text_TreeUseSecretPower: @ 8274779
.string "If some vines drop down, this tree can\n"
.string "be climbed.\p"
.string "Use the SECRET POWER?$"
-Text_2747C2: @ 82747C2
+SecretBase_Text_VineDroppedDown: @ 82747C2
.string "A thick vine dropped down!$"
-Text_2747DD: @ 82747DD
+SecretBase_Text_ClumpOfGrass: @ 82747DD
.string "If this clump of grass can be moved,\n"
.string "it might be possible to go inside.$"
-Text_274825: @ 8274825
+SecretBase_Text_ClumpUseSecretPower: @ 8274825
.string "If this clump of grass can be moved,\n"
.string "it might be possible to go inside.\p"
.string "Use the SECRET POWER?$"
-Text_274883: @ 8274883
+SecretBase_Text_DiscoveredSmallEntrance: @ 8274883
.string "Discovered a small entrance!$"
-SecretBase_RedCave1_Text_2748A0: @ 82748A0
- .string "Have you made a SECRET BASE already?\p"
- .string "I went here, there, everywhere before\n"
- .string "choosing this place.\p"
- .string "Since you're already here, how would\n"
- .string "you like to battle?$"
-
-SecretBase_RedCave1_Text_274939: @ 8274939
- .string "Okay!\n"
- .string "Here we come!$"
-
-SecretBase_RedCave1_Text_27494D: @ 827494D
- .string "Hunh?\n"
- .string "Oh, you can't now…$"
-
-SecretBase_RedCave1_Text_274966:: @ 8274966
- .string "Waaargh! You're too strong!\n"
- .string "About me losing… Please keep it secret!$"
-
-SecretBase_RedCave1_Text_2749AA: @ 82749AA
- .string "What do you think of my SECRET BASE?\n"
- .string "Come visit me again tomorrow.$"
-
-SecretBase_RedCave1_Text_2749ED: @ 82749ED
- .string "Have you made a SECRET BASE already?\p"
- .string "I went here, there, everywhere before\n"
- .string "choosing this place.\p"
- .string "Feel free to hang out!$"
-
-SecretBase_RedCave1_Text_274A64: @ 8274A64
- .string "There're a lot of places where\n"
- .string "you can make a SECRET BASE.\p"
- .string "But I like this spot best.\n"
- .string "Don't you think it's nice?\p"
- .string "Oh, would you like to have a battle?$"
-
-SecretBase_RedCave1_Text_274AFA: @ 8274AFA
- .string "Okay, here goes!$"
-
-SecretBase_RedCave1_Text_274B0B: @ 8274B0B
- .string "Oh…\n"
- .string "You can't now, okay.$"
-
-SecretBase_RedCave1_Text_274B24:: @ 8274B24
- .string "Hmmm… It's our loss…\n"
- .string "But don't tell anyone!\l"
- .string "It's a confidential secret!$"
-
-SecretBase_RedCave1_Text_274B6C: @ 8274B6C
- .string "If you're in this area again,\n"
- .string "I hope you'll visit me.$"
-
-SecretBase_RedCave1_Text_274BA2: @ 8274BA2
- .string "There're a lot of places where you can\n"
- .string "make a SECRET BASE.\p"
- .string "But I like this spot best.\n"
- .string "Don't you think it's nice?$"
-
-SecretBase_RedCave1_Text_274C13: @ 8274C13
- .string "This is a popular spot.\n"
- .string "It's always taken.\p"
- .string "Oh! Were you thinking about\n"
- .string "taking this spot, too?\p"
- .string "I'll tell you what, you can have this\n"
- .string "spot if you can beat me.$"
-
-SecretBase_RedCave1_Text_274CB0: @ 8274CB0
- .string "Okay!\n"
- .string "I'm going to defend my SECRET BASE!$"
-
-SecretBase_RedCave1_Text_274CDA: @ 8274CDA
- .string "Hunh? Is that right?\n"
- .string "You're not interested in this spot?$"
-
-SecretBase_RedCave1_Text_274D13:: @ 8274D13
- .string "I can't keep going!\n"
- .string "I surrender!$"
-
-SecretBase_RedCave1_Text_274D34: @ 8274D34
- .string "Okay, when I move one day,\n"
- .string "this place will be yours!$"
-
-SecretBase_RedCave1_Text_274D69: @ 8274D69
- .string "This is a popular spot.\n"
- .string "It's always taken.\p"
- .string "I waited a long time for it to open.\n"
- .string "I finally got to use it!$"
-
-SecretBase_RedCave1_Text_274DD2: @ 8274DD2
- .string "Welcome to my POKéMON LAB.\p"
- .string "I carry out research on battling in\n"
- .string "secrecy.\p"
- .string "Would you like to see how strong I am?$"
-
-SecretBase_RedCave1_Text_274E41: @ 8274E41
- .string "I'm going to go all out!$"
-
-SecretBase_RedCave1_Text_274E5A: @ 8274E5A
- .string "Oh.\n"
- .string "Some other time, then!$"
-
-SecretBase_RedCave1_Text_274E75:: @ 8274E75
- .string "Hmm… I've still got lots to learn.\n"
- .string "I have to study some more.$"
-
-SecretBase_RedCave1_Text_274EB3: @ 8274EB3
- .string "Thanks for battling with me.\n"
- .string "Please come back again tomorrow.$"
-
-SecretBase_RedCave1_Text_274EF1: @ 8274EF1
- .string "Welcome to my POKéMON LAB.\p"
- .string "I carry out research on battling in\n"
- .string "secrecy.$"
-
-SecretBase_RedCave1_Text_274F39: @ 8274F39
- .string "A big mansion is nice, but I like this\n"
- .string "sort of place more.\p"
- .string "I like it because all kinds of people\n"
- .string "come visit me.\p"
- .string "So, how would you like a battle?$"
-
-SecretBase_RedCave1_Text_274FCA: @ 8274FCA
- .string "That's the way!$"
-
-SecretBase_RedCave1_Text_274FDA: @ 8274FDA
- .string "When you're ready, give me a shout!$"
-
-SecretBase_RedCave1_Text_274FFE:: @ 8274FFE
- .string "Aww! Done in!\n"
- .string "But it's still fun to battle!$"
-
-SecretBase_RedCave1_Text_27502A: @ 827502A
- .string "Well, anyway, I should go buy some\n"
- .string "decorations and furniture.\p"
- .string "I want my SECRET BASE to be a place\n"
- .string "other people can enjoy.$"
-
-SecretBase_RedCave1_Text_2750A4: @ 82750A4
- .string "A big mansion is nice, but I like this\n"
- .string "sort of place more.\p"
- .string "I like it because all kinds of people\n"
- .string "come visit me.$"
-
-SecretBase_RedCave1_Text_275114: @ 8275114
- .string "I simply adore shopping for decorations\n"
- .string "and furniture.\p"
- .string "I also love raising POKéMON just\n"
- .string "as much.\p"
- .string "If you would be so kind, will you battle\n"
- .string "with my POKéMON?$"
-
-SecretBase_RedCave1_Text_2751AF: @ 82751AF
- .string "Thank you.\n"
- .string "Shall we begin?$"
-
-SecretBase_RedCave1_Text_2751CA: @ 82751CA
- .string "Oh.\n"
- .string "How disappointing…$"
-
-SecretBase_RedCave1_Text_2751E1:: @ 82751E1
- .string "I concede…$"
-
-SecretBase_RedCave1_Text_2751EC: @ 82751EC
- .string "That was all in good fun!\n"
- .string "I should go enjoy shopping now.$"
-
-SecretBase_RedCave1_Text_275226: @ 8275226
- .string "I simply adore shopping for decorations\n"
- .string "and furniture.\p"
- .string "I also love raising POKéMON just\n"
- .string "as much.$"
-
-SecretBase_RedCave1_Text_275287: @ 8275287
- .string "Some people make their SECRET BASES in\n"
- .string "hard-to-find places.\l"
- .string "Do they want to just lie low?\p"
- .string "But since you found me, how about we\n"
- .string "have a battle?$"
-
-SecretBase_RedCave1_Text_275315: @ 8275315
- .string "I'm not going down easily!$"
-
-SecretBase_RedCave1_Text_275330: @ 8275330
- .string "Oh… Are you maybe tired from searching\n"
- .string "for this place?$"
-
-SecretBase_RedCave1_Text_275367:: @ 8275367
- .string "I went down…$"
-
-SecretBase_RedCave1_Text_275374: @ 8275374
- .string "Where's your SECRET BASE?\n"
- .string "I should go visit you there.$"
-
-SecretBase_RedCave1_Text_2753AB: @ 82753AB
- .string "Some people make their SECRET BASES in\n"
- .string "hard-to-find places.\l"
- .string "Do they want to just lie low?$"
-
-SecretBase_RedCave1_Text_275405: @ 8275405
- .string "People have told me that you can get\n"
- .string "decorations in several ways.\p"
- .string "We should have a race to see who can\n"
- .string "get nicer decorations and furniture!\p"
- .string "In the meantime, want to battle?$"
-
-SecretBase_RedCave1_Text_2754B2: @ 82754B2
- .string "This is my SECRET BASE.\n"
- .string "I can't lose!$"
-
-SecretBase_RedCave1_Text_2754D8: @ 82754D8
- .string "I'll battle with you anytime.$"
-
-SecretBase_RedCave1_Text_2754F6:: @ 82754F6
- .string "Huh?\n"
- .string "Did I just lose?$"
-
-SecretBase_RedCave1_Text_27550C: @ 827550C
- .string "I won't lose at collecting decorations.\n"
- .string "Come visit again!$"
-
-SecretBase_RedCave1_Text_275546: @ 8275546
- .string "People have told me that you can get\n"
- .string "decorations in several ways.\p"
- .string "We should have a race to see who can\n"
- .string "get nicer decorations and furniture!$"
-
-SecretBase_RedCave1_Text_2755D2: @ 82755D2
- .string "I found a spot I liked, and I did it up\n"
- .string "with my favorite decorations.\p"
- .string "I raise my favorite POKéMON and grow\n"
- .string "stronger with it.\p"
- .string "That's what I do.\n"
- .string "Want to battle with me?$"
-
-SecretBase_RedCave1_Text_275679: @ 8275679
- .string "Show me what you're made of!$"
-
-SecretBase_RedCave1_Text_275696: @ 8275696
- .string "I guess there are times when you're not\n"
- .string "into it.$"
-
-SecretBase_RedCave1_Text_2756C7:: @ 82756C7
- .string "I know exactly what you're made of now.$"
-
-SecretBase_RedCave1_Text_2756EF: @ 82756EF
- .string "We can both become stronger.\n"
- .string "Let's keep at it!$"
-
-SecretBase_RedCave1_Text_27571E: @ 827571E
- .string "I found a spot I liked, and I did it up\n"
- .string "with my favorite decorations.\p"
- .string "I raise my favorite POKéMON and grow\n"
- .string "stronger with it.\p"
- .string "Every day is a great day.$"
-
-SecretBase_RedCave1_Text_2757B5: @ 82757B5
- .string "You can learn a lot about the taste\n"
- .string "and sense of people by the kinds of\l"
- .string "decorations they have, and how they\l"
- .string "display them.\p"
- .string "What do you think of my taste?\n"
- .string "Are you speechless?\p"
- .string "Want to see my taste in battling?$"
-
-SecretBase_RedCave1_Text_275884: @ 8275884
- .string "There's no holding back!$"
-
-SecretBase_RedCave1_Text_27589D: @ 827589D
- .string "I'll be happy to demonstrate my style\n"
- .string "anytime.$"
-
-SecretBase_RedCave1_Text_2758CC:: @ 82758CC
- .string "You're supremely talented!\n"
- .string "Your power seems to be limitless…$"
-
-SecretBase_RedCave1_Text_275909: @ 8275909
- .string "What did you think of my style?\n"
- .string "I'll keep on polishing it!$"
-
-SecretBase_RedCave1_Text_275944: @ 8275944
- .string "You can learn a lot about the taste\n"
- .string "and sense of people by the kinds of\l"
- .string "decorations they have, and how they\l"
- .string "display them.\p"
- .string "What do you think of my taste?\n"
- .string "Are you speechless?$"
-
-EventScript_2759F1:: @ 82759F1
+ .include "data/text/secret_base_trainers.inc"
+
+SecretBase_EventScript_CheckEntrance:: @ 82759F1
special GetSecretBaseTypeInFrontOfPlayer
special CheckPlayerHasSecretBase
compare VAR_RESULT, 1
- goto_if_eq EventScript_275BE8
+ goto_if_eq SecretBase_EventScript_AlreadyHasSecretBase
checkpartymove MOVE_SECRET_POWER
setfieldeffectargument 0, VAR_RESULT
buffermovename 1, MOVE_SECRET_POWER
- compare VAR_0x8007, 1
- goto_if_eq EventScript_275A50
- compare VAR_0x8007, 2
- goto_if_eq EventScript_275A50
- compare VAR_0x8007, 3
- goto_if_eq EventScript_275A50
- compare VAR_0x8007, 4
- goto_if_eq EventScript_275A50
- compare VAR_0x8007, 5
- goto_if_eq EventScript_275AA9
- compare VAR_0x8007, 6
- goto_if_eq EventScript_275B02
- end
-
-EventScript_275A50:: @ 8275A50
+ compare VAR_0x8007, SECRET_BASE_RED_CAVE
+ goto_if_eq SecretBase_EventScript_Cave
+ compare VAR_0x8007, SECRET_BASE_BROWN_CAVE
+ goto_if_eq SecretBase_EventScript_Cave
+ compare VAR_0x8007, SECRET_BASE_BLUE_CAVE
+ goto_if_eq SecretBase_EventScript_Cave
+ compare VAR_0x8007, SECRET_BASE_YELLOW_CAVE
+ goto_if_eq SecretBase_EventScript_Cave
+ compare VAR_0x8007, SECRET_BASE_TREE
+ goto_if_eq SecretBase_EventScript_Tree
+ compare VAR_0x8007, SECRET_BASE_SHRUB
+ goto_if_eq SecretBase_EventScript_Shrub
+ end
+
+SecretBase_EventScript_Cave:: @ 8275A50
lockall
- compare VAR_RESULT, 6
- goto_if_eq EventScript_275A91
+ compare VAR_RESULT, PARTY_SIZE
+ goto_if_eq SecretBase_EventScript_CaveNoSecretPower
bufferpartymonnick 0, VAR_RESULT
- msgbox gText_23B704, MSGBOX_YESNO
+ msgbox SecretBase_Text_IndentUseSecretPower, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq EventScript_275CDE
- msgbox Text_MonUsedHM, MSGBOX_DEFAULT
+ goto_if_eq SecretBase_EventScript_CancelOnEntrance
+ msgbox Text_MonUsedFieldMove, MSGBOX_DEFAULT
closemessage
dofieldeffect FLDEFF_USE_SECRET_POWER_CAVE
waitstate
- goto EventScript_275A9B
+ goto SecretBase_EventScript_CaveEnter
end
-EventScript_275A86:: @ 8275A86
+SecretBase_EventScript_CaveUseSecretPower:: @ 8275A86
lockall
dofieldeffect FLDEFF_USE_SECRET_POWER_CAVE
waitstate
- goto EventScript_275A9B
+ goto SecretBase_EventScript_CaveEnter
end
-EventScript_275A91:: @ 8275A91
- msgbox gText_23B6E0, MSGBOX_DEFAULT
+SecretBase_EventScript_CaveNoSecretPower:: @ 8275A91
+ msgbox SecretBase_Text_SmallIndentInWall, MSGBOX_DEFAULT
releaseall
end
-EventScript_275A9B:: @ 8275A9B
- msgbox gText_23B73E, MSGBOX_DEFAULT
- goto EventScript_275B5B
+SecretBase_EventScript_CaveEnter:: @ 8275A9B
+ msgbox SecretBase_Text_DiscoveredSmallCavern, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_InitSecretBase
end
-EventScript_275AA9:: @ 8275AA9
+SecretBase_EventScript_Tree:: @ 8275AA9
lockall
- compare VAR_RESULT, 6
- goto_if_eq EventScript_275AEA
+ compare VAR_RESULT, PARTY_SIZE
+ goto_if_eq SecretBase_EventScript_TreeNoSecretPower
bufferpartymonnick 0, VAR_RESULT
- msgbox Text_274779, MSGBOX_YESNO
+ msgbox SecretBase_Text_TreeUseSecretPower, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq EventScript_275CDE
- msgbox Text_MonUsedHM, MSGBOX_DEFAULT
+ goto_if_eq SecretBase_EventScript_CancelOnEntrance
+ msgbox Text_MonUsedFieldMove, MSGBOX_DEFAULT
closemessage
dofieldeffect FLDEFF_USE_SECRET_POWER_TREE
waitstate
- goto EventScript_275AF4
+ goto SecretBase_EventScript_TreeEnter
end
-EventScript_275ADF:: @ 8275ADF
+SecretBase_EventScript_TreeUseSecretPower:: @ 8275ADF
lockall
dofieldeffect FLDEFF_USE_SECRET_POWER_TREE
waitstate
- goto EventScript_275AF4
+ goto SecretBase_EventScript_TreeEnter
end
-EventScript_275AEA:: @ 8275AEA
- msgbox Text_274746, MSGBOX_DEFAULT
+SecretBase_EventScript_TreeNoSecretPower:: @ 8275AEA
+ msgbox SecretBase_Text_TreeCanBeClimbed, MSGBOX_DEFAULT
releaseall
end
-EventScript_275AF4:: @ 8275AF4
- msgbox Text_2747C2, MSGBOX_DEFAULT
- goto EventScript_275B5B
+SecretBase_EventScript_TreeEnter:: @ 8275AF4
+ msgbox SecretBase_Text_VineDroppedDown, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_InitSecretBase
end
-EventScript_275B02:: @ 8275B02
+SecretBase_EventScript_Shrub:: @ 8275B02
lockall
- compare VAR_RESULT, 6
- goto_if_eq EventScript_275B43
+ compare VAR_RESULT, PARTY_SIZE
+ goto_if_eq SecretBase_EventScript_ShrubNoSecretPower
bufferpartymonnick 0, VAR_RESULT
- msgbox Text_274825, MSGBOX_YESNO
+ msgbox SecretBase_Text_ClumpUseSecretPower, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq EventScript_275CDE
- msgbox Text_MonUsedHM, MSGBOX_DEFAULT
+ goto_if_eq SecretBase_EventScript_CancelOnEntrance
+ msgbox Text_MonUsedFieldMove, MSGBOX_DEFAULT
closemessage
dofieldeffect FLDEFF_USE_SECRET_POWER_SHRUB
waitstate
- goto EventScript_275B4D
+ goto SecretBase_EventScript_ShrubEnter
end
-EventScript_275B38:: @ 8275B38
+SecretBase_EventScript_ShrubUseSecretPower:: @ 8275B38
lockall
dofieldeffect FLDEFF_USE_SECRET_POWER_SHRUB
waitstate
- goto EventScript_275B4D
+ goto SecretBase_EventScript_ShrubEnter
end
-EventScript_275B43:: @ 8275B43
- msgbox Text_2747DD, MSGBOX_DEFAULT
+SecretBase_EventScript_ShrubNoSecretPower:: @ 8275B43
+ msgbox SecretBase_Text_ClumpOfGrass, MSGBOX_DEFAULT
releaseall
end
-EventScript_275B4D:: @ 8275B4D
- msgbox Text_274883, MSGBOX_DEFAULT
- goto EventScript_275B5B
+SecretBase_EventScript_ShrubEnter:: @ 8275B4D
+ msgbox SecretBase_Text_DiscoveredSmallEntrance, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_InitSecretBase
end
-EventScript_275B5B:: @ 8275B5B
+SecretBase_EventScript_InitSecretBase:: @ 8275B5B
closemessage
playse SE_KAIDAN
setvar VAR_INIT_SECRET_BASE, 0
@@ -441,115 +156,113 @@ EventScript_275B5B:: @ 8275B5B
waitstate
end
-SecretBase_RedCave1_EventScript_275B81:: @ 8275B81
- applymovement EVENT_OBJ_ID_PLAYER, SecretBase_RedCave1_Movement_275BB4
+SecretBase_EventScript_FirstEntrance:: @ 8275B81
+ applymovement EVENT_OBJ_ID_PLAYER, SecretBase_Movement_275BB4
waitmovement 0
setvar VAR_INIT_SECRET_BASE, 1
- msgbox SecretBase_RedCave1_Text_23B759, MSGBOX_YESNO
+ msgbox SecretBase_Text_WantToMakeYourSecretBaseHere, MSGBOX_YESNO
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_275BAB
+ goto_if_eq SecretBase_EventScript_SetAsBase
closemessage
playse SE_KAIDAN
special ClearAndLeaveSecretBase
end
-SecretBase_RedCave1_EventScript_275BAB:: @ 8275BAB
+SecretBase_EventScript_SetAsBase:: @ 8275BAB
closemessage
setflag FLAG_RECEIVED_SECRET_POWER
special EnterNewlyCreatedSecretBase
waitstate
end
-SecretBase_RedCave1_Movement_275BB4: @ 8275BB4
+SecretBase_Movement_275BB4: @ 8275BB4
walk_up
walk_up
step_end
-EventScript_275BB7:: @ 8275BB7
+SecretBase_EventScript_Enter:: @ 8275BB7
lockall
setvar VAR_INIT_SECRET_BASE, 1
playse SE_KAIDAN
special IsCurSecretBaseOwnedByAnotherPlayer
compare VAR_RESULT, 0
- goto_if_eq EventScript_275BDB
+ goto_if_eq SecretBase_EventScript_EnterPlayersBase
clearflag FLAG_DECORATION_0
special EnterSecretBase
setvar VAR_SECRET_BASE_INITIALIZED, 0
waitstate
end
-EventScript_275BDB:: @ 8275BDB
+SecretBase_EventScript_EnterPlayersBase:: @ 8275BDB
setflag FLAG_DECORATION_0
special EnterSecretBase
setvar VAR_SECRET_BASE_INITIALIZED, 0
waitstate
end
-EventScript_275BE8:: @ 8275BE8
+SecretBase_EventScript_AlreadyHasSecretBase:: @ 8275BE8
checkpartymove MOVE_SECRET_POWER
- compare VAR_RESULT, 6
- goto_if_eq EventScript_275C9A
+ compare VAR_RESULT, PARTY_SIZE
+ goto_if_eq SecretBase_EventScript_NoSecretPower
setfieldeffectargument 0, VAR_RESULT
setorcopyvar VAR_0x8004, VAR_RESULT
lockall
special GetSecretBaseNearbyMapName
- msgbox Text_276A3D, MSGBOX_YESNO
+ msgbox SecretBase_Text_WouldYouLikeToMoveBases, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq EventScript_275CDE
- msgbox Text_2766AA, MSGBOX_YESNO
+ goto_if_eq SecretBase_EventScript_CancelOnEntrance
+ msgbox SecretBase_Text_AllDecorationsWillBeReturned, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq EventScript_275CDE
+ goto_if_eq SecretBase_EventScript_CancelOnEntrance
fadescreenswapbuffers 1
special MoveOutOfSecretBaseFromOutside
closemessage
fadescreenswapbuffers 0
- msgbox Text_276A95, MSGBOX_YESNO
+ msgbox SecretBase_Text_MovingCompletedUseSecretPower, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq EventScript_275CDE
+ goto_if_eq SecretBase_EventScript_CancelOnEntrance
bufferpartymonnick 0, VAR_0x8004
buffermovename 1, MOVE_SECRET_POWER
- msgbox Text_MonUsedHM, MSGBOX_DEFAULT
+ msgbox Text_MonUsedFieldMove, MSGBOX_DEFAULT
closemessage
closemessage
- compare VAR_0x8007, 1
- goto_if_eq EventScript_275A86
- compare VAR_0x8007, 2
- goto_if_eq EventScript_275A86
- compare VAR_0x8007, 3
- goto_if_eq EventScript_275A86
- compare VAR_0x8007, 4
- goto_if_eq EventScript_275A86
- compare VAR_0x8007, 5
- goto_if_eq EventScript_275ADF
- compare VAR_0x8007, 6
- goto_if_eq EventScript_275B38
+ compare VAR_0x8007, SECRET_BASE_RED_CAVE
+ goto_if_eq SecretBase_EventScript_CaveUseSecretPower
+ compare VAR_0x8007, SECRET_BASE_BROWN_CAVE
+ goto_if_eq SecretBase_EventScript_CaveUseSecretPower
+ compare VAR_0x8007, SECRET_BASE_BLUE_CAVE
+ goto_if_eq SecretBase_EventScript_CaveUseSecretPower
+ compare VAR_0x8007, SECRET_BASE_YELLOW_CAVE
+ goto_if_eq SecretBase_EventScript_CaveUseSecretPower
+ compare VAR_0x8007, SECRET_BASE_TREE
+ goto_if_eq SecretBase_EventScript_TreeUseSecretPower
+ compare VAR_0x8007, SECRET_BASE_SHRUB
+ goto_if_eq SecretBase_EventScript_ShrubUseSecretPower
releaseall
end
-EventScript_275C9A:: @ 8275C9A
+SecretBase_EventScript_NoSecretPower:: @ 8275C9A
lockall
- compare VAR_0x8007, 1
- goto_if_eq EventScript_275A91
- compare VAR_0x8007, 2
- goto_if_eq EventScript_275A91
- compare VAR_0x8007, 3
- goto_if_eq EventScript_275A91
- compare VAR_0x8007, 4
- goto_if_eq EventScript_275A91
- compare VAR_0x8007, 5
- goto_if_eq EventScript_275AEA
- compare VAR_0x8007, 6
- goto_if_eq EventScript_275B43
- end
-
-EventScript_275CDE:: @ 8275CDE
+ compare VAR_0x8007, SECRET_BASE_RED_CAVE
+ goto_if_eq SecretBase_EventScript_CaveNoSecretPower
+ compare VAR_0x8007, SECRET_BASE_BROWN_CAVE
+ goto_if_eq SecretBase_EventScript_CaveNoSecretPower
+ compare VAR_0x8007, SECRET_BASE_BLUE_CAVE
+ goto_if_eq SecretBase_EventScript_CaveNoSecretPower
+ compare VAR_0x8007, SECRET_BASE_YELLOW_CAVE
+ goto_if_eq SecretBase_EventScript_CaveNoSecretPower
+ compare VAR_0x8007, SECRET_BASE_TREE
+ goto_if_eq SecretBase_EventScript_TreeNoSecretPower
+ compare VAR_0x8007, SECRET_BASE_SHRUB
+ goto_if_eq SecretBase_EventScript_ShrubNoSecretPower
+ end
+
+SecretBase_EventScript_CancelOnEntrance:: @ 8275CDE
closemessage
releaseall
end
-LittlerootTown_BrendansHouse_2F_EventScript_275CE1:: @ 8275CE1
-LittlerootTown_MaysHouse_2F_EventScript_275CE1:: @ 8275CE1
-SecretBase_RedCave1_EventScript_275CE1:: @ 8275CE1
+SecretBase_EventScript_SetDecorationFlags:: @ 8275CE1
setflag FLAG_DECORATION_1
setflag FLAG_DECORATION_2
setflag FLAG_DECORATION_3
@@ -566,474 +279,461 @@ SecretBase_RedCave1_EventScript_275CE1:: @ 8275CE1
setflag FLAG_DECORATION_14
return
-EventScript_275D0C:: @ 8275D0C
+SecretBase_EventScript_InitDecorations:: @ 8275D0C
setvar VAR_0x8004, 0
setvar VAR_0x8005, 0
special InitSecretBaseDecorationSprites
setvar VAR_SECRET_BASE_INITIALIZED, 1
end
-EventScript_275D1F:: @ 8275D1F
+SecretBase_EventScript_SetDecoration:: @ 8275D1F
setvar VAR_0x8005, 0
- goto EventScript_275D2A
+ goto SecretBase_EventScript_SetDecoration2
end
-EventScript_275D2A:: @ 8275D2A
- special sub_8127E18
+SecretBase_EventScript_SetDecoration2:: @ 8275D2A
+ special SetDecoration
end
-EventScript_275D2E:: @ 8275D2E
+SecretBase_EventScript_PutAwayDecoration:: @ 8275D2E
setvar VAR_0x8004, 0
- goto EventScript_275D39
+ goto SecretBase_EventScript_PutAwayDecorationLoop
end
-EventScript_275D39:: @ 8275D39
+SecretBase_EventScript_PutAwayDecorationLoop:: @ 8275D39
special sub_8129708
compare VAR_RESULT, 1
- goto_if_eq EventScript_275D63
+ goto_if_eq SecretBase_EventScript_PutAwayDecorationEnd
addvar VAR_0x8004, 1
compare VAR_0x8005, 0
- goto_if_eq EventScript_275D39
+ goto_if_eq SecretBase_EventScript_PutAwayDecorationLoop
removeobject VAR_0x8006
- setflag 0x8005
- goto EventScript_275D39
- end
-
-EventScript_275D63:: @ 8275D63
- end
-
-SecretBase_BlueCave1_EventScript_275D64:: @ 8275D64
-SecretBase_BlueCave2_EventScript_275D64:: @ 8275D64
-SecretBase_BlueCave3_EventScript_275D64:: @ 8275D64
-SecretBase_BlueCave4_EventScript_275D64:: @ 8275D64
-SecretBase_BrownCave1_EventScript_275D64:: @ 8275D64
-SecretBase_BrownCave2_EventScript_275D64:: @ 8275D64
-SecretBase_BrownCave3_EventScript_275D64:: @ 8275D64
-SecretBase_BrownCave4_EventScript_275D64:: @ 8275D64
-SecretBase_RedCave1_EventScript_275D64:: @ 8275D64
-SecretBase_RedCave2_EventScript_275D64:: @ 8275D64
-SecretBase_RedCave3_EventScript_275D64:: @ 8275D64
-SecretBase_RedCave4_EventScript_275D64:: @ 8275D64
-SecretBase_Shrub1_EventScript_275D64:: @ 8275D64
-SecretBase_Shrub2_EventScript_275D64:: @ 8275D64
-SecretBase_Shrub3_EventScript_275D64:: @ 8275D64
-SecretBase_Shrub4_EventScript_275D64:: @ 8275D64
-SecretBase_Tree1_EventScript_275D64:: @ 8275D64
-SecretBase_Tree2_EventScript_275D64:: @ 8275D64
-SecretBase_Tree3_EventScript_275D64:: @ 8275D64
-SecretBase_Tree4_EventScript_275D64:: @ 8275D64
-SecretBase_YellowCave1_EventScript_275D64:: @ 8275D64
-SecretBase_YellowCave2_EventScript_275D64:: @ 8275D64
-SecretBase_YellowCave3_EventScript_275D64:: @ 8275D64
-SecretBase_YellowCave4_EventScript_275D64:: @ 8275D64
- special GetSecretBaseOwnerInteractionState
+ setflag 0x8005 @ UB: GF likely meant setvar here; setflag 0x8005 is out of bounds
+ goto SecretBase_EventScript_PutAwayDecorationLoop
+ end
+
+SecretBase_EventScript_PutAwayDecorationEnd:: @ 8275D63
+ end
+
+SecretBase_EventScript_RecordMixTrainer:: @ 8275D64
+ special GetSecretBaseOwnerAndState
compare VAR_0x8004, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275DD6
+ goto_if_eq SecretBase_EventScript_Trainer0
compare VAR_0x8004, 1
- goto_if_eq SecretBase_RedCave1_EventScript_275E4E
+ goto_if_eq SecretBase_EventScript_Trainer1
compare VAR_0x8004, 2
- goto_if_eq SecretBase_RedCave1_EventScript_275EC6
+ goto_if_eq SecretBase_EventScript_Trainer2
compare VAR_0x8004, 3
- goto_if_eq SecretBase_RedCave1_EventScript_275F3E
+ goto_if_eq SecretBase_EventScript_Trainer3
compare VAR_0x8004, 4
- goto_if_eq SecretBase_RedCave1_EventScript_275FB6
+ goto_if_eq SecretBase_EventScript_Trainer4
compare VAR_0x8004, 5
- goto_if_eq SecretBase_RedCave1_EventScript_27602E
+ goto_if_eq SecretBase_EventScript_Trainer5
compare VAR_0x8004, 6
- goto_if_eq SecretBase_RedCave1_EventScript_2760A6
+ goto_if_eq SecretBase_EventScript_Trainer6
compare VAR_0x8004, 7
- goto_if_eq SecretBase_RedCave1_EventScript_27611E
+ goto_if_eq SecretBase_EventScript_Trainer7
compare VAR_0x8004, 8
- goto_if_eq SecretBase_RedCave1_EventScript_276196
+ goto_if_eq SecretBase_EventScript_Trainer8
compare VAR_0x8004, 9
- goto_if_eq SecretBase_RedCave1_EventScript_27620E
+ goto_if_eq SecretBase_EventScript_Trainer9
end
-SecretBase_RedCave1_EventScript_275DD6:: @ 8275DD6
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer0:: @ 8275DD6
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_275E25
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer0PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_275E44
- msgbox SecretBase_RedCave1_Text_2748A0, MSGBOX_YESNO
+ goto_if_eq SecretBase_EventScript_Trainer0PostBattle
+ msgbox SecretBase_Text_Trainer0PreBattle, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275E2F
+ goto_if_eq SecretBase_EventScript_Trainer0DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275E2F
- msgbox SecretBase_RedCave1_Text_274939, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer0DeclineBattle
+ msgbox SecretBase_Text_Trainer0AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_275E25:: @ 8275E25
- msgbox SecretBase_RedCave1_Text_2749ED, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer0PreChampion:: @ 8275E25
+ msgbox SecretBase_Text_Trainer0PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275E2F:: @ 8275E2F
+SecretBase_EventScript_Trainer0DeclineBattle:: @ 8275E2F
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_27494D, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer0DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275E44:: @ 8275E44
- msgbox SecretBase_RedCave1_Text_2749AA, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer0PostBattle:: @ 8275E44
+ msgbox SecretBase_Text_Trainer0PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275E4E:: @ 8275E4E
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer1:: @ 8275E4E
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_275E9D
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer1PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_275EBC
- msgbox SecretBase_RedCave1_Text_274C13, MSGBOX_YESNO
+ goto_if_eq SecretBase_EventScript_Trainer1PostBattle
+ msgbox SecretBase_Text_Trainer1PreBattle, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275EA7
+ goto_if_eq SecretBase_EventScript_Trainer1DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275EA7
- msgbox SecretBase_RedCave1_Text_274CB0, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer1DeclineBattle
+ msgbox SecretBase_Text_Trainer1AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_275E9D:: @ 8275E9D
- msgbox SecretBase_RedCave1_Text_274D69, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer1PreChampion:: @ 8275E9D
+ msgbox SecretBase_Text_Trainer1PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275EA7:: @ 8275EA7
+SecretBase_EventScript_Trainer1DeclineBattle:: @ 8275EA7
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_274CDA, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer1DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275EBC:: @ 8275EBC
- msgbox SecretBase_RedCave1_Text_274D34, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer1PostBattle:: @ 8275EBC
+ msgbox SecretBase_Text_Trainer1PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275EC6:: @ 8275EC6
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer2:: @ 8275EC6
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_275F15
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer2PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_275F34
- msgbox SecretBase_RedCave1_Text_274F39, MSGBOX_YESNO
+ goto_if_eq SecretBase_EventScript_Trainer2PostBattle
+ msgbox SecretBase_Text_Trainer2PreBattle, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275F1F
+ goto_if_eq SecretBase_EventScript_Trainer2DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275F1F
- msgbox SecretBase_RedCave1_Text_274FCA, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer2DeclineBattle
+ msgbox SecretBase_Text_Trainer2AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_275F15:: @ 8275F15
- msgbox SecretBase_RedCave1_Text_2750A4, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer2PreChampion:: @ 8275F15
+ msgbox SecretBase_Text_Trainer2PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275F1F:: @ 8275F1F
+SecretBase_EventScript_Trainer2DeclineBattle:: @ 8275F1F
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_274FDA, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer2DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275F34:: @ 8275F34
- msgbox SecretBase_RedCave1_Text_27502A, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer2PostBattle:: @ 8275F34
+ msgbox SecretBase_Text_Trainer2PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275F3E:: @ 8275F3E
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer3:: @ 8275F3E
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_275F8D
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer3PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_275FAC
- msgbox SecretBase_RedCave1_Text_275287, MSGBOX_YESNO
+ goto_if_eq SecretBase_EventScript_Trainer3PostBattle
+ msgbox SecretBase_Text_Trainer3PreBattle, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275F97
+ goto_if_eq SecretBase_EventScript_Trainer3DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275F97
- msgbox SecretBase_RedCave1_Text_275315, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer3DeclineBattle
+ msgbox SecretBase_Text_Trainer3AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_275F8D:: @ 8275F8D
- msgbox SecretBase_RedCave1_Text_2753AB, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer3PreChampion:: @ 8275F8D
+ msgbox SecretBase_Text_Trainer3PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275F97:: @ 8275F97
+SecretBase_EventScript_Trainer3DeclineBattle:: @ 8275F97
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_275330, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer3DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275FAC:: @ 8275FAC
- msgbox SecretBase_RedCave1_Text_275374, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer3PostBattle:: @ 8275FAC
+ msgbox SecretBase_Text_Trainer3PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275FB6:: @ 8275FB6
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer4:: @ 8275FB6
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_276005
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer4PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_276024
- msgbox SecretBase_RedCave1_Text_2755D2, MSGBOX_YESNO
+ goto_if_eq SecretBase_EventScript_Trainer4PostBattle
+ msgbox SecretBase_Text_Trainer4PreBattle, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_27600F
+ goto_if_eq SecretBase_EventScript_Trainer4DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_27600F
- msgbox SecretBase_RedCave1_Text_275679, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer4DeclineBattle
+ msgbox SecretBase_Text_Trainer4AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_276005:: @ 8276005
- msgbox SecretBase_RedCave1_Text_27571E, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer4PreChampion:: @ 8276005
+ msgbox SecretBase_Text_Trainer4PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27600F:: @ 827600F
+SecretBase_EventScript_Trainer4DeclineBattle:: @ 827600F
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_275696, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer4DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276024:: @ 8276024
- msgbox SecretBase_RedCave1_Text_2756EF, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer4PostBattle:: @ 8276024
+ msgbox SecretBase_Text_Trainer4PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27602E:: @ 827602E
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer5:: @ 827602E
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_27607D
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer5PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_27609C
- msgbox SecretBase_RedCave1_Text_274A64, MSGBOX_YESNO
+ goto_if_eq SecretBase_EventScript_Trainer5PostBattle
+ msgbox SecretBase_Text_Trainer5PreBattle, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_276087
+ goto_if_eq SecretBase_EventScript_Trainer5DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_276087
- msgbox SecretBase_RedCave1_Text_274AFA, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer5DeclineBattle
+ msgbox SecretBase_Text_Trainer5AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_27607D:: @ 827607D
- msgbox SecretBase_RedCave1_Text_274BA2, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer5PreChampion:: @ 827607D
+ msgbox SecretBase_Text_Trainer5PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276087:: @ 8276087
+SecretBase_EventScript_Trainer5DeclineBattle:: @ 8276087
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_274B0B, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer5DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27609C:: @ 827609C
- msgbox SecretBase_RedCave1_Text_274B6C, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer5PostBattle:: @ 827609C
+ msgbox SecretBase_Text_Trainer5PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_2760A6:: @ 82760A6
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer6:: @ 82760A6
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_2760F5
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer6PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_276114
- msgbox SecretBase_RedCave1_Text_274DD2, MSGBOX_YESNO
+ goto_if_eq SecretBase_EventScript_Trainer6PostBattle
+ msgbox SecretBase_Text_Trainer6PreBattle, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_2760FF
+ goto_if_eq SecretBase_EventScript_Trainer6DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_2760FF
- msgbox SecretBase_RedCave1_Text_274E41, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer6DeclineBattle
+ msgbox SecretBase_Text_Trainer6AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_2760F5:: @ 82760F5
- msgbox SecretBase_RedCave1_Text_274EF1, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer6PreChampion:: @ 82760F5
+ msgbox SecretBase_Text_Trainer6PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_2760FF:: @ 82760FF
+SecretBase_EventScript_Trainer6DeclineBattle:: @ 82760FF
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_274E5A, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer6DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276114:: @ 8276114
- msgbox SecretBase_RedCave1_Text_274EB3, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer6PostBattle:: @ 8276114
+ msgbox SecretBase_Text_Trainer6PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27611E:: @ 827611E
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer7:: @ 827611E
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_27616D
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer7PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_27618C
- msgbox SecretBase_RedCave1_Text_275114, MSGBOX_YESNO
+ goto_if_eq SecretBase_EventScript_Trainer7PostBattle
+ msgbox SecretBase_Text_Trainer7PreBattle, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_276177
+ goto_if_eq SecretBase_EventScript_Trainer7DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_276177
- msgbox SecretBase_RedCave1_Text_2751AF, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer7DeclineBattle
+ msgbox SecretBase_Text_Trainer7AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_27616D:: @ 827616D
- msgbox SecretBase_RedCave1_Text_275226, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer7PreChampion:: @ 827616D
+ msgbox SecretBase_Text_Trainer7PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276177:: @ 8276177
+SecretBase_EventScript_Trainer7DeclineBattle:: @ 8276177
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_2751CA, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer7DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27618C:: @ 827618C
- msgbox SecretBase_RedCave1_Text_2751EC, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer7PostBattle:: @ 827618C
+ msgbox SecretBase_Text_Trainer7PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276196:: @ 8276196
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer8:: @ 8276196
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_2761E5
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer8PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_276204
- msgbox SecretBase_RedCave1_Text_275405, MSGBOX_YESNO
+ goto_if_eq SecretBase_EventScript_Trainer8PostBattle
+ msgbox SecretBase_Text_Trainer8PreBattle, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_2761EF
+ goto_if_eq SecretBase_EventScript_Trainer8DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_2761EF
- msgbox SecretBase_RedCave1_Text_2754B2, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer8DeclineBattle
+ msgbox SecretBase_Text_Trainer8AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_2761E5:: @ 82761E5
- msgbox SecretBase_RedCave1_Text_275546, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer8PreChampion:: @ 82761E5
+ msgbox SecretBase_Text_Trainer8PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_2761EF:: @ 82761EF
+SecretBase_EventScript_Trainer8DeclineBattle:: @ 82761EF
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_2754D8, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer8DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276204:: @ 8276204
- msgbox SecretBase_RedCave1_Text_27550C, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer8PostBattle:: @ 8276204
+ msgbox SecretBase_Text_Trainer8PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27620E:: @ 827620E
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer9:: @ 827620E
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_27625D
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer9PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_27627C
- msgbox SecretBase_RedCave1_Text_2757B5, MSGBOX_YESNO
+ goto_if_eq SecretBase_EventScript_Trainer9PostBattle
+ msgbox SecretBase_Text_Trainer9PreBattle, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_276267
+ goto_if_eq SecretBase_EventScript_Trainer9DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_276267
- msgbox SecretBase_RedCave1_Text_275884, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer9DeclineBattle
+ msgbox SecretBase_Text_Trainer9AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_27625D:: @ 827625D
- msgbox SecretBase_RedCave1_Text_275944, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer9PreChampion:: @ 827625D
+ msgbox SecretBase_Text_Trainer9PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276267:: @ 8276267
+SecretBase_EventScript_Trainer9DeclineBattle:: @ 8276267
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_27589D, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer9DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27627C:: @ 827627C
- msgbox SecretBase_RedCave1_Text_275909, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer9PostBattle:: @ 827627C
+ msgbox SecretBase_Text_Trainer9PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276286:: @ 8276286
+SecretBase_EventScript_BattleTrainer:: @ 8276286
special PrepSecretBaseBattleFlags
setvar VAR_0x8004, SPECIAL_BATTLE_SECRET_BASE
setvar VAR_0x8005, 0
special DoSpecialTrainerBattle
waitstate
- compare VAR_RESULT, 3
- call_if_eq SecretBase_RedCave1_EventScript_2762BD
- compare VAR_RESULT, 1
- call_if_eq SecretBase_RedCave1_EventScript_2762C1
- compare VAR_RESULT, 2
- call_if_eq SecretBase_RedCave1_EventScript_2762C5
+ compare VAR_RESULT, B_OUTCOME_DREW
+ call_if_eq SecretBase_EventScript_2762BD
+ compare VAR_RESULT, B_OUTCOME_WON
+ call_if_eq SecretBase_EventScript_2762C1
+ compare VAR_RESULT, B_OUTCOME_LOST
+ call_if_eq SecretBase_EventScript_2762C5
special HealPlayerParty
release
end
-SecretBase_RedCave1_EventScript_2762BD:: @ 82762BD
+SecretBase_EventScript_2762BD:: @ 82762BD
special sub_80EB438
return
-SecretBase_RedCave1_EventScript_2762C1:: @ 82762C1
+SecretBase_EventScript_2762C1:: @ 82762C1
special sub_80EB368
return
-SecretBase_RedCave1_EventScript_2762C5:: @ 82762C5
+SecretBase_EventScript_2762C5:: @ 82762C5
special sub_80EB3D0
return
@@ -1047,37 +747,37 @@ SecretBase_EventScript_CushionInteract:: @ 82766A6
special sub_80EB2C8
end
-Text_2766AA: @ 82766AA
+SecretBase_Text_AllDecorationsWillBeReturned: @ 82766AA
.string "All decorations and furniture in your\n"
.string "SECRET BASE will be returned to your PC.\p"
.string "Is that okay?$"
-Text_WantToRegisterSecretBase: @ 8276707
+SecretBase_Text_WantToRegisterSecretBase: @ 8276707
.string "Do you want to register\n"
.string "{STR_VAR_1}'s SECRET BASE?$"
-Text_276731: @ 8276731
+SecretBase_Text_AlreadyRegisteredDelete: @ 8276731
.string "This data is already registered.\n"
.string "Would you like to delete it?$"
-Text_TooManyBasesDeleteSome: @ 827676F
+SecretBase_Text_TooManyBasesDeleteSome: @ 827676F
.string "Up to 10 locations can be registered.\p"
.string "Delete a location if you want to\n"
.string "register another location.$"
-Text_2767D1: @ 82767D1
+SecretBase_Text_RegistrationCompleted: @ 82767D1
.string "Registration completed.$"
-Text_2767E9: @ 82767E9
+SecretBase_Text_DataUnregistered: @ 82767E9
.string "Data has been unregistered.$"
-Text_SecretBaseBootUpPC: @ 8276805
+SecretBase_Text_BootUpPC: @ 8276805
.string "{PLAYER} booted up the PC.$"
-Text_SecretBasePCStartMenu: @ 827681A
+SecretBase_Text_WhatWouldYouLikeToDo: @ 827681A
.string "What would you like to do?$"
-Text_276835: @ 8276835
+SecretBase_Text_RegistryInfo: @ 8276835
.string "Once registered, a SECRET BASE will not\n"
.string "disappear unless the other TRAINER\l"
.string "moves it to a different location.\p"
@@ -1087,27 +787,27 @@ Text_276835: @ 8276835
.string "Up to ten SECRET BASE locations\n"
.string "may be registered.$"
-Text_27692B: @ 827692B
+SecretBase_Text_BattleTowerShield: @ 827692B
.string "A shield of {STR_VAR_2} that marks winning\n"
.string "{STR_VAR_1} times in a row at the BATTLE TOWER.$"
-Text_276974: @ 8276974
+SecretBase_Text_ToyTV: @ 8276974
.string "A realistic toy TV. It could be easily\n"
.string "mistaken for the real thing.$"
-Text_2769B8: @ 82769B8
+SecretBase_Text_SeedotTV: @ 82769B8
.string "A toy TV shaped like a SEEDOT.\n"
.string "It looks ready to roll away on its own…$"
-Text_2769FF: @ 82769FF
+SecretBase_Text_SkittyTV: @ 82769FF
.string "A toy TV shaped like a SKITTY.\n"
.string "It looks ready to stroll away…$"
-Text_276A3D: @ 8276A3D
+SecretBase_Text_WouldYouLikeToMoveBases: @ 8276A3D
.string "You may only make one SECRET BASE.\p"
.string "Would you like to move from the SECRET\n"
.string "BASE near {STR_VAR_1}?$"
-Text_276A95: @ 8276A95
+SecretBase_Text_MovingCompletedUseSecretPower: @ 8276A95
.string "Moving completed.\p"
.string "Would you like to use the SECRET POWER?$"
diff --git a/data/scripts/shared_secret_base.inc b/data/scripts/shared_secret_base.inc
new file mode 100644
index 000000000..933835a73
--- /dev/null
+++ b/data/scripts/shared_secret_base.inc
@@ -0,0 +1,224 @@
+SecretBase_MapScripts::
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, SecretBase_MapScript2_OnWarp
+ map_script MAP_SCRIPT_ON_TRANSITION, SecretBase_MapScript1_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, SecretBase_MapScript2_OnFrame
+ map_script MAP_SCRIPT_ON_RESUME, SecretBase_MapScript1_OnResume
+ .byte 0
+
+SecretBase_MapScript2_OnWarp: @ 823B498
+ map_script_2 VAR_SECRET_BASE_INITIALIZED, 0, SecretBase_EventScript_InitDecorations
+ .2byte 0
+
+SecretBase_MapScript1_OnTransition: @ 823B4A2
+ call SecretBase_EventScript_SetDecorationFlags
+ special SetSecretBaseOwnerGfxId
+ special InitSecretBaseVars
+ end
+
+SecretBase_MapScript2_OnFrame: @ 823B4AE
+ map_script_2 VAR_INIT_SECRET_BASE, 0, SecretBase_EventScript_FirstEntrance
+ .2byte 0
+
+SecretBase_MapScript1_OnResume: @ 823B4B8
+ setstepcallback 6
+ end
+
+SecretBase_EventScript_PC:: @ 823B4BB
+ lockall
+ playse SE_PC_LOGIN
+ message SecretBase_Text_BootUpPC
+ dofieldeffect FLDEFF_PCTURN_ON
+ waitstate
+ waitmessage
+ waitbuttonpress
+ playse SE_SELECT
+ goto SecretBase_EventScript_PCShowMainMenu
+ end
+
+SecretBase_EventScript_PCShowMainMenu:: @ 823B4D3
+ message SecretBase_Text_WhatWouldYouLikeToDo
+ waitmessage
+ goto_if_set FLAG_SECRET_BASE_REGISTRY_ENABLED, SecretBase_EventScript_PCMainMenuWithRegister
+ goto SecretBase_EventScript_PCMainMenuWithoutRegister
+ end
+
+SecretBase_EventScript_PCCancel:: @ 823B4E8
+ lockall
+ goto SecretBase_EventScript_PCShowMainMenu
+ end
+
+SecretBase_EventScript_PCMainMenuWithRegister:: @ 823B4EF
+ multichoice 0, 0, MULTI_BASE_PC_WITH_REGISTRY, 0
+ switch VAR_RESULT
+ case 0, SecretBase_EventScript_PCDecorationMenu
+ case 1, SecretBase_EventScript_PCPackUp
+ case 2, SecretBase_EventScript_PCRegistryMenu
+ case 3, SecretBase_EventScript_PCTurnOff
+ case MULTI_B_PRESSED, SecretBase_EventScript_PCTurnOff
+ end
+
+SecretBase_EventScript_PCMainMenuWithoutRegister:: @ 823B531
+ multichoice 0, 0, MULTI_BASE_PC_NO_REGISTRY, 0
+ switch VAR_RESULT
+ case 0, SecretBase_EventScript_PCDecorationMenu
+ case 1, SecretBase_EventScript_PCPackUp
+ case 2, SecretBase_EventScript_PCTurnOff
+ case MULTI_B_PRESSED, SecretBase_EventScript_PCTurnOff
+ end
+
+SecretBase_EventScript_PCPackUp:: @ 823B568
+ msgbox SecretBase_Text_AllDecorationsWillBeReturned, MSGBOX_YESNO
+ compare VAR_RESULT, 0
+ goto_if_eq SecretBase_EventScript_PCShowMainMenu
+ closemessage
+ special MoveOutOfSecretBase
+ releaseall
+ end
+
+SecretBase_EventScript_PCDecorationMenu:: @ 823B581
+ special ShowSecretBaseDecorationMenu
+ end
+
+SecretBase_EventScript_PCRegistryMenu:: @ 823B585
+ special ShowSecretBaseRegistryMenu
+ end
+
+SecretBase_EventScript_RecordMixingPC:: @ 823B589
+ lockall
+ message SecretBase_Text_BootUpPC
+ playse SE_PC_LOGIN
+ dofieldeffect FLDEFF_PCTURN_ON
+ waitstate
+ waitmessage
+ waitbuttonpress
+ playse SE_SELECT
+ goto SecretBase_EventScript_PCRegisterMenu
+ end
+
+SecretBase_EventScript_PCRegisterMenu:: @ 823B5A1
+ message SecretBase_Text_WhatWouldYouLikeToDo
+ waitmessage
+ multichoice 0, 0, MULTI_REGISTER_MENU, 0
+ switch VAR_RESULT
+ case 0, SecretBase_EventScript_PCRegister
+ case 1, SecretBase_EventScript_PCRegistryMenu
+ case 2, SecretBase_EventScript_PCRegistryInfo
+ case 3, SecretBase_EventScript_PCTurnOff
+ case MULTI_B_PRESSED, SecretBase_EventScript_PCTurnOff
+ end
+
+SecretBase_EventScript_ShowRegisterMenu:: @ 823B5E9
+ lockall
+ goto SecretBase_EventScript_PCRegisterMenu
+ end
+
+SecretBase_EventScript_PCRegister:: @ 823B5F0
+ special GetCurSecretBaseRegistrationValidity
+ compare VAR_RESULT, 1
+ goto_if_eq SecretBase_EventScript_AlreadyRegistered
+ compare VAR_RESULT, 2
+ goto_if_eq SecretBase_EventScript_CantRegisterTooManyBases
+ special CopyCurSecretBaseOwnerName_StrVar1
+ msgbox SecretBase_Text_WantToRegisterSecretBase, MSGBOX_YESNO
+ compare VAR_RESULT, 0
+ goto_if_eq SecretBase_EventScript_PCRegisterMenu
+ msgbox SecretBase_Text_RegistrationCompleted, MSGBOX_SIGN
+ special ToggleCurSecretBaseRegistry
+ special DoSecretBasePCTurnOffEffect
+ releaseall
+ end
+
+SecretBase_EventScript_AlreadyRegistered:: @ 823B62F
+ msgbox SecretBase_Text_AlreadyRegisteredDelete, MSGBOX_YESNO
+ compare VAR_RESULT, 0
+ goto_if_eq SecretBase_EventScript_PCRegisterMenu
+ msgbox SecretBase_Text_DataUnregistered, MSGBOX_SIGN
+ special ToggleCurSecretBaseRegistry
+ special DoSecretBasePCTurnOffEffect
+ releaseall
+ end
+
+SecretBase_EventScript_CantRegisterTooManyBases:: @ 823B652
+ msgbox SecretBase_Text_TooManyBasesDeleteSome, MSGBOX_SIGN
+ special DoSecretBasePCTurnOffEffect
+ closemessage
+ releaseall
+ end
+
+SecretBase_EventScript_PCRegistryInfo:: @ 823B660
+ msgbox SecretBase_Text_RegistryInfo, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_PCRegisterMenu
+ end
+
+SecretBase_EventScript_PCTurnOff:: @ 823B66E
+ special DoSecretBasePCTurnOffEffect
+ closemessage
+ releaseall
+ end
+
+@ Unused
+SecretBase_EventScript_23B674:: @ 823B674
+ special SetSecretBaseSecretsTvFlags_Poster
+ end
+
+@ Unused
+SecretBase_EventScript_23B678:: @ 823B678
+ special SetSecretBaseSecretsTvFlags_MiscFurnature
+ end
+
+@ Unused
+SecretBase_EventScript_23B67C:: @ 823B67C
+ special SetSecretBaseSecretsTvFlags_LargeDecorationSpot
+ end
+
+@ Unused
+SecretBase_EventScript_23B680:: @ 823B680
+ special SetSecretBaseSecretsTvFlags_SmallDecorationSpot
+ end
+
+SecretBase_EventScript_SandOrnament:: @ 823B684
+ special SetSecretBaseSecretsTvFlags_SandOrnament
+ dofieldeffect FLDEFF_SAND_PILLAR
+ waitstate
+ end
+
+SecretBase_EventScript_ShieldOrToyTV:: @ 823B68C
+ special GetShieldToyTVDecorationInfo
+ compare VAR_RESULT, 0
+ goto_if_eq SecretBase_EventScript_BattleTowerShield
+ compare VAR_RESULT, 1
+ goto_if_eq SecretBase_EventScript_ToyTV
+ compare VAR_RESULT, 2
+ goto_if_eq SecretBase_EventScript_SeedotTV
+ compare VAR_RESULT, 3
+ goto_if_eq SecretBase_EventScript_SkittyTV
+ end
+
+SecretBase_EventScript_BattleTowerShield:: @ 823B6BC
+ msgbox SecretBase_Text_BattleTowerShield, MSGBOX_SIGN
+ end
+
+SecretBase_EventScript_ToyTV:: @ 823B6C5
+ msgbox SecretBase_Text_ToyTV, MSGBOX_SIGN
+ end
+
+SecretBase_EventScript_SeedotTV:: @ 823B6CE
+ msgbox SecretBase_Text_SeedotTV, MSGBOX_SIGN
+ end
+
+SecretBase_EventScript_SkittyTV:: @ 823B6D7
+ msgbox SecretBase_Text_SkittyTV, MSGBOX_SIGN
+ end
+
+SecretBase_Text_SmallIndentInWall:: @ 823B6E0
+ .string "There's a small indent in the wall.$"
+
+SecretBase_Text_IndentUseSecretPower:: @ 823B704
+ .string "There's a small indent in the wall.\p"
+ .string "Use the SECRET POWER?$"
+
+SecretBase_Text_DiscoveredSmallCavern:: @ 823B73E
+ .string "Discovered a small cavern!$"
+
+SecretBase_Text_WantToMakeYourSecretBaseHere: @ 823B759
+ .string "Want to make your SECRET BASE here?$"
diff --git a/data/scripts/tv.inc b/data/scripts/tv.inc
index 4a276ffc0..ed279d478 100644
--- a/data/scripts/tv.inc
+++ b/data/scripts/tv.inc
@@ -1,6 +1,6 @@
EventScript_TV:: @ 827EE0B
lockall
- incrementgamestat 44
+ incrementgamestat GAME_STAT_WATCHED_TV
special ResetTVShowState
specialvar VAR_RESULT, CheckForBigMovieOrEmergencyNewsOnTV
compare VAR_RESULT, 2
@@ -30,7 +30,7 @@ EventScript_27EE54:: @ 827EE54
EventScript_27EE8A:: @ 827EE8A
special GetMomOrDadStringForTVMessage
- msgbox gUnknown_08272BCF, MSGBOX_DEFAULT
+ msgbox gText_MomOrDadMightLikeThisProgram, MSGBOX_DEFAULT
special TurnOffTVScreen
releaseall
end
@@ -69,7 +69,7 @@ EventScript_27EED0:: @ 827EED0
EventScript_27EED8:: @ 827EED8
special GetMomOrDadStringForTVMessage
- msgbox gUnknown_08272BCF, MSGBOX_DEFAULT
+ msgbox gText_MomOrDadMightLikeThisProgram, MSGBOX_DEFAULT
goto EventScript_27EED0
end
diff --git a/data/specials.inc b/data/specials.inc
index 096a3b33d..4ae2ebe4e 100644
--- a/data/specials.inc
+++ b/data/specials.inc
@@ -25,15 +25,15 @@ gSpecials:: @ 81DBA64
def_special ShowSecretBaseDecorationMenu
def_special ShowSecretBaseRegistryMenu
def_special PrepSecretBaseBattleFlags
- def_special GetSecretBaseOwnerInteractionState
+ def_special GetSecretBaseOwnerAndState
def_special InitSecretBaseDecorationSprites
- def_special sub_8127E18
+ def_special SetDecoration
def_special sub_81297AC
def_special GetSecretBaseTypeInFrontOfPlayer
def_special SetSecretBaseOwnerGfxId
def_special sub_8129708
def_special EnterNewlyCreatedSecretBase
- def_special sub_80EA30C
+ def_special SetBattledOwnerFromResult
def_special DoSecretBasePCTurnOffEffect
def_special RecordMixingPlayerSpotTriggered
def_special sub_80B2DA4
@@ -360,7 +360,7 @@ gSpecials:: @ 81DBA64
def_special PutFanClubSpecialOnTheAir
def_special sub_80EED10
def_special sub_80EED34
- def_special sub_80EB1AC
+ def_special InitSecretBaseVars
def_special SetSecretBaseSecretsTvFlags_SandOrnament
def_special sub_80EB300
def_special sub_80EB438
@@ -429,7 +429,7 @@ gSpecials:: @ 81DBA64
def_special UnionRoomSpecial
def_special sub_801A42C
def_special sub_8016934
- def_special sp182_move_string
+ def_special BufferUnionRoomPlayerName
def_special sub_801DC20
def_special sub_81B8958
def_special sub_8018090
@@ -523,7 +523,7 @@ gSpecials:: @ 81DBA64
def_special TryBufferWaldaPhrase
def_special DoWaldaNamingScreen
def_special TryGetWallpaperWithWaldaPhrase
- def_special sub_8139ED0
+ def_special PlayerNotAtTrainerHillEntrance
def_special GetBattlePyramidHint
def_special sub_80F8B94
def_special ShowTrainerHillRecords
diff --git a/data/text/pkmn_center_nurse.inc b/data/text/pkmn_center_nurse.inc
new file mode 100644
index 000000000..1c2837203
--- /dev/null
+++ b/data/text/pkmn_center_nurse.inc
@@ -0,0 +1,51 @@
+gText_WouldYouLikeToRestYourPkmn:: @ 82726EB
+ .string "Hello, and welcome to\n"
+ .string "the POKéMON CENTER.\p"
+ .string "We restore your tired POKéMON\n"
+ .string "to full health.\p"
+ .string "Would you like to rest your POKéMON?$"
+
+gText_IllTakeYourPkmn:: @ 8272768
+ .string "Okay, I'll take your POKéMON\n"
+ .string "for a few seconds.$"
+
+gText_RestoredPkmnToFullHealth:: @ 8272798
+ .string "Thank you for waiting.\p"
+ .string "We've restored your POKéMON\n"
+ .string "to full health.$"
+
+gText_WeHopeToSeeYouAgain:: @ 82727DB
+ .string "We hope to see you again!$"
+
+gText_WelcomeCutShort:: @ 82727F5
+ .string "Hello, and welcome to\n"
+ .string "the POKéMON CENTER.\p"
+ .string "We restore your tired POKéMON\n"
+ .string "to full health.\p"
+ .string "Would you like to…$"
+
+gText_NoticesGoldCard:: @ 8272860
+ .string "Th-that card…\n"
+ .string "Could it be… The GOLD CARD?!\p"
+ .string "Oh, the gold color is brilliant!\n"
+ .string "The four stars seem to sparkle!\p"
+ .string "I've seen several TRAINERS with\n"
+ .string "a SILVER CARD before, but, {PLAYER},\l"
+ .string "you're the first TRAINER I've ever\l"
+ .string "seen with a GOLD CARD!\p"
+ .string "Okay, {PLAYER}, please allow me\n"
+ .string "the honor of resting your POKéMON!$"
+
+gText_YouWantTheUsual:: @ 8272982
+ .string "I'm delighted to see you, {PLAYER}!\n"
+ .string "You want the usual, am I right?$"
+
+gText_IllTakeYourPkmn2:: @ 82729C0
+ .string "Okay, I'll take your POKéMON\n"
+ .string "for a few seconds.$"
+
+gText_ThankYouForWaiting:: @ 82729F0
+ .string "Thank you for waiting.$"
+
+gText_WeHopeToSeeYouAgain2:: @ 8272A07
+ .string "We hope to see you again!$"
diff --git a/data/text/pokedex_rating.inc b/data/text/pokedex_rating.inc
index d61f364e9..4c6c3f2b6 100644
--- a/data/text/pokedex_rating.inc
+++ b/data/text/pokedex_rating.inc
@@ -1,13 +1,13 @@
-gUnknown_082A5C9C:: @ 82A5C9C
+gBirchDexRatingText_AreYouCurious:: @ 82A5C9C
.string "PROF. BIRCH: Ah, {PLAYER}{KUN}!\p"
.string "Are you curious about how your\n"
.string "POKéDEX is coming along?$"
-Route101_Text_2A5CEB: @ 82A5CEB
+gBirchDexRatingText_Cancel: @ 82A5CEB
.string "Hm? Oh, you haven't caught enough\n"
.string "POKéMON to make it worthwhile.$"
-gUnknown_082A5D2C:: @ 82A5D2C
+gBirchDexRatingText_SoYouveSeenAndCaught:: @ 82A5D2C
.string "Hmhm…\p"
.string "So, you've seen {STR_VAR_1} POKéMON,\n"
.string "and you've caught {STR_VAR_2} POKéMON…$"
@@ -108,7 +108,7 @@ gBirchDexRatingText_DexCompleted:: @ 82A6312
.string "Congratulations!\n"
.string "Your POKéDEX is complete!$"
-gUnknown_082A633D:: @ 82A633D
+gBirchDexRatingText_OnANationwideBasis:: @ 82A633D
.string "Hmhm…\n"
.string "On a nationwide basis…\p"
.string "You've seen {STR_VAR_1} POKéMON,\n"
diff --git a/data/text/secret_base_trainers.inc b/data/text/secret_base_trainers.inc
new file mode 100644
index 000000000..46ecaaec9
--- /dev/null
+++ b/data/text/secret_base_trainers.inc
@@ -0,0 +1,286 @@
+SecretBase_Text_Trainer0PreBattle: @ 82748A0
+ .string "Have you made a SECRET BASE already?\p"
+ .string "I went here, there, everywhere before\n"
+ .string "choosing this place.\p"
+ .string "Since you're already here, how would\n"
+ .string "you like to battle?$"
+
+SecretBase_Text_Trainer0AcceptBattle: @ 8274939
+ .string "Okay!\n"
+ .string "Here we come!$"
+
+SecretBase_Text_Trainer0DeclineBattle: @ 827494D
+ .string "Hunh?\n"
+ .string "Oh, you can't now…$"
+
+SecretBase_Text_Trainer0Defeated:: @ 8274966
+ .string "Waaargh! You're too strong!\n"
+ .string "About me losing… Please keep it secret!$"
+
+SecretBase_Text_Trainer0PostBattle: @ 82749AA
+ .string "What do you think of my SECRET BASE?\n"
+ .string "Come visit me again tomorrow.$"
+
+SecretBase_Text_Trainer0PreChampion: @ 82749ED
+ .string "Have you made a SECRET BASE already?\p"
+ .string "I went here, there, everywhere before\n"
+ .string "choosing this place.\p"
+ .string "Feel free to hang out!$"
+
+SecretBase_Text_Trainer5PreBattle: @ 8274A64
+ .string "There're a lot of places where\n"
+ .string "you can make a SECRET BASE.\p"
+ .string "But I like this spot best.\n"
+ .string "Don't you think it's nice?\p"
+ .string "Oh, would you like to have a battle?$"
+
+SecretBase_Text_Trainer5AcceptBattle: @ 8274AFA
+ .string "Okay, here goes!$"
+
+SecretBase_Text_Trainer5DeclineBattle: @ 8274B0B
+ .string "Oh…\n"
+ .string "You can't now, okay.$"
+
+SecretBase_Text_Trainer5Defeated:: @ 8274B24
+ .string "Hmmm… It's our loss…\n"
+ .string "But don't tell anyone!\l"
+ .string "It's a confidential secret!$"
+
+SecretBase_Text_Trainer5PostBattle: @ 8274B6C
+ .string "If you're in this area again,\n"
+ .string "I hope you'll visit me.$"
+
+SecretBase_Text_Trainer5PreChampion: @ 8274BA2
+ .string "There're a lot of places where you can\n"
+ .string "make a SECRET BASE.\p"
+ .string "But I like this spot best.\n"
+ .string "Don't you think it's nice?$"
+
+SecretBase_Text_Trainer1PreBattle: @ 8274C13
+ .string "This is a popular spot.\n"
+ .string "It's always taken.\p"
+ .string "Oh! Were you thinking about\n"
+ .string "taking this spot, too?\p"
+ .string "I'll tell you what, you can have this\n"
+ .string "spot if you can beat me.$"
+
+SecretBase_Text_Trainer1AcceptBattle: @ 8274CB0
+ .string "Okay!\n"
+ .string "I'm going to defend my SECRET BASE!$"
+
+SecretBase_Text_Trainer1DeclineBattle: @ 8274CDA
+ .string "Hunh? Is that right?\n"
+ .string "You're not interested in this spot?$"
+
+SecretBase_Text_Trainer1Defeated:: @ 8274D13
+ .string "I can't keep going!\n"
+ .string "I surrender!$"
+
+SecretBase_Text_Trainer1PostBattle: @ 8274D34
+ .string "Okay, when I move one day,\n"
+ .string "this place will be yours!$"
+
+SecretBase_Text_Trainer1PreChampion: @ 8274D69
+ .string "This is a popular spot.\n"
+ .string "It's always taken.\p"
+ .string "I waited a long time for it to open.\n"
+ .string "I finally got to use it!$"
+
+SecretBase_Text_Trainer6PreBattle: @ 8274DD2
+ .string "Welcome to my POKéMON LAB.\p"
+ .string "I carry out research on battling in\n"
+ .string "secrecy.\p"
+ .string "Would you like to see how strong I am?$"
+
+SecretBase_Text_Trainer6AcceptBattle: @ 8274E41
+ .string "I'm going to go all out!$"
+
+SecretBase_Text_Trainer6DeclineBattle: @ 8274E5A
+ .string "Oh.\n"
+ .string "Some other time, then!$"
+
+SecretBase_Text_Trainer6Defeated:: @ 8274E75
+ .string "Hmm… I've still got lots to learn.\n"
+ .string "I have to study some more.$"
+
+SecretBase_Text_Trainer6PostBattle: @ 8274EB3
+ .string "Thanks for battling with me.\n"
+ .string "Please come back again tomorrow.$"
+
+SecretBase_Text_Trainer6PreChampion: @ 8274EF1
+ .string "Welcome to my POKéMON LAB.\p"
+ .string "I carry out research on battling in\n"
+ .string "secrecy.$"
+
+SecretBase_Text_Trainer2PreBattle: @ 8274F39
+ .string "A big mansion is nice, but I like this\n"
+ .string "sort of place more.\p"
+ .string "I like it because all kinds of people\n"
+ .string "come visit me.\p"
+ .string "So, how would you like a battle?$"
+
+SecretBase_Text_Trainer2AcceptBattle: @ 8274FCA
+ .string "That's the way!$"
+
+SecretBase_Text_Trainer2DeclineBattle: @ 8274FDA
+ .string "When you're ready, give me a shout!$"
+
+SecretBase_Text_Trainer2Defeated:: @ 8274FFE
+ .string "Aww! Done in!\n"
+ .string "But it's still fun to battle!$"
+
+SecretBase_Text_Trainer2PostBattle: @ 827502A
+ .string "Well, anyway, I should go buy some\n"
+ .string "decorations and furniture.\p"
+ .string "I want my SECRET BASE to be a place\n"
+ .string "other people can enjoy.$"
+
+SecretBase_Text_Trainer2PreChampion: @ 82750A4
+ .string "A big mansion is nice, but I like this\n"
+ .string "sort of place more.\p"
+ .string "I like it because all kinds of people\n"
+ .string "come visit me.$"
+
+SecretBase_Text_Trainer7PreBattle: @ 8275114
+ .string "I simply adore shopping for decorations\n"
+ .string "and furniture.\p"
+ .string "I also love raising POKéMON just\n"
+ .string "as much.\p"
+ .string "If you would be so kind, will you battle\n"
+ .string "with my POKéMON?$"
+
+SecretBase_Text_Trainer7AcceptBattle: @ 82751AF
+ .string "Thank you.\n"
+ .string "Shall we begin?$"
+
+SecretBase_Text_Trainer7DeclineBattle: @ 82751CA
+ .string "Oh.\n"
+ .string "How disappointing…$"
+
+SecretBase_Text_Trainer7Defeated:: @ 82751E1
+ .string "I concede…$"
+
+SecretBase_Text_Trainer7PostBattle: @ 82751EC
+ .string "That was all in good fun!\n"
+ .string "I should go enjoy shopping now.$"
+
+SecretBase_Text_Trainer7PreChampion: @ 8275226
+ .string "I simply adore shopping for decorations\n"
+ .string "and furniture.\p"
+ .string "I also love raising POKéMON just\n"
+ .string "as much.$"
+
+SecretBase_Text_Trainer3PreBattle: @ 8275287
+ .string "Some people make their SECRET BASES in\n"
+ .string "hard-to-find places.\l"
+ .string "Do they want to just lie low?\p"
+ .string "But since you found me, how about we\n"
+ .string "have a battle?$"
+
+SecretBase_Text_Trainer3AcceptBattle: @ 8275315
+ .string "I'm not going down easily!$"
+
+SecretBase_Text_Trainer3DeclineBattle: @ 8275330
+ .string "Oh… Are you maybe tired from searching\n"
+ .string "for this place?$"
+
+SecretBase_Text_Trainer3Defeated:: @ 8275367
+ .string "I went down…$"
+
+SecretBase_Text_Trainer3PostBattle: @ 8275374
+ .string "Where's your SECRET BASE?\n"
+ .string "I should go visit you there.$"
+
+SecretBase_Text_Trainer3PreChampion: @ 82753AB
+ .string "Some people make their SECRET BASES in\n"
+ .string "hard-to-find places.\l"
+ .string "Do they want to just lie low?$"
+
+SecretBase_Text_Trainer8PreBattle: @ 8275405
+ .string "People have told me that you can get\n"
+ .string "decorations in several ways.\p"
+ .string "We should have a race to see who can\n"
+ .string "get nicer decorations and furniture!\p"
+ .string "In the meantime, want to battle?$"
+
+SecretBase_Text_Trainer8AcceptBattle: @ 82754B2
+ .string "This is my SECRET BASE.\n"
+ .string "I can't lose!$"
+
+SecretBase_Text_Trainer8DeclineBattle: @ 82754D8
+ .string "I'll battle with you anytime.$"
+
+SecretBase_Text_Trainer8Defeated:: @ 82754F6
+ .string "Huh?\n"
+ .string "Did I just lose?$"
+
+SecretBase_Text_Trainer8PostBattle: @ 827550C
+ .string "I won't lose at collecting decorations.\n"
+ .string "Come visit again!$"
+
+SecretBase_Text_Trainer8PreChampion: @ 8275546
+ .string "People have told me that you can get\n"
+ .string "decorations in several ways.\p"
+ .string "We should have a race to see who can\n"
+ .string "get nicer decorations and furniture!$"
+
+SecretBase_Text_Trainer4PreBattle: @ 82755D2
+ .string "I found a spot I liked, and I did it up\n"
+ .string "with my favorite decorations.\p"
+ .string "I raise my favorite POKéMON and grow\n"
+ .string "stronger with it.\p"
+ .string "That's what I do.\n"
+ .string "Want to battle with me?$"
+
+SecretBase_Text_Trainer4AcceptBattle: @ 8275679
+ .string "Show me what you're made of!$"
+
+SecretBase_Text_Trainer4DeclineBattle: @ 8275696
+ .string "I guess there are times when you're not\n"
+ .string "into it.$"
+
+SecretBase_Text_Trainer4Defeated:: @ 82756C7
+ .string "I know exactly what you're made of now.$"
+
+SecretBase_Text_Trainer4PostBattle: @ 82756EF
+ .string "We can both become stronger.\n"
+ .string "Let's keep at it!$"
+
+SecretBase_Text_Trainer4PreChampion: @ 827571E
+ .string "I found a spot I liked, and I did it up\n"
+ .string "with my favorite decorations.\p"
+ .string "I raise my favorite POKéMON and grow\n"
+ .string "stronger with it.\p"
+ .string "Every day is a great day.$"
+
+SecretBase_Text_Trainer9PreBattle: @ 82757B5
+ .string "You can learn a lot about the taste\n"
+ .string "and sense of people by the kinds of\l"
+ .string "decorations they have, and how they\l"
+ .string "display them.\p"
+ .string "What do you think of my taste?\n"
+ .string "Are you speechless?\p"
+ .string "Want to see my taste in battling?$"
+
+SecretBase_Text_Trainer9AcceptBattle: @ 8275884
+ .string "There's no holding back!$"
+
+SecretBase_Text_Trainer9DeclineBattle: @ 827589D
+ .string "I'll be happy to demonstrate my style\n"
+ .string "anytime.$"
+
+SecretBase_Text_Trainer9Defeated:: @ 82758CC
+ .string "You're supremely talented!\n"
+ .string "Your power seems to be limitless…$"
+
+SecretBase_Text_Trainer9PostBattle: @ 8275909
+ .string "What did you think of my style?\n"
+ .string "I'll keep on polishing it!$"
+
+SecretBase_Text_Trainer9PreChampion: @ 8275944
+ .string "You can learn a lot about the taste\n"
+ .string "and sense of people by the kinds of\l"
+ .string "decorations they have, and how they\l"
+ .string "display them.\p"
+ .string "What do you think of my taste?\n"
+ .string "Are you speechless?$"
diff --git a/include/constants/flags.h b/include/constants/flags.h
index 4679e953c..d90451ad7 100644
--- a/include/constants/flags.h
+++ b/include/constants/flags.h
@@ -367,7 +367,7 @@
#define FLAG_MET_SLATEPORT_FANCLUB_CHAIRMAN 0x156
#define FLAG_MET_BATTLE_FRONTIER_BETTOR 0x157
#define FLAG_ENABLE_MR_STONE_POKENAV 0x158
-#define FLAG_OLDALE_NURSE_MENTIONS_GOLD_CARD 0x159
+#define FLAG_NURSE_MENTIONS_GOLD_CARD 0x159
#define FLAG_MET_FRONTIER_BEAUTY_MOVE_TUTOR 0x15A
#define FLAG_MET_FRONTIER_SWIMMER_MOVE_TUTOR 0x15B
diff --git a/include/constants/global.h b/include/constants/global.h
index 7e0b5cfa4..091f735f4 100644
--- a/include/constants/global.h
+++ b/include/constants/global.h
@@ -46,6 +46,8 @@
#define BAG_TMHM_COUNT 64
#define BAG_BERRIES_COUNT 46
#define EVENT_OBJECT_TEMPLATES_COUNT 64
+#define DECOR_MAX_SECRET_BASE 16
+#define DECOR_MAX_PLAYERS_HOUSE 12
#define PYRAMID_BAG_ITEMS_COUNT 10
#define HALL_FACILITIES_COUNT 9 // 7 facilities for single mode + tower double mode + tower multi mode.
diff --git a/include/constants/script_menu.h b/include/constants/script_menu.h
index b7ec908c1..928ca00e0 100644
--- a/include/constants/script_menu.h
+++ b/include/constants/script_menu.h
@@ -13,8 +13,8 @@
#define MULTI_ENTERINFO 2
#define MULTI_CONTEST_INFO 3
#define MULTI_CONTEST_TYPE 4
-#define MULTI_DECOR_NOREGISTRY 5
-#define MULTI_DECOR_REGISTRY 6
+#define MULTI_BASE_PC_NO_REGISTRY 5
+#define MULTI_BASE_PC_WITH_REGISTRY 6
#define MULTI_REGISTER_MENU 7
#define MULTI_SSTIDAL_LILYCOVE 8 // Exit only, populated by CreateLilycoveSSTidalMultichoice
#define MULTI_UNUSED_9 9
diff --git a/include/event_scripts.h b/include/event_scripts.h
index fc0b3cde0..02265413e 100644
--- a/include/event_scripts.h
+++ b/include/event_scripts.h
@@ -1,22 +1,14 @@
#ifndef GUARD_EVENT_SCRIPTS_H
#define GUARD_EVENT_SCRIPTS_H
-extern const u8 gUnknown_0823B4E8[];
-extern const u8 gUnknown_0823B5E9[];
extern const u8 EventScript_TestSignpostMsg[];
extern const u8 EventScript_TryGetTrainerScript[];
-extern const u8 EventScript_275BB7[];
-extern const u8 EventScript_275D0C[];
-extern const u8 EventScript_275D1F[];
-extern const u8 EventScript_275D2E[];
extern const u8 EventScript_271354[];
extern const u8 EventScript_DoTainerBattle[];
extern const u8 EventScript_TryDoDoubleTrainerBattle[];
extern const u8 EventScript_TryDoNormalTrainerBattle[];
extern const u8 EventScript_TryDoDoubleRematchBattle[];
extern const u8 EventScript_TryDoRematchBattle[];
-extern const u8 SecretBase_EventScript_DollInteract[];
-extern const u8 SecretBase_EventScript_CushionInteract[];
extern const u8 BerryTreeScript[];
@@ -368,16 +360,16 @@ extern const u8 gPokeNewsTextLilycove_Ending[];
extern const u8 gPokeNewsTextBlendMaster_Upcoming[];
extern const u8 gPokeNewsTextBlendMaster_Ongoing[];
extern const u8 gPokeNewsTextBlendMaster_Ending[];
-extern const u8 SecretBase_RedCave1_Text_274966[];
-extern const u8 SecretBase_RedCave1_Text_274D13[];
-extern const u8 SecretBase_RedCave1_Text_274FFE[];
-extern const u8 SecretBase_RedCave1_Text_275367[];
-extern const u8 SecretBase_RedCave1_Text_2756C7[];
-extern const u8 SecretBase_RedCave1_Text_274B24[];
-extern const u8 SecretBase_RedCave1_Text_274E75[];
-extern const u8 SecretBase_RedCave1_Text_2751E1[];
-extern const u8 SecretBase_RedCave1_Text_2754F6[];
-extern const u8 SecretBase_RedCave1_Text_2758CC[];
+extern const u8 SecretBase_Text_Trainer0Defeated[];
+extern const u8 SecretBase_Text_Trainer1Defeated[];
+extern const u8 SecretBase_Text_Trainer2Defeated[];
+extern const u8 SecretBase_Text_Trainer3Defeated[];
+extern const u8 SecretBase_Text_Trainer4Defeated[];
+extern const u8 SecretBase_Text_Trainer5Defeated[];
+extern const u8 SecretBase_Text_Trainer6Defeated[];
+extern const u8 SecretBase_Text_Trainer7Defeated[];
+extern const u8 SecretBase_Text_Trainer8Defeated[];
+extern const u8 SecretBase_Text_Trainer9Defeated[];
extern const u8 BattleFrontier_BattlePyramidEmptySquare_EventScript_252C88[];
@@ -527,12 +519,9 @@ extern const u8 MauvilleCity_PokemonCenter_1F_Text_2900CB[];
extern const u8 EventScript_PlayerPCMale[];
extern const u8 EventScript_PlayerPCFemale[];
-extern const u8 EventScript_SecretBasePC[];
-extern const u8 EventScript_RecordMixingSecretBasePC[];
extern const u8 EventScript_PC[];
extern const u8 EventScript_TestSignpostMsg[];
extern const u8 EventScript_HiddenItemScript[];
-extern const u8 EventScript_2759F1[];
extern const u8 EventScript_TV[];
extern const u8 EventScript_ClosedSootopolisDoor[];
extern const u8 SkyPillar_Outside_EventScript_2393F9[];
@@ -552,8 +541,6 @@ extern const u8 EventScript_WirelessBoxResults[];
extern const u8 EventScript_CableBoxResults[];
extern const u8 EventScript_Questionnaire[];
extern const u8 EventScript_TrainerHillTimer[];
-extern const u8 EventScript_SecretBaseSandOrnament[];
-extern const u8 EventScript_SecretBaseShieldOrToyTV[];
extern const u8 EventScript_UseSurf[];
extern const u8 EventScript_UseWaterfall[];
extern const u8 EventScript_CannotUseWaterfall[];
@@ -573,15 +560,30 @@ extern const u8 MossdeepCity_SpaceCenter_2F_EventScript_224175[];
extern const u8 SSTidalCorridor_EventScript_23C050[];
extern const u8 gUnknown_082A8350[];
+// Secret Base
+extern const u8 SecretBase_EventScript_PC[];
+extern const u8 SecretBase_EventScript_RecordMixingPC[];
+extern const u8 SecretBase_EventScript_PCCancel[];
+extern const u8 SecretBase_EventScript_ShowRegisterMenu[];
+extern const u8 SecretBase_EventScript_SandOrnament[];
+extern const u8 SecretBase_EventScript_ShieldOrToyTV[];
+extern const u8 SecretBase_EventScript_DollInteract[];
+extern const u8 SecretBase_EventScript_CushionInteract[];
+extern const u8 SecretBase_EventScript_CheckEntrance[];
+extern const u8 SecretBase_EventScript_Enter[];
+extern const u8 SecretBase_EventScript_InitDecorations[];
+extern const u8 SecretBase_EventScript_PutAwayDecoration[];
+extern const u8 SecretBase_EventScript_SetDecoration[];
+
// Battle Pyramid.
extern const u8 BattleFrontier_BattlePyramidEmptySquare_EventScript_252C88[];
extern const u8 BattlePyramid_TrainerBattle[];
extern const u8 BattlePyramid_FindItemBall[];
// fldeff misc
-extern const u8 EventScript_275A86[];
-extern const u8 EventScript_275ADF[];
-extern const u8 EventScript_275B38[];
+extern const u8 SecretBase_EventScript_CaveUseSecretPower[];
+extern const u8 SecretBase_EventScript_TreeUseSecretPower[];
+extern const u8 SecretBase_EventScript_ShrubUseSecretPower[];
// trainer hill
extern const u8 EventScript_2C83F0[];
diff --git a/include/global.h b/include/global.h
index 44a4d0164..82c53c009 100644
--- a/include/global.h
+++ b/include/global.h
@@ -500,8 +500,8 @@ struct SecretBase
/*0x1AAA*/ u16 numSecretBasesReceived;
/*0x1AAC*/ u8 numTimesEntered;
/*0x1AAD*/ u8 sbr_field_11;
- /*0x1AAE*/ u8 decorations[16];
- /*0x1ABE*/ u8 decorationPositions[16];
+ /*0x1AAE*/ u8 decorations[DECOR_MAX_SECRET_BASE];
+ /*0x1ABE*/ u8 decorationPositions[DECOR_MAX_SECRET_BASE];
/*0x1AD0*/ struct SecretBaseParty party;
};
@@ -925,8 +925,8 @@ struct SaveBlock1
/*0x159C*/ u32 gameStats[NUM_GAME_STATS];
/*0x169C*/ struct BerryTree berryTrees[BERRY_TREES_COUNT];
/*0x1A9C*/ struct SecretBase secretBases[SECRET_BASES_COUNT];
- /*0x271C*/ u8 playerRoomDecor[12];
- /*0x2728*/ u8 playerRoomDecorPos[12];
+ /*0x271C*/ u8 playerRoomDecor[DECOR_MAX_PLAYERS_HOUSE];
+ /*0x2728*/ u8 playerRoomDecorPos[DECOR_MAX_PLAYERS_HOUSE];
/*0x2734*/ u8 decorDesk[10];
/*0x????*/ u8 decorChair[10];
/*0x????*/ u8 decorPlant[10];
diff --git a/src/data/script_menu.h b/src/data/script_menu.h
index b64146a5d..3880c3c0c 100644
--- a/src/data/script_menu.h
+++ b/src/data/script_menu.h
@@ -31,7 +31,7 @@ static const struct MenuAction MultichoiceList_ContestType[] =
{gText_Exit},
};
-static const struct MenuAction MultichoiceList_DecorRegistry[] =
+static const struct MenuAction MultichoiceList_BasePCWithRegistry[] =
{
{gText_Decoration2},
{gText_PackUp},
@@ -39,7 +39,7 @@ static const struct MenuAction MultichoiceList_DecorRegistry[] =
{gText_Exit},
};
-static const struct MenuAction MultichoiceList_DecorNoRegistry[] =
+static const struct MenuAction MultichoiceList_BasePCNoRegistry[] =
{
{gText_Decoration2},
{gText_PackUp},
@@ -789,8 +789,8 @@ static const struct MultichoiceListStruct sMultichoiceLists[] =
[MULTI_ENTERINFO] = MULTICHOICE(MultichoiceList_EnterInfo),
[MULTI_CONTEST_INFO] = MULTICHOICE(MultichoiceList_ContestInfo),
[MULTI_CONTEST_TYPE] = MULTICHOICE(MultichoiceList_ContestType),
- [MULTI_DECOR_NOREGISTRY] = MULTICHOICE(MultichoiceList_DecorNoRegistry),
- [MULTI_DECOR_REGISTRY] = MULTICHOICE(MultichoiceList_DecorRegistry),
+ [MULTI_BASE_PC_NO_REGISTRY] = MULTICHOICE(MultichoiceList_BasePCNoRegistry),
+ [MULTI_BASE_PC_WITH_REGISTRY] = MULTICHOICE(MultichoiceList_BasePCWithRegistry),
[MULTI_REGISTER_MENU] = MULTICHOICE(MultichoiceList_RegisterMenu),
[MULTI_SSTIDAL_LILYCOVE] = MULTICHOICE(MultichoiceList_Exit),
[MULTI_UNUSED_9] = MULTICHOICE(MultichoiceList_Exit),
diff --git a/src/decoration.c b/src/decoration.c
index b4b825e24..2a47dd553 100644
--- a/src/decoration.c
+++ b/src/decoration.c
@@ -40,6 +40,7 @@
#define PLACE_DECORATION_SELECTOR_TAG 0xbe5
#define PLACE_DECORATION_PLAYER_TAG 0x008
+#define NUM_DECORATION_FLAGS (FLAG_DECORATION_14 - FLAG_DECORATION_0)
struct DecorationItemsMenu
{
@@ -69,8 +70,8 @@ struct DecorRearrangementDataBuffer
EWRAM_DATA u8 *gCurDecorationItems = NULL;
EWRAM_DATA static u8 sDecorationActionsCursorPos = 0;
EWRAM_DATA static u8 sNumOwnedDecorationsInCurCategory = 0;
-EWRAM_DATA static u8 sSecretBaseItemsIndicesBuffer[16] = {};
-EWRAM_DATA static u8 sPlayerRoomItemsIndicesBuffer[12] = {};
+EWRAM_DATA static u8 sSecretBaseItemsIndicesBuffer[DECOR_MAX_SECRET_BASE] = {};
+EWRAM_DATA static u8 sPlayerRoomItemsIndicesBuffer[DECOR_MAX_PLAYERS_HOUSE] = {};
EWRAM_DATA static u16 sDecorationsCursorPos = 0;
EWRAM_DATA static u16 sDecorationsScrollOffset = 0;
EWRAM_DATA u8 gCurDecorationIndex = 0;
@@ -86,7 +87,7 @@ EWRAM_DATA static u8 sDecor_CameraSpriteObjectIdx1 = 0;
EWRAM_DATA static u8 sDecor_CameraSpriteObjectIdx2 = 0;
EWRAM_DATA static u8 sDecorationLastDirectionMoved = 0;
EWRAM_DATA static struct OamData sDecorSelectorOam = {};
-EWRAM_DATA static struct DecorRearrangementDataBuffer sDecorRearrangementDataBuffer[16] = {};
+EWRAM_DATA static struct DecorRearrangementDataBuffer sDecorRearrangementDataBuffer[DECOR_MAX_SECRET_BASE] = {};
EWRAM_DATA static u8 sCurDecorSelectedInRearrangement = 0;
static void HandleDecorationActionsMenuInput(u8 taskId);
@@ -128,34 +129,34 @@ void SetUpPlacingDecorationPlayerAvatar(u8 taskId, struct PlaceDecorationGraphic
void sub_812826C(u8 taskId);
void sub_81283BC(u8 taskId);
void sub_8128414(u8 taskId);
-void sub_8128950(u8 taskId);
-void sub_81289D0(u8 taskId);
-void sub_81289F0(u8 taskId);
+void AttemptPlaceDecoration(u8 taskId);
+void PlaceDecorationPrompt(u8 taskId);
+void PlaceDecoration(u8 taskId);
void sub_8128AAC(u8 taskId);
-void sub_8128B80(u8 taskId);
-void sub_8128BA0(u8 taskId);
+void CancelDecoratingPrompt(u8 taskId);
+void CancelDecorating(u8 taskId);
void sub_8128BBC(u8 taskId);
void c1_overworld_prev_quest(u8 taskId);
void sub_8128CD4(void);
void sub_8128DE0(void);
-void sub_8128FD8(u8 taskId);
-void sub_8129020(u8 taskId);
+void ContinueDecorating(u8 taskId);
+void CantPlaceDecorationPrompt(u8 taskId);
void sub_81292D0(struct Sprite *sprite);
void sub_81292E8(struct Sprite *sprite);
u8 gpu_pal_decompress_alloc_tag_and_upload(struct PlaceDecorationGraphicsDataBuffer *data, u8 decor);
const u32 *GetDecorationIconPicOrPalette(u16 decor, u8 mode);
bool8 sub_81299AC(u8 taskId);
void sub_8129ABC(u8 taskId);
-void sub_8129B34(u8 taskId);
+void ContinuePuttingAwayDecorations(u8 taskId);
void sub_8129BCC(u8 taskId);
void sub_8129BF8(u8 taskId);
void sub_8129C74(u8 taskId);
-void sub_8129D64(u8 taskId);
+void ContinuePuttingAwayDecorationsPrompt(u8 taskId);
void sub_812A0E8(u8 taskId);
-void sub_812A1A0(u8 taskId);
-void sub_812A1C0(u8 taskId);
-void sub_812A1F0(u8 taskId);
-void sub_812A210(u8 taskId);
+void ReturnDecorationPrompt(u8 taskId);
+void PutAwayDecoration(u8 taskId);
+void StopPuttingAwayDecorationsPrompt(u8 taskId);
+void StopPuttingAwayDecorations(u8 taskId);
void sub_812A22C(u8 taskId);
void sub_812A25C(u8 taskId);
void sub_812A334(void);
@@ -163,8 +164,8 @@ void sub_812A36C(struct Sprite *sprite);
void sub_812A39C(void);
void sub_812A3C8(void);
void sub_812A3D4(u8 taskId);
-void sub_812A458(u8 taskId);
-void sub_812A478(u8 taskId);
+void TossDecorationPrompt(u8 taskId);
+void TossDecoration(u8 taskId);
#include "data/decoration/tiles.h"
#include "data/decoration/description.h"
@@ -344,16 +345,16 @@ const struct SpritePalette gUnknown_085A72BC =
.tag = PLACE_DECORATION_SELECTOR_TAG,
};
-const struct YesNoFuncTable gUnknown_085A72C4 =
+const struct YesNoFuncTable sPlaceDecorationYesNoFunctions =
{
- .yesFunc = sub_81289F0,
- .noFunc = sub_8128FD8,
+ .yesFunc = PlaceDecoration,
+ .noFunc = ContinueDecorating,
};
-const struct YesNoFuncTable gUnknown_085A72CC =
+const struct YesNoFuncTable sCancelDecoratingYesNoFunctions =
{
- .yesFunc = sub_8128BA0,
- .noFunc = sub_8128FD8,
+ .yesFunc = CancelDecorating,
+ .noFunc = ContinueDecorating,
};
const struct YesNoFuncTable gUnknown_085A72D4[] =
@@ -390,16 +391,16 @@ const u16 gUnknown_085A7308[] = INCBIN_U16("graphics/decorations/unk_85a7308.gba
const u16 gUnknown_085A7328[] = INCBIN_U16("graphics/decorations/unk_85a7328.gbapal");
-const struct YesNoFuncTable gUnknown_085A7348 =
+const struct YesNoFuncTable sReturnDecorationYesNoFunctions =
{
- .yesFunc = sub_812A1C0,
- .noFunc = sub_8129B34,
+ .yesFunc = PutAwayDecoration,
+ .noFunc = ContinuePuttingAwayDecorations,
};
-const struct YesNoFuncTable gUnknown_085A7350 =
+const struct YesNoFuncTable sStopPuttingAwayDecorationsYesNoFunctions =
{
- .yesFunc = sub_812A210,
- .noFunc = sub_8129B34,
+ .yesFunc = StopPuttingAwayDecorations,
+ .noFunc = ContinuePuttingAwayDecorations,
};
const u8 gUnknown_085A7358[] = INCBIN_U8("graphics/misc/decoration_unk_85a7358.4bpp");
@@ -458,9 +459,9 @@ const struct SpriteTemplate gUnknown_085A7404 =
sub_812A36C
};
-const struct YesNoFuncTable gUnknown_085A741C =
+const struct YesNoFuncTable sTossDecorationYesNoFunctions =
{
- .yesFunc = sub_812A478,
+ .yesFunc = TossDecoration,
.noFunc = sub_8127A30,
};
@@ -633,7 +634,7 @@ static void DecorationMenuAction_Cancel(u8 taskId)
RemoveDecorationWindow(0);
if (!gDecorationContext.isPlayerRoom)
{
- ScriptContext1_SetupScript(gUnknown_0823B4E8);
+ ScriptContext1_SetupScript(SecretBase_EventScript_PCCancel);
DestroyTask(taskId);
}
else
@@ -1235,12 +1236,12 @@ void ShowDecorationOnMap(u16 mapX, u16 mapY, u16 decoration)
}
}
-void sub_8127E18(void)
+void SetDecoration(void)
{
u8 i;
u8 j;
- for (i = 0; i < 14; i++)
+ for (i = 0; i < NUM_DECORATION_FLAGS; i++)
{
if (FlagGet(FLAG_DECORATION_1 + i) == TRUE)
{
@@ -1339,7 +1340,7 @@ void sub_8128060(u8 taskId)
if (IsWeatherNotFadingIn() == TRUE)
{
gTasks[taskId].data[12] = 0;
- sub_8128FD8(taskId);
+ ContinueDecorating(taskId);
}
break;
}
@@ -1427,7 +1428,7 @@ void sub_81283BC(u8 taskId)
gSprites[sDecor_CameraSpriteObjectIdx1].data[7] = 1;
gSprites[sDecor_CameraSpriteObjectIdx2].data[7] = 1;
sub_8128DE0();
- sub_8128950(taskId);
+ AttemptPlaceDecoration(taskId);
}
void sub_8128414(u8 taskId)
@@ -1437,7 +1438,7 @@ void sub_8128414(u8 taskId)
gSprites[sDecor_CameraSpriteObjectIdx2].data[7] = 1;
sub_8128DE0();
StringExpandPlaceholders(gStringVar4, gText_CancelDecorating);
- DisplayItemMessageOnField(taskId, gStringVar4, sub_8128B80);
+ DisplayItemMessageOnField(taskId, gStringVar4, CancelDecoratingPrompt);
}
bool8 sub_8128484(u8 behaviorAt, u16 behaviorBy)
@@ -1472,7 +1473,7 @@ bool8 sub_81284F4(u16 behaviorAt, const struct Decoration *decoration)
return FALSE;
}
-bool8 sub_812853C(u8 taskId, const struct Decoration *decoration)
+bool8 CanPlaceDecoration(u8 taskId, const struct Decoration *decoration)
{
u8 i;
u8 j;
@@ -1586,28 +1587,28 @@ bool8 sub_812853C(u8 taskId, const struct Decoration *decoration)
return TRUE;
}
-void sub_8128950(u8 taskId)
+void AttemptPlaceDecoration(u8 taskId)
{
- if (sub_812853C(taskId, &gDecorations[gCurDecorationItems[gCurDecorationIndex]]) == TRUE)
+ if (CanPlaceDecoration(taskId, &gDecorations[gCurDecorationItems[gCurDecorationIndex]]) == TRUE)
{
StringExpandPlaceholders(gStringVar4, gText_PlaceItHere);
- DisplayItemMessageOnField(taskId, gStringVar4, sub_81289D0);
+ DisplayItemMessageOnField(taskId, gStringVar4, PlaceDecorationPrompt);
}
else
{
PlaySE(SE_HAZURE);
StringExpandPlaceholders(gStringVar4, gText_CantBePlacedHere);
- DisplayItemMessageOnField(taskId, gStringVar4, sub_8129020);
+ DisplayItemMessageOnField(taskId, gStringVar4, CantPlaceDecorationPrompt);
}
}
-void sub_81289D0(u8 taskId)
+void PlaceDecorationPrompt(u8 taskId)
{
DisplayYesNoMenuDefaultYes();
- DoYesNoFuncWithChoice(taskId, &gUnknown_085A72C4);
+ DoYesNoFuncWithChoice(taskId, &sPlaceDecorationYesNoFunctions);
}
-void sub_81289F0(u8 taskId)
+void PlaceDecoration(u8 taskId)
{
ClearDialogWindowAndFrame(0, 0);
sub_8128AAC(taskId);
@@ -1619,7 +1620,7 @@ void sub_81289F0(u8 taskId)
{
sCurDecorMapX = gTasks[taskId].data[0] - 7;
sCurDecorMapY = gTasks[taskId].data[1] - 7;
- ScriptContext1_SetupScript(EventScript_275D1F);
+ ScriptContext1_SetupScript(SecretBase_EventScript_SetDecoration);
}
gSprites[sDecor_CameraSpriteObjectIdx1].pos1.y += 2;
@@ -1645,7 +1646,7 @@ void sub_8128AAC(u8 taskId)
if (!gDecorationContext.isPlayerRoom)
{
- for (i = 0; i < 16; i++)
+ for (i = 0; i < DECOR_MAX_SECRET_BASE; i++)
{
if (sSecretBaseItemsIndicesBuffer[i] == 0)
{
@@ -1656,7 +1657,7 @@ void sub_8128AAC(u8 taskId)
}
else
{
- for (i = 0; i < 12; i++)
+ for (i = 0; i < DECOR_MAX_PLAYERS_HOUSE; i++)
{
if (sPlayerRoomItemsIndicesBuffer[i] == 0)
{
@@ -1667,13 +1668,13 @@ void sub_8128AAC(u8 taskId)
}
}
-void sub_8128B80(u8 taskId)
+void CancelDecoratingPrompt(u8 taskId)
{
DisplayYesNoMenuDefaultYes();
- DoYesNoFuncWithChoice(taskId, &gUnknown_085A72CC);
+ DoYesNoFuncWithChoice(taskId, &sCancelDecoratingYesNoFunctions);
}
-void sub_8128BA0(u8 taskId)
+void CancelDecorating(u8 taskId)
{
ClearDialogWindowAndFrame(0, 0);
sub_8128BBC(taskId);
@@ -1718,7 +1719,7 @@ void sub_8128C64(u8 taskId)
data[2]++;
break;
case 1:
- ScriptContext1_SetupScript(EventScript_275D0C);
+ ScriptContext1_SetupScript(SecretBase_EventScript_InitDecorations);
data[2]++;
break;
case 2:
@@ -1857,7 +1858,7 @@ void sub_8128E18(u8 taskId)
}
}
-void sub_8128FD8(u8 taskId)
+void ContinueDecorating(u8 taskId)
{
ClearDialogWindowAndFrame(0, 1);
gSprites[sDecor_CameraSpriteObjectIdx1].data[7] = 0;
@@ -1865,10 +1866,10 @@ void sub_8128FD8(u8 taskId)
gTasks[taskId].func = sub_8128E18;
}
-void sub_8129020(u8 taskId)
+void CantPlaceDecorationPrompt(u8 taskId)
{
if (gMain.newKeys & A_BUTTON || gMain.newKeys & B_BUTTON)
- sub_8128FD8(taskId);
+ ContinueDecorating(taskId);
}
void sub_8129048(struct PlaceDecorationGraphicsDataBuffer *data)
@@ -2206,7 +2207,7 @@ void sub_81298EC(u8 taskId)
case 1:
if (!gPaletteFade.active) {
DrawWholeMapView();
- ScriptContext1_SetupScript(EventScript_275D2E);
+ ScriptContext1_SetupScript(SecretBase_EventScript_PutAwayDecoration);
ClearDialogWindowAndFrame(0, 1);
gTasks[taskId].data[2] = 2;
}
@@ -2221,7 +2222,7 @@ void sub_81298EC(u8 taskId)
if (IsWeatherNotFadingIn() == TRUE)
{
StringExpandPlaceholders(gStringVar4, gText_DecorationReturnedToPC);
- DisplayItemMessageOnField(taskId, gStringVar4, sub_8129D64);
+ DisplayItemMessageOnField(taskId, gStringVar4, ContinuePuttingAwayDecorationsPrompt);
if (gMapHeader.regionMapSectionId == MAPSEC_SECRET_BASE)
TV_PutSecretBaseVisitOnTheAir();
}
@@ -2284,13 +2285,13 @@ void sub_8129ABC(u8 taskId)
if (IsWeatherNotFadingIn() == TRUE)
{
data[12] = 1;
- sub_8129B34(taskId);
+ ContinuePuttingAwayDecorations(taskId);
}
break;
}
}
-void sub_8129B34(u8 taskId)
+void ContinuePuttingAwayDecorations(u8 taskId)
{
ClearDialogWindowAndFrame(0, 1);
gSprites[sDecor_CameraSpriteObjectIdx1].data[7] = 0;
@@ -2316,7 +2317,7 @@ void sub_8129BF8(u8 taskId)
gSprites[sDecor_CameraSpriteObjectIdx1].invisible = FALSE;
gSprites[sDecor_CameraSpriteObjectIdx1].callback = SpriteCallbackDummy;
StringExpandPlaceholders(gStringVar4, gText_StopPuttingAwayDecorations);
- DisplayItemMessageOnField(taskId, gStringVar4, sub_812A1F0);
+ DisplayItemMessageOnField(taskId, gStringVar4, StopPuttingAwayDecorationsPrompt);
}
void sub_8129C74(u8 taskId)
@@ -2328,7 +2329,7 @@ void sub_8129C74(u8 taskId)
if (sCurDecorSelectedInRearrangement != 0)
{
StringExpandPlaceholders(gStringVar4, gText_ReturnDecorationToPC);
- DisplayItemMessageOnField(taskId, gStringVar4, sub_812A1A0);
+ DisplayItemMessageOnField(taskId, gStringVar4, ReturnDecorationPrompt);
}
else
{
@@ -2339,20 +2340,20 @@ void sub_8129C74(u8 taskId)
gSprites[sDecor_CameraSpriteObjectIdx1].invisible = FALSE;
gSprites[sDecor_CameraSpriteObjectIdx1].callback = SpriteCallbackDummy;
StringExpandPlaceholders(gStringVar4, gText_StopPuttingAwayDecorations);
- DisplayItemMessageOnField(taskId, gStringVar4, sub_812A1F0);
+ DisplayItemMessageOnField(taskId, gStringVar4, StopPuttingAwayDecorationsPrompt);
}
else
{
StringExpandPlaceholders(gStringVar4, gText_NoDecorationHere);
- DisplayItemMessageOnField(taskId, gStringVar4, sub_8129D64);
+ DisplayItemMessageOnField(taskId, gStringVar4, ContinuePuttingAwayDecorationsPrompt);
}
}
}
-void sub_8129D64(u8 taskId)
+void ContinuePuttingAwayDecorationsPrompt(u8 taskId)
{
if (gMain.newKeys & A_BUTTON || gMain.newKeys & B_BUTTON)
- sub_8129B34(taskId);
+ ContinuePuttingAwayDecorations(taskId);
}
void sub_8129D8C(u8 decor, struct DecorRearrangementDataBuffer *data)
@@ -2542,26 +2543,26 @@ void sub_812A0E8(u8 taskId)
}
}
-void sub_812A1A0(u8 taskId)
+void ReturnDecorationPrompt(u8 taskId)
{
DisplayYesNoMenuDefaultYes();
- DoYesNoFuncWithChoice(taskId, &gUnknown_085A7348);
+ DoYesNoFuncWithChoice(taskId, &sReturnDecorationYesNoFunctions);
}
-void sub_812A1C0(u8 taskId)
+void PutAwayDecoration(u8 taskId)
{
FadeScreen(1, 0);
gTasks[taskId].data[2] = 0;
gTasks[taskId].func = sub_81298EC;
}
-void sub_812A1F0(u8 taskId)
+void StopPuttingAwayDecorationsPrompt(u8 taskId)
{
DisplayYesNoMenuDefaultYes();
- DoYesNoFuncWithChoice(taskId, &gUnknown_085A7350);
+ DoYesNoFuncWithChoice(taskId, &sStopPuttingAwayDecorationsYesNoFunctions);
}
-void sub_812A210(u8 taskId)
+void StopPuttingAwayDecorations(u8 taskId)
{
ClearDialogWindowAndFrame(0, 0);
sub_812A22C(taskId);
@@ -2604,7 +2605,7 @@ void sub_812A2C4(u8 taskId)
data[2]++;
break;
case 1:
- ScriptContext1_SetupScript(EventScript_275D0C);
+ ScriptContext1_SetupScript(SecretBase_EventScript_InitDecorations);
data[2]++;
break;
case 2:
@@ -2658,7 +2659,7 @@ void sub_812A3D4(u8 taskId)
{
StringCopy(gStringVar1, gDecorations[gCurDecorationItems[gCurDecorationIndex]].name);
StringExpandPlaceholders(gStringVar4, gText_DecorationWillBeDiscarded);
- DisplayItemMessageOnField(taskId, gStringVar4, sub_812A458);
+ DisplayItemMessageOnField(taskId, gStringVar4, TossDecorationPrompt);
}
else
{
@@ -2667,13 +2668,13 @@ void sub_812A3D4(u8 taskId)
}
}
-void sub_812A458(u8 taskId)
+void TossDecorationPrompt(u8 taskId)
{
DisplayYesNoMenuDefaultYes();
- DoYesNoFuncWithChoice(taskId, &gUnknown_085A741C);
+ DoYesNoFuncWithChoice(taskId, &sTossDecorationYesNoFunctions);
}
-void sub_812A478(u8 taskId)
+void TossDecoration(u8 taskId)
{
gCurDecorationItems[gCurDecorationIndex] = DECOR_NONE;
sNumOwnedDecorationsInCurCategory = GetNumOwnedDecorationsInCategory(sCurDecorationCategory);
diff --git a/src/field_control_avatar.c b/src/field_control_avatar.c
index 8a41087f5..f3f9be530 100644
--- a/src/field_control_avatar.c
+++ b/src/field_control_avatar.c
@@ -225,8 +225,8 @@ static bool8 TryStartInteractionScript(struct MapPosition *position, u16 metatil
// Don't play interaction sound for certain scripts.
if (script != EventScript_PlayerPCMale
&& script != EventScript_PlayerPCFemale
- && script != EventScript_SecretBasePC
- && script != EventScript_RecordMixingSecretBasePC
+ && script != SecretBase_EventScript_PC
+ && script != SecretBase_EventScript_RecordMixingPC
&& script != SecretBase_EventScript_DollInteract
&& script != SecretBase_EventScript_CushionInteract
&& script != EventScript_PC)
@@ -355,7 +355,7 @@ static const u8 *GetInteractedBackgroundEventScript(struct MapPosition *position
{
gSpecialVar_0x8004 = bgEvent->bgUnion.secretBaseId;
if (TrySetCurSecretBase())
- return EventScript_2759F1;
+ return SecretBase_EventScript_CheckEntrance;
}
return NULL;
}
@@ -412,13 +412,13 @@ static const u8 *GetInteractedMetatileScript(struct MapPosition *position, u8 me
if (height == MapGridGetZCoordAt(position->x, position->y))
{
if (MetatileBehavior_IsSecretBasePC(metatileBehavior) == TRUE)
- return EventScript_SecretBasePC;
+ return SecretBase_EventScript_PC;
if (MetatileBehavior_IsRecordMixingSecretBasePC(metatileBehavior) == TRUE)
- return EventScript_RecordMixingSecretBasePC;
+ return SecretBase_EventScript_RecordMixingPC;
if (MetatileBehavior_IsSecretBaseSandOrnament(metatileBehavior) == TRUE)
- return EventScript_SecretBaseSandOrnament;
+ return SecretBase_EventScript_SandOrnament;
if (MetatileBehavior_IsSecretBaseShieldOrToyTV(metatileBehavior) == TRUE)
- return EventScript_SecretBaseShieldOrToyTV;
+ return SecretBase_EventScript_ShieldOrToyTV;
if (MetatileBehavior_IsMB_C6(metatileBehavior) == TRUE)
{
SetSecretBaseSecretsTvFlags_MiscFurnature();
diff --git a/src/field_specials.c b/src/field_specials.c
index befc2e781..f57b8ab0a 100644
--- a/src/field_specials.c
+++ b/src/field_specials.c
@@ -2050,7 +2050,7 @@ bool8 UsedPokemonCenterWarp(void)
return FALSE;
}
-bool32 sub_8139ED0(void)
+bool32 PlayerNotAtTrainerHillEntrance(void)
{
if (gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(TRAINER_HILL_ENTRANCE) && gSaveBlock1Ptr->location.mapNum == MAP_NUM(TRAINER_HILL_ENTRANCE))
{
diff --git a/src/fldeff_misc.c b/src/fldeff_misc.c
index c68a95d41..591f61eb7 100644
--- a/src/fldeff_misc.c
+++ b/src/fldeff_misc.c
@@ -583,7 +583,7 @@ bool8 SetUpFieldMove_SecretPower(void)
static void FieldCallback_SecretBaseCave(void)
{
gFieldEffectArguments[0] = GetCursorSelectionMonId();
- ScriptContext1_SetupScript(EventScript_275A86);
+ ScriptContext1_SetupScript(SecretBase_EventScript_CaveUseSecretPower);
}
bool8 FldEff_UseSecretPowerCave(void)
@@ -643,7 +643,7 @@ static void CaveEntranceSpriteCallbackEnd(struct Sprite *sprite)
static void FieldCallback_SecretBaseTree(void)
{
gFieldEffectArguments[0] = GetCursorSelectionMonId();
- ScriptContext1_SetupScript(EventScript_275ADF);
+ ScriptContext1_SetupScript(SecretBase_EventScript_TreeUseSecretPower);
}
bool8 FldEff_UseSecretPowerTree(void)
@@ -717,7 +717,7 @@ static void TreeEntranceSpriteCallbackEnd(struct Sprite *sprite)
static void FieldCallback_SecretBaseShrub(void)
{
gFieldEffectArguments[0] = GetCursorSelectionMonId();
- ScriptContext1_SetupScript(EventScript_275B38);
+ ScriptContext1_SetupScript(SecretBase_EventScript_ShrubUseSecretPower);
}
bool8 FldEff_UseSecretPowerShrub(void)
diff --git a/src/match_call.c b/src/match_call.c
index bcbf10766..f5d36645b 100644
--- a/src/match_call.c
+++ b/src/match_call.c
@@ -965,9 +965,9 @@ static const struct MatchCallText *const sMatchCallGeneralTopics[] =
sMatchCallBattlePyramidTexts,
};
-extern const u8 gUnknown_082A5C9C[];
-extern const u8 gUnknown_082A5D2C[];
-extern const u8 gUnknown_082A633D[];
+extern const u8 gBirchDexRatingText_AreYouCurious[];
+extern const u8 gBirchDexRatingText_SoYouveSeenAndCaught[];
+extern const u8 gBirchDexRatingText_OnANationwideBasis[];
void InitMatchCallCounters(void)
{
@@ -1979,10 +1979,10 @@ void sub_8197080(u8 *destStr)
ConvertIntToDecimalStringN(gStringVar1, numSeen, 0, 3);
ConvertIntToDecimalStringN(gStringVar2, numCaught, 0, 3);
dexRatingLevel = GetPokedexRatingLevel(numCaught);
- str = StringCopy(buffer, gUnknown_082A5C9C);
+ str = StringCopy(buffer, gBirchDexRatingText_AreYouCurious);
str[0] = CHAR_PROMPT_CLEAR;
str++;
- str = StringCopy(str, gUnknown_082A5D2C);
+ str = StringCopy(str, gBirchDexRatingText_SoYouveSeenAndCaught);
str[0] = CHAR_PROMPT_CLEAR;
str++;
StringCopy(str, sBirchDexRatingTexts[dexRatingLevel]);
@@ -1996,7 +1996,7 @@ void sub_8197080(u8 *destStr)
numCaught = GetNationalPokedexCount(FLAG_GET_CAUGHT);
ConvertIntToDecimalStringN(gStringVar1, numSeen, 0, 3);
ConvertIntToDecimalStringN(gStringVar2, numCaught, 0, 3);
- StringExpandPlaceholders(str, gUnknown_082A633D);
+ StringExpandPlaceholders(str, gBirchDexRatingText_OnANationwideBasis);
}
Free(buffer);
diff --git a/src/secret_base.c b/src/secret_base.c
index dc11c7aeb..76dbe7668 100644
--- a/src/secret_base.c
+++ b/src/secret_base.c
@@ -82,7 +82,7 @@ static void ShowRegistryMenuDeleteYesNo(u8 taskId);
static void DeleteRegistry_Yes(u8 taskId);
static void DeleteRegistry_No(u8 taskId);
static void ReturnToMainRegistryMenu(u8 taskId);
-static void GoToSecretBasePCMainMenu(u8 taskId);
+static void GoToSecretBasePCRegisterMenu(u8 taskId);
static u8 GetSecretBaseOwnerType(u8 secretBaseId);
static const struct SecretBaseEntranceMetatiles sSecretBaseEntranceMetatiles[] =
@@ -650,7 +650,7 @@ void WarpIntoSecretBase(const struct MapPosition *position, const struct MapEven
{
SetCurSecretBaseIdFromPosition(position, events);
TrySetCurSecretBaseIndex();
- ScriptContext1_SetupScript(EventScript_275BB7);
+ ScriptContext1_SetupScript(SecretBase_EventScript_Enter);
}
bool8 TrySetCurSecretBase(void)
@@ -894,7 +894,7 @@ static void Task_ShowSecretBaseRegistryMenu(u8 taskId)
}
else
{
- DisplayItemMessageOnField(taskId, gText_NoRegistry, GoToSecretBasePCMainMenu);
+ DisplayItemMessageOnField(taskId, gText_NoRegistry, GoToSecretBasePCRegisterMenu);
}
}
@@ -974,7 +974,7 @@ static void HandleRegistryMenuInput(u8 taskId)
RemoveWindow(data[6]);
schedule_bg_copy_tilemap_to_vram(0);
free(sRegistryMenu);
- GoToSecretBasePCMainMenu(taskId);
+ GoToSecretBasePCRegisterMenu(taskId);
break;
default:
PlaySE(SE_SELECT);
@@ -1074,12 +1074,12 @@ static void ReturnToMainRegistryMenu(u8 taskId)
gTasks[taskId].func = HandleRegistryMenuInput;
}
-static void GoToSecretBasePCMainMenu(u8 taskId)
+static void GoToSecretBasePCRegisterMenu(u8 taskId)
{
if (VarGet(VAR_CURRENT_SECRET_BASE) == 0)
- ScriptContext1_SetupScript(gUnknown_0823B4E8);
+ ScriptContext1_SetupScript(SecretBase_EventScript_PCCancel);
else
- ScriptContext1_SetupScript(gUnknown_0823B5E9);
+ ScriptContext1_SetupScript(SecretBase_EventScript_ShowRegisterMenu);
DestroyTask(taskId);
}
@@ -1094,25 +1094,25 @@ const u8 *GetSecretBaseTrainerLoseText(void)
{
u8 ownerType = GetSecretBaseOwnerType(VarGet(VAR_CURRENT_SECRET_BASE));
if (ownerType == 0)
- return SecretBase_RedCave1_Text_274966;
+ return SecretBase_Text_Trainer0Defeated;
else if (ownerType == 1)
- return SecretBase_RedCave1_Text_274D13;
+ return SecretBase_Text_Trainer1Defeated;
else if (ownerType == 2)
- return SecretBase_RedCave1_Text_274FFE;
+ return SecretBase_Text_Trainer2Defeated;
else if (ownerType == 3)
- return SecretBase_RedCave1_Text_275367;
+ return SecretBase_Text_Trainer3Defeated;
else if (ownerType == 4)
- return SecretBase_RedCave1_Text_2756C7;
+ return SecretBase_Text_Trainer4Defeated;
else if (ownerType == 5)
- return SecretBase_RedCave1_Text_274B24;
+ return SecretBase_Text_Trainer5Defeated;
else if (ownerType == 6)
- return SecretBase_RedCave1_Text_274E75;
+ return SecretBase_Text_Trainer6Defeated;
else if (ownerType == 7)
- return SecretBase_RedCave1_Text_2751E1;
+ return SecretBase_Text_Trainer7Defeated;
else if (ownerType == 8)
- return SecretBase_RedCave1_Text_2754F6;
+ return SecretBase_Text_Trainer8Defeated;
else
- return SecretBase_RedCave1_Text_2758CC;
+ return SecretBase_Text_Trainer9Defeated;
}
void PrepSecretBaseBattleFlags(void)
@@ -1122,12 +1122,12 @@ void PrepSecretBaseBattleFlags(void)
gBattleTypeFlags = BATTLE_TYPE_TRAINER | BATTLE_TYPE_SECRET_BASE;
}
-void sub_80EA30C(void)
+void SetBattledOwnerFromResult(void)
{
gSaveBlock1Ptr->secretBases[VarGet(VAR_CURRENT_SECRET_BASE)].battledOwnerToday = gSpecialVar_Result;
}
-void GetSecretBaseOwnerInteractionState(void)
+void GetSecretBaseOwnerAndState(void)
{
u16 secretBaseId;
u8 i;
@@ -1719,7 +1719,7 @@ void ClearJapaneseSecretBases(struct SecretBase *bases)
}
}
-void sub_80EB1AC(void)
+void InitSecretBaseVars(void)
{
VarSet(VAR_SECRET_BASE_STEP_COUNTER, 0);
VarSet(VAR_SECRET_BASE_LAST_ITEM_USED, 0);
diff --git a/src/union_room.c b/src/union_room.c
index 95278a08f..8ae111926 100644
--- a/src/union_room.c
+++ b/src/union_room.c
@@ -50,7 +50,7 @@
#include "constants/songs.h"
#include "constants/species.h"
-EWRAM_DATA u8 gUnknown_02022C20[12] = {};
+EWRAM_DATA u8 sUnionRoomPlayerName[12] = {};
EWRAM_DATA u8 gUnknown_02022C2C = 0;
EWRAM_DATA u8 gUnknown_02022C2D = 0;
EWRAM_DATA union UnkUnion_Main gUnknown_02022C30 = {};
@@ -4101,7 +4101,7 @@ void sub_8016934(void)
{
struct UnkStruct_URoom *ptr;
- gUnknown_02022C20[0] = EOS;
+ sUnionRoomPlayerName[0] = EOS;
CreateTask(sub_801697C, 0);
gUnknown_02022C30.uRoom = gUnknown_02022C30.uRoom; // Needed to match.
gUnknown_02022C30.uRoom = ptr = AllocZeroed(0x26C);
@@ -4110,7 +4110,7 @@ void sub_8016934(void)
ptr->textState = 0;
ptr->field_10 = 0;
ptr->field_12 = 0;
- gUnknown_02022C20[0] = EOS;
+ sUnionRoomPlayerName[0] = EOS;
}
void sub_801697C(u8 taskId)
@@ -4149,7 +4149,7 @@ void sub_801697C(u8 taskId)
{
case 1:
case 2:
- if (gUnknown_02022C20[0] == EOS)
+ if (sUnionRoomPlayerName[0] == EOS)
{
for (i = 0; i < PLAYER_NAME_LENGTH + 1; i++)
{
@@ -4158,7 +4158,7 @@ void sub_801697C(u8 taskId)
sub_8018404(text, &structPtr->field_0->arr[i]);
if (sub_800E540(ReadAsU16(structPtr->field_0->arr[i].unk.field_0.unk_00.playerTrainerId), text))
{
- StringCopy(gUnknown_02022C20, text);
+ StringCopy(sUnionRoomPlayerName, text);
break;
}
}
@@ -4182,12 +4182,12 @@ void sub_801697C(u8 taskId)
}
}
-bool16 sp182_move_string(void)
+bool16 BufferUnionRoomPlayerName(void)
{
- if (gUnknown_02022C20[0] != EOS)
+ if (sUnionRoomPlayerName[0] != EOS)
{
- StringCopy(gStringVar1, gUnknown_02022C20);
- gUnknown_02022C20[0] = EOS;
+ StringCopy(gStringVar1, sUnionRoomPlayerName);
+ sUnionRoomPlayerName[0] = EOS;
return TRUE;
}
else