summaryrefslogtreecommitdiff
path: root/data/event_scripts.s
diff options
context:
space:
mode:
Diffstat (limited to 'data/event_scripts.s')
-rw-r--r--data/event_scripts.s3590
1 files changed, 173 insertions, 3417 deletions
diff --git a/data/event_scripts.s b/data/event_scripts.s
index ac5507d51..f6b62b32c 100644
--- a/data/event_scripts.s
+++ b/data/event_scripts.s
@@ -1,3 +1,4 @@
+#include "constants/global.h"
#include "constants/decorations.h"
#include "constants/field_effects.h"
#include "constants/flags.h"
@@ -13,6 +14,12 @@
#include "constants/heal_locations.h"
#include "constants/vars.h"
#include "constants/metatile_labels.h"
+#include "constants/battle_setup.h"
+#include "constants/map_scripts.h"
+#include "constants/pokemon.h"
+#include "constants/berry.h"
+#include "constants/script_menu.h"
+#include "constants/field_weather.h"
.include "include/macros.inc"
.include "include/macros/event.inc"
.include "constants/constants.inc"
@@ -47,14 +54,14 @@ gSpecialVars::
.align 2
gStdScripts::
- .4byte Std_ObtainItem
- .4byte Std_FindItem
- .4byte Std_2
- .4byte Std_3
- .4byte Std_4
- .4byte Std_5
- .4byte Std_6
- .4byte Std_ObtainDecoration
+ .4byte Std_ObtainItem @ STD_OBTAIN_ITEM
+ .4byte Std_FindItem @ STD_FIND_ITEM
+ .4byte Std_MsgboxNPC @ MSGBOX_NPC
+ .4byte Std_MsgboxSign @ MSGBOX_SIGN
+ .4byte Std_MsgboxDefault @ MSGBOX_DEFAULT
+ .4byte Std_MsgboxYesNo @ MSGBOX_YESNO
+ .4byte Std_MsgboxAutoclose @ MSGBOX_AUTOCLOSE
+ .4byte Std_ObtainDecoration @ STD_OBTAIN_DECORATION
gStdScripts_End::
.include "data/maps/PetalburgCity/scripts.inc"
@@ -373,198 +380,7 @@ gStdScripts_End::
.include "data/maps/ShoalCave_LowTideIceRoom/scripts.inc"
.include "data/maps/SkyPillar_5F/scripts.inc"
.include "data/maps/SkyPillar_Top/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"
-
-gUnknown_0815F36C:: @ 815F36C
- lockall
- playse SE_PC_LOGON
- message UnknownString_81A3A72
- dofieldeffect FLDEFF_SECRET_BASE_PC_TURN_ON
- waitstate
- waitmessage
- waitbuttonpress
- playse SE_SELECT
- goto EventScript_15F384
- end
-
-EventScript_15F384:
- message UnknownString_81A3A87
- waitmessage
- goto_if_set FLAG_DECORATION_16, EventScript_15F3A0
- goto EventScript_15F3E2
- end
-
-gUnknown_0815F399:: @ 815F399
- lockall
- goto EventScript_15F384
- end
-
-EventScript_15F3A0:
- multichoice 0, 0, 6, 0
- switch VAR_RESULT
- case 0, EventScript_15F432
- case 1, EventScript_15F419
- case 2, EventScript_15F436
- case 3, EventScript_15F51D
- case 127, EventScript_15F51D
- end
-
-EventScript_15F3E2:
- multichoice 0, 0, 5, 0
- switch VAR_RESULT
- case 0, EventScript_15F432
- case 1, EventScript_15F419
- case 2, EventScript_15F51D
- case 127, EventScript_15F51D
- end
-
-EventScript_15F419:
- msgbox UnknownString_81A38FB, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq EventScript_15F384
- closemessage
- special SecretBasePC_PackUp
- releaseall
- end
-
-EventScript_15F432:
- special SecretBasePC_Decoration
- end
-
-EventScript_15F436:
- special SecretBasePC_Registry
- end
-
-gUnknown_0815F43A:: @ 815F43A
- lockall
- message UnknownString_81A3A72
- playse SE_PC_LOGON
- dofieldeffect FLDEFF_SECRET_BASE_PC_TURN_ON
- waitstate
- waitmessage
- waitbuttonpress
- playse SE_SELECT
- goto EventScript_15F452
- end
-
-EventScript_15F452:
- message UnknownString_81A3A87
- waitmessage
- multichoice 0, 0, 7, 0
- switch VAR_RESULT
- case 0, EventScript_15F4A1
- case 1, EventScript_15F436
- case 2, EventScript_15F511
- case 3, EventScript_15F51D
- case 127, EventScript_15F51D
- end
-
-gUnknown_0815F49A:: @ 815F49A
- lockall
- goto EventScript_15F452
- end
-
-EventScript_15F4A1:
- special sub_80BC56C
- compare VAR_RESULT, 1
- goto_if_eq EventScript_15F4E0
- compare VAR_RESULT, 2
- goto_if_eq EventScript_15F503
- special BufferSecretBaseOwnerName
- msgbox UnknownString_81A3958, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq EventScript_15F452
- msgbox UnknownString_81A3A22, 3
- special sub_80BC5BC
- special DoSecretBasePCTurnOffEffect
- releaseall
- end
-
-EventScript_15F4E0:
- msgbox UnknownString_81A3982, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq EventScript_15F452
- msgbox UnknownString_81A3A3A, 3
- special sub_80BC5BC
- special DoSecretBasePCTurnOffEffect
- releaseall
- end
-
-EventScript_15F503:
- msgbox UnknownString_81A39C0, 3
- special DoSecretBasePCTurnOffEffect
- closemessage
- releaseall
- end
-
-EventScript_15F511:
- message UnknownString_81A3AA2
- waitmessage
- goto EventScript_15F452
- end
-
-EventScript_15F51D:
- special DoSecretBasePCTurnOffEffect
- closemessage
- releaseall
- end
-
-gUnknown_0815F523:: @ 815F523
- dofieldeffect FLDEFF_SAND_PILLAR
- waitstate
- end
-
-gUnknown_0815F528:: @ 815F528
- special GetShieldToyTVDecorationInfo
- compare VAR_RESULT, 0
- goto_if_eq EventScript_15F558
- compare VAR_RESULT, 1
- goto_if_eq EventScript_15F561
- compare VAR_RESULT, 2
- goto_if_eq EventScript_15F56A
- compare VAR_RESULT, 3
- goto_if_eq EventScript_15F573
- end
-
-EventScript_15F558:
- msgbox UnknownString_81A3B5B, 3
- end
-
-EventScript_15F561:
- msgbox UnknownString_81A3BA4, 3
- end
-
-EventScript_15F56A:
- msgbox UnknownString_81A3BE8, 3
- end
-
-EventScript_15F573:
- msgbox UnknownString_81A3C31, 3
- end
-
+ .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"
@@ -898,459 +714,34 @@ UnknownString_819C21F: @ 819C21F
.include "data/maps/Route119_House/text.inc"
.include "data/maps/Route124_DivingTreasureHuntersHouse/text.inc"
+ .include "data/scripts/std_msgbox.inc"
+ .include "data/scripts/trainer_battle.inc"
+ .include "data/scripts/new_game.inc"
+ .include "data/scripts/hall_of_fame.inc"
-Std_2:
- lock
- faceplayer
- message 0x0
- waitmessage
- waitbuttonpress
- release
- return
-
-Std_3:
- lockall
- message 0x0
- waitmessage
- waitbuttonpress
- releaseall
- return
-
-Std_4:
- message 0x0
- waitmessage
- waitbuttonpress
- return
-
-Std_5:
- message 0x0
- waitmessage
- yesnobox 20, 8
- return
-
-@ 819F805
- return
-
-S_DoSaveDialog:: @ 819F806
- special ScrSpecial_DoSaveDialog
- waitstate
- return
-
-gUnknown_0819F80B:: @ 819F80B
- lock
- special PlayTrainerEncounterMusic
- special ScrSpecial_EndTrainerApproach
- waitstate
- goto EventScript_19F8F2
-
-gUnknown_0819F818:: @ 819F818
- lock
- faceplayer
- applymovement VAR_LAST_TALKED, Movement_19F8F0
- waitmovement 0
- specialvar VAR_RESULT, ScrSpecial_HasTrainerBeenFought
- compare VAR_RESULT, 0
- goto_if_ne EventScript_19F83F
- special PlayTrainerEncounterMusic
- special sub_8082524
- goto EventScript_19F8F2
-
-EventScript_19F83F:
- gotopostbattlescript
-
-gUnknown_0819F840:: @ 819F840
- lock
- faceplayer
- call EventScript_19F8E5
- specialvar VAR_RESULT, ScrSpecial_HasTrainerBeenFought
- compare VAR_RESULT, 0
- goto_if_ne EventScript_19F877
- special CheckForAlivePartyMons
- compare VAR_RESULT, 0
- goto_if_ne EventScript_19F870
- special PlayTrainerEncounterMusic
- special sub_8082524
- goto EventScript_19F8F2
-
-EventScript_19F870:
- special ScrSpecial_ShowTrainerNonBattlingSpeech
- waitmessage
- waitbuttonpress
- release
- end
-
-EventScript_19F877:
- gotopostbattlescript
-
-gUnknown_0819F878:: @ 819F878
- applymovement VAR_LAST_TALKED, Movement_19F8F0
- waitmovement 0
- special PlayTrainerEncounterMusic
- trainerbattlebegin
- gotopostbattlescript
-
-gUnknown_0819F887:: @ 819F887
- call EventScript_19F8E5
- specialvar VAR_RESULT, ScrSpecial_GetTrainerEyeRematchFlag
- compare VAR_RESULT, 0
- goto_if_eq EventScript_19F8AD
- special PlayTrainerEncounterMusic
- special sub_8082524
- special ScrSpecial_ShowTrainerIntroSpeech
- waitmessage
- waitbuttonpress
- special ScrSpecial_StartTrainerEyeRematch
- waitstate
- releaseall
- end
-
-EventScript_19F8AD:
- gotopostbattlescript
-
-gUnknown_0819F8AE:: @ 819F8AE
- specialvar VAR_RESULT, ScrSpecial_GetTrainerEyeRematchFlag
- compare VAR_RESULT, 0
- goto_if_eq EventScript_19F8DD
- special CheckForAlivePartyMons
- compare VAR_RESULT, 0
- goto_if_ne EventScript_19F8DE
- special PlayTrainerEncounterMusic
- special sub_8082524
- special ScrSpecial_ShowTrainerIntroSpeech
- waitmessage
- waitbuttonpress
- special ScrSpecial_StartTrainerEyeRematch
- waitstate
- releaseall
- end
-
-EventScript_19F8DD:
- gotopostbattlescript
-
-EventScript_19F8DE:
- special ScrSpecial_ShowTrainerNonBattlingSpeech
- waitmessage
- waitbuttonpress
- release
- end
-
-EventScript_19F8E5:
- applymovement VAR_LAST_TALKED, Movement_19F8F0
- waitmovement 0
- return
-
-Movement_19F8F0::
- reveal_trainer
- end_movement
-
-EventScript_19F8F2:
- special ScrSpecial_ShowTrainerIntroSpeech
- waitmessage
- waitbuttonpress
- trainerbattlebegin
- specialvar VAR_RESULT, ScrSpecial_GetTrainerBattleMode
- compare VAR_RESULT, 0
- goto_if_eq EventScript_19F934
- compare VAR_RESULT, 2
- goto_if_eq EventScript_19F936
- compare VAR_RESULT, 1
- goto_if_eq EventScript_19F936
- compare VAR_RESULT, 6
- goto_if_eq EventScript_19F936
- compare VAR_RESULT, 8
- goto_if_eq EventScript_19F936
-
-EventScript_19F934:
- releaseall
+EventScript_WhiteOut:: @ 819FC74
+ call EverGrandeCity_HallOfFame_EventScript_ResetEliteFour
+ call EventScript_TryReadyRivalForGoGoggles
+ goto EventScript_ResetMrBriney
end
-EventScript_19F936:
- gotobeatenscript
-
-Std_6::
- message 0x0
- waitmessage
- waitbuttonpress
- release
- return
-
-Event_ResetBerryTrees: @ 19F940
- setberrytree 2, 7, 5
- setberrytree 1, 3, 5
- setberrytree 11, 7, 5
- setberrytree 13, 3, 5
- setberrytree 4, 7, 5
- setberrytree 76, 1, 5
- setberrytree 8, 1, 5
- setberrytree 10, 6, 5
- setberrytree 25, 20, 5
- setberrytree 26, 2, 5
- setberrytree 66, 2, 5
- setberrytree 67, 20, 5
- setberrytree 69, 22, 5
- setberrytree 70, 22, 5
- setberrytree 71, 22, 5
- setberrytree 55, 17, 5
- setberrytree 56, 17, 5
- setberrytree 5, 1, 5
- setberrytree 6, 6, 5
- setberrytree 7, 1, 5
- setberrytree 16, 18, 5
- setberrytree 17, 18, 5
- setberrytree 18, 18, 5
- setberrytree 29, 19, 5
- setberrytree 28, 19, 5
- setberrytree 27, 19, 5
- setberrytree 24, 4, 5
- setberrytree 23, 3, 5
- setberrytree 22, 3, 5
- setberrytree 21, 4, 5
- setberrytree 19, 16, 5
- setberrytree 20, 16, 5
- setberrytree 80, 7, 5
- setberrytree 81, 7, 5
- setberrytree 77, 8, 5
- setberrytree 78, 8, 5
- setberrytree 68, 8, 5
- setberrytree 31, 10, 5
- setberrytree 33, 10, 5
- setberrytree 34, 21, 5
- setberrytree 35, 21, 5
- setberrytree 36, 21, 5
- setberrytree 83, 24, 5
- setberrytree 84, 24, 5
- setberrytree 85, 10, 5
- setberrytree 86, 6, 5
- setberrytree 37, 5, 5
- setberrytree 38, 5, 5
- setberrytree 39, 5, 5
- setberrytree 40, 3, 5
- setberrytree 41, 3, 5
- setberrytree 42, 3, 5
- setberrytree 46, 19, 5
- setberrytree 45, 20, 5
- setberrytree 44, 18, 5
- setberrytree 43, 16, 5
- setberrytree 47, 8, 5
- setberrytree 48, 5, 5
- setberrytree 49, 4, 5
- setberrytree 50, 2, 5
- setberrytree 52, 18, 5
- setberrytree 53, 18, 5
- setberrytree 62, 6, 5
- setberrytree 64, 6, 5
- setberrytree 58, 21, 5
- setberrytree 59, 21, 5
- setberrytree 60, 25, 5
- setberrytree 61, 25, 5
- setberrytree 79, 23, 5
- setberrytree 14, 23, 5
- setberrytree 15, 21, 5
- setberrytree 30, 21, 5
- setberrytree 65, 25, 5
- setberrytree 72, 25, 5
- setberrytree 73, 23, 5
- setberrytree 74, 23, 5
- setberrytree 87, 3, 5
- setberrytree 88, 10, 5
- setberrytree 89, 4, 5
- setberrytree 82, 36, 5
- return
-
-gUnknown_0819FA81:: @ 819FA81
- setflag FLAG_LINK_CONTEST_ROOM_POKEBALL
- setflag FLAG_HIDE_VICTORIA_WINSTRATE
- setflag FLAG_HIDE_VIVI_WINSTRATE
- setflag FLAG_HIDE_VICKI_WINSTRATE
- setflag FLAG_HIDE_BIRCH_IN_LAB
- setflag FLAG_HIDE_RIVAL_BIRCH_LAB
- setflag FLAG_HIDE_WALLY_PETALBURG
- setflag FLAG_UNKNOWN_363
- setflag FLAG_HIDE_GRUNT_RUSTBORO
- setflag FLAG_HIDE_DEVON_RUSTBORO
- setflag FLAG_HIDE_RIVAL_RUSTBORO
- setflag FLAG_HIDE_FAT_MAN_LITTLEROOT
- setflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE
- setflag FLAG_HIDE_PEEKO_BRINEY_HOUSE
- setflag FLAG_HIDE_MR_BRINEY_ROUTE104
- setflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN
- setflag FLAG_HIDE_MR_BRINEY_ROUTE109
- setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
- setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE109
- setflag FLAG_HIDE_FLOWER_SHOP_WORKER_OUTSIDE
- setflag FLAG_UNKNOWN_2E1
- setflag FLAG_UNKNOWN_2EB
- setflag FLAG_UNKNOWN_2EC
- setflag FLAG_UNKNOWN_2ED
- setflag FLAG_UNKNOWN_2F4
- setflag FLAG_HIDE_LILYCOVE_CONTEST_ATTENDENT_1
- setflag FLAG_HIDE_ARTIST_LILCOVE_CONTEST
- setflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTING_LADY
- setflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTING_GIRL
- setflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTING_MAN
- setflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTER
- setflag FLAG_HIDE_LILYCOVE_MUSEUM_VISITORS
- setflag FLAG_HIDE_PETALBURG_GYM_GUIDE
- setflag FLAG_UNKNOWN_30E
- setflag FLAG_UNKNOWN_30F
- setflag FLAG_HIDE_NORMAN_LITTLEROOT
- setflag FLAG_HIDE_MAY_PICHU_DOLL
- setflag FLAG_HIDE_FANCLUB_OLD_LADY
- setflag FLAG_HIDE_FANCLUB_BOY
- setflag FLAG_HIDE_FANCLUB_LITTLE_BOY
- setflag FLAG_HIDE_FANCLUB_LADY
- setflag FLAG_HIDE_GABBY_AND_TY_ROUTE118_1
- setflag FLAG_HIDE_GABBY_AND_TY_ROUTE120_1
- setflag FLAG_HIDE_GABBY_AND_TY_ROUTE111_2
- setflag FLAG_HIDE_GABBY_AND_TY_ROUTE118_2
- setflag FLAG_HIDE_GABBY_AND_TY_ROUTE120_2
- setflag FLAG_HIDE_GABBY_AND_TY_ROUTE111_3
- setflag FLAG_HIDE_GABBY_AND_TY_ROUTE118_3
- setflag FLAG_HIDE_CONTEST_REPORTER_FALLARBOR
- setflag FLAG_HIDE_CONTEST_REPORTER_VERDANTURF
- setflag FLAG_HIDE_CONTEST_REPORTER_SLATEPORT
- setflag FLAG_HIDE_CONTEST_REPORTER_LILYCOVE
- setflag FLAG_HIDE_WALLY_WANDAS_HOUSE
- setflag FLAG_HIDE_BOYFRIEND_WANDAS_HOUSE
- setflag FLAG_HIDE_WALLY_FATHER_WANDAS_HOUSE
- setflag FLAG_HIDE_GIRLFRIEND_WANDAS_HOUSE
- setflag FLAG_HIDE_WALLY_FATHER_PETALBURG
- setflag FLAG_HIDE_WALLY_MOTHER_PETALBURG
- setflag FLAG_HIDE_WALLY_PETALBURG_GYM
- setflag FLAG_HIDE_WALLACE_SOOTOPOLIS_GYM
- setflag FLAG_HIDE_WALLACE_SOOTOPOLIS
- setflag FLAG_HIDE_BRINEY_SLATEPORT_SHIPYARD
- setflag FLAG_UNKNOWN_337
- setflag FLAG_HIDE_EVIL_LEADER_SEAFLOOR_CAVERN
- setflag FLAG_HIDE_OTHER_LEADER_SEAFLOOR_CAVERN
- setflag FLAG_HIDE_OTHER_TEAM_GRUNTS_SEAFLOOR_CAVERN
- setflag FLAG_HIDE_AWAKENED_MON_SEAFLOOR_CAVERN
- setflag FLAG_HIDE_STERN_SLATEPORT_HARBOR
- setflag FLAG_UNKNOWN_34B
- setflag FLAG_UNKNOWN_34C
- setflag FLAG_UNKNOWN_34F
- setflag FLAG_HIDE_GRUNT_1_SLATEPORT_HARBOR
- setflag FLAG_HIDE_GRUNT_2_SLATEPORT_HARBOR
- setflag FLAG_HIDE_SS_TIDAL_SLATEPORT_HARBOR
- setflag FLAG_HIDE_SS_TIDAL_LILYCOVE_HARBOR
- setflag FLAG_HIDE_GABBY_AND_TY_SLATEPORT
- setflag FLAG_HIDE_STERN_SLATEPORT
- setflag FLAG_HIDE_SUBMARINE_SHADOW_SLATEPORT_HARBOR
- setflag FLAG_HIDE_RIVAL_ROUTE119
- setflag FLAG_HIDE_CAVE_OF_ORIGIN_ENTRANCE_WOMAN_1
- setflag FLAG_HIDE_CAVE_OF_ORIGIN_ENTRANCE_WOMAN_2
- setflag FLAG_HIDE_STEVEN_SOOTOPOLIS
- setflag FLAG_HIDE_LANETTE
- setflag FLAG_HIDE_TRICKMASTER_ENTRANCE
- setflag FLAG_HIDE_MT_CHIMNEY_PEOPLE
- setflag FLAG_HIDE_BRINEY_RUSTURF_TUNNEL
- setflag FLAG_HIDE_BRINEY_ROUTE116
- setflag FLAG_HIDE_PEEKO_RUSTURF_TUNNEL
- setflag FLAG_HIDE_GRUNT_RUSTURF_TUNNEL
- setflag FLAG_HIDE_BOYFRIEND_RUSTURF_TUNNEL
- setflag FLAG_HIDE_GIRLFRIEND_RUSTURF_TUNNEL
- setflag FLAG_HIDE_EVIL_TEAM_LEADER_OCEANIC_MUSEUM_2F
- setflag FLAG_HIDE_GRUNT_1_OCEANIC_MUSEUM_2F
- setflag FLAG_HIDE_GRUNT_2_OCEANIC_MUSEUM_2F
- setflag FLAG_HIDE_OCEANIC_MUSEUM_VISITORS
- setflag FLAG_HIDE_BATTLE_TOWER_OPPONENT
- setflag FLAG_HIDE_AWARD_MAN_BATTLE_TOWER
- setflag FLAG_HIDE_MOM_LITTLEROOT
- setflag FLAG_HIDE_MOM_UPSTAIRS
- setflag FLAG_HIDE_WEATHER_INSTITUTE_WORKERS_1F
- setflag FLAG_UNKNOWN_BIRCH_380
- setflag FLAG_HIDE_BIRCH_ROUTE101
- setflag FLAG_HIDE_BIRCH_ROUTE103
- setflag FLAG_HIDE_FERRY_SAILOR_LILYCOVE
- setflag FLAG_HIDE_LATIOS_OR_LATIAS_FLYING
- setflag FLAG_HIDE_LATIOS_OR_LATIAS_STATIONARY
- setflag FLAG_UNKNOWN_393
- setflag FLAG_HIDE_WATTSON_MAUVILLE
- setflag FLAG_HIDE_RIVAL_CHAMPIONS_ROOM
- setflag FLAG_HIDE_BIRCH_CHAMPIONS_ROOM
- setflag FLAG_HIDE_RIVAL_ON_BIKE_ROUTE110
- setflag FLAG_HIDE_RIVAL_ROUTE119_ON_BIKE
- setflag FLAG_HIDE_LILYCOVE_MOTEL_PEOPLE
- setflag FLAG_HIDE_RIVAL_LAVARIDGE_1
- setflag FLAG_HIDE_RIVAL_LAVARIDGE_2
- setflag FLAG_HIDE_WINGULL_MOSSDEEP_HOUSE
- setflag FLAG_HIDE_OTHER_TEAM_METEOR_FALLS_1F
- setflag FLAG_HIDE_SLUDGE_BOMB_MAN_DEWFORD_HALL
- setflag FLAG_HIDE_PROF_COSMO_FALLARBOR
- setflag FLAG_HIDE_STEVEN_ROUTE128
- setflag FLAG_HIDE_EVIL_LEADER_ROUTE128
- setflag FLAG_HIDE_OTHER_LEADER_ROUTE128
- setflag FLAG_HIDE_DEVON_EMPLOYEE_ROUTE116
- setflag FLAG_HIDE_TM_SALESMAN_SLATEPORT
- setflag FLAG_HIDE_WALLY_BATTLE_VICTORY_ROAD
- setflag FLAG_HIDE_BRINEY_AND_PEEKO_SS_TIDAL
- setflag FLAG_HIDE_BELDUM_BALL_STEVENS_HOUSE
- setflag FLAG_ITEM_MOSSDEEP_STEVENS_HOUSE_1
- setflag FLAG_HIDE_STEVENS_LETTER
- setflag FLAG_HIDE_RIVAL_OLDALE_TOWN
- setflag FLAG_HIDE_WALLY_DEFEATED_VICTORY_ROAD
- setflag FLAG_HIDE_BOY_ROUTE101
- call Event_ResetBerryTrees
- end
-
-EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13
- clearflag FLAG_HIDE_LILYCOVE_MOTEL_PEOPLE
- call EverGrandeCity_HallOfFame_EventScript_19FD09
- setflag FLAG_HIDE_BRINEY_SLATEPORT_SHIPYARD
- clearflag FLAG_HIDE_BRINEY_AND_PEEKO_SS_TIDAL
- clearflag FLAG_HIDE_STEVENS_LETTER
- setvar VAR_STEVENS_HOUSE_STATE, 1
- clearflag FLAG_HIDE_WALLY_DEFEATED_VICTORY_ROAD
- clearflag FLAG_HIDE_SS_TIDAL_SLATEPORT_HARBOR
- clearflag FLAG_HIDE_SS_TIDAL_LILYCOVE_HARBOR
- special sub_810FAA0
- call_if_unset FLAG_RECEIVED_SS_TICKET, EverGrandeCity_HallOfFame_EventScript_19FC62
- call_if_unset FLAG_LATIOS_OR_LATIAS_ROAMING, EverGrandeCity_HallOfFame_EventScript_19FC70
- call_if_unset FLAG_RECEIVED_BELDUM, EverGrandeCity_HallOfFame_EventScript_19FC5A
- call_if_unset FLAG_RECEIVED_HM08, EverGrandeCity_HallOfFame_EventScript_19FC5E
- return
-
-EverGrandeCity_HallOfFame_EventScript_19FC5A:: @ 819FC5A
- clearflag FLAG_HIDE_BELDUM_BALL_STEVENS_HOUSE
- return
-
-EverGrandeCity_HallOfFame_EventScript_19FC5E:: @ 819FC5E
- clearflag FLAG_ITEM_MOSSDEEP_STEVENS_HOUSE_1
- return
-
-EverGrandeCity_HallOfFame_EventScript_19FC62:: @ 819FC62
- setvar VAR_LITTLEROOT_HOUSES_STATE, 3
- setvar VAR_LITTLEROOT_HOUSES_STATE_2, 3
- clearflag FLAG_HIDE_NORMAN_LITTLEROOT
- return
-
-EverGrandeCity_HallOfFame_EventScript_19FC70:: @ 819FC70
- setflag FLAG_SYS_TV_LATI
- return
-
-S_WhiteOut:: @ 819FC74
- call EverGrandeCity_HallOfFame_EventScript_19FD09
- call EventScript_19FC84
- goto gUnknown_0819FC9F
- end
-
-EventScript_19FC84:
- goto_if_set FLAG_RECEIVED_GO_GOGGLES, Route101_EventScript_1A14DC
- goto_if_unset FLAG_DEFEATED_LAVARIDGE_GYM, Route101_EventScript_1A14DC
+EventScript_TryReadyRivalForGoGoggles:
+ goto_if_set FLAG_RECEIVED_GO_GOGGLES, Common_EventScript_Return
+ goto_if_unset FLAG_DEFEATED_LAVARIDGE_GYM, Common_EventScript_Return
clearflag FLAG_HIDE_RIVAL_LAVARIDGE_1
setvar VAR_LAVARIDGE_RIVAL_STATE, 2
return
-gUnknown_0819FC9F:: @ 819FC9F
+EventScript_ResetMrBriney:: @ 819FC9F
compare VAR_BRINEY_LOCATION, 1
- goto_if_eq EventScript_19FCC1
+ goto_if_eq EventScript_MoveMrBrineyToHouse
compare VAR_BRINEY_LOCATION, 2
- goto_if_eq EventScript_19FCD7
+ goto_if_eq EventScript_MoveMrBrineyToDewford
compare VAR_BRINEY_LOCATION, 3
- goto_if_eq EventScript_19FCF0
+ goto_if_eq EventScript_MoveMrBrineyToRoute109
end
-EventScript_19FCC1:
+EventScript_MoveMrBrineyToHouse:
setflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN
setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
setflag FLAG_HIDE_MR_BRINEY_ROUTE109
@@ -1360,7 +751,7 @@ EventScript_19FCC1:
clearflag FLAG_HIDE_PEEKO_BRINEY_HOUSE
end
-EventScript_19FCD7:
+EventScript_MoveMrBrineyToDewford:
setflag FLAG_HIDE_MR_BRINEY_ROUTE109
setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE109
setflag FLAG_HIDE_MR_BRINEY_ROUTE104
@@ -1371,7 +762,7 @@ EventScript_19FCD7:
clearflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
end
-EventScript_19FCF0:
+EventScript_MoveMrBrineyToRoute109:
setflag FLAG_HIDE_MR_BRINEY_ROUTE104
setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104
setflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE
@@ -1382,7 +773,7 @@ EventScript_19FCF0:
clearflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE109
end
-EverGrandeCity_HallOfFame_EventScript_19FD09:: @ 819FD09
+EverGrandeCity_HallOfFame_EventScript_ResetEliteFour:: @ 819FD09
clearflag FLAG_DEFEATED_ELITE_4_SYDNEY
clearflag FLAG_DEFEATED_ELITE_4_PHOEBE
clearflag FLAG_DEFEATED_ELITE_4_GLACIA
@@ -1390,693 +781,84 @@ EverGrandeCity_HallOfFame_EventScript_19FD09:: @ 819FD09
setvar VAR_ELITE_4_STATE, 0
return
-DewfordTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
-FallarborTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
-LavaridgeTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
-MauvilleCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
-OldaleTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
-PetalburgCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
-RustboroCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
-SlateportCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
-VerdanturfTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
- goto_if_unset FLAG_RECEIVED_POKENAV, OldaleTown_PokemonCenter_1F_EventScript_1A14DC
- goto_if_set FLAG_DEFEATED_PETALBURG_GYM, OldaleTown_PokemonCenter_1F_EventScript_1A14DC
- goto_if_unset FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104, OldaleTown_PokemonCenter_1F_EventScript_19FD49
- goto_if_unset FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN, OldaleTown_PokemonCenter_1F_EventScript_19FD4F
- goto_if_unset FLAG_HIDE_MR_BRINEY_ROUTE109, OldaleTown_PokemonCenter_1F_EventScript_19FD55
+Common_EventScript_UpdateBrineyLocation:: @ 819FD1B
+ goto_if_unset FLAG_RECEIVED_POKENAV, Common_EventScript_Return
+ goto_if_set FLAG_DEFEATED_PETALBURG_GYM, Common_EventScript_Return
+ goto_if_unset FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104, EventScript_SetBrineyLocation_House
+ goto_if_unset FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN, EventScript_SetBrineyLocation_Dewford
+ goto_if_unset FLAG_HIDE_MR_BRINEY_ROUTE109, EventScript_SetBrineyLocation_Route109
return
-OldaleTown_PokemonCenter_1F_EventScript_19FD49:: @ 819FD49
+EventScript_SetBrineyLocation_House:: @ 819FD49
setvar VAR_BRINEY_LOCATION, 1
return
-OldaleTown_PokemonCenter_1F_EventScript_19FD4F:: @ 819FD4F
+EventScript_SetBrineyLocation_Dewford:: @ 819FD4F
setvar VAR_BRINEY_LOCATION, 2
return
-OldaleTown_PokemonCenter_1F_EventScript_19FD55:: @ 819FD55
+EventScript_SetBrineyLocation_Route109:: @ 819FD55
setvar VAR_BRINEY_LOCATION, 3
return
-DewfordTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
-EverGrandeCity_PokemonLeague_EventScript_19FD5B:: @ 819FD5B
-FallarborTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
-FortreeCity_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
-LavaridgeTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
-LilycoveCity_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
-MauvilleCity_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
-MossdeepCity_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
-OldaleTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
-PetalburgCity_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
-RustboroCity_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
-SlateportCity_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
-SootopolisCity_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
-VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
- lock
- faceplayer
- msgbox gText_NurseJoy_Welcome, MSGBOX_YESNO
- compare VAR_RESULT, YES
- goto_if_eq do_heal_party
- compare VAR_RESULT, NO
- goto_if_eq dont_heal_party
- end
+ .include "data/scripts/pkmn_center_nurse.inc"
+ .include "data/scripts/obtain_item.inc"
+ .include "data/scripts/record_mix.inc"
+ .include "data/scripts/pc.inc"
-do_heal_party:: @ 819FD7C
- incrementgamestat GAME_STAT_USED_POKECENTER
- message gText_NurseJoy_OkayIllTakeYourPokemon
- waitmessage
- applymovement VAR_0x800B, OldaleTown_PokemonCenter_1F_Movement_1A083F
- waitmovement 0
- dofieldeffect FLDEFF_POKECENTER_HEAL
- waitfieldeffect FLDEFF_POKECENTER_HEAL
- applymovement VAR_0x800B, OldaleTown_PokemonCenter_1F_Movement_1A0845
- waitmovement 0
- special ScrSpecial_HealPlayerParty
- goto_if_unset FLAG_POKERUS_EXPLAINED, OldaleTown_PokemonCenter_1F_EventScript_19FDCE
- goto OldaleTown_PokemonCenter_1F_EventScript_19FDB0
+Common_EventScript_PokemartSign:: @ 81A00E1
+ msgbox Text_PokemartSign, MSGBOX_SIGN
end
-OldaleTown_PokemonCenter_1F_EventScript_19FDB0:: @ 819FDB0
- message gText_NurseJoy_ThankYouForWaiting
- waitmessage
- applymovement VAR_0x800B, OldaleTown_PokemonCenter_1F_Movement_19FDF4
- waitmovement 0
- message gText_NurseJoy_WeHopeToSeeYouAgain
- waitmessage
- return
-
-dont_heal_party:: @ 819FDC7
- message gText_NurseJoy_WeHopeToSeeYouAgain
- waitmessage
- return
-
-OldaleTown_PokemonCenter_1F_EventScript_19FDCE:: @ 819FDCE
- specialvar VAR_RESULT, IsPokerusInParty
- compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDEA
- compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDB0
- end
-
-OldaleTown_PokemonCenter_1F_EventScript_19FDEA:: @ 819FDEA
- message gText_NurseJoy_Pokerus
- waitmessage
- setflag FLAG_POKERUS_EXPLAINED
- return
-
-OldaleTown_PokemonCenter_1F_Movement_19FDF4:: @ 819FDF4
- nurse_joy_bow
- delay_4
- end_movement
-
-Std_ObtainItem: @ 819FDF7
- giveitem VAR_0x8000, VAR_0x8001
- copyvar VAR_0x8007, VAR_RESULT
- call Std_ObtainItem_
- return
-
-Std_ObtainItem_: @ 819FE07
- bufferitemname 1, VAR_0x8000
- checkitemtype VAR_0x8000
- call GetItem_HandlePocket
- compare VAR_0x8007, 0x1
- call_if_eq Std_ObtainItem_Success
- compare VAR_0x8007, 0x0
- call_if_eq Std_ObtainItem_Fail
- return
-
-GetItem_HandlePocket:
- switch VAR_RESULT
- case POCKET_ITEMS, GetItem_HandlePocket_Items
- case POCKET_KEY_ITEMS, GetItem_HandlePocket_KeyItems
- case POCKET_POKE_BALLS, GetItem_HandlePocket_PokeBalls
- case POCKET_TM_HM, GetItem_HandlePocket_TMsHMs
- case POCKET_BERRIES, GetItem_HandlePocket_Berries
- end
-
-GetItem_HandlePocket_Items:
- bufferstdstring 2, 0xE
- compare VAR_0x8007, 1
- call_if_eq PlayGetItemFanfare
- return
-
-GetItem_HandlePocket_KeyItems:
- bufferstdstring 2, 0xF
- compare VAR_0x8007, 1
- call_if_eq PlayGetItemFanfare
- return
-
-GetItem_HandlePocket_PokeBalls:
- bufferstdstring 2, 0x10
- compare VAR_0x8007, 1
- call_if_eq PlayGetItemFanfare
- return
-
-GetItem_HandlePocket_TMsHMs:
- bufferstdstring 2, 0x11
- compare VAR_0x8007, 1
- call_if_eq PlayGetTMHMFanfare
- return
-
-GetItem_HandlePocket_Berries:
- bufferstdstring 2, 0x12
- compare VAR_0x8007, 1
- call_if_eq PlayGetItemFanfare
- return
-
-Std_ObtainItem_Success: @ 819FEB7
- message Message_ObtainedItem
- waitfanfare
- waitmessage
- msgbox Message_PutAwayItem
- setvar VAR_RESULT, 1
- return
-
-Std_ObtainItem_Fail: @ 819FECC
- setvar VAR_RESULT, 0
- return
-
-PlayGetItemFanfare:
- playfanfare MUS_FANFA4
- return
-
-PlayGetTMHMFanfare:
- playfanfare MUS_ME_WAZA
- return
-
-Std_ObtainDecoration: @ 819FEDA
- givedecoration VAR_0x8000
- copyvar VAR_0x8007, VAR_RESULT
- call Std_ObtainDecoration_
- return
-
-Std_ObtainDecoration_: @ 819FEE8
- bufferdecorationname 1, VAR_0x8000
- compare VAR_0x8007, 1
- call_if_eq Std_ObtainDecoration_Success
- compare VAR_0x8007, 0
- call_if_eq Std_ObtainDecoration_Fail
- return
-
-Std_ObtainDecoration_Success: @ 819FF03
- playfanfare MUS_FANFA4
- message Message_ObtainedDecoration
- waitfanfare
- waitmessage
- msgbox Message_TransferredToPC
- setvar VAR_RESULT, 1
- return
-
-Std_ObtainDecoration_Fail: @ 819FF1B
- setvar VAR_RESULT, 0
- return
-
-Std_FindItem: @ 819FF21
- lock
- faceplayer
- waitse
- giveitem VAR_0x8000, VAR_0x8001
- copyvar VAR_0x8007, VAR_RESULT
- bufferitemname 1, VAR_0x8000
- checkitemtype VAR_0x8000
- call GetItem_HandlePocket
- compare VAR_0x8007, 1
- call_if_eq Std_FindItem_Success
- compare VAR_0x8007, 0
- call_if_eq Std_FindItem_Fail
- release
- return
-
-Std_FindItem_Success: @ 819FF52
- removeobject VAR_LAST_TALKED
- message Message_FoundOneItem
- waitfanfare
- waitmessage
- msgbox Message_PutAwayItem
- return
-
-Std_FindItem_Fail: @ 819FF65
- msgbox Message_ObtainedItem
- msgbox Message_BagFull
- setvar VAR_RESULT, 0
- return
-
-HiddenItemScript:: @ 819FF7B
- lockall
- waitse
- giveitem VAR_0x8005, 1
- copyvar VAR_0x8007, VAR_RESULT
- bufferitemname 0x1, VAR_0x8005
- checkitemtype VAR_0x8005
- call GetItem_HandlePocket
- compare VAR_0x8007, 1
- goto_if_eq HiddenItemScript_Success
- compare VAR_0x8007, 0
- goto_if_eq HiddenItemScript_Fail
- end
-
-HiddenItemScript_Success:
- message Message_FoundOneItem
- waitfanfare
- waitmessage
- msgbox Message_PutAwayItem
- special SetFlagInVar
- releaseall
- end
-
-HiddenItemScript_Fail:
- msgbox Message_FoundOneItem
- msgbox Message_BagFull
- setvar VAR_RESULT, 0
- releaseall
- end
-
-UnusedMixRecordsScript: @ 819FFD5
- lock
- faceplayer
- msgbox UnusedMixRecordsPromptText, MSGBOX_YESNO
- compare VAR_RESULT, YES
- goto_if_eq UnusedMixRecordsScript_Yes
- compare VAR_RESULT, NO
- goto_if_eq UnusedMixRecordsScript_Done
- goto UnusedMixRecordsScript_Done
-UnusedMixRecordsScript_Yes: @ 819FFFA
- special sub_80B929C
- waitstate
- lock
- faceplayer
-UnusedMixRecordsScript_Done: @ 81A0000
- message UnusedMixRecordsSeeYouAgainText
- waitmessage
- waitbuttonpress
- release
- end
-
-gUnknown_081A0009:: @ 81A0009
- lockall
- setvar VAR_0x8004, 0
- special DoPCTurnOnEffect
- playse SE_PC_ON
- msgbox UnknownString_81A09EC, 4
- goto EventScript_1A0023
- end
-
-EventScript_1A0023:
- message gPCText_WhichPCShouldBeAccessed
- waitmessage
- special ScrSpecial_CreatePCMenu
- waitstate
- goto EventScript_1A0033
- end
-
-EventScript_1A0033:
- switch VAR_RESULT
- case 0, EventScript_1A0085
- case 1, EventScript_1A0070
- case 2, EventScript_1A00CB
- case 3, EventScript_1A00BE
- case 127, EventScript_1A00BE
- end
-
-EventScript_1A0070:
- playse SE_PC_LOGON
- msgbox UnknownString_81A0A54, 4
- special PlayerPC
- waitstate
- goto EventScript_1A0023
- end
-
-EventScript_1A0085:
- playse SE_PC_LOGON
- call_if_unset FLAG_SYS_PC_LANETTE, EventScript_1A00AC
- call_if_set FLAG_SYS_PC_LANETTE, EventScript_1A00B5
- msgbox UnknownString_81A0A35, 4
- special ShowPokemonStorageSystem
- waitstate
- goto EventScript_1A0023
- end
-
-EventScript_1A00AC:
- msgbox UnknownString_81A0A1E, 4
- return
-
-EventScript_1A00B5:
- msgbox UnknownString_81A0A66, 4
- return
-
-EventScript_1A00BE:
- setvar VAR_0x8004, 0
- playse SE_PC_OFF
- special DoPCTurnOffEffect
- releaseall
- end
-
-EventScript_1A00CB:
- goto_if_unset FLAG_SYS_GAME_CLEAR, EventScript_1A00BE
- playse SE_PC_LOGON
- special AccessHallOfFamePC
- waitstate
- goto EventScript_1A0033
+Common_EventScript_PokemonCenterSign:: @ 81A00EA
+ msgbox Text_PokemonCenterSign, MSGBOX_SIGN
end
-FallarborTown_EventScript_1A00E1:: @ 81A00E1
-FortreeCity_EventScript_1A00E1:: @ 81A00E1
-LavaridgeTown_EventScript_1A00E1:: @ 81A00E1
-MauvilleCity_EventScript_1A00E1:: @ 81A00E1
-MossdeepCity_EventScript_1A00E1:: @ 81A00E1
-OldaleTown_EventScript_1A00E1:: @ 81A00E1
-PetalburgCity_EventScript_1A00E1:: @ 81A00E1
-RustboroCity_EventScript_1A00E1:: @ 81A00E1
-SlateportCity_EventScript_1A00E1:: @ 81A00E1
-SootopolisCity_EventScript_1A00E1:: @ 81A00E1
-VerdanturfTown_EventScript_1A00E1:: @ 81A00E1
- msgbox PetalburgCity_Text_1A0D41, 3
- end
-
-DewfordTown_EventScript_1A00EA:: @ 81A00EA
-EverGrandeCity_EventScript_1A00EA:: @ 81A00EA
-FallarborTown_EventScript_1A00EA:: @ 81A00EA
-FortreeCity_EventScript_1A00EA:: @ 81A00EA
-LavaridgeTown_EventScript_1A00EA:: @ 81A00EA
-LilycoveCity_EventScript_1A00EA:: @ 81A00EA
-MauvilleCity_EventScript_1A00EA:: @ 81A00EA
-MossdeepCity_EventScript_1A00EA:: @ 81A00EA
-OldaleTown_EventScript_1A00EA:: @ 81A00EA
-PacifidlogTown_EventScript_1A00EA:: @ 81A00EA
-PetalburgCity_EventScript_1A00EA:: @ 81A00EA
-RustboroCity_EventScript_1A00EA:: @ 81A00EA
-SlateportCity_EventScript_1A00EA:: @ 81A00EA
-SootopolisCity_EventScript_1A00EA:: @ 81A00EA
-VerdanturfTown_EventScript_1A00EA:: @ 81A00EA
- msgbox PetalburgCity_Text_1A0D75, 3
- end
-
-BattleTower_Lobby_EventScript_1A00F3:: @ 81A00F3
-DewfordTown_EventScript_1A00F3:: @ 81A00F3
-FallarborTown_ContestLobby_EventScript_1A00F3:: @ 81A00F3
-MauvilleCity_PokemonCenter_1F_EventScript_1A00F3:: @ 81A00F3
-PetalburgCity_PokemonCenter_1F_EventScript_1A00F3:: @ 81A00F3
-Route111_EventScript_1A00F3:: @ 81A00F3
-Route123_BerryMastersHouse_EventScript_1A00F3:: @ 81A00F3
-SlateportCity_OceanicMuseum_1F_EventScript_1A00F3:: @ 81A00F3
-SlateportCity_PokemonFanClub_EventScript_1A00F3:: @ 81A00F3
- fadescreen 1
- special sub_80E60D8
- fadescreen 0
+Common_EventScript_ShowEasyChatScreen:: @ 81A00F3
+ fadescreen FADE_TO_BLACK
+ special ShowEasyChatScreen
+ fadescreen FADE_FROM_BLACK
return
-DewfordTown_Gym_EventScript_1A00FB:: @ 81A00FB
-LavaridgeTown_Gym_1F_EventScript_1A00FB:: @ 81A00FB
-MauvilleCity_Gym_EventScript_1A00FB:: @ 81A00FB
-RustboroCity_Gym_EventScript_1A00FB:: @ 81A00FB
+Common_EventScript_ReadyPetalburgGymForBattle:: @ 81A00FB
clearflag FLAG_HIDE_PETALBURG_GYM_GUIDE
setflag FLAG_PETALBURG_MART_EXPANDED_ITEMS
return
-DewfordTown_EventScript_1A0102:: @ 81A0102
-DewfordTown_Hall_EventScript_1A0102:: @ 81A0102
- dodailyevents
+Common_EventScript_BufferTrendyPhrase:: @ 81A0102
+ dotimebasedevents
setvar VAR_0x8004, 0
special BufferTrendyPhraseString
return
-DewfordTown_EventScript_1A010C:: @ 81A010C
-Route104_MrBrineysHouse_EventScript_1A010C:: @ 81A010C
-Route109_EventScript_1A010C:: @ 81A010C
+EventScript_BackupMrBrineyLocation:: @ 81A010C
copyvar VAR_0x8008, VAR_BRINEY_LOCATION
setvar VAR_BRINEY_LOCATION, 0
return
-UseSurfScript:: @ 81A0117
- checkpartymove MOVE_SURF
- compare VAR_RESULT, 6
- goto_if_eq UseSurfScript_NoMon
- bufferpartymonnick 0, VAR_RESULT
- setfieldeffectargument 0, VAR_RESULT
- lockall
- msgbox UseSurfPromptText, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq UseSurfScript_No
- msgbox UsedSurfText, 4
- dofieldeffect FLDEFF_USE_SURF
-UseSurfScript_No: @ 81A014C
- releaseall
-UseSurfScript_NoMon: @ 81A014D
- end
-
-EverGrandeCity_ChampionsRoom_EventScript_1A014E:: @ 81A014E
-LavaridgeTown_EventScript_1A014E:: @ 81A014E
-LilycoveCity_EventScript_1A014E:: @ 81A014E
-LittlerootTown_ProfessorBirchsLab_EventScript_1A014E:: @ 81A014E
-OldaleTown_EventScript_1A014E:: @ 81A014E
-Route103_EventScript_1A014E:: @ 81A014E
-Route110_EventScript_1A014E:: @ 81A014E
-Route119_EventScript_1A014E:: @ 81A014E
-RustboroCity_EventScript_1A014E:: @ 81A014E
- checkplayergender
- compare VAR_RESULT, 0
- goto_if_eq RustboroCity_EventScript_1A0166
- compare VAR_RESULT, 1
- goto_if_eq RustboroCity_EventScript_1A016C
- end
-
-RustboroCity_EventScript_1A0166:: @ 81A0166
- setvar VAR_OBJ_GFX_ID_0, OBJ_EVENT_GFX_RIVAL_MAY_NORMAL
- return
-
-RustboroCity_EventScript_1A016C:: @ 81A016C
- setvar VAR_OBJ_GFX_ID_0, OBJ_EVENT_GFX_RIVAL_BRENDAN_NORMAL
- return
-
-LavaridgeTown_EventScript_1A0172:: @ 81A0172
-Route110_EventScript_1A0172:: @ 81A0172
-Route119_EventScript_1A0172:: @ 81A0172
- checkplayergender
- compare VAR_RESULT, 0
- goto_if_eq LavaridgeTown_EventScript_1A018A
- compare VAR_RESULT, 1
- goto_if_eq LavaridgeTown_EventScript_1A0190
- end
-
-LavaridgeTown_EventScript_1A018A:: @ 81A018A
- setvar VAR_OBJ_GFX_ID_3, OBJ_EVENT_GFX_RIVAL_MAY_MACH_BIKE
- return
-
-LavaridgeTown_EventScript_1A0190:: @ 81A0190
- setvar VAR_OBJ_GFX_ID_3, OBJ_EVENT_GFX_RIVAL_BRENDAN_MACH_BIKE
- return
-
-AquaHideout_1F_EventScript_1A0196:: @ 81A0196
-AquaHideout_B1F_EventScript_1A0196:: @ 81A0196
-AquaHideout_B2F_EventScript_1A0196:: @ 81A0196
-LilycoveCity_EventScript_1A0196:: @ 81A0196
-MeteorFalls_1F_1R_EventScript_1A0196:: @ 81A0196
-MtChimney_EventScript_1A0196:: @ 81A0196
-MtPyre_Summit_EventScript_1A0196:: @ 81A0196
-PetalburgWoods_EventScript_1A0196:: @ 81A0196
-Route110_EventScript_1A0196:: @ 81A0196
-Route112_EventScript_1A0196:: @ 81A0196
-Route113_EventScript_1A0196:: @ 81A0196
-Route119_EventScript_1A0196:: @ 81A0196
-Route119_WeatherInstitute_1F_EventScript_1A0196:: @ 81A0196
-Route119_WeatherInstitute_2F_EventScript_1A0196:: @ 81A0196
-Route121_EventScript_1A0196:: @ 81A0196
-Route128_EventScript_1A0196:: @ 81A0196
-RustboroCity_EventScript_1A0196:: @ 81A0196
-RusturfTunnel_EventScript_1A0196:: @ 81A0196
-SeafloorCavern_Room1_EventScript_1A0196:: @ 81A0196
-SeafloorCavern_Room3_EventScript_1A0196:: @ 81A0196
-SeafloorCavern_Room4_EventScript_1A0196:: @ 81A0196
-SeafloorCavern_Room9_EventScript_1A0196:: @ 81A0196
-SlateportCity_OceanicMuseum_2F_EventScript_1A0196:: @ 81A0196
- .ifdef SAPPHIRE
- setvar VAR_OBJ_GFX_ID_1, OBJ_EVENT_GFX_AQUA_MEMBER_M
- setvar VAR_OBJ_GFX_ID_2, OBJ_EVENT_GFX_AQUA_MEMBER_F
- setvar VAR_OBJ_GFX_ID_4, OBJ_EVENT_GFX_MAGMA_MEMBER_M
- setvar VAR_OBJ_GFX_ID_5, OBJ_EVENT_GFX_MAGMA_MEMBER_F
- setvar VAR_OBJ_GFX_ID_6, OBJ_EVENT_GFX_ARCHIE
- setvar VAR_OBJ_GFX_ID_7, OBJ_EVENT_GFX_MAXIE
- .else
- setvar VAR_OBJ_GFX_ID_1, OBJ_EVENT_GFX_MAGMA_MEMBER_M
- setvar VAR_OBJ_GFX_ID_2, OBJ_EVENT_GFX_MAGMA_MEMBER_F
- setvar VAR_OBJ_GFX_ID_4, OBJ_EVENT_GFX_AQUA_MEMBER_M
- setvar VAR_OBJ_GFX_ID_5, OBJ_EVENT_GFX_AQUA_MEMBER_F
- setvar VAR_OBJ_GFX_ID_6, OBJ_EVENT_GFX_MAXIE
- setvar VAR_OBJ_GFX_ID_7, OBJ_EVENT_GFX_ARCHIE
- .endif
- return
-
-CaveOfOrigin_B4F_EventScript_1A01B5:: @ 81A01B5
-SeafloorCavern_Room9_EventScript_1A01B5:: @ 81A01B5
- .ifdef SAPPHIRE
- setvar VAR_OBJ_GFX_ID_8, OBJ_EVENT_GFX_KYOGRE_1
- setvar VAR_OBJ_GFX_ID_9, OBJ_EVENT_GFX_KYOGRE_2
- .else
- setvar VAR_OBJ_GFX_ID_8, OBJ_EVENT_GFX_GROUDON_1
- setvar VAR_OBJ_GFX_ID_9, OBJ_EVENT_GFX_GROUDON_2
- .endif
- return
-
-DewfordTown_Gym_EventScript_1A01C0:: @ 81A01C0
-FortreeCity_Gym_EventScript_1A01C0:: @ 81A01C0
-LavaridgeTown_Gym_1F_EventScript_1A01C0:: @ 81A01C0
-MauvilleCity_Gym_EventScript_1A01C0:: @ 81A01C0
-MossdeepCity_Gym_EventScript_1A01C0:: @ 81A01C0
-PetalburgCity_Gym_EventScript_1A01C0:: @ 81A01C0
-RustboroCity_Gym_EventScript_1A01C0:: @ 81A01C0
-SootopolisCity_Gym_1F_EventScript_1A01C0:: @ 81A01C0
- switch VAR_0x8008
- case 1, DewfordTown_Gym_EventScript_1A021E
- case 2, DewfordTown_Gym_EventScript_1A0225
- case 3, DewfordTown_Gym_EventScript_1A022F
- case 4, DewfordTown_Gym_EventScript_1A023C
- case 5, DewfordTown_Gym_EventScript_1A024C
- case 6, DewfordTown_Gym_EventScript_1A0262
- case 7, DewfordTown_Gym_EventScript_1A026F
- case 8, DewfordTown_Gym_EventScript_1A0282
- end
-
-DewfordTown_Gym_EventScript_1A021E:: @ 81A021E
- settrainerflag TRAINER_JOSH
- settrainerflag TRAINER_TOMMY
- return
-
-DewfordTown_Gym_EventScript_1A0225:: @ 81A0225
- settrainerflag TRAINER_HIDEKI
- settrainerflag TRAINER_TESSA
- settrainerflag TRAINER_LAURA
- return
-
-DewfordTown_Gym_EventScript_1A022F:: @ 81A022F
- settrainerflag TRAINER_KIRK
- settrainerflag TRAINER_SHAWN
- settrainerflag TRAINER_BEN
- settrainerflag TRAINER_VIVIAN
- return
-
-DewfordTown_Gym_EventScript_1A023C:: @ 81A023C
- settrainerflag TRAINER_COLE
- settrainerflag TRAINER_AXLE
- settrainerflag TRAINER_ANDY
- settrainerflag TRAINER_ZANE
- settrainerflag TRAINER_SADIE
- return
-
-DewfordTown_Gym_EventScript_1A024C:: @ 81A024C
- settrainerflag TRAINER_RANDALL
- settrainerflag TRAINER_PARKER
- settrainerflag TRAINER_GEORGE
- settrainerflag TRAINER_BERKE
- settrainerflag TRAINER_MARY
- settrainerflag TRAINER_LORI
- settrainerflag TRAINER_JODY
- return
+ .include "data/scripts/surf.inc"
+ .include "data/scripts/dynamic_npc_graphics.inc"
+ .include "data/scripts/set_gym_trainers.inc"
-DewfordTown_Gym_EventScript_1A0262:: @ 81A0262
- settrainerflag TRAINER_JARED
- settrainerflag TRAINER_TERRELL
- settrainerflag TRAINER_KYLEE
- settrainerflag TRAINER_WILL
- return
-
-DewfordTown_Gym_EventScript_1A026F:: @ 81A026F
- settrainerflag TRAINER_PRESTON
- settrainerflag TRAINER_VIRGIL
- settrainerflag TRAINER_FRITZ
- settrainerflag TRAINER_HANNAH
- settrainerflag TRAINER_SAMANTHA
- settrainerflag TRAINER_MAURA
- return
-
-DewfordTown_Gym_EventScript_1A0282:: @ 81A0282
- settrainerflag TRAINER_ANDREA
- settrainerflag TRAINER_CRISSY
- settrainerflag TRAINER_BRIANNA_2
- settrainerflag TRAINER_CONNIE
- settrainerflag TRAINER_BRIDGET
- settrainerflag TRAINER_OLIVIA
- settrainerflag TRAINER_TIFFANY
- settrainerflag TRAINER_MARISSA
- return
-
-DewfordTown_Gym_EventScript_1A029B:: @ 81A029B
-DewfordTown_Hall_EventScript_1A029B:: @ 81A029B
-FallarborTown_House1_EventScript_1A029B:: @ 81A029B
-FortreeCity_Gym_EventScript_1A029B:: @ 81A029B
-FortreeCity_House2_EventScript_1A029B:: @ 81A029B
-FortreeCity_House4_EventScript_1A029B:: @ 81A029B
-LavaridgeTown_Gym_1F_EventScript_1A029B:: @ 81A029B
-LavaridgeTown_HerbShop_EventScript_1A029B:: @ 81A029B
-LilycoveCity_EventScript_1A029B:: @ 81A029B
-LilycoveCity_House2_EventScript_1A029B:: @ 81A029B
-LittlerootTown_BrendansHouse_1F_EventScript_1A029B:: @ 81A029B
-MauvilleCity_EventScript_1A029B:: @ 81A029B
-MauvilleCity_Gym_EventScript_1A029B:: @ 81A029B
-MossdeepCity_EventScript_1A029B:: @ 81A029B
-MossdeepCity_Gym_EventScript_1A029B:: @ 81A029B
-MossdeepCity_SpaceCenter_1F_EventScript_1A029B:: @ 81A029B
-MtPyre_1F_EventScript_1A029B:: @ 81A029B
-PacifidlogTown_House2_EventScript_1A029B:: @ 81A029B
-PetalburgCity_Gym_EventScript_1A029B:: @ 81A029B
-PetalburgWoods_EventScript_1A029B:: @ 81A029B
-Route104_EventScript_1A029B:: @ 81A029B
-Route104_PrettyPetalFlowerShop_EventScript_1A029B:: @ 81A029B
-Route109_EventScript_1A029B:: @ 81A029B
-Route111_EventScript_1A029B:: @ 81A029B
-Route111_WinstrateFamilysHouse_EventScript_1A029B:: @ 81A029B
-Route114_EventScript_1A029B:: @ 81A029B
-Route114_FossilManiacsHouse_EventScript_1A029B:: @ 81A029B
-Route120_EventScript_1A029B:: @ 81A029B
-Route123_BerryMastersHouse_EventScript_1A029B:: @ 81A029B
-Route123_EventScript_1A029B:: @ 81A029B
-RustboroCity_DevonCorp_3F_EventScript_1A029B:: @ 81A029B
-RustboroCity_Flat2_2F_EventScript_1A029B:: @ 81A029B
-RustboroCity_Gym_EventScript_1A029B:: @ 81A029B
-RustboroCity_PokemonSchool_EventScript_1A029B:: @ 81A029B
-SSTidalRooms_EventScript_1A029B:: @ 81A029B
-ShoalCave_LowTideEntranceRoom_EventScript_1A029B:: @ 81A029B
-ShoalCave_LowTideInnerRoom_EventScript_1A029B:: @ 81A029B
-ShoalCave_LowTideLowerRoom_EventScript_1A029B:: @ 81A029B
-ShoalCave_LowTideStairsRoom_EventScript_1A029B:: @ 81A029B
-SlateportCity_ContestHall_EventScript_1A029B:: @ 81A029B
-SlateportCity_Harbor_EventScript_1A029B:: @ 81A029B
-SlateportCity_PokemonFanClub_EventScript_1A029B:: @ 81A029B
-SootopolisCity_EventScript_1A029B:: @ 81A029B
-SootopolisCity_Gym_1F_EventScript_1A029B:: @ 81A029B
-VerdanturfTown_ContestLobby_EventScript_1A029B:: @ 81A029B
- msgbox MauvilleCity_Text_1A0CC2, 4
+Common_EventScript_ShowBagIsFull:: @ 81A029B
+ msgbox Text_TooBadBagIsFull, MSGBOX_DEFAULT
release
end
-MauvilleCity_GameCorner_EventScript_1A02A5:: @ 81A02A5
-Route110_TrickHouseEnd_EventScript_1A02A5:: @ 81A02A5
-Route110_TrickHouseEntrance_EventScript_1A02A5:: @ 81A02A5
-Route113_GlassWorkshop_EventScript_1A02A5:: @ 81A02A5
- msgbox MauvilleCity_GameCorner_Text_1A0CC2, 4
+Common_EventScript_BagIsFull:: @ 81A02A5
+ msgbox Text_TooBadBagIsFull, MSGBOX_DEFAULT
return
-Route114_LanettesHouse_EventScript_1A02AE:: @ 81A02AE
- msgbox Route114_LanettesHouse_Text_1A0CEF, 4
+Common_EventScript_ShowNoRoomForDecor:: @ 81A02AE
+ msgbox Text_NoRoomLeftForAnother, MSGBOX_DEFAULT
release
end
-LilycoveCity_LilycoveMuseum_2F_EventScript_1A02B8:: @ 81A02B8
-MauvilleCity_GameCorner_EventScript_1A02B8:: @ 81A02B8
-Route110_TrickHouseEnd_EventScript_1A02B8:: @ 81A02B8
-Route110_TrickHouseEntrance_EventScript_1A02B8:: @ 81A02B8
-Route113_GlassWorkshop_EventScript_1A02B8:: @ 81A02B8
- msgbox MauvilleCity_GameCorner_Text_1A0CEF, 4
+Common_EventScript_NoRoomForDecor:: @ 81A02B8
+ msgbox Text_NoRoomLeftForAnother, MSGBOX_DEFAULT
return
-EverGrandeCity_EventScript_1A02C1:: @ 81A02C1
-LilycoveCity_EventScript_1A02C1:: @ 81A02C1
-MossdeepCity_EventScript_1A02C1:: @ 81A02C1
-Route124_EventScript_1A02C1:: @ 81A02C1
-Route125_EventScript_1A02C1:: @ 81A02C1
-Route126_EventScript_1A02C1:: @ 81A02C1
-Route127_EventScript_1A02C1:: @ 81A02C1
-Route128_EventScript_1A02C1:: @ 81A02C1
-SootopolisCity_EventScript_1A02C1:: @ 81A02C1
+Common_EventScript_SetLegendaryWeather:: @ 81A02C1
.ifdef SAPPHIRE
setweather WEATHER_RAIN_HEAVY
.else
@@ -2084,152 +866,47 @@ SootopolisCity_EventScript_1A02C1:: @ 81A02C1
.endif
return
-DewfordTown_Gym_EventScript_1A02C5:: @ 81A02C5
-FortreeCity_Gym_EventScript_1A02C5:: @ 81A02C5
-LavaridgeTown_Gym_1F_EventScript_1A02C5:: @ 81A02C5
-LilycoveCity_CoveLilyMotel_2F_EventScript_1A02C5:: @ 81A02C5
-MauvilleCity_Gym_EventScript_1A02C5:: @ 81A02C5
-MossdeepCity_Gym_EventScript_1A02C5:: @ 81A02C5
-PetalburgCity_Gym_EventScript_1A02C5:: @ 81A02C5
-RustboroCity_Gym_EventScript_1A02C5:: @ 81A02C5
-SootopolisCity_Gym_1F_EventScript_1A02C5:: @ 81A02C5
- playfanfare MUS_ME_BACHI
+Common_EventScript_PlayGymBadgeFanfare:: @ 81A02C5
+ playfanfare MUS_OBTAIN_BADGE
waitfanfare
return
-LittlerootTown_BrendansHouse_1F_EventScript_1A02CA:: @ 81A02CA
-Route111_OldLadysRestStop_EventScript_1A02CA:: @ 81A02CA
-Route119_WeatherInstitute_1F_EventScript_1A02CA:: @ 81A02CA
-SSTidalRooms_EventScript_1A02CA:: @ 81A02CA
- fadescreen 1
- playfanfare MUS_ME_ASA
+Common_EventScript_OutOfCenterPartyHeal:: @ 81A02CA
+ fadescreen FADE_TO_BLACK
+ playfanfare MUS_HEAL
waitfanfare
special ScrSpecial_HealPlayerParty
- fadescreen 0
+ fadescreen FADE_FROM_BLACK
return
-Event_WorldMap:: @ 81A02D6
+EventScript_RegionMap:: @ 81A02D6
lockall
- msgbox UnknownString_817303D, 4
- fadescreen 1
+ msgbox Text_LookCloserAtMap, MSGBOX_DEFAULT
+ fadescreen FADE_TO_BLACK
special FieldShowRegionMap
waitstate
releaseall
end
-DewfordTown_EventScript_1A02E7:: @ 81A02E7
-Route104_EventScript_1A02E7:: @ 81A02E7
-Route109_EventScript_1A02E7:: @ 81A02E7
- setflag FLAG_SPECIAL_FLAG_1
- playbgm MUS_M_BOAT, FALSE
+Common_EventScript_PlayBrineysBoatMusic:: @ 81A02E7
+ setflag FLAG_DONT_TRANSITION_MUSIC
+ playbgm MUS_SAILING, FALSE
return
-DewfordTown_EventScript_1A02EF:: @ 81A02EF
-Route104_EventScript_1A02EF:: @ 81A02EF
-Route109_EventScript_1A02EF:: @ 81A02EF
- clearflag FLAG_SPECIAL_FLAG_1
+Common_EventScript_StopBrineysBoatMusic:: @ 81A02EF
+ clearflag FLAG_DONT_TRANSITION_MUSIC
fadedefaultbgm
return
-LittlerootTown_ProfessorBirchsLab_EventScript_1A02F4:: @ 81A02F4
-Route101_EventScript_1A02F4:: @ 81A02F4
-Route103_EventScript_1A02F4:: @ 81A02F4
- compare VAR_PETALBURG_GYM_STATE, 0
- goto_if_eq Route101_EventScript_1A14DC
- compare VAR_BIRCH_STATE, 0
- call_if_eq Route101_EventScript_1A0358
- compare VAR_BIRCH_STATE, 1
- call_if_eq Route101_EventScript_1A0358
- compare VAR_BIRCH_STATE, 2
- call_if_eq Route101_EventScript_1A0365
- compare VAR_BIRCH_STATE, 3
- call_if_eq Route101_EventScript_1A0365
- compare VAR_BIRCH_STATE, 4
- call_if_eq Route101_EventScript_1A0372
- compare VAR_BIRCH_STATE, 5
- call_if_eq Route101_EventScript_1A0372
- compare VAR_BIRCH_STATE, 6
- call_if_eq Route101_EventScript_1A0358
- compare VAR_BIRCH_STATE, 7
- call_if_eq Route101_EventScript_1A0358
- return
-
-Route101_EventScript_1A0358:: @ 81A0358
- clearflag FLAG_HIDE_BIRCH_IN_LAB
- clearflag FLAG_UNKNOWN_BIRCH_380
- setflag FLAG_HIDE_BIRCH_ROUTE101
- setflag FLAG_HIDE_BIRCH_ROUTE103
- return
+ .include "data/scripts/prof_birch.inc"
-Route101_EventScript_1A0365:: @ 81A0365
- clearflag FLAG_HIDE_BIRCH_ROUTE101
- setflag FLAG_HIDE_BIRCH_IN_LAB
- setflag FLAG_UNKNOWN_BIRCH_380
- setflag FLAG_HIDE_BIRCH_ROUTE103
- return
-
-Route101_EventScript_1A0372:: @ 81A0372
- clearflag FLAG_HIDE_BIRCH_ROUTE103
- setflag FLAG_HIDE_BIRCH_ROUTE101
- setflag FLAG_HIDE_BIRCH_IN_LAB
- setflag FLAG_UNKNOWN_BIRCH_380
- return
-
-LittlerootTown_ProfessorBirchsLab_EventScript_1A037F:: @ 81A037F
-Route101_EventScript_1A037F:: @ 81A037F
-Route103_EventScript_1A037F:: @ 81A037F
- lock
- faceplayer
- msgbox Route101_Text_1C4449, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq Route101_EventScript_1A039B
- call Route101_EventScript_1A03B0
- release
- end
-
-Route101_EventScript_1A039B:: @ 81A039B
- msgbox Route101_Text_1C449B, 4
- release
- end
-
-Route101_EventScript_1A03A5:: @ 81A03A5
- copyvar VAR_0x8004, VAR_0x8009
- special ShowPokedexRatingMessage
- waitmessage
- waitbuttonpress
- return
-
-EverGrandeCity_ChampionsRoom_EventScript_1A03B0:: @ 81A03B0
-Route101_EventScript_1A03B0:: @ 81A03B0
- setvar VAR_0x8004, 0
- specialvar VAR_RESULT, ScriptGetPokedexInfo
- copyvar VAR_0x8008, VAR_0x8005
- copyvar VAR_0x8009, VAR_0x8006
- copyvar VAR_0x800A, VAR_RESULT
- buffernumberstring 0, VAR_0x8008
- buffernumberstring 1, VAR_0x8009
- msgbox Route101_Text_1C44DC, 4
- call Route101_EventScript_1A03A5
- compare VAR_0x800A, 0
- goto_if_eq Route101_EventScript_1A14DC
- setvar VAR_0x8004, 1
- specialvar VAR_RESULT, ScriptGetPokedexInfo
- copyvar VAR_0x8008, VAR_0x8005
- copyvar VAR_0x8009, VAR_0x8006
- buffernumberstring 0, VAR_0x8008
- buffernumberstring 1, VAR_0x8009
- msgbox Route101_Text_1C4B05, 4
- return
-
-BattleTower_Outside_EventScript_1A040E:: @ 81A040E
-LilycoveCity_Harbor_EventScript_1A040E:: @ 81A040E
-SlateportCity_Harbor_EventScript_1A040E:: @ 81A040E
+Common_EventScript_FerryDepart:: @ 81A040E
delay 60
- applymovement VAR_0x8004, SlateportCity_Harbor_Movement_1A041C
+ applymovement VAR_0x8004, Movement_FerryDepart
waitmovement 0
return
-SlateportCity_Harbor_Movement_1A041C:: @ 81A041C
+Movement_FerryDepart:: @ 81A041C
walk_slow_right
walk_slow_right
walk_slow_right
@@ -2237,9 +914,9 @@ SlateportCity_Harbor_Movement_1A041C:: @ 81A041C
walk_right
walk_right
walk_right
- end_movement
+ step_end
-PetalburgCity_Gym_EventScript_1A0424:: @ 81A0424
+EventScript_HideMrBriney:: @ 81A0424
setflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN
setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
setflag FLAG_HIDE_MR_BRINEY_ROUTE109
@@ -2251,7 +928,7 @@ PetalburgCity_Gym_EventScript_1A0424:: @ 81A0424
setvar VAR_BRINEY_LOCATION, 0
return
-RusturfTunnel_EventScript_1A0442:: @ 81A0442
+RusturfTunnel_EventScript_SetRusturfTunnelOpen:: @ 81A0442
removeobject 1
removeobject 10
clearflag FLAG_HIDE_BOYFRIEND_WANDAS_HOUSE
@@ -2260,846 +937,64 @@ RusturfTunnel_EventScript_1A0442:: @ 81A0442
setflag FLAG_RUSTURF_TUNNEL_OPENED
return
-EventScript_1A0457: @ unreferenced?
+EventScript_UnusedBoardFerry:
delay 30
- applymovement 255, SlateportCity_OceanicMuseum_2F_Movement_1A0841
+ applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
- showobjectat 255, MAP_PETALBURG_CITY
+ showobjectat OBJ_EVENT_ID_PLAYER, 0
delay 30
- applymovement 255, Movement_1A047A
+ applymovement OBJ_EVENT_ID_PLAYER, Movement_UnusedBoardFerry
waitmovement 0
delay 30
return
-Movement_1A047A:
+Movement_UnusedBoardFerry:
walk_up
- end_movement
-
-BattleTower_Outside_EventScript_1A047C:: @ 81A047C
-SouthernIsland_Exterior_EventScript_1A047C:: @ 81A047C
- compare VAR_FACING, 1
- call_if_eq BattleTower_Outside_EventScript_160B2F
- compare VAR_FACING, 3
- call_if_eq BattleTower_Outside_EventScript_160B3A
- delay 30
- hideobjectat 255, MAP_PETALBURG_CITY
- call BattleTower_Outside_EventScript_1A040E
- return
-
-CaveOfOrigin_B4F_EventScript_1A04A0:: @ 81A04A0
- lockall
- waitse
- playmoncry SPECIES_GROUDON_OR_KYOGRE, 2
- waitmoncry
- setvar VAR_TEMP_5, 1
- releaseall
- end
-
-CaveOfOrigin_1F_EventScript_1A04AF:: @ 81A04AF
-CaveOfOrigin_B1F_EventScript_1A04AF:: @ 81A04AF
-CaveOfOrigin_B2F_EventScript_1A04AF:: @ 81A04AF
-CaveOfOrigin_B3F_EventScript_1A04AF:: @ 81A04AF
- lockall
- setvar VAR_TEMP_1, 1
- goto CaveOfOrigin_1F_EventScript_1A04D3
- end
-
-CaveOfOrigin_B2F_EventScript_1A04BB:: @ 81A04BB
-CaveOfOrigin_B3F_EventScript_1A04BB:: @ 81A04BB
- lockall
- setvar VAR_TEMP_2, 1
- goto CaveOfOrigin_B2F_EventScript_1A04D3
- end
+ step_end
-@ 81A04C7
- lockall
- setvar VAR_TEMP_3, 1
- goto CaveOfOrigin_B2F_EventScript_1A04D3
- end
-
-CaveOfOrigin_1F_EventScript_1A04D3:: @ 81A04D3
-CaveOfOrigin_B2F_EventScript_1A04D3:: @ 81A04D3
- setvar VAR_0x8004, 1
- setvar VAR_0x8005, 1
- special sub_810F758
- waitstate
- releaseall
- end
-
-CaveOfOrigin_1F_EventScript_1A04E3:: @ 81A04E3
-CaveOfOrigin_B1F_EventScript_1A04E3:: @ 81A04E3
-CaveOfOrigin_B2F_EventScript_1A04E3:: @ 81A04E3
-CaveOfOrigin_B3F_EventScript_1A04E3:: @ 81A04E3
-CaveOfOrigin_B4F_EventScript_1A04E3:: @ 81A04E3
- setvar VAR_TEMP_1, 1
- setvar VAR_TEMP_2, 1
- setvar VAR_TEMP_3, 1
- setvar VAR_TEMP_4, 1
- setvar VAR_TEMP_5, 1
- return
-
-AquaHideout_B1F_EventScript_1A04FD:: @ 81A04FD
-MagmaHideout_B1F_EventScript_1A04FD:: @ 81A04FD
- lock
- faceplayer
- setwildbattle SPECIES_ELECTRODE, 30, ITEM_NONE
- waitse
- playmoncry SPECIES_ELECTRODE, 2
- delay 40
- waitmoncry
- setflag FLAG_HIDE_ELECTRODE_1_HIDEOUT
- setflag FLAG_SYS_CTRL_OBJ_DELETE
- dowildbattle
- clearflag FLAG_SYS_CTRL_OBJ_DELETE
- release
- end
-
-AquaHideout_B1F_EventScript_1A051B:: @ 81A051B
-MagmaHideout_B1F_EventScript_1A051B:: @ 81A051B
- lock
- faceplayer
- setwildbattle SPECIES_ELECTRODE, 30, ITEM_NONE
- waitse
- playmoncry SPECIES_ELECTRODE, 2
- delay 40
- waitmoncry
- setflag FLAG_HIDE_ELECTRODE_2_HIDEOUT
- setflag FLAG_SYS_CTRL_OBJ_DELETE
- dowildbattle
- clearflag FLAG_SYS_CTRL_OBJ_DELETE
- release
- end
-
-Route120_EventScript_1A0539:: @ 81A0539
- lock
- faceplayer
- setvar VAR_0x8004, 1
- goto Route120_EventScript_1A0594
- end
-
-Route120_EventScript_1A0546:: @ 81A0546
- lock
- faceplayer
- setvar VAR_0x8004, 2
- goto Route120_EventScript_1A0594
- end
-
-Route120_EventScript_1A0553:: @ 81A0553
- lock
- faceplayer
- setvar VAR_0x8004, 3
- goto Route120_EventScript_1A0594
- end
-
-Route120_EventScript_1A0560:: @ 81A0560
- lock
- faceplayer
- setvar VAR_0x8004, 4
- goto Route120_EventScript_1A0594
- end
-
-Route120_EventScript_1A056D:: @ 81A056D
- lock
- faceplayer
- setvar VAR_0x8004, 5
- goto Route120_EventScript_1A0594
- end
-
-Route119_EventScript_1A057A:: @ 81A057A
- lock
- faceplayer
- setvar VAR_0x8004, 6
- goto Route119_EventScript_1A0594
- end
-
-Route119_EventScript_1A0587:: @ 81A0587
- lock
- faceplayer
- setvar VAR_0x8004, 7
- goto Route119_EventScript_1A0594
- end
-
-Route119_EventScript_1A0594:: @ 81A0594
-Route120_EventScript_1A0594:: @ 81A0594
- checkitem ITEM_DEVON_SCOPE, 1
- compare VAR_RESULT, 1
- goto_if_eq Route119_EventScript_1A05AE
- msgbox Route119_Text_171B93, 4
- release
- end
-
-Route119_EventScript_1A05AE:: @ 81A05AE
- msgbox Route119_Text_171BB6, MSGBOX_YESNO
- compare VAR_RESULT, YES
- goto_if_eq Route119_EventScript_1A05C3
- release
- end
-
-Route119_EventScript_1A05C3:: @ 81A05C3
- msgbox Route119_Text_171BF6, 4
- closemessage
- applymovement VAR_LAST_TALKED, Route119_Movement_1A0839
- waitmovement 0
- applymovement VAR_LAST_TALKED, Route119_Movement_1A0662
- waitmovement 0
- waitse
- playmoncry SPECIES_KECLEON, 2
- delay 40
- waitmoncry
- setwildbattle SPECIES_KECLEON, 30, ITEM_NONE
- compare VAR_0x8004, 1
- call_if_eq Route119_EventScript_1A0646
- compare VAR_0x8004, 2
- call_if_eq Route119_EventScript_1A064A
- compare VAR_0x8004, 3
- call_if_eq Route119_EventScript_1A064E
- compare VAR_0x8004, 4
- call_if_eq Route119_EventScript_1A0652
- compare VAR_0x8004, 5
- call_if_eq Route119_EventScript_1A0656
- compare VAR_0x8004, 6
- call_if_eq Route119_EventScript_1A065A
- compare VAR_0x8004, 7
- call_if_eq Route119_EventScript_1A065E
- setflag FLAG_SYS_CTRL_OBJ_DELETE
- dowildbattle
- clearflag FLAG_SYS_CTRL_OBJ_DELETE
- release
- end
-
-Route119_EventScript_1A0646:: @ 81A0646
- setflag FLAG_HIDE_KECLEON_ROUTE120_3
- return
-
-Route119_EventScript_1A064A:: @ 81A064A
- setflag FLAG_HIDE_KECLEON_ROUTE120_4
- return
-
-Route119_EventScript_1A064E:: @ 81A064E
- setflag FLAG_HIDE_KECLEON_ROUTE120_5
- return
-
-Route119_EventScript_1A0652:: @ 81A0652
- setflag FLAG_HIDE_KECLEON_ROUTE120_6
- return
-
-Route119_EventScript_1A0656:: @ 81A0656
- setflag FLAG_HIDE_KECLEON_ROUTE120_7
- return
-
-Route119_EventScript_1A065A:: @ 81A065A
- setflag FLAG_HIDE_KECLEON_ROUTE119_1
+Common_EventScript_FerryDepartIsland:: @ 81A047C
+ compare VAR_FACING, DIR_SOUTH
+ call_if_eq Ferry_EventScript_DepartIslandSouth
+ compare VAR_FACING, DIR_WEST
+ call_if_eq Ferry_EventScript_DepartIslandWest
+ delay 30
+ hideobjectat OBJ_EVENT_ID_PLAYER, 0
+ call Common_EventScript_FerryDepart
return
-Route119_EventScript_1A065E:: @ 81A065E
- setflag FLAG_HIDE_KECLEON_ROUTE119_2
- return
+ .include "data/scripts/cave_of_origin.inc"
+ .include "data/scripts/static_pokemon.inc"
-FortreeCity_Movement_1A0662:: @ 81A0662
-Route119_Movement_1A0662:: @ 81A0662
-Route120_Movement_1A0662:: @ 81A0662
- set_visible
- delay_4
- set_invisible
- delay_4
- set_visible
- delay_4
- set_invisible
- delay_4
- set_visible
- delay_8
- set_invisible
- delay_8
- set_visible
- delay_8
- set_invisible
- delay_8
- set_visible
- delay_16
- set_invisible
- delay_16
- set_visible
- end_movement
-
-LittlerootTown_ProfessorBirchsLab_EventScript_1A0678:: @ 81A0678
-MossdeepCity_StevensHouse_EventScript_1A0678:: @ 81A0678
-RustboroCity_DevonCorp_2F_EventScript_1A0678:: @ 81A0678
-SlateportCity_House1_EventScript_1A0678:: @ 81A0678
- fadescreen 1
+Common_EventScript_NameReceivedPartyMon:: @ 81A0678
+ fadescreen FADE_TO_BLACK
special ChangePokemonNickname
waitstate
return
-FallarborTown_House1_EventScript_1A067F:: @ 81A067F
-GraniteCave_StevensRoom_EventScript_1A067F:: @ 81A067F
-MtPyre_Summit_EventScript_1A067F:: @ 81A067F
-SlateportCity_OceanicMuseum_2F_EventScript_1A067F:: @ 81A067F
+Common_EventScript_PlayerHandedOverTheItem:: @ 81A067F
bufferitemname 0, VAR_0x8004
- playfanfare MUS_ME_WAZA
+ playfanfare MUS_OBTAIN_TMHM
message FallarborTown_House1_Text_1A1498
waitmessage
waitfanfare
- takeitem VAR_0x8004, 1
- return
-
-EverGrandeCity_DrakesRoom_EventScript_1A0693:: @ 81A0693
-EverGrandeCity_GlaciasRoom_EventScript_1A0693:: @ 81A0693
-EverGrandeCity_PhoebesRoom_EventScript_1A0693:: @ 81A0693
-EverGrandeCity_SidneysRoom_EventScript_1A0693:: @ 81A0693
- applymovement 255, EverGrandeCity_SidneysRoom_Movement_1A0853
- waitmovement 0
- playse SE_DOOR
- setmetatile 6, 1, METATILE_EliteFour_OpenDoor_Frame, 0
- setmetatile 6, 2, METATILE_EliteFour_OpenDoor_Opening, 0
- setmetatile 0, 2, METATILE_EliteFour_RightSpotlightOff, 1
- setmetatile 1, 2, METATILE_EliteFour_LeftSpotlightOff, 1
- setmetatile 2, 2, METATILE_EliteFour_RightSpotlightOff, 1
- setmetatile 3, 2, METATILE_EliteFour_LeftSpotlightOff, 1
- setmetatile 4, 2, METATILE_EliteFour_RightSpotlightOff, 1
- setmetatile 8, 2, METATILE_EliteFour_LeftSpotlightOff, 1
- setmetatile 9, 2, METATILE_EliteFour_RightSpotlightOff, 1
- setmetatile 10, 2, METATILE_EliteFour_LeftSpotlightOff, 1
- setmetatile 11, 2, METATILE_EliteFour_RightSpotlightOff, 1
- setmetatile 12, 2, METATILE_EliteFour_LeftSpotlightOff, 1
- special DrawWholeMapView
- return
-
-EverGrandeCity_DrakesRoom_EventScript_1A0710:: @ 81A0710
-EverGrandeCity_GlaciasRoom_EventScript_1A0710:: @ 81A0710
-EverGrandeCity_PhoebesRoom_EventScript_1A0710:: @ 81A0710
-EverGrandeCity_SidneysRoom_EventScript_1A0710:: @ 81A0710
- applymovement 255, EverGrandeCity_SidneysRoom_Movement_1A0847
- waitmovement 0
- playse SE_TRACK_DOOR
- setmetatile 5, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
- setmetatile 6, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
- setmetatile 7, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
- setmetatile 5, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, 1
- setmetatile 6, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, 1
- setmetatile 7, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, 1
- special DrawWholeMapView
- return
-
-EverGrandeCity_DrakesRoom_EventScript_1A0757:: @ 81A0757
-EverGrandeCity_GlaciasRoom_EventScript_1A0757:: @ 81A0757
-EverGrandeCity_PhoebesRoom_EventScript_1A0757:: @ 81A0757
-EverGrandeCity_SidneysRoom_EventScript_1A0757:: @ 81A0757
- setmetatile 6, 1, METATILE_EliteFour_OpenDoor_Frame, 0
- setmetatile 6, 2, METATILE_EliteFour_OpenDoor_Opening, 0
- setmetatile 5, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
- setmetatile 6, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
- setmetatile 7, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
- setmetatile 5, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, 1
- setmetatile 6, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, 1
- setmetatile 7, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, 1
- setmetatile 0, 2, METATILE_EliteFour_RightSpotlightOff, 1
- setmetatile 1, 2, METATILE_EliteFour_LeftSpotlightOff, 1
- setmetatile 2, 2, METATILE_EliteFour_RightSpotlightOff, 1
- setmetatile 3, 2, METATILE_EliteFour_LeftSpotlightOff, 1
- setmetatile 4, 2, METATILE_EliteFour_RightSpotlightOff, 1
- setmetatile 8, 2, METATILE_EliteFour_LeftSpotlightOff, 1
- setmetatile 9, 2, METATILE_EliteFour_RightSpotlightOff, 1
- setmetatile 10, 2, METATILE_EliteFour_LeftSpotlightOff, 1
- setmetatile 11, 2, METATILE_EliteFour_RightSpotlightOff, 1
- setmetatile 12, 2, METATILE_EliteFour_LeftSpotlightOff, 1
- return
-
-EverGrandeCity_DrakesRoom_EventScript_1A07FA:: @ 81A07FA
-EverGrandeCity_GlaciasRoom_EventScript_1A07FA:: @ 81A07FA
-EverGrandeCity_PhoebesRoom_EventScript_1A07FA:: @ 81A07FA
-EverGrandeCity_SidneysRoom_EventScript_1A07FA:: @ 81A07FA
- setmetatile 5, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
- setmetatile 6, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
- setmetatile 7, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
- setmetatile 5, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, 1
- setmetatile 6, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, 1
- setmetatile 7, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, 1
+ removeitem VAR_0x8004, 1
return
-SlateportCity_Movement_1A0831:: @ 81A0831
- emote_question_mark
- end_movement
-
-AquaHideout_B2F_Movement_1A0833:: @ 81A0833
-EverGrandeCity_ChampionsRoom_Movement_1A0833:: @ 81A0833
-LavaridgeTown_Movement_1A0833:: @ 81A0833
-LilycoveCity_ContestLobby_Movement_1A0833:: @ 81A0833
-LilycoveCity_CoveLilyMotel_1F_Movement_1A0833:: @ 81A0833
-LittlerootTown_BrendansHouse_1F_Movement_1A0833:: @ 81A0833
-LittlerootTown_BrendansHouse_2F_Movement_1A0833:: @ 81A0833
-LittlerootTown_MaysHouse_1F_Movement_1A0833:: @ 81A0833
-MauvilleCity_House2_Movement_1A0833:: @ 81A0833
-MauvilleCity_Movement_1A0833:: @ 81A0833
-MeteorFalls_1F_1R_Movement_1A0833:: @ 81A0833
-MossdeepCity_StevensHouse_Movement_1A0833:: @ 81A0833
-MtChimney_Movement_1A0833:: @ 81A0833
-PetalburgCity_Movement_1A0833:: @ 81A0833
-Route103_Movement_1A0833:: @ 81A0833
-Route110_Movement_1A0833:: @ 81A0833
-Route110_TrickHouseEnd_Movement_1A0833:: @ 81A0833
-Route110_TrickHouseEntrance_Movement_1A0833:: @ 81A0833
-Route110_TrickHousePuzzle5_Movement_1A0833:: @ 81A0833
-RustboroCity_DevonCorp_2F_Movement_1A0833:: @ 81A0833
-RustboroCity_Movement_1A0833:: @ 81A0833
-RusturfTunnel_Movement_1A0833:: @ 81A0833
-SeafloorCavern_Room9_Movement_1A0833:: @ 81A0833
-SlateportCity_Movement_1A0833:: @ 81A0833
-SlateportCity_OceanicMuseum_1F_Movement_1A0833:: @ 81A0833
-SlateportCity_PokemonFanClub_Movement_1A0833:: @ 81A0833
-SootopolisCity_Movement_1A0833:: @ 81A0833
- emote_exclamation_mark
- end_movement
-
-EverGrandeCity_ChampionsRoom_Movement_1A0835:: @ 81A0835
-LavaridgeTown_Movement_1A0835:: @ 81A0835
-LilycoveCity_CoveLilyMotel_1F_Movement_1A0835:: @ 81A0835
-LittlerootTown_BrendansHouse_1F_Movement_1A0835:: @ 81A0835
-LittlerootTown_BrendansHouse_2F_Movement_1A0835:: @ 81A0835
-LittlerootTown_MaysHouse_1F_Movement_1A0835:: @ 81A0835
-MauvilleCity_House2_Movement_1A0835:: @ 81A0835
-MauvilleCity_Movement_1A0835:: @ 81A0835
-MeteorFalls_1F_1R_Movement_1A0835:: @ 81A0835
-MossdeepCity_StevensHouse_Movement_1A0835:: @ 81A0835
-MtChimney_Movement_1A0835:: @ 81A0835
-PetalburgCity_Movement_1A0835:: @ 81A0835
-Route103_Movement_1A0835:: @ 81A0835
-Route110_Movement_1A0835:: @ 81A0835
-Route110_TrickHouseEntrance_Movement_1A0835:: @ 81A0835
-Route110_TrickHousePuzzle5_Movement_1A0835:: @ 81A0835
-RustboroCity_DevonCorp_2F_Movement_1A0835:: @ 81A0835
-RustboroCity_Movement_1A0835:: @ 81A0835
-RusturfTunnel_Movement_1A0835:: @ 81A0835
-SeafloorCavern_Room9_Movement_1A0835:: @ 81A0835
-SlateportCity_Movement_1A0835:: @ 81A0835
-SlateportCity_OceanicMuseum_1F_Movement_1A0835:: @ 81A0835
-SlateportCity_PokemonFanClub_Movement_1A0835:: @ 81A0835
-SootopolisCity_Movement_1A0835:: @ 81A0835
- delay_16
- delay_16
- delay_16
- end_movement
-
-AquaHideout_B2F_Movement_1A0839:: @ 81A0839
-EverGrandeCity_PokemonLeague_Movement_1A0839:: @ 81A0839
-FallarborTown_House2_Movement_1A0839:: @ 81A0839
-FortreeCity_House4_Movement_1A0839:: @ 81A0839
-LilycoveCity_ContestHall_Movement_1A0839:: @ 81A0839
-LilycoveCity_CoveLilyMotel_1F_Movement_1A0839:: @ 81A0839
-LilycoveCity_DepartmentStore_1F_Movement_1A0839:: @ 81A0839
-LilycoveCity_Harbor_Movement_1A0839:: @ 81A0839
-LilycoveCity_LilycoveMuseum_1F_Movement_1A0839:: @ 81A0839
-LilycoveCity_LilycoveMuseum_2F_Movement_1A0839:: @ 81A0839
-LilycoveCity_MoveDeletersHouse_Movement_1A0839:: @ 81A0839
-LilycoveCity_Movement_1A0839:: @ 81A0839
-LittlerootTown_BrendansHouse_1F_Movement_1A0839:: @ 81A0839
-LittlerootTown_BrendansHouse_2F_Movement_1A0839:: @ 81A0839
-MauvilleCity_Movement_1A0839:: @ 81A0839
-MtChimney_Movement_1A0839:: @ 81A0839
-MtPyre_Summit_Movement_1A0839:: @ 81A0839
-OldaleTown_Movement_1A0839:: @ 81A0839
-PetalburgCity_Gym_Movement_1A0839:: @ 81A0839
-PetalburgCity_Movement_1A0839:: @ 81A0839
-Route103_Movement_1A0839:: @ 81A0839
-Route110_TrickHouseEnd_Movement_1A0839:: @ 81A0839
-Route110_TrickHouseEntrance_Movement_1A0839:: @ 81A0839
-Route110_TrickHousePuzzle5_Movement_1A0839:: @ 81A0839
-Route119_Movement_1A0839:: @ 81A0839
-RusturfTunnel_Movement_1A0839:: @ 81A0839
-SeafloorCavern_Room9_Movement_1A0839:: @ 81A0839
-SlateportCity_ContestLobby_Movement_1A0839:: @ 81A0839
-SlateportCity_Movement_1A0839:: @ 81A0839
-SlateportCity_SternsShipyard_1F_Movement_1A0839:: @ 81A0839
- face_player
- end_movement
-
-@ 81A083B
- face_away_player
- end_movement
-
-EverGrandeCity_PokemonLeague_Movement_1A083D:: @ 81A083D
-LilycoveCity_ContestHall_Movement_1A083D:: @ 81A083D
-LilycoveCity_ContestLobby_Movement_1A083D:: @ 81A083D
-LilycoveCity_CoveLilyMotel_1F_Movement_1A083D:: @ 81A083D
-LilycoveCity_House3_Movement_1A083D:: @ 81A083D
-LilycoveCity_LilycoveMuseum_1F_Movement_1A083D:: @ 81A083D
-LilycoveCity_Movement_1A083D:: @ 81A083D
-LittlerootTown_Movement_1A083D:: @ 81A083D
-MauvilleCity_GameCorner_Movement_1A083D:: @ 81A083D
-MauvilleCity_Movement_1A083D:: @ 81A083D
-MossdeepCity_Movement_1A083D:: @ 81A083D
-MossdeepCity_SpaceCenter_1F_Movement_1A083D:: @ 81A083D
-MtChimney_Movement_1A083D:: @ 81A083D
-OldaleTown_Movement_1A083D:: @ 81A083D
-PetalburgCity_Movement_1A083D:: @ 81A083D
-Route109_Movement_1A083D:: @ 81A083D
-Route110_Movement_1A083D:: @ 81A083D
-Route111_WinstrateFamilysHouse_Movement_1A083D:: @ 81A083D
-Route119_Movement_1A083D:: @ 81A083D
-RustboroCity_DevonCorp_3F_Movement_1A083D:: @ 81A083D
-RustboroCity_Movement_1A083D:: @ 81A083D
-RusturfTunnel_Movement_1A083D:: @ 81A083D
-SlateportCity_ContestHall_Movement_1A083D:: @ 81A083D
-SlateportCity_ContestLobby_Movement_1A083D:: @ 81A083D
-SlateportCity_Harbor_Movement_1A083D:: @ 81A083D
-SlateportCity_Movement_1A083D:: @ 81A083D
-SlateportCity_OceanicMuseum_2F_Movement_1A083D:: @ 81A083D
-SlateportCity_SternsShipyard_1F_Movement_1A083D:: @ 81A083D
-VerdanturfTown_Movement_1A083D:: @ 81A083D
- face_original_direction
- end_movement
-
-Movement_1A083F:: @ 81A083F
-DewfordTown_Hall_Movement_1A083F:: @ 81A083F
-EverGrandeCity_ChampionsRoom_Movement_1A083F:: @ 81A083F
-EverGrandeCity_HallOfFame_Movement_1A083F:: @ 81A083F
-LavaridgeTown_Movement_1A083F:: @ 81A083F
-LilycoveCity_PokemonTrainerFanClub_Movement_1A083F:: @ 81A083F
-LittlerootTown_BrendansHouse_1F_Movement_1A083F:: @ 81A083F
-LittlerootTown_BrendansHouse_2F_Movement_1A083F:: @ 81A083F
-LittlerootTown_MaysHouse_1F_Movement_1A083F:: @ 81A083F
-LittlerootTown_Movement_1A083F:: @ 81A083F
-MeteorFalls_1F_1R_Movement_1A083F:: @ 81A083F
-MossdeepCity_StevensHouse_Movement_1A083F:: @ 81A083F
-MtChimney_Movement_1A083F:: @ 81A083F
-MtPyre_Summit_Movement_1A083F:: @ 81A083F
-OldaleTown_PokemonCenter_1F_Movement_1A083F:: @ 81A083F
-PetalburgCity_Gym_Movement_1A083F:: @ 81A083F
-PetalburgCity_Movement_1A083F:: @ 81A083F
-PetalburgWoods_Movement_1A083F:: @ 81A083F
-Route101_Movement_1A083F:: @ 81A083F
-Route110_TrickHouseEnd_Movement_1A083F:: @ 81A083F
-Route111_Movement_1A083F:: @ 81A083F
-Route116_Movement_1A083F:: @ 81A083F
-Route120_Movement_1A083F:: @ 81A083F
-Route128_Movement_1A083F:: @ 81A083F
-RustboroCity_Movement_1A083F:: @ 81A083F
-SeafloorCavern_Room9_Movement_1A083F:: @ 81A083F
-SlateportCity_Movement_1A083F:: @ 81A083F
-SlateportCity_OceanicMuseum_1F_Movement_1A083F:: @ 81A083F
-SlateportCity_OceanicMuseum_2F_Movement_1A083F:: @ 81A083F
-SootopolisCity_Movement_1A083F:: @ 81A083F
-VictoryRoad_1F_Movement_1A083F:: @ 81A083F
- walk_in_place_fastest_left
- end_movement
-
-AquaHideout_B2F_Movement_1A0841:: @ 81A0841
-CaveOfOrigin_B4F_Movement_1A0841:: @ 81A0841
-DewfordTown_Hall_Movement_1A0841:: @ 81A0841
-EverGrandeCity_ChampionsRoom_Movement_1A0841:: @ 81A0841
-EverGrandeCity_HallOfFame_Movement_1A0841:: @ 81A0841
-LilycoveCity_Harbor_Movement_1A0841:: @ 81A0841
-LittlerootTown_BrendansHouse_1F_Movement_1A0841:: @ 81A0841
-LittlerootTown_Movement_1A0841:: @ 81A0841
-MeteorFalls_1F_1R_Movement_1A0841:: @ 81A0841
-MossdeepCity_GameCorner_1F_Movement_1A0841:: @ 81A0841
-MtPyre_Summit_Movement_1A0841:: @ 81A0841
-NewMauville_Entrance_Movement_1A0841:: @ 81A0841
-PetalburgCity_Gym_Movement_1A0841:: @ 81A0841
-PetalburgCity_Movement_1A0841:: @ 81A0841
-PetalburgWoods_Movement_1A0841:: @ 81A0841
-Route110_TrickHouseEnd_Movement_1A0841:: @ 81A0841
-Route110_TrickHouseEntrance_Movement_1A0841:: @ 81A0841
-Route111_Movement_1A0841:: @ 81A0841
-Route118_Movement_1A0841:: @ 81A0841
-Route120_Movement_1A0841:: @ 81A0841
-Route121_SafariZoneEntrance_Movement_1A0841:: @ 81A0841
-Route128_Movement_1A0841:: @ 81A0841
-RustboroCity_Movement_1A0841:: @ 81A0841
-RusturfTunnel_Movement_1A0841:: @ 81A0841
-SeafloorCavern_Room9_Movement_1A0841:: @ 81A0841
-SlateportCity_Harbor_Movement_1A0841:: @ 81A0841
-SlateportCity_Movement_1A0841:: @ 81A0841
-SlateportCity_OceanicMuseum_2F_Movement_1A0841:: @ 81A0841
- walk_in_place_fastest_up
- end_movement
-
-AquaHideout_B2F_Movement_1A0843:: @ 81A0843
-DewfordTown_Hall_Movement_1A0843:: @ 81A0843
-EverGrandeCity_ChampionsRoom_Movement_1A0843:: @ 81A0843
-EverGrandeCity_HallOfFame_Movement_1A0843:: @ 81A0843
-LavaridgeTown_Movement_1A0843:: @ 81A0843
-LilycoveCity_DepartmentStore_1F_Movement_1A0843:: @ 81A0843
-LilycoveCity_PokemonTrainerFanClub_Movement_1A0843:: @ 81A0843
-LittlerootTown_BrendansHouse_1F_Movement_1A0843:: @ 81A0843
-LittlerootTown_BrendansHouse_2F_Movement_1A0843:: @ 81A0843
-LittlerootTown_MaysHouse_1F_Movement_1A0843:: @ 81A0843
-LittlerootTown_Movement_1A0843:: @ 81A0843
-LittlerootTown_ProfessorBirchsLab_Movement_1A0843:: @ 81A0843
-MauvilleCity_Movement_1A0843:: @ 81A0843
-MtPyre_Summit_Movement_1A0843:: @ 81A0843
-OldaleTown_Movement_1A0843:: @ 81A0843
-PetalburgCity_Gym_Movement_1A0843:: @ 81A0843
-PetalburgCity_Movement_1A0843:: @ 81A0843
-Route101_Movement_1A0843:: @ 81A0843
-Route110_Movement_1A0843:: @ 81A0843
-Route110_TrickHouseEnd_Movement_1A0843:: @ 81A0843
-Route116_Movement_1A0843:: @ 81A0843
-Route120_Movement_1A0843:: @ 81A0843
-Route128_Movement_1A0843:: @ 81A0843
-RustboroCity_Movement_1A0843:: @ 81A0843
-SlateportCity_Harbor_Movement_1A0843:: @ 81A0843
-SlateportCity_Movement_1A0843:: @ 81A0843
-SlateportCity_OceanicMuseum_1F_Movement_1A0843:: @ 81A0843
-SlateportCity_OceanicMuseum_2F_Movement_1A0843:: @ 81A0843
-SootopolisCity_Movement_1A0843:: @ 81A0843
- walk_in_place_fastest_right
- end_movement
-
-BattleTower_Outside_Movement_1A0845:: @ 81A0845
-DewfordTown_Hall_Movement_1A0845:: @ 81A0845
-EverGrandeCity_ChampionsRoom_Movement_1A0845:: @ 81A0845
-LilycoveCity_CoveLilyMotel_1F_Movement_1A0845:: @ 81A0845
-LilycoveCity_DepartmentStoreElevator_Movement_1A0845:: @ 81A0845
-LilycoveCity_Movement_1A0845:: @ 81A0845
-LilycoveCity_PokemonTrainerFanClub_Movement_1A0845:: @ 81A0845
-LittlerootTown_Movement_1A0845:: @ 81A0845
-MauvilleCity_Movement_1A0845:: @ 81A0845
-MeteorFalls_1F_1R_Movement_1A0845:: @ 81A0845
-MtPyre_Summit_Movement_1A0845:: @ 81A0845
-OldaleTown_PokemonCenter_1F_Movement_1A0845:: @ 81A0845
-PetalburgCity_Gym_Movement_1A0845:: @ 81A0845
-PetalburgCity_Movement_1A0845:: @ 81A0845
-PetalburgWoods_Movement_1A0845:: @ 81A0845
-Route110_Movement_1A0845:: @ 81A0845
-Route110_TrickHouseEnd_Movement_1A0845:: @ 81A0845
-Route119_Movement_1A0845:: @ 81A0845
-Route120_Movement_1A0845:: @ 81A0845
-Route128_Movement_1A0845:: @ 81A0845
-RustboroCity_Movement_1A0845:: @ 81A0845
-RustboroCity_PokemonSchool_Movement_1A0845:: @ 81A0845
-RusturfTunnel_Movement_1A0845:: @ 81A0845
-SeafloorCavern_Room9_Movement_1A0845:: @ 81A0845
-SlateportCity_Harbor_Movement_1A0845:: @ 81A0845
-SlateportCity_Movement_1A0845:: @ 81A0845
-SlateportCity_OceanicMuseum_2F_Movement_1A0845:: @ 81A0845
-SootopolisCity_Movement_1A0845:: @ 81A0845
-SouthernIsland_Exterior_Movement_1A0845:: @ 81A0845
- walk_in_place_fastest_down
- end_movement
-
-EverGrandeCity_SidneysRoom_Movement_1A0847:: @ 81A0847
- walk_up
- walk_up
- walk_up
- walk_up
- walk_up
- walk_up
- end_movement
-
-EverGrandeCity_ChampionsRoom_Movement_1A084E:: @ 81A084E
- walk_up
- walk_up
- walk_up
- walk_up
- end_movement
-
-EverGrandeCity_SidneysRoom_Movement_1A0853:: @ 81A0853
- delay_16
- delay_16
- end_movement
-
-Route110_TrickHouseEntrance_Movement_1A0856:: @ 81A0856
- walk_up
- end_movement
-
-@ 81A0858
- walk_up
- walk_up
- end_movement
-
-PictureBookShelfScript:: @ 81A085B
- msgbox PictureBookShelfText, 3
- end
-
-BookshelfScript:: @ 81A0864
- msgbox BookshelfText, 3
- end
-
-PokemonCenterBookshelfScript:: @ 81A086D
- msgbox PokemonCenterBookshelfText, 3
- end
-
-VaseScript:: @ 81A0876
- msgbox VaseText, 3
- end
-
-TrashCanScript:: @ 81A087F
- msgbox TrashCanText, 3
- end
-
-ShopShelfScript:: @ 81A0888
- msgbox ShopShelfText, 3
- end
-
-BlueprintScript:: @ 81A0891
- msgbox BlueprintText, 3
- end
-
-SampleMessage1:: @ 81A089A
- .string "This is sample message 1.\p"
- .string "Welcome to the world of\n"
- .string "POKéMON AGB!\l"
- .string "We hope you enjoy this!$"
-
-SampleMessage2:: @ 81A08F1
- .string "This is sample message 2.\p"
- .string "Welcome to the world of\n"
- .string "POKéMON AGB!\l"
- .string "We hope you enjoy this!$"
-
-SampleMessage3:: @ 81A0948
- .string "This is sample message 3.\p"
- .string "Welcome to the world of\n"
- .string "POKéMON AGB!\l"
- .string "We hope you enjoy this!$"
-
-UnusedMixRecordsPromptText: @ 81A099F
- .string "Would you like to mix records with other\n"
- .string "TRAINERS?$"
-
-UnusedMixRecordsSeeYouAgainText: @ 81A09D2
- .string "We hope to see you again!$"
+ .include "data/scripts/elite_four.inc"
+ .include "data/scripts/movement.inc"
+ .include "data/scripts/check_furniture.inc"
+ .include "data/text/sample_message.inc"
+ .include "data/text/record_mix.inc"
+ .include "data/text/pc.inc"
+ .include "data/text/pkmn_center_nurse.inc"
+ .include "data/text/mart_clerk.inc"
+ .include "data/text/obtain_item.inc"
-UnknownString_81A09EC: @ 81A09EC
- .string "{PLAYER} booted up the PC.$"
-
-gPCText_WhichPCShouldBeAccessed:: @ 81A0A01
- .string "Which PC should be accessed?$"
-
-UnknownString_81A0A1E: @ 81A0A1E
- .string "Accessed someone's PC.$"
-
-UnknownString_81A0A35: @ 81A0A35
- .string "POKéMON Storage System opened.$"
-
-UnknownString_81A0A54: @ 81A0A54
- .string "Accessed {PLAYER}'s PC.$"
-
-UnknownString_81A0A66: @ 81A0A66
- .string "Accessed LANETTE's PC.$"
-
-gText_NurseJoy_Welcome:: @ 81A0A7D
- .string "Hello, and welcome to the POKéMON\n"
- .string "CENTER.\p"
- .string "We restore your tired POKéMON to\n"
- .string "full health.\p"
- .string "Would you like to rest your POKéMON?$"
-
-gText_NurseJoy_WeHopeToSeeYouAgain:: @ 81A0AFA
- .string "We hope to see you again!$"
-
-gText_NurseJoy_ThankYouForWaiting:: @ 81A0B14
- .string "Thank you for waiting.\p"
- .string "We've restored your POKéMON to\n"
- .string "full health.$"
-
-UnknownString_81A0B57: @ 81A0B57
- .string "Welcome to the POKéMON CABLE CLUB\n"
- .string "TRADE CENTER.$"
-
-UnknownString_81A0B87: @ 81A0B87
- .string "Welcome to the POKéMON CABLE CLUB\n"
- .string "COLOSSEUM.$"
-
-UnknownString_81A0BB4: @ 81A0BB4
- .string "Welcome to the POKéMON CABLE CLUB\n"
- .string "TIME CAPSULE.$"
-
-EverGrandeCity_PokemonLeague_Text_1A0BE4:: @ 81A0BE4
-FallarborTown_Mart_Text_1A0BE4:: @ 81A0BE4
-FortreeCity_DecorationShop_Text_1A0BE4:: @ 81A0BE4
-FortreeCity_Mart_Text_1A0BE4:: @ 81A0BE4
-LavaridgeTown_Mart_Text_1A0BE4:: @ 81A0BE4
-LilycoveCity_DepartmentStoreRooftop_Text_1A0BE4:: @ 81A0BE4
-LilycoveCity_DepartmentStore_2F_Text_1A0BE4:: @ 81A0BE4
-LilycoveCity_DepartmentStore_3F_Text_1A0BE4:: @ 81A0BE4
-LilycoveCity_DepartmentStore_4F_Text_1A0BE4:: @ 81A0BE4
-LilycoveCity_DepartmentStore_5F_Text_1A0BE4:: @ 81A0BE4
-MauvilleCity_Mart_Text_1A0BE4:: @ 81A0BE4
-MossdeepCity_Mart_Text_1A0BE4:: @ 81A0BE4
-OldaleTown_Mart_Text_1A0BE4:: @ 81A0BE4
-PetalburgCity_Mart_Text_1A0BE4:: @ 81A0BE4
-RustboroCity_Mart_Text_1A0BE4:: @ 81A0BE4
-SlateportCity_Mart_Text_1A0BE4:: @ 81A0BE4
-SlateportCity_Text_1A0BE4:: @ 81A0BE4
-SootopolisCity_Mart_Text_1A0BE4:: @ 81A0BE4
-VerdanturfTown_Mart_Text_1A0BE4:: @ 81A0BE4
- .string "Welcome!\p"
- .string "How may I serve you?$"
-
-EverGrandeCity_PokemonLeague_Text_1A0C02:: @ 81A0C02
-FallarborTown_Mart_Text_1A0C02:: @ 81A0C02
-FortreeCity_DecorationShop_Text_1A0C02:: @ 81A0C02
-FortreeCity_Mart_Text_1A0C02:: @ 81A0C02
-LavaridgeTown_HerbShop_Text_1A0C02:: @ 81A0C02
-LavaridgeTown_Mart_Text_1A0C02:: @ 81A0C02
-LilycoveCity_DepartmentStoreRooftop_Text_1A0C02:: @ 81A0C02
-LilycoveCity_DepartmentStore_2F_Text_1A0C02:: @ 81A0C02
-LilycoveCity_DepartmentStore_3F_Text_1A0C02:: @ 81A0C02
-LilycoveCity_DepartmentStore_4F_Text_1A0C02:: @ 81A0C02
-LilycoveCity_DepartmentStore_5F_Text_1A0C02:: @ 81A0C02
-MauvilleCity_Mart_Text_1A0C02:: @ 81A0C02
-MossdeepCity_Mart_Text_1A0C02:: @ 81A0C02
-OldaleTown_Mart_Text_1A0C02:: @ 81A0C02
-PetalburgCity_Mart_Text_1A0C02:: @ 81A0C02
-Route104_PrettyPetalFlowerShop_Text_1A0C02:: @ 81A0C02
-RustboroCity_Mart_Text_1A0C02:: @ 81A0C02
-SlateportCity_Mart_Text_1A0C02:: @ 81A0C02
-SlateportCity_Text_1A0C02:: @ 81A0C02
-SootopolisCity_Mart_Text_1A0C02:: @ 81A0C02
-VerdanturfTown_Mart_Text_1A0C02:: @ 81A0C02
- .string "Please come again!$"
-
-UnknownString_81A0C15: @ 81A0C15
- .string "Welcome!\p"
- .string "We're having a discount sale today!$"
-
-Route104_PrettyPetalFlowerShop_Text_1A0C42:: @ 81A0C42
- .string "{PLAYER}{KUN}, welcome!\p"
- .string "What can I do for you?$"
-
-Message_ObtainedItem: @ 81A0C68
- .string "Obtained the {STR_VAR_2}.$"
-
-LilycoveCity_DepartmentStoreRooftop_Text_1A0C79:: @ 81A0C79
- .string "The BAG is full...$"
-
-LilycoveCity_DepartmentStoreRooftop_Text_1A0C8C:: @ 81A0C8C
-Message_PutAwayItem:
- .string "{PLAYER} put away the {STR_VAR_2}\n"
- .string "in the {STR_VAR_3} POCKET.$"
-
-Message_FoundOneItem:
- .string "{PLAYER} found one {STR_VAR_2}!$"
-
-MauvilleCity_GameCorner_Text_1A0CC2:: @ 81A0CC2
-MauvilleCity_Text_1A0CC2:: @ 81A0CC2
-MtChimney_Text_1A0CC2:: @ 81A0CC2
-OldaleTown_Text_1A0CC2:: @ 81A0CC2
-Route109_SeashoreHouse_Text_1A0CC2:: @ 81A0CC2
-Message_BagFull:
- .string "Too bad!\n"
- .string "The BAG is full...$"
-
-Message_ObtainedDecoration: @ 81A0CDE
- .string "Obtained the {STR_VAR_2}.$"
-
-BattleTower_Lobby_Text_1A0CEF:: @ 81A0CEF
-MauvilleCity_GameCorner_Text_1A0CEF:: @ 81A0CEF
-Route114_LanettesHouse_Text_1A0CEF:: @ 81A0CEF
-SootopolisCity_House6_Text_1A0CEF:: @ 81A0CEF
- .string "Too bad! There's no room left for\n"
- .string "another {STR_VAR_2}...$"
-
-Message_TransferredToPC: @ 81A0D1F
- .string "The {STR_VAR_2} was transferred\n"
- .string "to the PC.$"
-
-PetalburgCity_Text_1A0D41:: @ 81A0D41
+Text_PokemartSign:: @ 81A0D41
.string "“Selected items for your convenience!”\n"
.string "POKéMON MART$"
-PetalburgCity_Text_1A0D75:: @ 81A0D75
+Text_PokemonCenterSign:: @ 81A0D75
.string "“Rejuvenate your tired partners!”\n"
.string "POKéMON CENTER$"
@@ -3244,7 +1139,7 @@ FallarborTown_House1_Text_1A1498:: @ 81A1498
.string "{STR_VAR_1}.$"
Event_NoRegisteredItem:: @ 81A14AF
- msgbox Text_NoRegisteredItem, 3
+ msgbox Text_NoRegisteredItem, MSGBOX_SIGN
end
gUnknown_081A14B8:: @ 81A14B8
@@ -3262,1099 +1157,26 @@ EventScript_1A14CA::
waitbuttonpress
special sub_8081924
waitstate
- fadescreen 1
+ fadescreen FADE_TO_BLACK
special sp0C8_whiteout_maybe
waitstate
end
-OldaleTown_PokemonCenter_1F_EventScript_1A14DC:: @ 81A14DC
-PacifidlogTown_House2_EventScript_1A14DC:: @ 81A14DC
-Route101_EventScript_1A14DC:: @ 81A14DC
+Common_EventScript_Return:: @ 81A14DC
return
.include "data/scripts/debug.inc"
.include "data/scripts/berry_tree.inc"
.include "data/text/berry_tree.inc"
-
-UnknownString_81A1948: @ 81A1948
- .string "If some vines drop down, this tree can\n"
- .string "be climbed.$"
-
-UnknownString_81A197B: @ 81A197B
- .string "If some vines drop down, this tree can\n"
- .string "be climbed.\p"
- .string "Use the SECRET POWER?$"
-
-UnknownString_81A19C4: @ 81A19C4
- .string "A thick vine dropped down!$"
-
-UnknownString_81A19DF: @ 81A19DF
- .string "Want to make your SECRET BASE here?$"
-
-UnknownString_81A1A03: @ 81A1A03
- .string "If this clump of grass can be moved,\n"
- .string "it might be possible to go inside.$"
-
-UnknownString_81A1A4B: @ 81A1A4B
- .string "If this clump of grass can be moved,\n"
- .string "it might be possible to go inside.\p"
- .string "Use the SECRET POWER?$"
-
-UnknownString_81A1AA9: @ 81A1AA9
- .string "Discovered a small entrance!$"
-
-UnknownString_81A1AC6: @ 81A1AC6
- .string "Want to make your SECRET BASE here?$"
-
-SecretBase_RedCave1_Text_1A1AEA:: @ 81A1AEA
- .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_1A1B83:: @ 81A1B83
- .string "Okay!\n"
- .string "Here we come!$"
-
-SecretBase_RedCave1_Text_1A1B97:: @ 81A1B97
- .string "Hunh?\n"
- .string "Oh, you can't now...$"
-
-UnknownString_81A1BB2:: @ 81A1BB2
- .string "Waaargh! You're too strong!\n"
- .string "About me losing... Please keep it secret!$"
-
-SecretBase_RedCave1_Text_1A1BF8:: @ 81A1BF8
- .string "What do you think of my SECRET BASE?\n"
- .string "Come visit me again tomorrow.$"
-
-SecretBase_RedCave1_Text_1A1C3B:: @ 81A1C3B
- .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_1A1CB2:: @ 81A1CB2
- .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?\p"
- .string "Oh, would you like to have a battle?$"
-
-SecretBase_RedCave1_Text_1A1D48:: @ 81A1D48
- .string "Okay, here goes!$"
-
-SecretBase_RedCave1_Text_1A1D59:: @ 81A1D59
- .string "Oh...\n"
- .string "You can't now, okay.$"
-
-UnknownString_81A1D74:: @ 81A1D74
- .string "Hmmm... It's our loss...\n"
- .string "But don't tell anyone!\l"
- .string "It's a confidential secret!$"
-
-SecretBase_RedCave1_Text_1A1DC0:: @ 81A1DC0
- .string "If you're in this area again, I hope\n"
- .string "you'll visit me.$"
-
-SecretBase_RedCave1_Text_1A1DF6:: @ 81A1DF6
- .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_1A1E67:: @ 81A1E67
- .string "This is a popular spot.\n"
- .string "It's always taken.\p"
- .string "Oh! Were you thinking about taking this\n"
- .string "spot, too?\p"
- .string "I'll tell you what, you can have this\n"
- .string "spot if you can beat me.$"
-
-SecretBase_RedCave1_Text_1A1F04:: @ 81A1F04
- .string "Okay!\n"
- .string "I'm going to defend my SECRET BASE!$"
-
-SecretBase_RedCave1_Text_1A1F2E:: @ 81A1F2E
- .string "Hunh? Is that right?\n"
- .string "You're not interested in this spot?$"
-
-UnknownString_81A1F67:: @ 81A1F67
- .string "I can't keep going!\n"
- .string "I surrender!$"
-
-SecretBase_RedCave1_Text_1A1F88:: @ 81A1F88
- .string "Okay, when I move one day, this place\n"
- .string "will be yours!$"
-
-SecretBase_RedCave1_Text_1A1FBD:: @ 81A1FBD
- .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_1A2026:: @ 81A2026
- .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_1A2095:: @ 81A2095
- .string "I'm going to go all out!$"
-
-SecretBase_RedCave1_Text_1A20AE:: @ 81A20AE
- .string "Oh.\n"
- .string "Some other time, then!$"
-
-UnknownString_81A20C9:: @ 81A20C9
- .string "Hmm... I've still got lots to learn.\n"
- .string "I have to study some more.$"
-
-SecretBase_RedCave1_Text_1A2109:: @ 81A2109
- .string "Thanks for battling with me.\n"
- .string "Please come back again tomorrow.$"
-
-SecretBase_RedCave1_Text_1A2147:: @ 81A2147
- .string "Welcome to my POKéMON LAB.\p"
- .string "I carry out research on battling in\n"
- .string "secrecy.$"
-
-SecretBase_RedCave1_Text_1A218F:: @ 81A218F
- .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_1A2220:: @ 81A2220
- .string "That's the way!$"
-
-SecretBase_RedCave1_Text_1A2230:: @ 81A2230
- .string "When you're ready, give me a shout!$"
-
-UnknownString_81A2254:: @ 81A2254
- .string "Aww! Done in!\n"
- .string "But it's still fun to battle!$"
-
-SecretBase_RedCave1_Text_1A2280:: @ 81A2280
- .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_1A22FA:: @ 81A22FA
- .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_1A236A:: @ 81A236A
- .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_1A2405:: @ 81A2405
- .string "Thank you.\n"
- .string "Shall we begin?$"
-
-SecretBase_RedCave1_Text_1A2420:: @ 81A2420
- .string "Oh.\n"
- .string "How disappointing...$"
-
-UnknownString_81A2439:: @ 81A2439
- .string "I concede...$"
-
-SecretBase_RedCave1_Text_1A2446:: @ 81A2446
- .string "That was all in good fun!\n"
- .string "I should go enjoy shopping now.$"
-
-SecretBase_RedCave1_Text_1A2480:: @ 81A2480
- .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_1A24E1:: @ 81A24E1
- .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_1A256F:: @ 81A256F
- .string "I'm not going down easily!$"
-
-SecretBase_RedCave1_Text_1A258A:: @ 81A258A
- .string "Oh... Are you maybe tired from searching\n"
- .string "for this place?$"
-
-UnknownString_81A25C3:: @ 81A25C3
- .string "I went down...$"
-
-SecretBase_RedCave1_Text_1A25D2:: @ 81A25D2
- .string "Where's your SECRET BASE?\n"
- .string "I should go visit you there.$"
-
-SecretBase_RedCave1_Text_1A2609:: @ 81A2609
- .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_1A2663:: @ 81A2663
- .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_1A2710:: @ 81A2710
- .string "This is my SECRET BASE.\n"
- .string "I can't lose!$"
-
-SecretBase_RedCave1_Text_1A2736:: @ 81A2736
- .string "I'll battle with you anytime.$"
-
-UnknownString_81A2754:: @ 81A2754
- .string "Huh?\n"
- .string "Did I just lose?$"
-
-SecretBase_RedCave1_Text_1A276A:: @ 81A276A
- .string "I won't lose at collecting decorations.\n"
- .string "Come visit again!$"
-
-SecretBase_RedCave1_Text_1A27A4:: @ 81A27A4
- .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_1A2830:: @ 81A2830
- .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_1A28D7:: @ 81A28D7
- .string "Show me what you're made of!$"
-
-SecretBase_RedCave1_Text_1A28F4:: @ 81A28F4
- .string "I guess there are times when you're not\n"
- .string "into it.$"
-
-UnknownString_81A2925:: @ 81A2925
- .string "I know exactly what you're made of now.$"
-
-SecretBase_RedCave1_Text_1A294D:: @ 81A294D
- .string "We can both become stronger.\n"
- .string "Let's keep at it!$"
-
-SecretBase_RedCave1_Text_1A297C:: @ 81A297C
- .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_1A2A13:: @ 81A2A13
- .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_1A2AE2:: @ 81A2AE2
- .string "There's no holding back!$"
-
-SecretBase_RedCave1_Text_1A2AFB:: @ 81A2AFB
- .string "I'll be happy to demonstrate my style\n"
- .string "anytime.$"
-
-UnknownString_81A2B2A:: @ 81A2B2A
- .string "You're supremely talented!\n"
- .string "Your power seems to be limitless...$"
-
-SecretBase_RedCave1_Text_1A2B69:: @ 81A2B69
- .string "What did you think of my style?\n"
- .string "I'll keep on polishing it!$"
-
-SecretBase_RedCave1_Text_1A2BA4:: @ 81A2BA4
- .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?$"
-
-gUnknown_081A2C51:: @ 81A2C51
- special sub_80BB70C
- special CheckPlayerHasSecretBase
- compare VAR_RESULT, 1
- goto_if_eq AskToMoveSecretBase
- checkpartymove MOVE_SECRET_POWER
- setfieldeffectargument 0, VAR_RESULT
- buffermovename 1, MOVE_SECRET_POWER
- compare VAR_0x8007, 1
- goto_if_eq EventScript_1A2CB0
- compare VAR_0x8007, 2
- goto_if_eq EventScript_1A2CB0
- compare VAR_0x8007, 3
- goto_if_eq EventScript_1A2CB0
- compare VAR_0x8007, 4
- goto_if_eq EventScript_1A2CB0
- compare VAR_0x8007, 5
- goto_if_eq EventScript_1A2D08
- compare VAR_0x8007, 6
- goto_if_eq EventScript_1A2D60
- end
-
-EventScript_1A2CB0:
- lockall
- compare VAR_RESULT, 6
- goto_if_eq EventScript_1A2CF1
- bufferpartymonnick 0, VAR_RESULT
- msgbox UnknownString_8198F34, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq EventScript_1A2F3A
- msgbox UsedCutRockSmashText, 4
- closemessage
- dofieldeffect FLDEFF_USE_SECRET_POWER_CAVE
- waitstate
- goto EventScript_1A2CFA
- end
-
-DoSecretBaseCaveFieldEffectScript:: @ 81A2CE6
- lockall
- dofieldeffect FLDEFF_USE_SECRET_POWER_CAVE
- waitstate
- goto EventScript_1A2CFA
- end
-
-EventScript_1A2CF1:
- msgbox UnknownString_8198F10, 3
- end
-
-EventScript_1A2CFA:
- msgbox UnknownString_8198F6E, 4
- goto EventScript_1A2DB8
- end
-
-EventScript_1A2D08:
- lockall
- compare VAR_RESULT, 6
- goto_if_eq EventScript_1A2D49
- bufferpartymonnick 0, VAR_RESULT
- msgbox UnknownString_81A197B, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq EventScript_1A2F3A
- msgbox UsedCutRockSmashText, 4
- closemessage
- dofieldeffect FLDEFF_USE_SECRET_POWER_TREE
- waitstate
- goto EventScript_1A2D52
- end
-
-DoSecretBaseTreeFieldEffectScript:: @ 81A2D3E
- lockall
- dofieldeffect FLDEFF_USE_SECRET_POWER_TREE
- waitstate
- goto EventScript_1A2D52
- end
-
-EventScript_1A2D49:
- msgbox UnknownString_81A1948, 3
- end
-
-EventScript_1A2D52:
- msgbox UnknownString_81A19C4, 4
- goto EventScript_1A2DB8
- end
-
-EventScript_1A2D60:
- lockall
- compare VAR_RESULT, 6
- goto_if_eq EventScript_1A2DA1
- bufferpartymonnick 0, VAR_RESULT
- msgbox UnknownString_81A1A4B, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq EventScript_1A2F3A
- msgbox UsedCutRockSmashText, 4
- closemessage
- dofieldeffect FLDEFF_USE_SECRET_POWER_SHRUB
- waitstate
- goto EventScript_1A2DAA
- end
-
-DoSecretBaseShrubFieldEffectScript:: @ 81A2D96
- lockall
- dofieldeffect FLDEFF_USE_SECRET_POWER_SHRUB
- waitstate
- goto EventScript_1A2DAA
- end
-
-EventScript_1A2DA1:
- msgbox UnknownString_81A1A03, 3
- end
-
-EventScript_1A2DAA:
- msgbox UnknownString_81A1AA9, 4
- goto EventScript_1A2DB8
- end
-
-EventScript_1A2DB8:
- closemessage
- playse SE_KAIDAN
- setvar VAR_0x4097, 0
- setflag FLAG_DECORATION_1
- special sub_80BB8CC
- special sub_80BBAF0
- setvar VAR_0x8004, 0
- setvar VAR_0x8005, 0
- special sub_80BBDD0
- setvar VAR_0x4089, 1
- waitstate
- end
-
-SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE
- applymovement 255, SecretBase_RedCave1_Movement_1A2E11
- waitmovement 0
- setvar VAR_0x4097, 1
- msgbox SecretBase_RedCave1_Text_198F89, MSGBOX_YESNO
- compare VAR_RESULT, YES
- goto_if_eq SecretBase_RedCave1_EventScript_1A2E08
- closemessage
- playse SE_KAIDAN
- special sub_80BC440
- end
-
-SecretBase_RedCave1_EventScript_1A2E08:: @ 81A2E08
- closemessage
- setflag FLAG_RECEIVED_SECRET_POWER
- special sub_80BBC78
- waitstate
- end
-
-SecretBase_RedCave1_Movement_1A2E11:: @ 81A2E11
- walk_up
- walk_up
- end_movement
-
-gUnknown_081A2E14:: @ 81A2E14
- lockall
- setvar VAR_0x4097, 1
- playse SE_KAIDAN
- special sub_80BC114
- compare VAR_RESULT, 0
- goto_if_eq EventScript_1A2E38
- clearflag FLAG_DECORATION_1
- special sub_80BBAF0
- setvar VAR_0x4089, 0
- waitstate
- end
-
-EventScript_1A2E38:
- setflag FLAG_DECORATION_1
- special sub_80BBAF0
- setvar VAR_0x4089, 0
- waitstate
- end
-
-AskToMoveSecretBase:
- checkpartymove MOVE_SECRET_POWER
- compare VAR_RESULT, 6
- goto_if_eq EventScript_1A2EF7
- setfieldeffectargument 0, VAR_RESULT
- setorcopyvar VAR_0x8004, VAR_RESULT
- lockall
- special GetSecretBaseNearbyMapName
- msgbox UnknownString_81A3C71, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq EventScript_1A2F3A
- msgbox UnknownString_81A38FB, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq EventScript_1A2F3A
- fadescreen 1
- special MoveSecretBase
- closemessage
- fadescreen 0
- msgbox UnknownString_81A3CC9, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq EventScript_1A2F3A
- bufferpartymonnick 0, VAR_0x8004
- buffermovename 1, MOVE_SECRET_POWER
- msgbox UsedCutRockSmashText, 4
- closemessage
- closemessage
- compare VAR_0x8007, 1
- goto_if_eq DoSecretBaseCaveFieldEffectScript
- compare VAR_0x8007, 2
- goto_if_eq DoSecretBaseCaveFieldEffectScript
- compare VAR_0x8007, 3
- goto_if_eq DoSecretBaseCaveFieldEffectScript
- compare VAR_0x8007, 4
- goto_if_eq DoSecretBaseCaveFieldEffectScript
- compare VAR_0x8007, 5
- goto_if_eq DoSecretBaseTreeFieldEffectScript
- compare VAR_0x8007, 6
- goto_if_eq DoSecretBaseShrubFieldEffectScript
- releaseall
- end
-
-EventScript_1A2EF7::
- compare VAR_0x8007, 1
- goto_if_eq EventScript_1A2CF1
- compare VAR_0x8007, 2
- goto_if_eq EventScript_1A2CF1
- compare VAR_0x8007, 3
- goto_if_eq EventScript_1A2CF1
- compare VAR_0x8007, 4
- goto_if_eq EventScript_1A2CF1
- compare VAR_0x8007, 5
- goto_if_eq EventScript_1A2D49
- compare VAR_0x8007, 6
- goto_if_eq EventScript_1A2DA1
- end
-
-EventScript_1A2F3A::
- closemessage
- releaseall
- end
-
-LittlerootTown_BrendansHouse_2F_EventScript_1A2F3D:: @ 81A2F3D
-LittlerootTown_MaysHouse_2F_EventScript_1A2F3D:: @ 81A2F3D
-SecretBase_RedCave1_EventScript_1A2F3D:: @ 81A2F3D
- setflag FLAG_DECORATION_2
- setflag FLAG_DECORATION_3
- setflag FLAG_DECORATION_4
- setflag FLAG_DECORATION_5
- setflag FLAG_DECORATION_6
- setflag FLAG_DECORATION_7
- setflag FLAG_DECORATION_8
- setflag FLAG_DECORATION_9
- setflag FLAG_DECORATION_10
- setflag FLAG_DECORATION_11
- setflag FLAG_DECORATION_12
- setflag FLAG_DECORATION_13
- setflag FLAG_DECORATION_14
- setflag FLAG_DECORATION_15
- return
-
-LittlerootTown_BrendansHouse_2F_EventScript_1A2F68:: @ 81A2F68
-LittlerootTown_MaysHouse_2F_EventScript_1A2F68:: @ 81A2F68
-SecretBase_RedCave1_EventScript_1A2F68:: @ 81A2F68
- setvar VAR_0x8004, 0
- setvar VAR_0x8005, 0
- special sub_80BBDD0
- setvar VAR_0x4089, 1
- end
-
-gUnknown_081A2F7B:: @ 81A2F7B
- setvar VAR_0x8005, 0
- goto EventScript_1A2F86
- end
-
-EventScript_1A2F86:
- special sub_80FF474
- end
-
-gUnknown_081A2F8A:: @ 81A2F8A
- setvar VAR_0x8004, 0
- goto EventScript_1A2F95
- end
-
-EventScript_1A2F95:
- special sub_8100A7C
- compare VAR_RESULT, 1
- goto_if_eq EventScript_1A2FBF
- addvar VAR_0x8004, 1
- compare VAR_0x8005, 0
- goto_if_eq EventScript_1A2F95
- removeobject VAR_0x8006
- setflag VAR_0x8005
- goto EventScript_1A2F95
- end
-
-EventScript_1A2FBF:
- end
-
-SecretBase_BlueCave1_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_BlueCave2_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_BlueCave3_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_BlueCave4_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_BrownCave1_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_BrownCave2_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_BrownCave3_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_BrownCave4_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_RedCave1_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_RedCave2_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_RedCave3_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_RedCave4_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_Shrub1_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_Shrub2_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_Shrub3_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_Shrub4_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_Tree1_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_Tree2_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_Tree3_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_Tree4_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_YellowCave1_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_YellowCave2_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_YellowCave3_EventScript_1A2FC0:: @ 81A2FC0
-SecretBase_YellowCave4_EventScript_1A2FC0:: @ 81A2FC0
- special sub_80BCE90
- compare VAR_0x8004, 0
- goto_if_eq SecretBase_RedCave1_EventScript_1A3032
- compare VAR_0x8004, 1
- goto_if_eq SecretBase_RedCave1_EventScript_1A30AE
- compare VAR_0x8004, 2
- goto_if_eq SecretBase_RedCave1_EventScript_1A312A
- compare VAR_0x8004, 3
- goto_if_eq SecretBase_RedCave1_EventScript_1A31A6
- compare VAR_0x8004, 4
- goto_if_eq SecretBase_RedCave1_EventScript_1A3222
- compare VAR_0x8004, 5
- goto_if_eq SecretBase_RedCave1_EventScript_1A329E
- compare VAR_0x8004, 6
- goto_if_eq SecretBase_RedCave1_EventScript_1A331A
- compare VAR_0x8004, 7
- goto_if_eq SecretBase_RedCave1_EventScript_1A3396
- compare VAR_0x8004, 8
- goto_if_eq SecretBase_RedCave1_EventScript_1A3412
- compare VAR_0x8004, 9
- goto_if_eq SecretBase_RedCave1_EventScript_1A348E
- end
-
-SecretBase_RedCave1_EventScript_1A3032:: @ 81A3032
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A3086
- compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_1A30A5
- lock
- faceplayer
- msgbox SecretBase_RedCave1_Text_1A1AEA, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq SecretBase_RedCave1_EventScript_1A308F
- setvar VAR_RESULT, 1
- special sub_80BCE4C
- call S_DoSaveDialog
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_1A308F
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A1B83, 4
- goto SecretBase_RedCave1_EventScript_1A350A
- end
-
-SecretBase_RedCave1_EventScript_1A3086:: @ 81A3086
- msgbox SecretBase_RedCave1_Text_1A1C3B, 2
- end
-
-SecretBase_RedCave1_EventScript_1A308F:: @ 81A308F
- setvar VAR_RESULT, 0
- special sub_80BCE4C
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A1B97, 2
- end
-
-SecretBase_RedCave1_EventScript_1A30A5:: @ 81A30A5
- msgbox SecretBase_RedCave1_Text_1A1BF8, 2
- end
-
-SecretBase_RedCave1_EventScript_1A30AE:: @ 81A30AE
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A3102
- compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_1A3121
- lock
- faceplayer
- msgbox SecretBase_RedCave1_Text_1A1E67, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq SecretBase_RedCave1_EventScript_1A310B
- setvar VAR_RESULT, 1
- special sub_80BCE4C
- call S_DoSaveDialog
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_1A310B
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A1F04, 4
- goto SecretBase_RedCave1_EventScript_1A350A
- end
-
-SecretBase_RedCave1_EventScript_1A3102:: @ 81A3102
- msgbox SecretBase_RedCave1_Text_1A1FBD, 2
- end
-
-SecretBase_RedCave1_EventScript_1A310B:: @ 81A310B
- setvar VAR_RESULT, 0
- special sub_80BCE4C
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A1F2E, 2
- end
-
-SecretBase_RedCave1_EventScript_1A3121:: @ 81A3121
- msgbox SecretBase_RedCave1_Text_1A1F88, 2
- end
-
-SecretBase_RedCave1_EventScript_1A312A:: @ 81A312A
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A317E
- compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_1A319D
- lock
- faceplayer
- msgbox SecretBase_RedCave1_Text_1A218F, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq SecretBase_RedCave1_EventScript_1A3187
- setvar VAR_RESULT, 1
- special sub_80BCE4C
- call S_DoSaveDialog
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_1A3187
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A2220, 4
- goto SecretBase_RedCave1_EventScript_1A350A
- end
-
-SecretBase_RedCave1_EventScript_1A317E:: @ 81A317E
- msgbox SecretBase_RedCave1_Text_1A22FA, 2
- end
-
-SecretBase_RedCave1_EventScript_1A3187:: @ 81A3187
- setvar VAR_RESULT, 0
- special sub_80BCE4C
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A2230, 2
- end
-
-SecretBase_RedCave1_EventScript_1A319D:: @ 81A319D
- msgbox SecretBase_RedCave1_Text_1A2280, 2
- end
-
-SecretBase_RedCave1_EventScript_1A31A6:: @ 81A31A6
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A31FA
- compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_1A3219
- lock
- faceplayer
- msgbox SecretBase_RedCave1_Text_1A24E1, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq SecretBase_RedCave1_EventScript_1A3203
- setvar VAR_RESULT, 1
- special sub_80BCE4C
- call S_DoSaveDialog
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_1A3203
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A256F, 4
- goto SecretBase_RedCave1_EventScript_1A350A
- end
-
-SecretBase_RedCave1_EventScript_1A31FA:: @ 81A31FA
- msgbox SecretBase_RedCave1_Text_1A2609, 2
- end
-
-SecretBase_RedCave1_EventScript_1A3203:: @ 81A3203
- setvar VAR_RESULT, 0
- special sub_80BCE4C
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A258A, 2
- end
-
-SecretBase_RedCave1_EventScript_1A3219:: @ 81A3219
- msgbox SecretBase_RedCave1_Text_1A25D2, 2
- end
-
-SecretBase_RedCave1_EventScript_1A3222:: @ 81A3222
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A3276
- compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_1A3295
- lock
- faceplayer
- msgbox SecretBase_RedCave1_Text_1A2830, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq SecretBase_RedCave1_EventScript_1A327F
- setvar VAR_RESULT, 1
- special sub_80BCE4C
- call S_DoSaveDialog
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_1A327F
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A28D7, 4
- goto SecretBase_RedCave1_EventScript_1A350A
- end
-
-SecretBase_RedCave1_EventScript_1A3276:: @ 81A3276
- msgbox SecretBase_RedCave1_Text_1A297C, 2
- end
-
-SecretBase_RedCave1_EventScript_1A327F:: @ 81A327F
- setvar VAR_RESULT, 0
- special sub_80BCE4C
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A28F4, 2
- end
-
-SecretBase_RedCave1_EventScript_1A3295:: @ 81A3295
- msgbox SecretBase_RedCave1_Text_1A294D, 2
- end
-
-SecretBase_RedCave1_EventScript_1A329E:: @ 81A329E
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A32F2
- compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_1A3311
- lock
- faceplayer
- msgbox SecretBase_RedCave1_Text_1A1CB2, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq SecretBase_RedCave1_EventScript_1A32FB
- setvar VAR_RESULT, 1
- special sub_80BCE4C
- call S_DoSaveDialog
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_1A32FB
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A1D48, 4
- goto SecretBase_RedCave1_EventScript_1A350A
- end
-
-SecretBase_RedCave1_EventScript_1A32F2:: @ 81A32F2
- msgbox SecretBase_RedCave1_Text_1A1DF6, 2
- end
-
-SecretBase_RedCave1_EventScript_1A32FB:: @ 81A32FB
- setvar VAR_RESULT, 0
- special sub_80BCE4C
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A1D59, 2
- end
-
-SecretBase_RedCave1_EventScript_1A3311:: @ 81A3311
- msgbox SecretBase_RedCave1_Text_1A1DC0, 2
- end
-
-SecretBase_RedCave1_EventScript_1A331A:: @ 81A331A
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A336E
- compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_1A338D
- lock
- faceplayer
- msgbox SecretBase_RedCave1_Text_1A2026, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq SecretBase_RedCave1_EventScript_1A3377
- setvar VAR_RESULT, 1
- special sub_80BCE4C
- call S_DoSaveDialog
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_1A3377
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A2095, 4
- goto SecretBase_RedCave1_EventScript_1A350A
- end
-
-SecretBase_RedCave1_EventScript_1A336E:: @ 81A336E
- msgbox SecretBase_RedCave1_Text_1A2147, 2
- end
-
-SecretBase_RedCave1_EventScript_1A3377:: @ 81A3377
- setvar VAR_RESULT, 0
- special sub_80BCE4C
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A20AE, 2
- end
-
-SecretBase_RedCave1_EventScript_1A338D:: @ 81A338D
- msgbox SecretBase_RedCave1_Text_1A2109, 2
- end
-
-SecretBase_RedCave1_EventScript_1A3396:: @ 81A3396
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A33EA
- compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_1A3409
- lock
- faceplayer
- msgbox SecretBase_RedCave1_Text_1A236A, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq SecretBase_RedCave1_EventScript_1A33F3
- setvar VAR_RESULT, 1
- special sub_80BCE4C
- call S_DoSaveDialog
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_1A33F3
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A2405, 4
- goto SecretBase_RedCave1_EventScript_1A350A
- end
-
-SecretBase_RedCave1_EventScript_1A33EA:: @ 81A33EA
- msgbox SecretBase_RedCave1_Text_1A2480, 2
- end
-
-SecretBase_RedCave1_EventScript_1A33F3:: @ 81A33F3
- setvar VAR_RESULT, 0
- special sub_80BCE4C
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A2420, 2
- end
-
-SecretBase_RedCave1_EventScript_1A3409:: @ 81A3409
- msgbox SecretBase_RedCave1_Text_1A2446, 2
- end
-
-SecretBase_RedCave1_EventScript_1A3412:: @ 81A3412
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A3466
- compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_1A3485
- lock
- faceplayer
- msgbox SecretBase_RedCave1_Text_1A2663, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq SecretBase_RedCave1_EventScript_1A346F
- setvar VAR_RESULT, 1
- special sub_80BCE4C
- call S_DoSaveDialog
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_1A346F
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A2710, 4
- goto SecretBase_RedCave1_EventScript_1A350A
- end
-
-SecretBase_RedCave1_EventScript_1A3466:: @ 81A3466
- msgbox SecretBase_RedCave1_Text_1A27A4, 2
- end
-
-SecretBase_RedCave1_EventScript_1A346F:: @ 81A346F
- setvar VAR_RESULT, 0
- special sub_80BCE4C
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A2736, 2
- end
-
-SecretBase_RedCave1_EventScript_1A3485:: @ 81A3485
- msgbox SecretBase_RedCave1_Text_1A276A, 2
- end
-
-SecretBase_RedCave1_EventScript_1A348E:: @ 81A348E
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A34E2
- compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_1A3501
- lock
- faceplayer
- msgbox SecretBase_RedCave1_Text_1A2A13, MSGBOX_YESNO
- compare VAR_RESULT, NO
- goto_if_eq SecretBase_RedCave1_EventScript_1A34EB
- setvar VAR_RESULT, 1
- special sub_80BCE4C
- call S_DoSaveDialog
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_1A34EB
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A2AE2, 4
- goto SecretBase_RedCave1_EventScript_1A350A
- end
-
-SecretBase_RedCave1_EventScript_1A34E2:: @ 81A34E2
- msgbox SecretBase_RedCave1_Text_1A2BA4, 2
- end
-
-SecretBase_RedCave1_EventScript_1A34EB:: @ 81A34EB
- setvar VAR_RESULT, 0
- special sub_80BCE4C
- erasebox 0, 0, 15, 10
- msgbox SecretBase_RedCave1_Text_1A2AFB, 2
- end
-
-SecretBase_RedCave1_EventScript_1A3501:: @ 81A3501
- msgbox SecretBase_RedCave1_Text_1A2B69, 2
- end
-
-SecretBase_RedCave1_EventScript_1A350A:: @ 81A350A
- special sub_80BCE1C
- setvar VAR_0x8004, 1
- setvar VAR_0x8005, 0
- special StartSpecialBattle
- waitstate
- special ScrSpecial_HealPlayerParty
- release
- end
-
+ .include "data/text/secret_base_trainers.inc"
+ .include "data/scripts/secret_base.inc"
.include "data/text/secret_power_tm.inc"
.include "data/scripts/secret_power_tm.inc"
-
-UnknownString_81A38FB: @ 81A38FB
- .string "All decorations and furniture in your\n"
- .string "SECRET BASE will be returned to your PC.\p"
- .string "Is that okay?$"
-
-UnknownString_81A3958: @ 81A3958
- .string "Do you want to register\n"
- .string "{STR_VAR_1}'s SECRET BASE?$"
-
-UnknownString_81A3982: @ 81A3982
- .string "This data is already registered.\n"
- .string "Would you like to delete it?$"
-
-UnknownString_81A39C0: @ 81A39C0
- .string "Up to 10 locations can be registered.\p"
- .string "Delete a location if you want to\n"
- .string "register another location.$"
-
-UnknownString_81A3A22: @ 81A3A22
- .string "Registration completed.$"
-
-UnknownString_81A3A3A: @ 81A3A3A
- .string "Data has been unregistered.$"
-
-UnknownString_81A3A56: @ 81A3A56
- .string "There are no decorations...$"
-
-UnknownString_81A3A72: @ 81A3A72
- .string "{PLAYER} booted up the PC.$"
-
-UnknownString_81A3A87: @ 81A3A87
- .string "What would you like to do?$"
-
-UnknownString_81A3AA2: @ 81A3AA2
- .string "The registered SECRET BASE will remain\n"
- .string "unless the owner moves away.\p"
- .string "If it is removed from the registry,\n"
- .string "another SECRET BASE may take its place.\p"
- .string "Up to ten locations can be registered.{PAUSE_UNTIL_PRESS}$"
-
-UnknownString_81A3B5B: @ 81A3B5B
- .string "A shield of {STR_VAR_2} that marks winning\n"
- .string "{STR_VAR_1} times in a row at the BATTLE TOWER.$"
-
-UnknownString_81A3BA4: @ 81A3BA4
- .string "A realistic toy TV. It could be easily\n"
- .string "mistaken for the real thing.$"
-
-UnknownString_81A3BE8: @ 81A3BE8
- .string "A toy TV shaped like a SEEDOT.\n"
- .string "It looks ready to roll away on its own...$"
-
-UnknownString_81A3C31: @ 81A3C31
- .string "A toy TV shaped like a SKITTY.\n"
- .string "It looks ready to stroll away...$"
-
-UnknownString_81A3C71: @ 81A3C71
- .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}?$"
-
-UnknownString_81A3CC9: @ 81A3CC9
- .string "Moving completed.\p"
- .string "Would you like to use the SECRET POWER?$"
-
+ .include "data/text/secret_base.inc"
.include "data/scripts/cable_club.inc"
.include "data/text/cable_club.inc"
-
.include "data/scripts/contest_hall.inc"
.include "data/text/contest_hall.inc"
-
.include "data/scripts/tv.inc"
.include "data/text/tv.inc"
@@ -4381,11 +1203,11 @@ SlateportCity_PokemonFanClub_EventScript_1ADE4D:: @ 81ADE4D
end
SlateportCity_PokemonFanClub_EventScript_1ADE84:: @ 81ADE84
- msgbox SlateportCity_PokemonFanClub_Text_1A87CA, 4
+ msgbox SlateportCity_PokemonFanClub_Text_1A87CA, MSGBOX_DEFAULT
setvar VAR_0x8004, 5
copyvar VAR_0x8005, VAR_0x8009
setvar VAR_0x8006, 1
- call SlateportCity_PokemonFanClub_EventScript_1A00F3
+ call Common_EventScript_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 1
@@ -4395,18 +1217,18 @@ SlateportCity_PokemonFanClub_EventScript_1ADE84:: @ 81ADE84
end
SlateportCity_PokemonFanClub_EventScript_1ADEB9:: @ 81ADEB9
- msgbox SlateportCity_PokemonFanClub_Text_1A8667, 4
+ msgbox SlateportCity_PokemonFanClub_Text_1A8667, MSGBOX_DEFAULT
release
end
SlateportCity_PokemonFanClub_EventScript_1ADEC3:: @ 81ADEC3
- msgbox SlateportCity_PokemonFanClub_Text_1A8818, 4
+ msgbox SlateportCity_PokemonFanClub_Text_1A8818, MSGBOX_DEFAULT
setvar VAR_0x8005, 1
goto SlateportCity_PokemonFanClub_EventScript_1ADE46
end
SlateportCity_PokemonFanClub_EventScript_1ADED6:: @ 81ADED6
- msgbox SlateportCity_PokemonFanClub_Text_1A86B5, 4
+ msgbox SlateportCity_PokemonFanClub_Text_1A86B5, MSGBOX_DEFAULT
release
end
@@ -4436,11 +1258,11 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF25:: @ 81ADF25
end
SlateportCity_OceanicMuseum_1F_EventScript_1ADF44:: @ 81ADF44
- msgbox SlateportCity_OceanicMuseum_1F_Text_1A93D1, 4
+ msgbox SlateportCity_OceanicMuseum_1F_Text_1A93D1, MSGBOX_DEFAULT
setvar VAR_0x8004, 5
copyvar VAR_0x8005, VAR_0x8009
setvar VAR_0x8006, 0
- call SlateportCity_OceanicMuseum_1F_EventScript_1A00F3
+ call Common_EventScript_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 1
@@ -4450,18 +1272,18 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF44:: @ 81ADF44
end
SlateportCity_OceanicMuseum_1F_EventScript_1ADF79:: @ 81ADF79
- msgbox SlateportCity_OceanicMuseum_1F_Text_1A9446, 4
+ msgbox SlateportCity_OceanicMuseum_1F_Text_1A9446, MSGBOX_DEFAULT
release
end
SlateportCity_OceanicMuseum_1F_EventScript_1ADF83:: @ 81ADF83
- msgbox SlateportCity_OceanicMuseum_1F_Text_1A949A, 4
+ msgbox SlateportCity_OceanicMuseum_1F_Text_1A949A, MSGBOX_DEFAULT
setvar VAR_0x8005, 2
goto SlateportCity_OceanicMuseum_1F_EventScript_1ADE46
end
SlateportCity_OceanicMuseum_1F_EventScript_1ADF96:: @ 81ADF96
- msgbox SlateportCity_OceanicMuseum_1F_Text_1A952E, 4
+ msgbox SlateportCity_OceanicMuseum_1F_Text_1A952E, MSGBOX_DEFAULT
release
end
@@ -4484,7 +1306,7 @@ SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0
end
SlateportCity_PokemonFanClub_EventScript_1ADFE9:: @ 81ADFE9
- msgbox SlateportCity_PokemonFanClub_Text_1A83D0, 4
+ msgbox SlateportCity_PokemonFanClub_Text_1A83D0, MSGBOX_DEFAULT
random 3
copyvar VAR_0x800A, VAR_RESULT
switch VAR_RESULT
@@ -4494,17 +1316,17 @@ SlateportCity_PokemonFanClub_EventScript_1ADFE9:: @ 81ADFE9
end
SlateportCity_PokemonFanClub_EventScript_1AE020:: @ 81AE020
- msgbox SlateportCity_PokemonFanClub_Text_1A8414, 4
+ msgbox SlateportCity_PokemonFanClub_Text_1A8414, MSGBOX_DEFAULT
goto SlateportCity_PokemonFanClub_EventScript_1AE04A
end
SlateportCity_PokemonFanClub_EventScript_1AE02E:: @ 81AE02E
- msgbox SlateportCity_PokemonFanClub_Text_1A8470, 4
+ msgbox SlateportCity_PokemonFanClub_Text_1A8470, MSGBOX_DEFAULT
goto SlateportCity_PokemonFanClub_EventScript_1AE04A
end
SlateportCity_PokemonFanClub_EventScript_1AE03C:: @ 81AE03C
- msgbox SlateportCity_PokemonFanClub_Text_1A84D5, 4
+ msgbox SlateportCity_PokemonFanClub_Text_1A84D5, MSGBOX_DEFAULT
goto SlateportCity_PokemonFanClub_EventScript_1AE04A
end
@@ -4512,31 +1334,31 @@ SlateportCity_PokemonFanClub_EventScript_1AE04A:: @ 81AE04A
setvar VAR_0x8004, 7
copyvar VAR_0x8005, VAR_0x8009
setvar VAR_0x8006, 0
- call SlateportCity_PokemonFanClub_EventScript_1A00F3
+ call Common_EventScript_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2
- msgbox SlateportCity_PokemonFanClub_Text_1A852D, 4
+ msgbox SlateportCity_PokemonFanClub_Text_1A852D, MSGBOX_DEFAULT
setvar VAR_0x8006, 1
- call SlateportCity_PokemonFanClub_EventScript_1A00F3
+ call Common_EventScript_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2
- msgbox SlateportCity_PokemonFanClub_Text_1A85A6, 4
+ msgbox SlateportCity_PokemonFanClub_Text_1A85A6, MSGBOX_DEFAULT
copyvar VAR_0x8007, VAR_0x800A
setvar VAR_0x8005, 3
goto SlateportCity_PokemonFanClub_EventScript_1ADE46
end
SlateportCity_PokemonFanClub_EventScript_1AE0A2:: @ 81AE0A2
- msgbox SlateportCity_PokemonFanClub_Text_1A8667, 4
+ msgbox SlateportCity_PokemonFanClub_Text_1A8667, MSGBOX_DEFAULT
release
end
SlateportCity_PokemonFanClub_EventScript_1AE0AC:: @ 81AE0AC
- msgbox SlateportCity_PokemonFanClub_Text_1A86B5, 4
+ msgbox SlateportCity_PokemonFanClub_Text_1A86B5, MSGBOX_DEFAULT
release
end
@@ -4560,11 +1382,11 @@ VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6
end
FallarborTown_ContestLobby_EventScript_1AE0F8:: @ 81AE0F8
- msgbox FallarborTown_ContestLobby_Text_1A704E, 4
+ msgbox FallarborTown_ContestLobby_Text_1A704E, MSGBOX_DEFAULT
setvar VAR_0x8004, 11
copyvar VAR_0x8005, VAR_0x8009
setvar VAR_0x8006, 0
- call FallarborTown_ContestLobby_EventScript_1A00F3
+ call Common_EventScript_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 1
@@ -4574,30 +1396,30 @@ FallarborTown_ContestLobby_EventScript_1AE0F8:: @ 81AE0F8
end
FallarborTown_ContestLobby_EventScript_1AE12D:: @ 81AE12D
- msgbox FallarborTown_ContestLobby_Text_1A7256, 4
+ msgbox FallarborTown_ContestLobby_Text_1A7256, MSGBOX_DEFAULT
release
end
FallarborTown_ContestLobby_EventScript_1AE137:: @ 81AE137
setvar VAR_0x8004, 24
special SetContestCategoryStringVarForInterview
- msgbox FallarborTown_ContestLobby_Text_1A70A5, 4
+ msgbox FallarborTown_ContestLobby_Text_1A70A5, MSGBOX_DEFAULT
setvar VAR_0x8004, 11
copyvar VAR_0x8005, VAR_0x8009
setvar VAR_0x8006, 1
- call FallarborTown_ContestLobby_EventScript_1A00F3
+ call Common_EventScript_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 0
goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D
- msgbox FallarborTown_ContestLobby_Text_1A7153, 4
+ msgbox FallarborTown_ContestLobby_Text_1A7153, MSGBOX_DEFAULT
setflag FLAG_TEMP_2
setvar VAR_0x8005, 6
goto FallarborTown_ContestLobby_EventScript_1ADE46
end
FallarborTown_ContestLobby_EventScript_1AE17E:: @ 81AE17E
- msgbox FallarborTown_ContestLobby_Text_1A72A8, 4
+ msgbox FallarborTown_ContestLobby_Text_1A72A8, MSGBOX_DEFAULT
release
end
@@ -4664,10 +1486,10 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241
call_if_eq BattleTower_Lobby_EventScript_1AE2A1
compare VAR_RESULT, 1
call_if_eq BattleTower_Lobby_EventScript_1AE2AA
- msgbox BattleTower_Lobby_Text_1A79EB, 4
+ msgbox BattleTower_Lobby_Text_1A79EB, MSGBOX_DEFAULT
setvar VAR_0x8004, 12
copyvar VAR_0x8005, VAR_0x8009
- call BattleTower_Lobby_EventScript_1A00F3
+ call Common_EventScript_ShowEasyChatScreen
lock
faceplayer
compare VAR_RESULT, 1
@@ -4677,22 +1499,22 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241
end
BattleTower_Lobby_EventScript_1AE297:: @ 81AE297
- msgbox BattleTower_Lobby_Text_1A78B7, 4
+ msgbox BattleTower_Lobby_Text_1A78B7, MSGBOX_DEFAULT
release
end
BattleTower_Lobby_EventScript_1AE2A1:: @ 81AE2A1
- msgbox BattleTower_Lobby_Text_1A791B, 4
+ msgbox BattleTower_Lobby_Text_1A791B, MSGBOX_DEFAULT
return
BattleTower_Lobby_EventScript_1AE2AA:: @ 81AE2AA
- msgbox BattleTower_Lobby_Text_1A7990, 4
+ msgbox BattleTower_Lobby_Text_1A7990, MSGBOX_DEFAULT
return
BattleTower_Lobby_EventScript_1AE2B3:: @ 81AE2B3
compare VAR_RESULT, 0
goto_if_eq BattleTower_Lobby_EventScript_1AE2D9
- msgbox BattleTower_Lobby_Text_1A7A6E, 4
+ msgbox BattleTower_Lobby_Text_1A7A6E, MSGBOX_DEFAULT
setflag FLAG_TEMP_2
copyvar VAR_0x8004, VAR_0x8008
setvar VAR_0x8005, 7
@@ -4700,12 +1522,12 @@ BattleTower_Lobby_EventScript_1AE2B3:: @ 81AE2B3
end
BattleTower_Lobby_EventScript_1AE2D9:: @ 81AE2D9
- msgbox BattleTower_Lobby_Text_1A7AE0, 4
+ msgbox BattleTower_Lobby_Text_1A7AE0, MSGBOX_DEFAULT
release
end
BattleTower_Lobby_EventScript_1AE2E3:: @ 81AE2E3
- msgbox BattleTower_Lobby_Text_1A7B66, 4
+ msgbox BattleTower_Lobby_Text_1A7B66, MSGBOX_DEFAULT
release
end
@@ -4756,7 +1578,7 @@ gUnknown_081B694A:: @ 81B694A
.include "data/scripts/players_house.inc"
S_RunningShoesManual:: @ 81B6E5A
- msgbox UnknownString_81728E3, 3
+ msgbox UnknownString_81728E3, MSGBOX_SIGN
end
.include "data/text/pokeblocks.inc"
@@ -4765,7 +1587,7 @@ S_RunningShoesManual:: @ 81B6E5A
.include "data/text/trainers.inc"
S_RepelWoreOff:: @ 81C33E6
- msgbox Text_RepelWoreOff, 3
+ msgbox Text_RepelWoreOff, MSGBOX_SIGN
end
Text_RepelWoreOff: @ 81C33EF
@@ -4811,88 +1633,22 @@ MauvilleCity_GameCorner_EventScript_1C40DA:: @ 81C40DA
.include "data/text/braille.inc"
.include "data/text/berries.inc"
.include "data/text/shoal_cave.inc"
-
-PictureBookShelfText: @ 81C6A69
- .string "There's a set of POKéMON picture books.$"
-
-BookshelfText: @ 81C6A91
- .string "It's filled with all sorts of books.$"
-
-PokemonCenterBookshelfText: @ 81C6AB6
- .string "POKéMON magazines!\n"
- .string "POKéMON PAL...\p"
- .string "POKéMON HANDBOOK...\n"
- .string "ADORABLE POKéMON...$"
-
-VaseText: @ 81C6B00
- .string "This vase looks expensive...\n"
- .string "Peered inside...\p"
- .string "But, it was empty.$"
-
-TrashCanText: @ 81C6B41
- .string "It's empty.$"
-
-ShopShelfText: @ 81C6B4D
- .string "The shelves brim with all sorts of\n"
- .string "POKéMON merchandise.$"
-
-BlueprintText: @ 81C6B85
- .string "A blueprint of some sort?\n"
- .string "It's too complicated!$"
-
-GraniteCave_B1F_MapScript2_1C6BB5:: @ 81C6BB5
-MtPyre_2F_MapScript2_1C6BB5:: @ 81C6BB5
-SkyPillar_2F_MapScript2_1C6BB5:: @ 81C6BB5
-SkyPillar_4F_MapScript2_1C6BB5:: @ 81C6BB5
- map_script_2 VAR_ICE_STEP_COUNT, 0, S_FallDownHole
- .2byte 0
-
-GraniteCave_B1F_MapScript1_1C6BBF:: @ 81C6BBF
-MtPyre_2F_MapScript1_1C6BBF:: @ 81C6BBF
-SkyPillar_2F_MapScript1_1C6BBF:: @ 81C6BBF
-SkyPillar_4F_MapScript1_1C6BBF:: @ 81C6BBF
- copyvar VAR_ICE_STEP_COUNT, 0x1
- end
-
-S_FallDownHole:: @ 81C6BC5
- lockall
- delay 20
- applymovement 255, GraniteCave_B1F_Movement_1C6BF7
- waitmovement 0
- playse SE_RU_HYUU
- delay 60
- warphole MAP_UNDEFINED
- waitstate
- end
-
-gUnknown_081C6BDE:: @ 81C6BDE
- lockall
- delay 20
- applymovement 255, GraniteCave_B1F_Movement_1C6BF7
- waitmovement 0
- playse SE_RU_HYUU
- delay 60
- special sp13F_fall_to_last_warp
- waitstate
- end
-
-GraniteCave_B1F_Movement_1C6BF7:: @ 81C6BF7
- set_invisible
- end_movement
+ .include "data/text/check_furniture.inc"
+ .include "data/scripts/cave_hole.inc"
@ 81C6BF9
- msgbox Text_1C6C2B, 2
+ msgbox Text_1C6C2B, MSGBOX_NPC
end
gUnknown_081C6C02:: @ 81C6C02
- msgbox Text_1C6C4B, 3
+ msgbox Text_1C6C4B, MSGBOX_SIGN
end
@ 81C6C0B
end
@ 81C6C0C
- msgbox Text_1C6C62, 3
+ msgbox Text_1C6C62, MSGBOX_SIGN
end
@ 81C6C15