summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rwxr-xr-xdata/berry_crush.s10
-rw-r--r--data/event_scripts.s81
-rw-r--r--data/maps/AncientTomb/scripts.inc8
-rw-r--r--data/maps/AquaHideout_B1F/scripts.inc14
-rw-r--r--data/maps/AquaHideout_B2F/scripts.inc4
-rw-r--r--data/maps/BattleFrontier_BattleDomeBattleRoom/scripts.inc6
-rw-r--r--data/maps/BattleFrontier_BattleFactoryBattleRoom/scripts.inc12
-rw-r--r--data/maps/BattleFrontier_BattlePalaceBattleRoom/scripts.inc12
-rw-r--r--data/maps/BattleFrontier_BattlePikeCorridor/scripts.inc4
-rw-r--r--data/maps/BattleFrontier_BattlePikeLobby/scripts.inc28
-rw-r--r--data/maps/BattleFrontier_BattlePikeRandomRoom1/scripts.inc34
-rw-r--r--data/maps/BattleFrontier_BattlePikeRandomRoom3/scripts.inc2
-rw-r--r--data/maps/BattleFrontier_BattlePikeThreePathRoom/scripts.inc14
-rw-r--r--data/maps/BattleFrontier_BattlePyramidEmptySquare/scripts.inc26
-rw-r--r--data/maps/BattleFrontier_BattlePyramidLobby/scripts.inc34
-rw-r--r--data/maps/BattleFrontier_BattlePyramidTop/scripts.inc6
-rw-r--r--data/maps/BattleFrontier_BattleTowerBattleRoom/scripts.inc2
-rw-r--r--data/maps/BattleFrontier_BattleTowerCorridor2/scripts.inc4
-rw-r--r--data/maps/BattleFrontier_BattleTowerLobby/scripts.inc18
-rw-r--r--data/maps/BattleFrontier_BattleTowerMultiBattleRoom/scripts.inc10
-rw-r--r--data/maps/BattleFrontier_Lounge6/scripts.inc2
-rw-r--r--data/maps/BattleFrontier_Lounge7/scripts.inc2
-rw-r--r--data/maps/BattleFrontier_OutsideEast/scripts.inc8
-rw-r--r--data/maps/BattleFrontier_OutsideWest/scripts.inc28
-rw-r--r--data/maps/BattleFrontier_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/BattleFrontier_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/BattleFrontier_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/BattleFrontier_ReceptionGate/scripts.inc6
-rw-r--r--data/maps/BattleFrontier_ScottsHouse/scripts.inc16
-rw-r--r--data/maps/BirthIsland_Exterior/scripts.inc8
-rw-r--r--data/maps/BirthIsland_Harbor/scripts.inc2
-rw-r--r--data/maps/CaveOfOrigin_B1F/scripts.inc2
-rw-r--r--data/maps/DesertRuins/scripts.inc8
-rw-r--r--data/maps/DewfordTown_Gym/map.json24
-rw-r--r--data/maps/DewfordTown_Gym/scripts.inc315
-rw-r--r--data/maps/DewfordTown_Hall/scripts.inc20
-rw-r--r--data/maps/DewfordTown_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/DewfordTown_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/DewfordTown_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/EverGrandeCity_ChampionsRoom/scripts.inc168
-rw-r--r--data/maps/EverGrandeCity_DrakesRoom/map.json2
-rw-r--r--data/maps/EverGrandeCity_DrakesRoom/scripts.inc61
-rw-r--r--data/maps/EverGrandeCity_GlaciasRoom/map.json2
-rw-r--r--data/maps/EverGrandeCity_GlaciasRoom/scripts.inc60
-rw-r--r--data/maps/EverGrandeCity_HallOfFame/scripts.inc12
-rw-r--r--data/maps/EverGrandeCity_PhoebesRoom/map.json2
-rw-r--r--data/maps/EverGrandeCity_PhoebesRoom/scripts.inc60
-rw-r--r--data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc8
-rw-r--r--data/maps/EverGrandeCity_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/EverGrandeCity_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/EverGrandeCity_PokemonLeague_1F/scripts.inc2
-rw-r--r--data/maps/EverGrandeCity_PokemonLeague_2F/map.json8
-rw-r--r--data/maps/EverGrandeCity_PokemonLeague_2F/scripts.inc21
-rw-r--r--data/maps/EverGrandeCity_SidneysRoom/map.json2
-rw-r--r--data/maps/EverGrandeCity_SidneysRoom/scripts.inc61
-rw-r--r--data/maps/FallarborTown_Mart/map.json2
-rw-r--r--data/maps/FallarborTown_PokemonCenter_1F/scripts.inc6
-rw-r--r--data/maps/FallarborTown_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/FallarborTown_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/FarawayIsland_Entrance/scripts.inc2
-rw-r--r--data/maps/FarawayIsland_Interior/scripts.inc26
-rw-r--r--data/maps/FortreeCity/scripts.inc2
-rw-r--r--data/maps/FortreeCity_House1/scripts.inc2
-rw-r--r--data/maps/FortreeCity_House2/map.json2
-rw-r--r--data/maps/FortreeCity_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/FortreeCity_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/FortreeCity_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/GraniteCave_B1F/scripts.inc8
-rw-r--r--data/maps/GraniteCave_StevensRoom/scripts.inc8
-rw-r--r--data/maps/IslandCave/scripts.inc8
-rw-r--r--data/maps/LavaridgeTown/scripts.inc6
-rw-r--r--data/maps/LavaridgeTown_Gym_1F/map.json16
-rw-r--r--data/maps/LavaridgeTown_Gym_1F/scripts.inc246
-rw-r--r--data/maps/LavaridgeTown_Gym_B1F/map.json8
-rw-r--r--data/maps/LavaridgeTown_Gym_B1F/scripts.inc49
-rw-r--r--data/maps/LavaridgeTown_House/map.json2
-rw-r--r--data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/LavaridgeTown_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/LavaridgeTown_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/LilycoveCity/scripts.inc2
-rw-r--r--data/maps/LilycoveCity_ContestLobby/scripts.inc8
-rw-r--r--data/maps/LilycoveCity_CoveLilyMotel_1F/scripts.inc2
-rw-r--r--data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc2
-rw-r--r--data/maps/LilycoveCity_DepartmentStoreRooftop/map.json2
-rw-r--r--data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc4
-rw-r--r--data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc2
-rw-r--r--data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc2
-rw-r--r--data/maps/LilycoveCity_Harbor/scripts.inc20
-rw-r--r--data/maps/LilycoveCity_LilycoveMuseum_1F/scripts.inc6
-rw-r--r--data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/LilycoveCity_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/LilycoveCity_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc6
-rw-r--r--data/maps/LittlerootTown/scripts.inc30
-rw-r--r--data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc6
-rw-r--r--data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc16
-rw-r--r--data/maps/LittlerootTown_MaysHouse_1F/scripts.inc6
-rw-r--r--data/maps/LittlerootTown_MaysHouse_2F/scripts.inc16
-rw-r--r--data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc49
-rw-r--r--data/maps/MagmaHideout_4F/scripts.inc4
-rw-r--r--data/maps/MarineCave_End/scripts.inc8
-rw-r--r--data/maps/MauvilleCity/map.json2
-rw-r--r--data/maps/MauvilleCity/scripts.inc24
-rw-r--r--data/maps/MauvilleCity_GameCorner/map.json24
-rw-r--r--data/maps/MauvilleCity_GameCorner/scripts.inc30
-rw-r--r--data/maps/MauvilleCity_Gym/map.json26
-rw-r--r--data/maps/MauvilleCity_Gym/scripts.inc262
-rw-r--r--data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/MauvilleCity_PokemonCenter_2F/map.json10
-rw-r--r--data/maps/MauvilleCity_PokemonCenter_2F/scripts.inc27
-rw-r--r--data/maps/MeteorFalls_1F_1R/scripts.inc20
-rw-r--r--data/maps/MirageTower_2F/scripts.inc8
-rw-r--r--data/maps/MirageTower_3F/scripts.inc8
-rw-r--r--data/maps/MossdeepCity/map.json2
-rw-r--r--data/maps/MossdeepCity/scripts.inc4
-rw-r--r--data/maps/MossdeepCity_GameCorner_1F/map.json12
-rw-r--r--data/maps/MossdeepCity_GameCorner_1F/scripts.inc47
-rw-r--r--data/maps/MossdeepCity_House2/scripts.inc4
-rw-r--r--data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/MossdeepCity_PokemonCenter_2F/map.json10
-rw-r--r--data/maps/MossdeepCity_PokemonCenter_2F/scripts.inc27
-rw-r--r--data/maps/MossdeepCity_SpaceCenter_1F/scripts.inc12
-rw-r--r--data/maps/MossdeepCity_SpaceCenter_2F/scripts.inc24
-rw-r--r--data/maps/MossdeepCity_StevensHouse/scripts.inc2
-rw-r--r--data/maps/MtChimney/scripts.inc10
-rw-r--r--data/maps/MtPyre_2F/scripts.inc8
-rw-r--r--data/maps/MtPyre_Summit/scripts.inc14
-rw-r--r--data/maps/NavelRock_Bottom/scripts.inc8
-rw-r--r--data/maps/NavelRock_Harbor/scripts.inc2
-rw-r--r--data/maps/NavelRock_Top/scripts.inc8
-rw-r--r--data/maps/NewMauville_Entrance/scripts.inc2
-rw-r--r--data/maps/NewMauville_Inside/scripts.inc20
-rw-r--r--data/maps/OldaleTown/scripts.inc14
-rw-r--r--data/maps/OldaleTown_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/OldaleTown_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/OldaleTown_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/PacifidlogTown_House3/scripts.inc2
-rw-r--r--data/maps/PacifidlogTown_PokemonCenter_1F/map.json2
-rw-r--r--data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/PacifidlogTown_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/PacifidlogTown_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/PetalburgCity/scripts.inc18
-rw-r--r--data/maps/PetalburgCity_Gym/scripts.inc62
-rw-r--r--data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/PetalburgCity_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/PetalburgCity_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/PetalburgWoods/scripts.inc10
-rw-r--r--data/maps/Route101/map.json2
-rw-r--r--data/maps/Route101/scripts.inc6
-rw-r--r--data/maps/Route103/map.json2
-rw-r--r--data/maps/Route103/scripts.inc10
-rw-r--r--data/maps/Route104/scripts.inc2
-rw-r--r--data/maps/Route105/scripts.inc2
-rw-r--r--data/maps/Route109/scripts.inc6
-rw-r--r--data/maps/Route110/scripts.inc10
-rw-r--r--data/maps/Route110_TrickHouseEnd/scripts.inc18
-rw-r--r--data/maps/Route110_TrickHouseEntrance/scripts.inc6
-rw-r--r--data/maps/Route111/scripts.inc8
-rw-r--r--data/maps/Route112/scripts.inc8
-rw-r--r--data/maps/Route114/scripts.inc2
-rw-r--r--data/maps/Route114_FossilManiacsTunnel/scripts.inc4
-rw-r--r--data/maps/Route115/scripts.inc2
-rw-r--r--data/maps/Route116/scripts.inc22
-rw-r--r--data/maps/Route118/scripts.inc2
-rw-r--r--data/maps/Route119/map.json4
-rw-r--r--data/maps/Route119/scripts.inc4
-rw-r--r--data/maps/Route120/map.json28
-rw-r--r--data/maps/Route120/scripts.inc139
-rw-r--r--data/maps/Route121/scripts.inc2
-rw-r--r--data/maps/Route121_SafariZoneEntrance/scripts.inc2
-rw-r--r--data/maps/Route125/scripts.inc2
-rw-r--r--data/maps/Route127/scripts.inc2
-rw-r--r--data/maps/Route128/scripts.inc14
-rw-r--r--data/maps/Route129/scripts.inc2
-rw-r--r--data/maps/RustboroCity/scripts.inc74
-rw-r--r--data/maps/RustboroCity_Gym/map.json14
-rw-r--r--data/maps/RustboroCity_Gym/scripts.inc137
-rw-r--r--data/maps/RustboroCity_House1/scripts.inc2
-rw-r--r--data/maps/RustboroCity_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/RustboroCity_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/RustboroCity_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/RustboroCity_PokemonSchool/scripts.inc8
-rw-r--r--data/maps/RusturfTunnel/scripts.inc8
-rw-r--r--data/maps/SSTidalCorridor/scripts.inc2
-rw-r--r--data/maps/SafariZone_South/scripts.inc4
-rw-r--r--data/maps/SeafloorCavern_Entrance/scripts.inc22
-rw-r--r--data/maps/SeafloorCavern_Room9/scripts.inc18
-rw-r--r--data/maps/SingleBattleColosseum/map.json2
-rw-r--r--data/maps/SkyPillar_2F/scripts.inc8
-rw-r--r--data/maps/SkyPillar_4F/scripts.inc8
-rw-r--r--data/maps/SkyPillar_Outside/scripts.inc8
-rw-r--r--data/maps/SkyPillar_Top/scripts.inc8
-rw-r--r--data/maps/SlateportCity/scripts.inc20
-rw-r--r--data/maps/SlateportCity_BattleTentCorridor/scripts.inc2
-rw-r--r--data/maps/SlateportCity_Harbor/scripts.inc18
-rw-r--r--data/maps/SlateportCity_OceanicMuseum_1F/scripts.inc12
-rw-r--r--data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc20
-rw-r--r--data/maps/SlateportCity_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/SlateportCity_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/SlateportCity_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/SlateportCity_PokemonFanClub/map.json2
-rw-r--r--data/maps/SootopolisCity/scripts.inc18
-rw-r--r--data/maps/SootopolisCity_MysteryEventsHouse_1F/scripts.inc8
-rw-r--r--data/maps/SootopolisCity_PokemonCenter_1F/map.json2
-rw-r--r--data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/SootopolisCity_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/SootopolisCity_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/SouthernIsland_Exterior/scripts.inc2
-rw-r--r--data/maps/SouthernIsland_Interior/scripts.inc8
-rw-r--r--data/maps/TerraCave_End/scripts.inc8
-rw-r--r--data/maps/TradeCenter/map.json2
-rw-r--r--data/maps/TrainerHill_Entrance/scripts.inc2
-rw-r--r--data/maps/VerdanturfTown_BattleTentBattleRoom/scripts.inc8
-rw-r--r--data/maps/VerdanturfTown_PokemonCenter_1F/map.json2
-rw-r--r--data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc2
-rw-r--r--data/maps/VerdanturfTown_PokemonCenter_2F/map.json8
-rw-r--r--data/maps/VerdanturfTown_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/VictoryRoad_1F/scripts.inc2
-rw-r--r--data/scripts/apprentice.inc14
-rw-r--r--data/scripts/battle_pike.inc38
-rw-r--r--data/scripts/cable_club.inc1786
-rw-r--r--data/scripts/cave_hole.inc22
-rw-r--r--data/scripts/cave_of_origin.inc2
-rw-r--r--data/scripts/elite_four.inc24
-rw-r--r--data/scripts/field_move_scripts.inc12
-rw-r--r--data/scripts/field_poison.inc38
-rw-r--r--data/scripts/gabby_and_ty.inc16
-rw-r--r--data/scripts/kecleon.inc57
-rw-r--r--data/scripts/mevent.inc39
-rw-r--r--data/scripts/move_tutors.inc317
-rw-r--r--data/scripts/movement.inc33
-rw-r--r--data/scripts/pc.inc42
-rw-r--r--data/scripts/pkmn_center_nurse.inc4
-rw-r--r--data/scripts/players_house.inc34
-rw-r--r--data/scripts/pokeblocks.inc10
-rw-r--r--data/scripts/prof_birch.inc61
-rw-r--r--data/scripts/roulette.inc49
-rw-r--r--data/scripts/secret_power_tm.inc6
-rw-r--r--data/scripts/trainer_hill.inc8
-rw-r--r--data/scripts/unusual_weather.inc9
-rw-r--r--data/specials.inc48
-rw-r--r--data/text/cable_club.inc485
-rw-r--r--data/text/mevent.inc16
-rw-r--r--data/text/move_tutors.inc82
244 files changed, 3436 insertions, 3608 deletions
diff --git a/data/berry_crush.s b/data/berry_crush.s
index 6535cd558..fa1170062 100755
--- a/data/berry_crush.s
+++ b/data/berry_crush.s
@@ -281,23 +281,23 @@ gUnknown_082F4304:: @ 82F4304
.align 2
gUnknown_082F430C:: @ 82F430C
- spr_template 0x0001, 0x0001, gUnknown_0852491C, gUnknown_082F42E8, NULL, gDummySpriteAffineAnimTable, SpriteCallbackDummy
+ spr_template 0x0001, 0x0001, gOamData_AffineOff_ObjNormal_64x64, gUnknown_082F42E8, NULL, gDummySpriteAffineAnimTable, SpriteCallbackDummy
.align 2
gUnknown_082F4324:: @ 82F4324
- spr_template 0x0002, 0x0002, gUnknown_08524914, gUnknown_082F42EC, NULL, gDummySpriteAffineAnimTable, sub_8022A20
+ spr_template 0x0002, 0x0002, gOamData_AffineOff_ObjNormal_32x32, gUnknown_082F42EC, NULL, gDummySpriteAffineAnimTable, sub_8022A20
.align 2
gUnknown_082F433C:: @ 82F433C
- spr_template 0x0003, 0x0002, gUnknown_0852490C, gUnknown_082F42F4, NULL, gDummySpriteAffineAnimTable, SpriteCallbackDummy
+ spr_template 0x0003, 0x0002, gOamData_AffineOff_ObjNormal_16x16, gUnknown_082F42F4, NULL, gDummySpriteAffineAnimTable, SpriteCallbackDummy
.align 2
gUnknown_082F4354:: @ 82F4354
- spr_template 0x0004, 0x0004, gUnknown_08524944, gUnknown_082F42FC, NULL, gDummySpriteAffineAnimTable, SpriteCallbackDummy
+ spr_template 0x0004, 0x0004, gOamData_AffineOff_ObjNormal_8x16, gUnknown_082F42FC, NULL, gDummySpriteAffineAnimTable, SpriteCallbackDummy
.align 2
gUnknown_082F436C:: @ 82F436C
- spr_template 0x0005, 0x0005, gUnknown_085249D4, gUnknown_082F4300, NULL, gUnknown_082F4304, SpriteCallbackDummy
+ spr_template 0x0005, 0x0005, gOamData_AffineDouble_ObjNormal_32x32, gUnknown_082F4300, NULL, gUnknown_082F4304, SpriteCallbackDummy
.align 2
gUnknown_082F4384:: @ 82F4384
diff --git a/data/event_scripts.s b/data/event_scripts.s
index 09888cc37..62489d1fb 100644
--- a/data/event_scripts.s
+++ b/data/event_scripts.s
@@ -1,8 +1,11 @@
#include "constants/global.h"
#include "constants/battle.h"
+#include "constants/battle_pike.h"
+#include "constants/battle_pyramid.h"
#include "constants/battle_frontier.h"
#include "constants/battle_setup.h"
#include "constants/berry.h"
+#include "constants/cable_club.h"
#include "constants/contest.h"
#include "constants/daycare.h"
#include "constants/decorations.h"
@@ -10,6 +13,7 @@
#include "constants/event_objects.h"
#include "constants/event_object_movement_constants.h"
#include "constants/field_effects.h"
+#include "constants/field_poison.h"
#include "constants/field_specials.h"
#include "constants/field_tasks.h"
#include "constants/flags.h"
@@ -23,13 +27,16 @@
#include "constants/maps.h"
#include "constants/metatile_labels.h"
#include "constants/moves.h"
+#include "constants/party_menu.h"
#include "constants/pokemon.h"
#include "constants/script_menu.h"
#include "constants/secret_bases.h"
#include "constants/songs.h"
#include "constants/species.h"
+#include "constants/trade.h"
#include "constants/trainer_hill.h"
#include "constants/trainers.h"
+#include "constants/tv.h"
#include "constants/vars.h"
#include "constants/weather.h"
.include "asm/macros.inc"
@@ -901,7 +908,7 @@ EventScript_PickItemUp:: @ 8271C3A
waitfanfare
waitmessage
bufferitemnameplural 1, VAR_0x8004, VAR_0x8005
- setvar VAR_0x8004, 12
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_IS_IN
special CallBattlePyramidFunction
compare VAR_RESULT, 1
goto_if_eq EventScript_271C86
@@ -1019,10 +1026,7 @@ Common_ShowEasyChatScreen:: @ 8271E7C
fadescreen 0
return
-DewfordTown_Gym_EventScript_271E84:: @ 8271E84
-LavaridgeTown_Gym_1F_EventScript_271E84:: @ 8271E84
-MauvilleCity_Gym_EventScript_271E84:: @ 8271E84
-RustboroCity_Gym_EventScript_271E84:: @ 8271E84
+Common_EventScript_ReadyPetalburgGymForBattle:: @ 8271E84
clearflag FLAG_HIDE_PETALBURG_GYM_GREETER
setflag FLAG_PETALBURG_MART_EXPANDED_ITEMS
return
@@ -1297,7 +1301,7 @@ RusturfTunnel_EventScript_272216:: @ 8272216
EventScript_27222B:: @ 827222B
delay 30
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
showobjectat 255, MAP_PETALBURG_CITY
delay 30
@@ -1315,9 +1319,9 @@ BirthIsland_Harbor_EventScript_272250:: @ 8272250
FarawayIsland_Entrance_EventScript_272250:: @ 8272250
NavelRock_Harbor_EventScript_272250:: @ 8272250
SouthernIsland_Exterior_EventScript_272250:: @ 8272250
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq BattleFrontier_OutsideWest_EventScript_242A21
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq BattleFrontier_OutsideWest_EventScript_242A2C
delay 30
hideobjectat 255, MAP_PETALBURG_CITY
@@ -1570,64 +1574,16 @@ EventScript_CableClub_SetVarResult0:: @ 8273755
setvar VAR_RESULT, 0
return
-BattleFrontier_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-DewfordTown_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-EverGrandeCity_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-EverGrandeCity_PokemonLeague_2F_EventScript_27375B:: @ 827375B
-FallarborTown_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-FortreeCity_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-LavaridgeTown_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-LilycoveCity_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-MauvilleCity_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-MossdeepCity_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-OldaleTown_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-PacifidlogTown_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-PetalburgCity_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-RustboroCity_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-SlateportCity_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-SootopolisCity_PokemonCenter_2F_EventScript_27375B:: @ 827375B
-VerdanturfTown_PokemonCenter_2F_EventScript_27375B:: @ 827375B
- call OldaleTown_PokemonCenter_2F_EventScript_27751B
+Common_EventScript_UnionRoomAttendant:: @ 827375B
+ call CableClub_EventScript_UnionRoomAttendant
end
-BattleFrontier_PokemonCenter_2F_EventScript_273761:: @ 8273761
-DewfordTown_PokemonCenter_2F_EventScript_273761:: @ 8273761
-EverGrandeCity_PokemonCenter_2F_EventScript_273761:: @ 8273761
-EverGrandeCity_PokemonLeague_2F_EventScript_273761:: @ 8273761
-FallarborTown_PokemonCenter_2F_EventScript_273761:: @ 8273761
-FortreeCity_PokemonCenter_2F_EventScript_273761:: @ 8273761
-LavaridgeTown_PokemonCenter_2F_EventScript_273761:: @ 8273761
-LilycoveCity_PokemonCenter_2F_EventScript_273761:: @ 8273761
-MauvilleCity_PokemonCenter_2F_EventScript_273761:: @ 8273761
-MossdeepCity_PokemonCenter_2F_EventScript_273761:: @ 8273761
-OldaleTown_PokemonCenter_2F_EventScript_273761:: @ 8273761
-PacifidlogTown_PokemonCenter_2F_EventScript_273761:: @ 8273761
-PetalburgCity_PokemonCenter_2F_EventScript_273761:: @ 8273761
-RustboroCity_PokemonCenter_2F_EventScript_273761:: @ 8273761
-SlateportCity_PokemonCenter_2F_EventScript_273761:: @ 8273761
-SootopolisCity_PokemonCenter_2F_EventScript_273761:: @ 8273761
-VerdanturfTown_PokemonCenter_2F_EventScript_273761:: @ 8273761
- call OldaleTown_PokemonCenter_2F_EventScript_277672
+Common_EventScript_WirelessClubAttendant:: @ 8273761
+ call CableClub_EventScript_WirelessClubAttendant
end
-BattleFrontier_PokemonCenter_2F_EventScript_273767:: @ 8273767
-DewfordTown_PokemonCenter_2F_EventScript_273767:: @ 8273767
-EverGrandeCity_PokemonCenter_2F_EventScript_273767:: @ 8273767
-EverGrandeCity_PokemonLeague_2F_EventScript_273767:: @ 8273767
-FallarborTown_PokemonCenter_2F_EventScript_273767:: @ 8273767
-FortreeCity_PokemonCenter_2F_EventScript_273767:: @ 8273767
-LavaridgeTown_PokemonCenter_2F_EventScript_273767:: @ 8273767
-LilycoveCity_PokemonCenter_2F_EventScript_273767:: @ 8273767
-MauvilleCity_PokemonCenter_2F_EventScript_273767:: @ 8273767
-MossdeepCity_PokemonCenter_2F_EventScript_273767:: @ 8273767
-OldaleTown_PokemonCenter_2F_EventScript_273767:: @ 8273767
-PacifidlogTown_PokemonCenter_2F_EventScript_273767:: @ 8273767
-PetalburgCity_PokemonCenter_2F_EventScript_273767:: @ 8273767
-RustboroCity_PokemonCenter_2F_EventScript_273767:: @ 8273767
-SlateportCity_PokemonCenter_2F_EventScript_273767:: @ 8273767
-SootopolisCity_PokemonCenter_2F_EventScript_273767:: @ 8273767
-VerdanturfTown_PokemonCenter_2F_EventScript_273767:: @ 8273767
- call OldaleTown_PokemonCenter_2F_EventScript_2776A4
+Common_EventScript_DirectCornerAttendant:: @ 8273767
+ call CableClub_EventScript_DirectCornerAttendant
end
Common_EventScript_RemoveStaticPokemon:: @ 827376D
@@ -1732,6 +1688,7 @@ EventScript_GotoTrainerScript:: @ 82742F6
.include "data/scripts/berry_tree.inc"
.include "data/scripts/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_strings.inc"
.include "data/text/contest_link.inc"
diff --git a/data/maps/AncientTomb/scripts.inc b/data/maps/AncientTomb/scripts.inc
index 48962d957..322bd06b7 100644
--- a/data/maps/AncientTomb/scripts.inc
+++ b/data/maps/AncientTomb/scripts.inc
@@ -10,7 +10,7 @@ AncientTomb_MapScript1_238FC3: @ 8238FC3
AncientTomb_EventScript_238FCD:: @ 8238FCD
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject VAR_LAST_TALKED
return
@@ -72,11 +72,11 @@ AncientTomb_EventScript_23905A:: @ 823905A
waitstate
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq AncientTomb_EventScript_2390A1
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq AncientTomb_EventScript_2390AA
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq AncientTomb_EventScript_2390AA
setflag FLAG_DEFEATED_REGISTEEL
release
diff --git a/data/maps/AquaHideout_B1F/scripts.inc b/data/maps/AquaHideout_B1F/scripts.inc
index 135926c77..83906c509 100644
--- a/data/maps/AquaHideout_B1F/scripts.inc
+++ b/data/maps/AquaHideout_B1F/scripts.inc
@@ -9,7 +9,7 @@ AquaHideout_B1F_MapScript1_2339B2: @ 82339B2
AquaHideout_B1F_EventScript_2339BC:: @ 82339BC
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject VAR_LAST_TALKED
return
@@ -39,11 +39,11 @@ AquaHideout_B1F_EventScript_2339EB:: @ 82339EB
dowildbattle
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq AquaHideout_B1F_EventScript_233A2F
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq AquaHideout_B1F_EventScript_233A2F
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq AquaHideout_B1F_EventScript_233A2F
setflag FLAG_DEFEATED_ELECTRODE_1_AQUA_HIDEOUT
release
@@ -66,11 +66,11 @@ AquaHideout_B1F_EventScript_233A38:: @ 8233A38
dowildbattle
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq AquaHideout_B1F_EventScript_233A7C
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq AquaHideout_B1F_EventScript_233A7C
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq AquaHideout_B1F_EventScript_233A7C
setflag FLAG_DEFEATED_ELECTRODE_2_AQUA_HIDEOUT
release
diff --git a/data/maps/AquaHideout_B2F/scripts.inc b/data/maps/AquaHideout_B2F/scripts.inc
index 975715fc2..87830e500 100644
--- a/data/maps/AquaHideout_B2F/scripts.inc
+++ b/data/maps/AquaHideout_B2F/scripts.inc
@@ -31,14 +31,14 @@ AquaHideout_B2F_EventScript_233E09:: @ 8233E09
AquaHideout_B2F_EventScript_233E25:: @ 8233E25
setvar VAR_0x8008, 1
setvar VAR_0x8009, 4
- applymovement VAR_0x8008, Common_Movement_WalkInPlaceLeft
+ applymovement VAR_0x8008, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
delay 20
applymovement VAR_0x8008, Common_Movement_FacePlayer
waitmovement 0
msgbox AquaHideout_B2F_Text_233FA6, MSGBOX_DEFAULT
closemessage
- applymovement VAR_0x8008, Common_Movement_WalkInPlaceLeft
+ applymovement VAR_0x8008, Common_Movement_WalkInPlaceFastestLeft
applymovement VAR_0x8009, AquaHideout_B2F_Movement_233E80
waitmovement 0
removeobject VAR_0x8009
diff --git a/data/maps/BattleFrontier_BattleDomeBattleRoom/scripts.inc b/data/maps/BattleFrontier_BattleDomeBattleRoom/scripts.inc
index a44b51ef5..5ef17d381 100644
--- a/data/maps/BattleFrontier_BattleDomeBattleRoom/scripts.inc
+++ b/data/maps/BattleFrontier_BattleDomeBattleRoom/scripts.inc
@@ -43,7 +43,7 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_24BD0A:: @ 824BD0A
call BattleFrontier_BattleDomeBattleRoom_EventScript_24C1BD
compare VAR_RESULT, 0
call_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_24C938
- applymovement 1, BattleFrontier_BattleDomeBattleRoom_Movement_2725B4
+ applymovement 1, Common_Movement_WalkInPlaceDown
waitmovement 0
call BattleFrontier_BattleDomeBattleRoom_EventScript_24BFD5
msgbox BattleFrontier_BattleDomeBattleRoom_Text_24C970, MSGBOX_DEFAULT
@@ -114,7 +114,7 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_24BDF7:: @ 824BDF7
case 1, BattleFrontier_BattleDomeBattleRoom_EventScript_24BEE0
BattleFrontier_BattleDomeBattleRoom_EventScript_24BE4F:: @ 824BE4F
- applymovement 1, BattleFrontier_BattleDomeBattleRoom_Movement_2725B4
+ applymovement 1, Common_Movement_WalkInPlaceDown
waitmovement 0
setvar VAR_0x8004, 4
special CallBattleDomeFunction
@@ -163,7 +163,7 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_24BED9:: @ 824BED9
return
BattleFrontier_BattleDomeBattleRoom_EventScript_24BEE0:: @ 824BEE0
- applymovement 1, BattleFrontier_BattleDomeBattleRoom_Movement_2725B4
+ applymovement 1, Common_Movement_WalkInPlaceDown
waitmovement 0
compare VAR_TEMP_2, 0
call_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_24BFC3
diff --git a/data/maps/BattleFrontier_BattleFactoryBattleRoom/scripts.inc b/data/maps/BattleFrontier_BattleFactoryBattleRoom/scripts.inc
index 9c76544f6..68e6194cf 100644
--- a/data/maps/BattleFrontier_BattleFactoryBattleRoom/scripts.inc
+++ b/data/maps/BattleFrontier_BattleFactoryBattleRoom/scripts.inc
@@ -304,12 +304,12 @@ BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25B1AA:: @ 825B1AA
end
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B1B4:: @ 825B1B4
- applymovement 1, Common_Movement_WalkInPlaceRight
- applymovement 3, Common_Movement_WalkInPlaceRight
- applymovement 4, Common_Movement_WalkInPlaceRight
- applymovement 5, Common_Movement_WalkInPlaceLeft
- applymovement 6, Common_Movement_WalkInPlaceLeft
- applymovement 7, Common_Movement_WalkInPlaceLeft
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
+ applymovement 3, Common_Movement_WalkInPlaceFastestRight
+ applymovement 4, Common_Movement_WalkInPlaceFastestRight
+ applymovement 5, Common_Movement_WalkInPlaceFastestLeft
+ applymovement 6, Common_Movement_WalkInPlaceFastestLeft
+ applymovement 7, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
diff --git a/data/maps/BattleFrontier_BattlePalaceBattleRoom/scripts.inc b/data/maps/BattleFrontier_BattlePalaceBattleRoom/scripts.inc
index 605807580..0513e2bb3 100644
--- a/data/maps/BattleFrontier_BattlePalaceBattleRoom/scripts.inc
+++ b/data/maps/BattleFrontier_BattlePalaceBattleRoom/scripts.inc
@@ -278,10 +278,10 @@ BattleFrontier_BattlePalaceBattleRoom_EventScript_24FCC7:: @ 824FCC7
waitfanfare
setvar VAR_0x8004, 13
special CallFrontierUtilFunc
- applymovement 2, BattleFrontier_BattlePalaceBattleRoom_Movement_2725B6
+ applymovement 2, Common_Movement_WalkInPlaceLeft
waitmovement 0
- applymovement 1, Common_Movement_WalkInPlaceRight
- applymovement 3, Common_Movement_WalkInPlaceRight
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
+ applymovement 3, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_250412, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB28
@@ -321,10 +321,10 @@ BattleFrontier_BattlePalaceBattleRoom_EventScript_24FD84:: @ 824FD84
waitfanfare
setvar VAR_0x8004, 13
special CallFrontierUtilFunc
- applymovement 2, BattleFrontier_BattlePalaceBattleRoom_Movement_2725B6
+ applymovement 2, Common_Movement_WalkInPlaceLeft
waitmovement 0
- applymovement 1, Common_Movement_WalkInPlaceRight
- applymovement 3, Common_Movement_WalkInPlaceRight
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
+ applymovement 3, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_2506C4, MSGBOX_DEFAULT
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB28
diff --git a/data/maps/BattleFrontier_BattlePikeCorridor/scripts.inc b/data/maps/BattleFrontier_BattlePikeCorridor/scripts.inc
index 20e14b72b..44027d7ce 100644
--- a/data/maps/BattleFrontier_BattlePikeCorridor/scripts.inc
+++ b/data/maps/BattleFrontier_BattlePikeCorridor/scripts.inc
@@ -13,9 +13,9 @@ BattleFrontier_BattlePikeCorridor_EventScript_25C786:: @ 825C786
setvar VAR_0x8005, 2
setvar VAR_0x8006, 1
special CallFrontierUtilFunc
- setvar VAR_0x8004, 20
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_CLEAR_TRAINER_IDS
special CallBattlePikeFunction
- setvar VAR_0x8004, 24
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_HEALING_ROOMS_DISABLED
setvar VAR_0x8005, 1
special CallBattlePikeFunction
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattlePikeCorridor_Movement_25C80B
diff --git a/data/maps/BattleFrontier_BattlePikeLobby/scripts.inc b/data/maps/BattleFrontier_BattlePikeLobby/scripts.inc
index c3f5e80de..541ffd313 100644
--- a/data/maps/BattleFrontier_BattlePikeLobby/scripts.inc
+++ b/data/maps/BattleFrontier_BattlePikeLobby/scripts.inc
@@ -26,16 +26,16 @@ BattleFrontier_BattlePikeLobby_EventScript_25B707:: @ 825B707
BattleFrontier_BattlePikeLobby_EventScript_25B710:: @ 825B710
special HealPlayerParty
- setvar VAR_0x8004, 27
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_LOAD_MON_HELD_ITEMS
special CallBattlePikeFunction
lockall
msgbox BattleFrontier_BattlePikeLobby_Text_25C2E0, MSGBOX_DEFAULT
closemessage
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_DATA
setvar VAR_0x8005, 1
setvar VAR_0x8006, 0
special CallBattlePikeFunction
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_DATA
setvar VAR_0x8005, 4
setvar VAR_0x8006, 0
special CallBattlePikeFunction
@@ -68,21 +68,21 @@ BattleFrontier_BattlePikeLobby_EventScript_25B78D:: @ 825B78D
msgbox BattleFrontier_BattlePikeLobby_Text_241520, 9
setvar VAR_0x8004, 8
special CallFrontierUtilFunc
- setvar VAR_0x8004, 1
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_DATA
setvar VAR_0x8005, 3
special CallBattlePikeFunction
addvar VAR_RESULT, 1
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_DATA
setvar VAR_0x8005, 3
copyvar VAR_0x8006, VAR_RESULT
special CallBattlePikeFunction
special LoadPlayerParty
special HealPlayerParty
- setvar VAR_0x8004, 27
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_LOAD_MON_HELD_ITEMS
special CallBattlePikeFunction
message BattleFrontier_BattlePikeLobby_Text_25C1DF
waitmessage
- setvar VAR_0x8004, 8
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_8
setvar VAR_0x8005, 0
special CallBattlePikeFunction
playse SE_SAVE
@@ -103,15 +103,15 @@ BattleFrontier_BattlePikeLobby_EventScript_25B806:: @ 825B806
setvar VAR_0x8005, 2
setvar VAR_0x8006, 0
special CallFrontierUtilFunc
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_DATA
setvar VAR_0x8005, 4
setvar VAR_0x8006, 0
special CallBattlePikeFunction
special LoadPlayerParty
special HealPlayerParty
- setvar VAR_0x8004, 27
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_LOAD_MON_HELD_ITEMS
special CallBattlePikeFunction
- setvar VAR_0x8004, 8
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_8
setvar VAR_0x8005, 0
special CallBattlePikeFunction
playse SE_SAVE
@@ -176,17 +176,17 @@ BattleFrontier_BattlePikeLobby_EventScript_25B95C:: @ 825B95C
setvar VAR_0x8004, 2
setvar VAR_0x8005, 4
special CallFrontierUtilFunc
- setvar VAR_0x8004, 28
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_INIT_CHALLENGE
special CallBattlePikeFunction
setvar VAR_0x8004, 2
setvar VAR_0x8005, 0
setvar VAR_0x8006, 1
special CallFrontierUtilFunc
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_DATA
setvar VAR_0x8005, 4
setvar VAR_0x8006, 1
special CallBattlePikeFunction
- setvar VAR_0x8004, 26
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SAVE_MON_HELD_ITEMS
special CallBattlePikeFunction
setvar VAR_0x8004, 2
setvar VAR_0x8005, 3
@@ -197,7 +197,7 @@ BattleFrontier_BattlePikeLobby_EventScript_25B95C:: @ 825B95C
delay 2
call Common_EventScript_SaveGame
setvar VAR_TEMP_0, 255
- setvar VAR_0x8004, 26
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SAVE_MON_HELD_ITEMS
special CallBattlePikeFunction
compare VAR_RESULT, 0
goto_if_eq BattleFrontier_BattlePikeLobby_EventScript_25BA5C
diff --git a/data/maps/BattleFrontier_BattlePikeRandomRoom1/scripts.inc b/data/maps/BattleFrontier_BattlePikeRandomRoom1/scripts.inc
index ea959387b..565e28d47 100644
--- a/data/maps/BattleFrontier_BattlePikeRandomRoom1/scripts.inc
+++ b/data/maps/BattleFrontier_BattlePikeRandomRoom1/scripts.inc
@@ -11,7 +11,7 @@ BattleFrontier_BattlePikeRandomRoom1_MapScript2_25D167: @ 825D167
BattleFrontier_BattlePikeRandomRoom1_EventScript_25D171:: @ 825D171
setvar VAR_TEMP_0, 1
- setvar VAR_0x8004, 5
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_TYPE
special CallBattlePikeFunction
switch VAR_RESULT
case 0, BattleFrontier_BattlePikeRandomRoom1_EventScript_25D1C6
@@ -27,7 +27,7 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_25D1C6:: @ 825D1C6
delay 16
applymovement 1, BattleFrontier_BattlePikeRandomRoom1_Movement_25D795
waitmovement 0
- setvar VAR_0x8004, 21
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_BUFFER_RECORD_MIX_MSG
setvar VAR_0x8005, 0
special CallBattlePikeFunction
msgbox gStringVar4, MSGBOX_DEFAULT
@@ -63,7 +63,7 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_25D231:: @ 825D231
closemessage
applymovement 1, BattleFrontier_BattlePikeRandomRoom1_Movement_25D795
waitmovement 0
- setvar VAR_0x8004, 21
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_BUFFER_RECORD_MIX_MSG
setvar VAR_0x8005, 0
special CallBattlePikeFunction
msgbox gStringVar4, MSGBOX_DEFAULT
@@ -102,7 +102,7 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_25D2BF:: @ 825D2BF
lockall
applymovement 2, BattleFrontier_BattlePikeRandomRoom1_Movement_25D7DF
waitmovement 0
- setvar VAR_0x8004, 23
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_HEAL_MONS_BEFORE_QUEEN
special CallBattlePikeFunction
switch VAR_RESULT
case 0, BattleFrontier_BattlePikeRandomRoom1_EventScript_25D4DC
@@ -136,7 +136,7 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_25D2FB:: @ 825D2FB
waitse
applymovement 1, BattleFrontier_BattlePikeRandomRoom1_Movement_25D7E7
waitmovement 0
- setvar VAR_0x8004, 22
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_QUEEN_FIGHT_TYPE
special CallBattlePikeFunction
switch VAR_RESULT
case 2, BattleFrontier_BattlePikeRandomRoom1_EventScript_25D416
@@ -217,11 +217,11 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_25D49D:: @ 825D49D
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattlePikeRandomRoom1_Movement_25D7DC
waitmovement 0
- setvar VAR_0x8004, 1
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_DATA
setvar VAR_0x8005, 1
special CallBattlePikeFunction
addvar VAR_RESULT, 1
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_DATA
setvar VAR_0x8005, 1
copyvar VAR_0x8006, VAR_RESULT
special CallBattlePikeFunction
@@ -279,7 +279,7 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_25D53E:: @ 825D53E
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattlePikeRandomRoom1_Movement_25D7BB
waitmovement 0
- setvar VAR_0x8004, 21
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_BUFFER_RECORD_MIX_MSG
setvar VAR_0x8005, 0
special CallBattlePikeFunction
msgbox gStringVar4, MSGBOX_DEFAULT
@@ -287,7 +287,7 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_25D53E:: @ 825D53E
delay 16
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattlePikeRandomRoom1_Movement_25D7BD
waitmovement 0
- setvar VAR_0x8004, 21
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_BUFFER_RECORD_MIX_MSG
setvar VAR_0x8005, 1
special CallBattlePikeFunction
msgbox gStringVar4, MSGBOX_DEFAULT
@@ -317,7 +317,7 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_25D605:: @ 825D605
message BattleFrontier_BattlePikeRandomRoom1_Text_25DBD1
applymovement 2, BattleFrontier_BattlePikeRandomRoom1_Movement_25D7AA
waitmovement 0
- setvar VAR_0x8004, 12
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_STATUS_MON
special CallBattlePikeFunction
copyvar VAR_0x8004, VAR_RESULT
compare VAR_0x8004, 0
@@ -335,7 +335,7 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_25D643:: @ 825D643
waitse
playmoncry SPECIES_KIRLIA, 0
waitmoncry
- setvar VAR_0x8004, 11
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_STATUS
special CallBattlePikeFunction
compare VAR_RESULT, 2
call_if_eq BattleFrontier_BattlePikeRandomRoom1_EventScript_25D751
@@ -345,7 +345,7 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_25D643:: @ 825D643
call_if_eq BattleFrontier_BattlePikeRandomRoom1_EventScript_25D75F
compare VAR_RESULT, 4
call_if_eq BattleFrontier_BattlePikeRandomRoom1_EventScript_25D766
- setvar VAR_0x8004, 15
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_STATUS_SCREEN_FADE
special CallBattlePikeFunction
waitstate
applymovement 1, BattleFrontier_BattlePikeRandomRoom1_Movement_25D7A2
@@ -372,13 +372,13 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_25D6D5:: @ 825D6D5
waitse
playmoncry SPECIES_DUSCLOPS, 0
waitmoncry
- setvar VAR_0x8004, 11
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_STATUS
special CallBattlePikeFunction
compare VAR_RESULT, 0
call_if_eq BattleFrontier_BattlePikeRandomRoom1_EventScript_25D76D
compare VAR_RESULT, 1
call_if_eq BattleFrontier_BattlePikeRandomRoom1_EventScript_25D774
- setvar VAR_0x8004, 15
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_STATUS_SCREEN_FADE
special CallBattlePikeFunction
waitstate
applymovement 1, BattleFrontier_BattlePikeRandomRoom1_Movement_25D7A2
@@ -578,7 +578,7 @@ BattleFrontier_BattlePikeRandomRoom1_Movement_25D7EA: @ 825D7EA
step_end
BattleFrontier_BattlePikeRandomRoom1_EventScript_25D7ED:: @ 825D7ED
- setvar VAR_0x8004, 5
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_TYPE
special CallBattlePikeFunction
switch VAR_RESULT
case 2, BattleFrontier_BattlePikeRandomRoom1_EventScript_25D81B
@@ -588,7 +588,7 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_25D7ED:: @ 825D7ED
BattleFrontier_BattlePikeRandomRoom1_EventScript_25D81B:: @ 825D81B
lock
faceplayer
- setvar VAR_0x8004, 14
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_BUFFER_NPC_MSG
special CallBattlePikeFunction
msgbox gStringVar4, MSGBOX_DEFAULT
waitmessage
@@ -605,7 +605,7 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_25D831:: @ 825D831
end
BattleFrontier_BattlePikeRandomRoom1_EventScript_25D83E:: @ 825D83E
- setvar VAR_0x8004, 13
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_HEAL_ONE_TWO_MONS
special CallBattlePikeFunction
compare VAR_RESULT, 2
call_if_eq BattleFrontier_BattlePikeRandomRoom1_EventScript_25D881
diff --git a/data/maps/BattleFrontier_BattlePikeRandomRoom3/scripts.inc b/data/maps/BattleFrontier_BattlePikeRandomRoom3/scripts.inc
index 9a4448226..a18ccda4c 100644
--- a/data/maps/BattleFrontier_BattlePikeRandomRoom3/scripts.inc
+++ b/data/maps/BattleFrontier_BattlePikeRandomRoom3/scripts.inc
@@ -11,7 +11,7 @@ BattleFrontier_BattlePikeRandomRoom3_MapScript2_25E42A: @ 825E42A
BattleFrontier_BattlePikeRandomRoom3_EventScript_25E43C:: @ 825E43C
setvar VAR_TEMP_0, 1
- setvar VAR_0x8004, 6
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_6
special CallBattlePikeFunction
end
diff --git a/data/maps/BattleFrontier_BattlePikeThreePathRoom/scripts.inc b/data/maps/BattleFrontier_BattlePikeThreePathRoom/scripts.inc
index 927222e8c..6416ad4d7 100644
--- a/data/maps/BattleFrontier_BattlePikeThreePathRoom/scripts.inc
+++ b/data/maps/BattleFrontier_BattlePikeThreePathRoom/scripts.inc
@@ -35,7 +35,7 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_25C8A4:: @ 825C8A4
lockall
message BattleFrontier_BattlePikeThreePathRoom_Text_25CD75
waitmessage
- setvar VAR_0x8004, 8
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_8
setvar VAR_0x8005, 1
special CallBattlePikeFunction
playse SE_SAVE
@@ -137,7 +137,7 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9FD:: @ 825C9FD
message BattleFrontier_BattlePikeThreePathRoom_Text_25CE08
waitmessage
special LoadPlayerParty
- setvar VAR_0x8004, 8
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_8
setvar VAR_0x8005, 2
special CallBattlePikeFunction
playse SE_SAVE
@@ -161,12 +161,12 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA5A:: @ 825CA5A
waitmessage
multichoicedefault 20, 8, MULTI_YESNO, 1, 0
switch VAR_RESULT
- case 0, BattleFrontier_BattlePikeThreePathRoom_EventScript_2C4222
+ case 0, BattleFrontier_BattlePike_EventScript_Retire
release
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA78:: @ 825CA78
- setvar VAR_0x8004, 17
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_HINT_ROOM
special CallBattlePikeFunction
compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA91
@@ -189,7 +189,7 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA97:: @ 825CA97
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25CABB:: @ 825CABB
- setvar VAR_0x8004, 19
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_TYPE_HINT
special CallBattlePikeFunction
compare VAR_RESULT, 4
goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_25CBC2
@@ -209,7 +209,7 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_25CB00:: @ 825CB00
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25CB0A:: @ 825CB0A
- setvar VAR_0x8004, 18
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_HINT_ROOM_ID
special CallBattlePikeFunction
switch VAR_RESULT
case 0, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CB39
@@ -230,7 +230,7 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_25CB53:: @ 825CB53
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25CB60
BattleFrontier_BattlePikeThreePathRoom_EventScript_25CB60:: @ 825CB60
- setvar VAR_0x8004, 19
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_TYPE_HINT
special CallBattlePikeFunction
switch VAR_RESULT
case 0, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CB9A
diff --git a/data/maps/BattleFrontier_BattlePyramidEmptySquare/scripts.inc b/data/maps/BattleFrontier_BattlePyramidEmptySquare/scripts.inc
index 723c666d8..ba862ebdf 100644
--- a/data/maps/BattleFrontier_BattlePyramidEmptySquare/scripts.inc
+++ b/data/maps/BattleFrontier_BattlePyramidEmptySquare/scripts.inc
@@ -12,7 +12,7 @@ BattleFrontier_BattlePyramidEmptySquare_MapScript2_252A43: @ 8252A43
BattleFrontier_BattlePyramidEmptySquare_EventScript_252A5D:: @ 8252A5D
lockall
- setvar VAR_0x8004, 13
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_UPDATE_LIGHT
setvar VAR_0x8005, 4
setvar VAR_0x8006, 1
setvar VAR_0x8007, 55
@@ -38,7 +38,7 @@ BattleFrontier_BattlePyramidEmptySquare_EventScript_252A98:: @ 8252A98
end
BattleFrontier_BattlePyramidEmptySquare_MapScript1_252AA2: @ 8252AA2
- setvar VAR_0x8004, 15
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_FLOOR_PALETTE
special CallBattlePyramidFunction
setvar VAR_0x8004, 0
special CallFrontierUtilFunc
@@ -67,7 +67,7 @@ BattleFrontier_BattlePyramidEmptySquare_MapScript1_252AA2: @ 8252AA2
setvar VAR_TEMP_D, 1
BattleFrontier_BattlePyramidEmptySquare_EventScript_252B39:: @ 8252B39
- setvar VAR_0x8004, 17
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_RESTORE_PARTY
special CallBattlePyramidFunction
end
@@ -77,18 +77,18 @@ BattleFrontier_BattlePyramidTop_EventScript_252B42:: @ 8252B42
setvar VAR_0x8005, 0
setvar VAR_0x8006, 4
special CallFrontierUtilFunc
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_DATA
setvar VAR_0x8005, 7
setvar VAR_0x8006, 255
special CallBattlePyramidFunction
BattleFrontier_BattlePyramidEmptySquare_EventScript_252B66:: @ 8252B66
BattleFrontier_BattlePyramidTop_EventScript_252B66:: @ 8252B66
- setvar VAR_0x8004, 13
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_UPDATE_LIGHT
setvar VAR_0x8005, 0
setvar VAR_0x8006, 0
special CallBattlePyramidFunction
- setvar VAR_0x8004, 14
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_CLEAR_HELD_ITEMS
special CallBattlePyramidFunction
special HealPlayerParty
warpsilent MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_LOBBY, 255, 7, 13
@@ -96,7 +96,7 @@ BattleFrontier_BattlePyramidTop_EventScript_252B66:: @ 8252B66
end
BattleFrontier_BattlePyramidEmptySquare_EventScript_252B8D:: @ 8252B8D
- setvar VAR_0x8004, 3
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_3
setvar VAR_0x8005, 1
special CallBattlePyramidFunction
special SavePlayerParty
@@ -104,7 +104,7 @@ BattleFrontier_BattlePyramidEmptySquare_EventScript_252B8D:: @ 8252B8D
setvar VAR_0x8005, 0
setvar VAR_0x8006, 0
special CallFrontierUtilFunc
- setvar VAR_0x8004, 9
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_INIT_TRAINERS
special CallBattlePyramidFunction
setvar VAR_0x8004, 3
setvar VAR_0x8005, 3
@@ -118,7 +118,7 @@ BattleFrontier_BattlePyramidEmptySquare_MapScript1_252BCA: @ 8252BCA
end
BattleFrontier_BattlePyramidEmptySquare_EventScript_252BD5:: @ 8252BD5
- setvar VAR_0x8004, 13
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_UPDATE_LIGHT
setvar VAR_0x8005, 32
setvar VAR_0x8006, 0
special CallBattlePyramidFunction
@@ -136,7 +136,7 @@ BattleFrontier_BattlePyramidEmptySquare_EventScript_252BE8:: @ 8252BE8
special CallFrontierUtilFunc
compare VAR_RESULT, 7
goto_if_eq BattleFrontier_BattlePyramidEmptySquare_EventScript_252C45
- setvar VAR_0x8004, 6
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SEED_FLOOR
special CallBattlePyramidFunction
setvar VAR_0x8004, 2
setvar VAR_0x8005, 0
@@ -154,7 +154,7 @@ BattleFrontier_BattlePyramidEmptySquare_EventScript_252C45:: @ 8252C45
BattlePyramid_TrainerBattle:: @ 8252C4F
trainerbattle TRAINER_BATTLE_PYRAMID, TRAINER_PHILLIP, 0, BattleFacility_TrainerBattle_PlaceholderText, BattleFacility_TrainerBattle_PlaceholderText
- setvar VAR_0x8004, 10
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SHOW_HINT_TEXT
special CallBattlePyramidFunction
waitmessage
waitbuttonpress
@@ -163,12 +163,12 @@ BattlePyramid_TrainerBattle:: @ 8252C4F
end
BattlePyramid_FindItemBall:: @ 8252C6A
- setvar VAR_0x8004, 7
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_ITEM
special CallBattlePyramidFunction
callstd STD_FIND_ITEM
compare VAR_0x8007, 0
goto_if_eq BattlePyramid_FindItemBall_End
- setvar VAR_0x8004, 8
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_HIDE_ITEM
special CallBattlePyramidFunction
BattlePyramid_FindItemBall_End:: @ 8252C87
diff --git a/data/maps/BattleFrontier_BattlePyramidLobby/scripts.inc b/data/maps/BattleFrontier_BattlePyramidLobby/scripts.inc
index b2f7d4579..72abed5ef 100644
--- a/data/maps/BattleFrontier_BattlePyramidLobby/scripts.inc
+++ b/data/maps/BattleFrontier_BattlePyramidLobby/scripts.inc
@@ -32,11 +32,11 @@ BattleFrontier_BattlePyramidLobby_EventScript_250768:: @ 8250768
playse SE_EXPMAX
waitse
closemessage
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_DATA
setvar VAR_0x8005, 1
setvar VAR_0x8006, 0
special CallBattlePyramidFunction
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_DATA
setvar VAR_0x8005, 2
setvar VAR_0x8006, 0
special CallBattlePyramidFunction
@@ -68,7 +68,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_2507DA:: @ 82507DA
setvar VAR_0x8004, 8
special CallFrontierUtilFunc
special LoadPlayerParty
- setvar VAR_0x8004, 14
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_CLEAR_HELD_ITEMS
special CallBattlePyramidFunction
special HealPlayerParty
message BattleFrontier_BattlePyramidLobby_Text_2519F8
@@ -81,9 +81,9 @@ BattleFrontier_BattlePyramidLobby_EventScript_2507DA:: @ 82507DA
msgbox BattleFrontier_BattlePyramidLobby_Text_241520, 9
message BattleFrontier_BattlePyramidLobby_Text_251A77
waitmessage
- setvar VAR_0x8004, 4
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_REWARD
special CallBattlePyramidFunction
- setvar VAR_0x8004, 3
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_3
setvar VAR_0x8005, 0
special CallBattlePyramidFunction
playse SE_SAVE
@@ -98,7 +98,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_250852:: @ 8250852
setvar VAR_0x8004, 8
special CallFrontierUtilFunc
special LoadPlayerParty
- setvar VAR_0x8004, 14
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_CLEAR_HELD_ITEMS
special CallBattlePyramidFunction
special HealPlayerParty
lockall
@@ -108,11 +108,11 @@ BattleFrontier_BattlePyramidLobby_EventScript_250852:: @ 8250852
waitse
message BattleFrontier_BattlePyramidLobby_Text_251A77
waitmessage
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_DATA
setvar VAR_0x8005, 2
setvar VAR_0x8006, 0
special CallBattlePyramidFunction
- setvar VAR_0x8004, 3
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_3
setvar VAR_0x8005, 0
special CallBattlePyramidFunction
playse SE_SAVE
@@ -179,9 +179,9 @@ BattleFrontier_BattlePyramidLobby_EventScript_2509A5:: @ 82509A5
setvar VAR_0x8004, 2
setvar VAR_0x8005, 4
special CallFrontierUtilFunc
- setvar VAR_0x8004, 0
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_INIT_CHALLENGE
special CallBattlePyramidFunction
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SET_DATA
setvar VAR_0x8005, 2
setvar VAR_0x8006, 1
special CallBattlePyramidFunction
@@ -193,9 +193,9 @@ BattleFrontier_BattlePyramidLobby_EventScript_2509A5:: @ 82509A5
setvar VAR_0x8005, 3
setvar VAR_0x8006, 0
special CallFrontierUtilFunc
- setvar VAR_0x8004, 6
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_SEED_FLOOR
special CallBattlePyramidFunction
- setvar VAR_0x8004, 9
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_INIT_TRAINERS
special CallBattlePyramidFunction
special LoadPlayerParty
closemessage
@@ -282,7 +282,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_250B27:: @ 8250B27
BattleFrontier_BattlePyramidLobby_EventScript_250B28:: @ 8250B28
msgbox BattleFrontier_BattlePyramidLobby_Text_251C8A, MSGBOX_DEFAULT
- setvar VAR_0x8004, 1
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_GET_DATA
setvar VAR_0x8005, 5
special CallBattlePyramidFunction
compare VAR_RESULT, 0
@@ -292,7 +292,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_250B28:: @ 8250B28
return
BattleFrontier_BattlePyramidLobby_EventScript_250B53:: @ 8250B53
- setvar VAR_0x8004, 1
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_GET_DATA
setvar VAR_0x8005, 3
special CallBattlePyramidFunction
goto BattleFrontier_BattlePyramidLobby_EventScript_250BA4
@@ -300,7 +300,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_250B53:: @ 8250B53
BattleFrontier_BattlePyramidLobby_EventScript_250B66:: @ 8250B66
msgbox BattleFrontier_BattlePyramidLobby_Text_251C8A, MSGBOX_DEFAULT
- setvar VAR_0x8004, 1
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_GET_DATA
setvar VAR_0x8005, 6
special CallBattlePyramidFunction
compare VAR_RESULT, 0
@@ -310,7 +310,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_250B66:: @ 8250B66
return
BattleFrontier_BattlePyramidLobby_EventScript_250B91:: @ 8250B91
- setvar VAR_0x8004, 1
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_GET_DATA
setvar VAR_0x8005, 4
special CallBattlePyramidFunction
goto BattleFrontier_BattlePyramidLobby_EventScript_250BA4
@@ -437,7 +437,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_250D56:: @ 8250D56
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattlePyramidLobby_Movement_250DCD
waitmovement 0
msgbox BattleFrontier_BattlePyramidLobby_Text_251569, MSGBOX_DEFAULT
- setvar VAR_0x8004, 1
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_GET_DATA
setvar VAR_0x8005, 1
special CallBattlePyramidFunction
compare VAR_RESULT, 0
diff --git a/data/maps/BattleFrontier_BattlePyramidTop/scripts.inc b/data/maps/BattleFrontier_BattlePyramidTop/scripts.inc
index 211ab0c87..8906d4c42 100644
--- a/data/maps/BattleFrontier_BattlePyramidTop/scripts.inc
+++ b/data/maps/BattleFrontier_BattlePyramidTop/scripts.inc
@@ -6,7 +6,7 @@ BattleFrontier_BattlePyramidTop_MapScripts:: @ 82550A1
.byte 0
BattleFrontier_BattlePyramidTop_MapScript1_2550B6: @ 82550B6
- setvar VAR_0x8004, 13
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_UPDATE_LIGHT
setvar VAR_0x8005, 200
setvar VAR_0x8006, 0
special CallBattlePyramidFunction
@@ -69,7 +69,7 @@ BattleFrontier_BattlePyramidTop_EventScript_25518A:: @ 825518A
end
BattleFrontier_BattlePyramidTop_EventScript_255193:: @ 8255193
- setvar VAR_0x8004, 3
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_3
setvar VAR_0x8005, 1
special CallBattlePyramidFunction
special SavePlayerParty
@@ -77,7 +77,7 @@ BattleFrontier_BattlePyramidTop_EventScript_255193:: @ 8255193
setvar VAR_0x8005, 0
setvar VAR_0x8006, 0
special CallFrontierUtilFunc
- setvar VAR_0x8004, 9
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_INIT_TRAINERS
special CallBattlePyramidFunction
setvar VAR_0x8004, 3
setvar VAR_0x8005, 3
diff --git a/data/maps/BattleFrontier_BattleTowerBattleRoom/scripts.inc b/data/maps/BattleFrontier_BattleTowerBattleRoom/scripts.inc
index ce171e3c0..f2c6ca0ac 100644
--- a/data/maps/BattleFrontier_BattleTowerBattleRoom/scripts.inc
+++ b/data/maps/BattleFrontier_BattleTowerBattleRoom/scripts.inc
@@ -230,7 +230,7 @@ BattleFrontier_BattleTowerBattleRoom_EventScript_241EBA:: @ 8241EBA
BattleFrontier_BattleTowerBattleRoom_EventScript_241EC3:: @ 8241EC3
applymovement 3, BattleFrontier_BattleTowerBattleRoom_Movement_24219A
waitmovement 0
- applymovement 3, BattleFrontier_BattleTowerBattleRoom_Movement_2725B6
+ applymovement 3, Common_Movement_WalkInPlaceLeft
waitmovement 0
playse SE_PIN
applymovement 2, Common_Movement_ExclamationMark
diff --git a/data/maps/BattleFrontier_BattleTowerCorridor2/scripts.inc b/data/maps/BattleFrontier_BattleTowerCorridor2/scripts.inc
index 097e732ab..786f1fa3e 100644
--- a/data/maps/BattleFrontier_BattleTowerCorridor2/scripts.inc
+++ b/data/maps/BattleFrontier_BattleTowerCorridor2/scripts.inc
@@ -68,8 +68,8 @@ BattleFrontier_BattleTowerCorridor2_EventScript_248DBC:: @ 8248DBC
applymovement 2, BattleFrontier_BattleTowerCorridor2_Movement_248ED5
waitmovement 0
delay 40
- applymovement 3, Common_Movement_WalkInPlaceUp
- applymovement 2, Common_Movement_WalkInPlaceUp
+ applymovement 3, Common_Movement_WalkInPlaceFastestUp
+ applymovement 2, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
opendoor 7, 1
waitdooranim
diff --git a/data/maps/BattleFrontier_BattleTowerLobby/scripts.inc b/data/maps/BattleFrontier_BattleTowerLobby/scripts.inc
index 888faa268..00205942d 100644
--- a/data/maps/BattleFrontier_BattleTowerLobby/scripts.inc
+++ b/data/maps/BattleFrontier_BattleTowerLobby/scripts.inc
@@ -926,16 +926,16 @@ BattleFrontier_BattleTowerLobby_EventScript_23F2B7:: @ 823F2B7
return
BattleFrontier_BattleTowerLobby_EventScript_23F2C5:: @ 823F2C5
- setvar VAR_0x8004, 9
+ setvar VAR_0x8004, USING_BATTLE_TOWER
message gText_PleaseWaitForLink
waitmessage
setvar VAR_0x8005, 0
- special sub_80B2DA4
+ special TryBattleLinkup
waitstate
compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_23F3AF
compare VAR_RESULT, 2
- goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_2772D2
+ goto_if_eq CableClub_EventScript_AbortLinkSomeoneNotReady
compare VAR_RESULT, 3
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_23F327
compare VAR_RESULT, 4
@@ -943,7 +943,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23F2C5:: @ 823F2C5
compare VAR_RESULT, 5
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_23F0E6
compare VAR_RESULT, 6
- goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_2772C5
+ goto_if_eq CableClub_EventScript_AbortLinkConnectionError
compare VAR_RESULT, 11
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_23F366
end
@@ -952,7 +952,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23F327:: @ 823F327
special CloseLink
compare VAR_0x8005, 3
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_23F33F
- msgbox BattleFrontier_BattleTowerLobby_Text_278255, MSGBOX_DEFAULT
+ msgbox Text_PlayersMadeDifferentSelections, MSGBOX_DEFAULT
release
end
@@ -965,7 +965,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23F33F:: @ 823F33F
BattleFrontier_BattleTowerLobby_EventScript_23F351:: @ 823F351
msgbox BattleFrontier_BattleTowerLobby_Text_241240, MSGBOX_DEFAULT
special CloseLink
- msgbox BattleFrontier_BattleTowerLobby_Text_2782A8, MSGBOX_DEFAULT
+ msgbox CableClub_Text_IncorrectNumberOfParticipants, MSGBOX_DEFAULT
release
end
@@ -1020,7 +1020,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23F3E8:: @ 823F3E8
end
BattleFrontier_BattleTowerLobby_EventScript_23F3F3:: @ 823F3F3
- message BattleFrontier_BattleTowerLobby_Text_2792CD
+ message CableClub_Text_ChooseGroupLeaderOfTwo
waitmessage
multichoice 16, 6, MULTI_LINK_LEADER, 0
switch VAR_RESULT
@@ -1031,7 +1031,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23F3F3:: @ 823F3F3
end
BattleFrontier_BattleTowerLobby_EventScript_23F430:: @ 823F430
- call BattleFrontier_BattleTowerLobby_EventScript_277B30
+ call CableClub_EventScript_TryBecomeLinkLeader
compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_23F496
compare VAR_RESULT, 5
@@ -1044,7 +1044,7 @@ BattleFrontier_BattleTowerLobby_EventScript_23F430:: @ 823F430
return
BattleFrontier_BattleTowerLobby_EventScript_23F463:: @ 823F463
- call BattleFrontier_BattleTowerLobby_EventScript_277B35
+ call CableClub_EventScript_TryJoinLinkGroup
compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_23F496
compare VAR_RESULT, 5
diff --git a/data/maps/BattleFrontier_BattleTowerMultiBattleRoom/scripts.inc b/data/maps/BattleFrontier_BattleTowerMultiBattleRoom/scripts.inc
index 29e14473d..d053c33e4 100644
--- a/data/maps/BattleFrontier_BattleTowerMultiBattleRoom/scripts.inc
+++ b/data/maps/BattleFrontier_BattleTowerMultiBattleRoom/scripts.inc
@@ -6,7 +6,7 @@ BattleFrontier_BattleTowerMultiBattleRoom_MapScripts:: @ 8243D92
.byte 0
BattleFrontier_BattleTowerMultiBattleRoom_MapScript1_243DA7: @ 8243DA7
- setvar VAR_0x8004, 17
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_RESTORE_PARTY
special CallBattlePyramidFunction
end
@@ -64,7 +64,7 @@ BattleFrontier_BattleTowerMultiBattleRoom_EventScript_243E41:: @ 8243E41
applymovement 1, BattleFrontier_BattleTowerMultiBattleRoom_Movement_243E77
waitmovement 0
copyobjectxytoperm 1
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox BattleFrontier_BattleTowerMultiBattleRoom_Text_244056, MSGBOX_DEFAULT
special HealPlayerParty
@@ -104,7 +104,7 @@ BattleFrontier_BattleTowerMultiBattleRoom_EventScript_243E9D:: @ 8243E9D
BattleFrontier_BattleTowerMultiBattleRoom_EventScript_243EB5:: @ 8243EB5
msgbox BattleFrontier_BattleTowerMultiBattleRoom_Text_244149, MSGBOX_DEFAULT
closemessage
- applymovement 1, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
opendoor 10, 1
waitdooranim
@@ -190,9 +190,9 @@ BattleFrontier_BattleTowerMultiBattleRoom_EventScript_243F36:: @ 8243F36
waitmessage
waitbuttonpress
closemessage
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_ne BattleFrontier_BattleTowerMultiBattleRoom_EventScript_243FD4
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq BattleFrontier_BattleTowerMultiBattleRoom_EventScript_243FDF
removeobject VAR_LAST_TALKED
setflag FLAG_CHOSEN_MULTI_BATTLE_NPC_PARTNER
diff --git a/data/maps/BattleFrontier_Lounge6/scripts.inc b/data/maps/BattleFrontier_Lounge6/scripts.inc
index 2b14c43c5..8f695aee3 100644
--- a/data/maps/BattleFrontier_Lounge6/scripts.inc
+++ b/data/maps/BattleFrontier_Lounge6/scripts.inc
@@ -5,7 +5,7 @@ BattleFrontier_Lounge6_EventScript_264FED:: @ 8264FED
lock
faceplayer
goto_if_set FLAG_BATTLE_FRONTIER_TRADE_DONE, BattleFrontier_Lounge6_EventScript_265083
- setvar VAR_0x8008, 3
+ setvar VAR_0x8008, INGAME_TRADE_MEOWTH
copyvar VAR_0x8004, VAR_0x8008
specialvar VAR_RESULT, GetInGameTradeSpeciesInfo
copyvar VAR_0x8009, VAR_RESULT
diff --git a/data/maps/BattleFrontier_Lounge7/scripts.inc b/data/maps/BattleFrontier_Lounge7/scripts.inc
index 82b04023f..854a1d360 100644
--- a/data/maps/BattleFrontier_Lounge7/scripts.inc
+++ b/data/maps/BattleFrontier_Lounge7/scripts.inc
@@ -265,7 +265,7 @@ BattleFrontier_Lounge7_EventScript_265696:: @ 8265696
fadescreen 1
special CloseBattlePointsWindow
special CloseBattleFrontierTutorWindow
- special sub_81B892C
+ special OpenPartyMenuForMoveTutor
waitstate
compare VAR_RESULT, 0
goto_if_eq BattleFrontier_Lounge7_EventScript_265645
diff --git a/data/maps/BattleFrontier_OutsideEast/scripts.inc b/data/maps/BattleFrontier_OutsideEast/scripts.inc
index 3873c5c01..5170716d7 100644
--- a/data/maps/BattleFrontier_OutsideEast/scripts.inc
+++ b/data/maps/BattleFrontier_OutsideEast/scripts.inc
@@ -9,7 +9,7 @@ BattleFrontier_OutsideEast_MapScript1_242C0F: @ 8242C0F
BattleFrontier_OutsideEast_EventScript_242C19:: @ 8242C19
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject VAR_LAST_TALKED
return
@@ -133,11 +133,11 @@ BattleFrontier_OutsideEast_EventScript_242CFC:: @ 8242CFC
dowildbattle
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq BattleFrontier_OutsideEast_EventScript_242D60
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq BattleFrontier_OutsideEast_EventScript_242D60
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq BattleFrontier_OutsideEast_EventScript_242D60
setflag FLAG_DEFEATED_SUDOWOODO
release
diff --git a/data/maps/BattleFrontier_OutsideWest/scripts.inc b/data/maps/BattleFrontier_OutsideWest/scripts.inc
index fb96172d2..1f3d61628 100644
--- a/data/maps/BattleFrontier_OutsideWest/scripts.inc
+++ b/data/maps/BattleFrontier_OutsideWest/scripts.inc
@@ -63,7 +63,7 @@ BattleFrontier_OutsideWest_EventScript_23D4AE:: @ 823D4AE
BattleFrontier_OutsideWest_EventScript_23D4BA:: @ 823D4BA
closemessage
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceDown
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 30
hideobjectat 3, MAP_BATTLE_FRONTIER_OUTSIDE_WEST
@@ -126,16 +126,16 @@ BattleFrontier_OutsideWest_EventScript_23D53D:: @ 823D53D
end
BattleFrontier_OutsideWest_EventScript_23D544:: @ 823D544
- applymovement 9, Common_Movement_WalkInPlaceRight
+ applymovement 9, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox BattleFrontier_OutsideWest_Text_23DB7D, MSGBOX_DEFAULT
- applymovement 10, Common_Movement_WalkInPlaceLeft
+ applymovement 10, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox BattleFrontier_OutsideWest_Text_23DBCE, MSGBOX_DEFAULT
closemessage
delay 25
- applymovement 9, Common_Movement_WalkInPlaceUp
- applymovement 10, Common_Movement_WalkInPlaceUp
+ applymovement 9, Common_Movement_WalkInPlaceFastestUp
+ applymovement 10, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
release
end
@@ -144,20 +144,20 @@ BattleFrontier_OutsideWest_EventScript_23D57F:: @ 823D57F
lock
faceplayer
delay 20
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq BattleFrontier_OutsideWest_EventScript_23D5BA
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq BattleFrontier_OutsideWest_EventScript_23D5C5
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq BattleFrontier_OutsideWest_EventScript_23D5BA
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq BattleFrontier_OutsideWest_EventScript_23D5BA
msgbox BattleFrontier_OutsideWest_Text_23DC36, MSGBOX_DEFAULT
release
end
BattleFrontier_OutsideWest_EventScript_23D5BA:: @ 823D5BA
- applymovement 14, Common_Movement_WalkInPlaceUp
+ applymovement 14, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
@@ -169,13 +169,13 @@ BattleFrontier_OutsideWest_EventScript_23D5C6:: @ 823D5C6
faceplayer
message BattleFrontier_OutsideWest_Text_23DCB0
waitmessage
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq BattleFrontier_OutsideWest_EventScript_23D5FD
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq BattleFrontier_OutsideWest_EventScript_23D608
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq BattleFrontier_OutsideWest_EventScript_23D613
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq BattleFrontier_OutsideWest_EventScript_23D61E
waitbuttonpress
release
diff --git a/data/maps/BattleFrontier_PokemonCenter_1F/scripts.inc b/data/maps/BattleFrontier_PokemonCenter_1F/scripts.inc
index 167f9afa0..84aeef182 100644
--- a/data/maps/BattleFrontier_PokemonCenter_1F/scripts.inc
+++ b/data/maps/BattleFrontier_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
BattleFrontier_PokemonCenter_1F_MapScripts:: @ 82678F9
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_PokemonCenter_1F_MapScript1_267904
- map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
BattleFrontier_PokemonCenter_1F_MapScript1_267904: @ 8267904
diff --git a/data/maps/BattleFrontier_PokemonCenter_2F/map.json b/data/maps/BattleFrontier_PokemonCenter_2F/map.json
index caa6fed8a..fa93cde5f 100644
--- a/data/maps/BattleFrontier_PokemonCenter_2F/map.json
+++ b/data/maps/BattleFrontier_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "BattleFrontier_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "BattleFrontier_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "BattleFrontier_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "BattleFrontier_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/BattleFrontier_PokemonCenter_2F/scripts.inc b/data/maps/BattleFrontier_PokemonCenter_2F/scripts.inc
index 59ede7f6a..5a19a9d28 100644
--- a/data/maps/BattleFrontier_PokemonCenter_2F/scripts.inc
+++ b/data/maps/BattleFrontier_PokemonCenter_2F/scripts.inc
@@ -1,19 +1,20 @@
BattleFrontier_PokemonCenter_2F_MapScripts:: @ 8267AA4
- map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, BattleFrontier_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-BattleFrontier_PokemonCenter_2F_EventScript_267AB9:: @ 8267AB9
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+BattleFrontier_PokemonCenter_2F_EventScript_Colosseum:: @ 8267AB9
+ call CableClub_EventScript_Colosseum
end
-BattleFrontier_PokemonCenter_2F_EventScript_267ABF:: @ 8267ABF
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+BattleFrontier_PokemonCenter_2F_EventScript_TradeCenter:: @ 8267ABF
+ call CableClub_EventScript_TradeCenter
end
-BattleFrontier_PokemonCenter_2F_EventScript_267AC5:: @ 8267AC5
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+BattleFrontier_PokemonCenter_2F_EventScript_RecordCorner:: @ 8267AC5
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/BattleFrontier_ReceptionGate/scripts.inc b/data/maps/BattleFrontier_ReceptionGate/scripts.inc
index 3eac4655b..640309975 100644
--- a/data/maps/BattleFrontier_ReceptionGate/scripts.inc
+++ b/data/maps/BattleFrontier_ReceptionGate/scripts.inc
@@ -38,9 +38,9 @@ BattleFrontier_ReceptionGate_EventScript_266229:: @ 8266229
msgbox BattleFrontier_ReceptionGate_Text_2666C6, MSGBOX_DEFAULT
msgbox BattleFrontier_ReceptionGate_Text_266703, MSGBOX_DEFAULT
closemessage
- applymovement 1, Common_Movement_WalkInPlaceUp
- applymovement 2, Common_Movement_WalkInPlaceUp
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
+ applymovement 2, Common_Movement_WalkInPlaceFastestUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
playse SE_PIN
applymovement 1, Common_Movement_ExclamationMark
diff --git a/data/maps/BattleFrontier_ScottsHouse/scripts.inc b/data/maps/BattleFrontier_ScottsHouse/scripts.inc
index b59adefcc..eeb6f6904 100644
--- a/data/maps/BattleFrontier_ScottsHouse/scripts.inc
+++ b/data/maps/BattleFrontier_ScottsHouse/scripts.inc
@@ -172,13 +172,13 @@ BattleFrontier_ScottsHouse_EventScript_263943:: @ 8263943
msgbox BattleFrontier_ScottsHouse_Text_263A3F, MSGBOX_DEFAULT
closemessage
delay 30
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq BattleFrontier_ScottsHouse_EventScript_263A13
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq BattleFrontier_ScottsHouse_EventScript_263A1E
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq BattleFrontier_ScottsHouse_EventScript_263A29
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq BattleFrontier_ScottsHouse_EventScript_263A34
msgbox BattleFrontier_ScottsHouse_Text_263B29, MSGBOX_DEFAULT
applymovement 1, Common_Movement_FacePlayer
@@ -227,22 +227,22 @@ BattleFrontier_ScottsHouse_EventScript_2639F8:: @ 82639F8
end
BattleFrontier_ScottsHouse_EventScript_263A13:: @ 8263A13
- applymovement 1, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
BattleFrontier_ScottsHouse_EventScript_263A1E:: @ 8263A1E
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
BattleFrontier_ScottsHouse_EventScript_263A29:: @ 8263A29
- applymovement 1, Common_Movement_WalkInPlaceRight
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
BattleFrontier_ScottsHouse_EventScript_263A34:: @ 8263A34
- applymovement 1, Common_Movement_WalkInPlaceLeft
+ applymovement 1, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
diff --git a/data/maps/BirthIsland_Exterior/scripts.inc b/data/maps/BirthIsland_Exterior/scripts.inc
index b37d60a41..72469f519 100644
--- a/data/maps/BirthIsland_Exterior/scripts.inc
+++ b/data/maps/BirthIsland_Exterior/scripts.inc
@@ -34,7 +34,7 @@ BirthIsland_Exterior_MapScript1_267F65: @ 8267F65
BirthIsland_Exterior_EventScript_267F6F:: @ 8267F6F
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject 2
return
@@ -88,11 +88,11 @@ BirthIsland_Exterior_EventScript_267FC1:: @ 8267FC1
waitstate
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq BirthIsland_Exterior_EventScript_26803B
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq BirthIsland_Exterior_EventScript_268049
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq BirthIsland_Exterior_EventScript_268049
setflag FLAG_BATTLED_DEOXYS
release
diff --git a/data/maps/BirthIsland_Harbor/scripts.inc b/data/maps/BirthIsland_Harbor/scripts.inc
index 9ef54cdc8..a42152183 100644
--- a/data/maps/BirthIsland_Harbor/scripts.inc
+++ b/data/maps/BirthIsland_Harbor/scripts.inc
@@ -9,7 +9,7 @@ BirthIsland_Harbor_EventScript_26805D:: @ 826805D
goto_if_eq BirthIsland_Harbor_EventScript_2680A2
msgbox EventTicket_Text_SailHome, MSGBOX_DEFAULT
closemessage
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceDown
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 30
hideobjectat 1, MAP_BIRTH_ISLAND_HARBOR
diff --git a/data/maps/CaveOfOrigin_B1F/scripts.inc b/data/maps/CaveOfOrigin_B1F/scripts.inc
index 3b130e756..5a6383199 100644
--- a/data/maps/CaveOfOrigin_B1F/scripts.inc
+++ b/data/maps/CaveOfOrigin_B1F/scripts.inc
@@ -6,7 +6,7 @@ CaveOfOrigin_B1F_EventScript_2357A9:: @ 82357A9
faceplayer
msgbox CaveOfOrigin_B1F_Text_23586E, MSGBOX_DEFAULT
closemessage
- applymovement 1, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
delay 60
playse SE_PIN
diff --git a/data/maps/DesertRuins/scripts.inc b/data/maps/DesertRuins/scripts.inc
index 525bdff4a..dbadad2ab 100644
--- a/data/maps/DesertRuins/scripts.inc
+++ b/data/maps/DesertRuins/scripts.inc
@@ -10,7 +10,7 @@ DesertRuins_MapScript1_22D96B: @ 822D96B
DesertRuins_EventScript_22D975:: @ 822D975
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject VAR_LAST_TALKED
return
@@ -72,11 +72,11 @@ DesertRuins_EventScript_22DA02:: @ 822DA02
waitstate
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq DesertRuins_EventScript_22DA49
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq DesertRuins_EventScript_22DA52
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq DesertRuins_EventScript_22DA52
setflag FLAG_DEFEATED_REGIROCK
release
diff --git a/data/maps/DewfordTown_Gym/map.json b/data/maps/DewfordTown_Gym/map.json
index cf87f878a..35ba61064 100644
--- a/data/maps/DewfordTown_Gym/map.json
+++ b/data/maps/DewfordTown_Gym/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "DewfordTown_Gym_EventScript_1FC7C2",
+ "script": "DewfordTown_Gym_EventScript_Brawly",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 0,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "3",
- "script": "DewfordTown_Gym_EventScript_1FC8B7",
+ "script": "DewfordTown_Gym_EventScript_Takao",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 0,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "3",
- "script": "DewfordTown_Gym_EventScript_1FC8D9",
+ "script": "DewfordTown_Gym_EventScript_Jocelyn",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 0,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "2",
- "script": "DewfordTown_Gym_EventScript_1FC8FB",
+ "script": "DewfordTown_Gym_EventScript_Laura",
"flag": "0"
},
{
@@ -76,7 +76,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "DewfordTown_Gym_EventScript_1FC983",
+ "script": "DewfordTown_Gym_EventScript_GymGuide",
"flag": "0"
},
{
@@ -89,7 +89,7 @@
"movement_range_y": 1,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "3",
- "script": "DewfordTown_Gym_EventScript_1FC93F",
+ "script": "DewfordTown_Gym_EventScript_Cristian",
"flag": "0"
},
{
@@ -102,7 +102,7 @@
"movement_range_y": 1,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "3",
- "script": "DewfordTown_Gym_EventScript_1FC961",
+ "script": "DewfordTown_Gym_EventScript_Lilith",
"flag": "0"
},
{
@@ -115,7 +115,7 @@
"movement_range_y": 1,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "2",
- "script": "DewfordTown_Gym_EventScript_1FC91D",
+ "script": "DewfordTown_Gym_EventScript_Brenden",
"flag": "0"
}
],
@@ -143,7 +143,7 @@
"y": 23,
"elevation": 3,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
- "script": "DewfordTown_Gym_EventScript_1FC9A2"
+ "script": "DewfordTown_Gym_EventScript_LeftGymStatue"
},
{
"type": "sign",
@@ -151,7 +151,7 @@
"y": 23,
"elevation": 3,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
- "script": "DewfordTown_Gym_EventScript_1FC9B2"
+ "script": "DewfordTown_Gym_EventScript_RightGymStatue"
},
{
"type": "sign",
@@ -159,7 +159,7 @@
"y": 24,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
- "script": "DewfordTown_Gym_EventScript_1FC9A2"
+ "script": "DewfordTown_Gym_EventScript_LeftGymStatue"
},
{
"type": "sign",
@@ -167,7 +167,7 @@
"y": 24,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
- "script": "DewfordTown_Gym_EventScript_1FC9B2"
+ "script": "DewfordTown_Gym_EventScript_RightGymStatue"
}
]
} \ No newline at end of file
diff --git a/data/maps/DewfordTown_Gym/scripts.inc b/data/maps/DewfordTown_Gym/scripts.inc
index 7e406ea25..2641db5dc 100644
--- a/data/maps/DewfordTown_Gym/scripts.inc
+++ b/data/maps/DewfordTown_Gym/scripts.inc
@@ -3,186 +3,181 @@ DewfordTown_Gym_MapScripts:: @ 81FC63C
.byte 0
DewfordTown_Gym_OnTransition: @ 81FC642
- call DewfordTown_Gym_EventScript_1FC648
+ call DewfordTown_Gym_EventScript_SetFlashRadius
end
-DewfordTown_Gym_EventScript_1FC648:: @ 81FC648
+DewfordTown_Gym_EventScript_SetFlashRadius:: @ 81FC648
checktrainerflag TRAINER_BRAWLY_1
- goto_if_eq DewfordTown_Gym_EventScript_1FC6A2
- call DewfordTown_Gym_EventScript_1FC768
+ goto_if_eq DewfordTown_Gym_EventScript_SetLightsOn
+ call DewfordTown_Gym_EventScript_CountTrainersDefeated
copyvar VAR_0x8001, VAR_0x8000
compare VAR_0x8000, 0
- goto_if_eq DewfordTown_Gym_EventScript_1FC6BE
+ goto_if_eq DewfordTown_Gym_EventScript_SetFlashRadius7
compare VAR_0x8000, 1
- goto_if_eq DewfordTown_Gym_EventScript_1FC6BA
+ goto_if_eq DewfordTown_Gym_EventScript_SetFlashRadius6
compare VAR_0x8000, 2
- goto_if_eq DewfordTown_Gym_EventScript_1FC6B6
+ goto_if_eq DewfordTown_Gym_EventScript_SetFlashRadius5
compare VAR_0x8000, 3
- goto_if_eq DewfordTown_Gym_EventScript_1FC6B2
+ goto_if_eq DewfordTown_Gym_EventScript_SetFlashRadius4
compare VAR_0x8000, 4
- goto_if_eq DewfordTown_Gym_EventScript_1FC6AE
+ goto_if_eq DewfordTown_Gym_EventScript_SetFlashRadius3
compare VAR_0x8000, 5
- goto_if_eq DewfordTown_Gym_EventScript_1FC6AA
- goto DewfordTown_Gym_EventScript_1FC6A6
+ goto_if_eq DewfordTown_Gym_EventScript_SetFlashRadius2
+ goto DewfordTown_Gym_EventScript_SetFlashRadius1
-DewfordTown_Gym_EventScript_1FC6A2:: @ 81FC6A2
+DewfordTown_Gym_EventScript_SetLightsOn:: @ 81FC6A2
setflashradius 0
return
-DewfordTown_Gym_EventScript_1FC6A6:: @ 81FC6A6
+DewfordTown_Gym_EventScript_SetFlashRadius1:: @ 81FC6A6
setflashradius 1
return
-DewfordTown_Gym_EventScript_1FC6AA:: @ 81FC6AA
+DewfordTown_Gym_EventScript_SetFlashRadius2:: @ 81FC6AA
setflashradius 2
return
-DewfordTown_Gym_EventScript_1FC6AE:: @ 81FC6AE
+DewfordTown_Gym_EventScript_SetFlashRadius3:: @ 81FC6AE
setflashradius 3
return
-DewfordTown_Gym_EventScript_1FC6B2:: @ 81FC6B2
+DewfordTown_Gym_EventScript_SetFlashRadius4:: @ 81FC6B2
setflashradius 4
return
-DewfordTown_Gym_EventScript_1FC6B6:: @ 81FC6B6
+DewfordTown_Gym_EventScript_SetFlashRadius5:: @ 81FC6B6
setflashradius 5
return
-DewfordTown_Gym_EventScript_1FC6BA:: @ 81FC6BA
+DewfordTown_Gym_EventScript_SetFlashRadius6:: @ 81FC6BA
setflashradius 6
return
-DewfordTown_Gym_EventScript_1FC6BE:: @ 81FC6BE
+DewfordTown_Gym_EventScript_SetFlashRadius7:: @ 81FC6BE
setflashradius 7
return
-DewfordTown_Gym_EventScript_1FC6C2:: @ 81FC6C2
- call DewfordTown_Gym_EventScript_1FC768
+DewfordTown_Gym_EventScript_BrightenRoom:: @ 81FC6C2
+ call DewfordTown_Gym_EventScript_CountTrainersDefeated
nop1
compare VAR_0x8000, VAR_0x8001
- goto_if_eq DewfordTown_Gym_EventScript_1FC71A
+ goto_if_eq DewfordTown_Gym_EventScript_NoLightChange
copyvar VAR_0x8001, VAR_0x8000
compare VAR_0x8000, 1
- goto_if_eq DewfordTown_Gym_EventScript_1FC71B
+ goto_if_eq DewfordTown_Gym_EventScript_AnimateFlash1Trainer
compare VAR_0x8000, 2
- goto_if_eq DewfordTown_Gym_EventScript_1FC726
+ goto_if_eq DewfordTown_Gym_EventScript_AnimateFlash2Trainers
compare VAR_0x8000, 3
- goto_if_eq DewfordTown_Gym_EventScript_1FC731
+ goto_if_eq DewfordTown_Gym_EventScript_AnimateFlash3Trainers
compare VAR_0x8000, 4
- goto_if_eq DewfordTown_Gym_EventScript_1FC73C
+ goto_if_eq DewfordTown_Gym_EventScript_AnimateFlash4Trainers
compare VAR_0x8000, 5
- goto_if_eq DewfordTown_Gym_EventScript_1FC747
+ goto_if_eq DewfordTown_Gym_EventScript_AnimateFlash5Trainers
compare VAR_0x8000, 6
- goto_if_eq DewfordTown_Gym_EventScript_1FC752
+ goto_if_eq DewfordTown_Gym_EventScript_AnimateFlash6Trainers
-DewfordTown_Gym_EventScript_1FC71A:: @ 81FC71A
+DewfordTown_Gym_EventScript_NoLightChange:: @ 81FC71A
return
-DewfordTown_Gym_EventScript_1FC71B:: @ 81FC71B
+@ NOTE: A little confusingly, a larger animateflash param value is a smaller flash radius
+DewfordTown_Gym_EventScript_AnimateFlash1Trainer:: @ 81FC71B
playse SE_MU_PACHI
animateflash 6
- call DewfordTown_Gym_EventScript_1FC648
+ call DewfordTown_Gym_EventScript_SetFlashRadius
return
-DewfordTown_Gym_EventScript_1FC726:: @ 81FC726
+DewfordTown_Gym_EventScript_AnimateFlash2Trainers:: @ 81FC726
playse SE_MU_PACHI
animateflash 5
- call DewfordTown_Gym_EventScript_1FC648
+ call DewfordTown_Gym_EventScript_SetFlashRadius
return
-DewfordTown_Gym_EventScript_1FC731:: @ 81FC731
+DewfordTown_Gym_EventScript_AnimateFlash3Trainers:: @ 81FC731
playse SE_MU_PACHI
animateflash 4
- call DewfordTown_Gym_EventScript_1FC648
+ call DewfordTown_Gym_EventScript_SetFlashRadius
return
-DewfordTown_Gym_EventScript_1FC73C:: @ 81FC73C
+DewfordTown_Gym_EventScript_AnimateFlash4Trainers:: @ 81FC73C
playse SE_MU_PACHI
animateflash 3
- call DewfordTown_Gym_EventScript_1FC648
+ call DewfordTown_Gym_EventScript_SetFlashRadius
return
-DewfordTown_Gym_EventScript_1FC747:: @ 81FC747
+DewfordTown_Gym_EventScript_AnimateFlash5Trainers:: @ 81FC747
playse SE_MU_PACHI
animateflash 2
- call DewfordTown_Gym_EventScript_1FC648
+ call DewfordTown_Gym_EventScript_SetFlashRadius
return
-DewfordTown_Gym_EventScript_1FC752:: @ 81FC752
+DewfordTown_Gym_EventScript_AnimateFlash6Trainers:: @ 81FC752
playse SE_MU_PACHI
animateflash 1
- call DewfordTown_Gym_EventScript_1FC648
+ call DewfordTown_Gym_EventScript_SetFlashRadius
return
-DewfordTown_Gym_EventScript_1FC75D:: @ 81FC75D
+DewfordTown_Gym_EventScript_AnimateFlashFullBrightness:: @ 81FC75D
playse SE_MU_PACHI
animateflash 0
- call DewfordTown_Gym_EventScript_1FC648
+ call DewfordTown_Gym_EventScript_SetFlashRadius
return
-DewfordTown_Gym_EventScript_1FC768:: @ 81FC768
+DewfordTown_Gym_EventScript_CountTrainersDefeated:: @ 81FC768
setvar VAR_0x8000, 0
checktrainerflag TRAINER_TAKAO
- goto_if_lt DewfordTown_Gym_EventScript_1FC77B
+ goto_if_lt DewfordTown_Gym_EventScript_CheckJocelyn
addvar VAR_0x8000, 1
-
-DewfordTown_Gym_EventScript_1FC77B:: @ 81FC77B
+DewfordTown_Gym_EventScript_CheckJocelyn:: @ 81FC77B
checktrainerflag TRAINER_JOCELYN
- goto_if_lt DewfordTown_Gym_EventScript_1FC789
+ goto_if_lt DewfordTown_Gym_EventScript_CheckLaura
addvar VAR_0x8000, 1
-
-DewfordTown_Gym_EventScript_1FC789:: @ 81FC789
+DewfordTown_Gym_EventScript_CheckLaura:: @ 81FC789
checktrainerflag TRAINER_LAURA
- goto_if_lt DewfordTown_Gym_EventScript_1FC797
+ goto_if_lt DewfordTown_Gym_EventScript_CheckBrenden
addvar VAR_0x8000, 1
-
-DewfordTown_Gym_EventScript_1FC797:: @ 81FC797
+DewfordTown_Gym_EventScript_CheckBrenden:: @ 81FC797
checktrainerflag TRAINER_BRENDEN
- goto_if_lt DewfordTown_Gym_EventScript_1FC7A5
+ goto_if_lt DewfordTown_Gym_EventScript_CheckCristian
addvar VAR_0x8000, 1
-
-DewfordTown_Gym_EventScript_1FC7A5:: @ 81FC7A5
+DewfordTown_Gym_EventScript_CheckCristian:: @ 81FC7A5
checktrainerflag TRAINER_CRISTIAN
- goto_if_lt DewfordTown_Gym_EventScript_1FC7B3
+ goto_if_lt DewfordTown_Gym_EventScript_CheckLilith
addvar VAR_0x8000, 1
-
-DewfordTown_Gym_EventScript_1FC7B3:: @ 81FC7B3
+DewfordTown_Gym_EventScript_CheckLilith:: @ 81FC7B3
checktrainerflag TRAINER_LILITH
- goto_if_lt DewfordTown_Gym_EventScript_1FC7C1
+ goto_if_lt DewfordTown_Gym_EventScript_StopCountingTrainers
addvar VAR_0x8000, 1
-
-DewfordTown_Gym_EventScript_1FC7C1:: @ 81FC7C1
+DewfordTown_Gym_EventScript_StopCountingTrainers:: @ 81FC7C1
return
-DewfordTown_Gym_EventScript_1FC7C2:: @ 81FC7C2
- trainerbattle_single TRAINER_BRAWLY_1, DewfordTown_Gym_Text_1FCF44, DewfordTown_Gym_Text_1FD008, DewfordTown_Gym_EventScript_1FC7F7, NO_MUSIC
+DewfordTown_Gym_EventScript_Brawly:: @ 81FC7C2
+ trainerbattle_single TRAINER_BRAWLY_1, DewfordTown_Gym_Text_BrawlyPreBattle, DewfordTown_Gym_Text_BrawlyDefeat, DewfordTown_Gym_EventScript_BrawlyDefeated, NO_MUSIC
specialvar VAR_RESULT, ShouldTryRematchBattle
- compare VAR_RESULT, 1
- goto_if_eq DewfordTown_Gym_EventScript_1FC89C
- goto_if_unset FLAG_RECEIVED_TM08, DewfordTown_Gym_EventScript_1FC878
- msgbox DewfordTown_Gym_Text_1FD20D, MSGBOX_DEFAULT
+ compare VAR_RESULT, TRUE
+ goto_if_eq DewfordTown_Gym_EventScript_BrawlyRematch
+ goto_if_unset FLAG_RECEIVED_TM08, DewfordTown_Gym_EventScript_GiveBulkUp2
+ msgbox DewfordTown_Gym_Text_BrawlyPostBattle, MSGBOX_DEFAULT
release
end
-DewfordTown_Gym_EventScript_1FC7F7:: @ 81FC7F7
- call DewfordTown_Gym_EventScript_1FC75D
- message DewfordTown_Gym_Text_1FD07D
+DewfordTown_Gym_EventScript_BrawlyDefeated:: @ 81FC7F7
+ call DewfordTown_Gym_EventScript_AnimateFlashFullBrightness
+ message DewfordTown_Gym_Text_ReceivedKnuckleBadge
waitmessage
call Common_EventScript_PlayGymBadgeFanfare
- msgbox DewfordTown_Gym_Text_1FD0A8, MSGBOX_DEFAULT
+ msgbox DewfordTown_Gym_Text_KnuckleBadgeInfoTakeThis, MSGBOX_DEFAULT
setflag FLAG_DEFEATED_DEWFORD_GYM
setflag FLAG_BADGE02_GET
addvar VAR_PETALBURG_GYM_STATE, 1
compare VAR_PETALBURG_GYM_STATE, 6
- call_if_eq DewfordTown_Gym_EventScript_271E84
+ call_if_eq Common_EventScript_ReadyPetalburgGymForBattle
setvar VAR_0x8008, 2
call Common_EventScript_SetGymTrainers
- call DewfordTown_Gym_EventScript_1FC855
+ call DewfordTown_Gym_EventScript_GiveBulkUp
closemessage
delay 30
playfanfare MUS_ME_TORE_EYE
- msgbox DewfordTown_Gym_Text_1FD1E0, MSGBOX_DEFAULT
+ msgbox DewfordTown_Gym_Text_RegisteredBrawly, MSGBOX_DEFAULT
waitfanfare
closemessage
delay 30
@@ -192,124 +187,124 @@ DewfordTown_Gym_EventScript_1FC7F7:: @ 81FC7F7
release
end
-DewfordTown_Gym_EventScript_1FC855:: @ 81FC855
+DewfordTown_Gym_EventScript_GiveBulkUp:: @ 81FC855
giveitem_std ITEM_TM08
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_BagIsFull
- msgbox DewfordTown_Gym_Text_1FD181, MSGBOX_DEFAULT
+ msgbox DewfordTown_Gym_Text_ExplainBulkUp, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM08
return
-DewfordTown_Gym_EventScript_1FC878:: @ 81FC878
+DewfordTown_Gym_EventScript_GiveBulkUp2: @ 81FC878
giveitem_std ITEM_TM08
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_ShowBagIsFull
- msgbox DewfordTown_Gym_Text_1FD181, MSGBOX_DEFAULT
+ msgbox DewfordTown_Gym_Text_ExplainBulkUp, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM08
release
end
-DewfordTown_Gym_EventScript_1FC89C:: @ 81FC89C
- trainerbattle_rematch_double TRAINER_BRAWLY_1, DewfordTown_Gym_Text_1FD2C4, DewfordTown_Gym_Text_1FD367, DewfordTown_Gym_Text_1FD3DE
- msgbox DewfordTown_Gym_Text_1FD37B, MSGBOX_AUTOCLOSE
+DewfordTown_Gym_EventScript_BrawlyRematch:: @ 81FC89C
+ trainerbattle_rematch_double TRAINER_BRAWLY_1, DewfordTown_Gym_Text_BrawlyPreRematch, DewfordTown_Gym_Text_BrawlyRematchDefeat, DewfordTown_Gym_Text_BrawlyRematchNeedTwoMons
+ msgbox DewfordTown_Gym_Text_BrawlyPostRematch, MSGBOX_AUTOCLOSE
end
-DewfordTown_Gym_EventScript_1FC8B7:: @ 81FC8B7
- trainerbattle_single TRAINER_TAKAO, DewfordTown_Gym_Text_1FCB9F, DewfordTown_Gym_Text_1FCBB8, DewfordTown_Gym_EventScript_1FC8D2
- msgbox DewfordTown_Gym_Text_1FCBCA, MSGBOX_AUTOCLOSE
+DewfordTown_Gym_EventScript_Takao:: @ 81FC8B7
+ trainerbattle_single TRAINER_TAKAO, DewfordTown_Gym_Text_TakaoPreBattle, DewfordTown_Gym_Text_TakaoDefeat, DewfordTown_Gym_EventScript_TakaoBrightenRoom
+ msgbox DewfordTown_Gym_Text_TakaoPostBattle, MSGBOX_AUTOCLOSE
end
-DewfordTown_Gym_EventScript_1FC8D2:: @ 81FC8D2
- call DewfordTown_Gym_EventScript_1FC6C2
+DewfordTown_Gym_EventScript_TakaoBrightenRoom:: @ 81FC8D2
+ call DewfordTown_Gym_EventScript_BrightenRoom
release
end
-DewfordTown_Gym_EventScript_1FC8D9:: @ 81FC8D9
- trainerbattle_single TRAINER_JOCELYN, DewfordTown_Gym_Text_1FCC0A, DewfordTown_Gym_Text_1FCC45, DewfordTown_Gym_EventScript_1FC8F4
- msgbox DewfordTown_Gym_Text_1FCC6B, MSGBOX_AUTOCLOSE
+DewfordTown_Gym_EventScript_Jocelyn:: @ 81FC8D9
+ trainerbattle_single TRAINER_JOCELYN, DewfordTown_Gym_Text_JocelynPreBattle, DewfordTown_Gym_Text_JocelynDefeat, DewfordTown_Gym_EventScript_JocelynBrightenRoom
+ msgbox DewfordTown_Gym_Text_JocelynPostBattle, MSGBOX_AUTOCLOSE
end
-DewfordTown_Gym_EventScript_1FC8F4:: @ 81FC8F4
- call DewfordTown_Gym_EventScript_1FC6C2
+DewfordTown_Gym_EventScript_JocelynBrightenRoom:: @ 81FC8F4
+ call DewfordTown_Gym_EventScript_BrightenRoom
release
end
-DewfordTown_Gym_EventScript_1FC8FB:: @ 81FC8FB
- trainerbattle_single TRAINER_LAURA, DewfordTown_Gym_Text_1FCD01, DewfordTown_Gym_Text_1FCD3C, DewfordTown_Gym_EventScript_1FC916
- msgbox DewfordTown_Gym_Text_1FCD4F, MSGBOX_AUTOCLOSE
+DewfordTown_Gym_EventScript_Laura:: @ 81FC8FB
+ trainerbattle_single TRAINER_LAURA, DewfordTown_Gym_Text_LauraPreBattle, DewfordTown_Gym_Text_LauraDefeat, DewfordTown_Gym_EventScript_LauraBrightenRoom
+ msgbox DewfordTown_Gym_Text_LauraPostBattle, MSGBOX_AUTOCLOSE
end
-DewfordTown_Gym_EventScript_1FC916:: @ 81FC916
- call DewfordTown_Gym_EventScript_1FC6C2
+DewfordTown_Gym_EventScript_LauraBrightenRoom:: @ 81FC916
+ call DewfordTown_Gym_EventScript_BrightenRoom
release
end
-DewfordTown_Gym_EventScript_1FC91D:: @ 81FC91D
- trainerbattle_single TRAINER_BRENDEN, DewfordTown_Gym_Text_1FCE48, DewfordTown_Gym_Text_1FCE75, DewfordTown_Gym_EventScript_1FC938
- msgbox DewfordTown_Gym_Text_1FCEAB, MSGBOX_AUTOCLOSE
+DewfordTown_Gym_EventScript_Brenden:: @ 81FC91D
+ trainerbattle_single TRAINER_BRENDEN, DewfordTown_Gym_Text_BrendenPreBattle, DewfordTown_Gym_Text_BrendenDefeat, DewfordTown_Gym_EventScript_BrendenBrightenRoom
+ msgbox DewfordTown_Gym_Text_BrendenPostBattle, MSGBOX_AUTOCLOSE
end
-DewfordTown_Gym_EventScript_1FC938:: @ 81FC938
- call DewfordTown_Gym_EventScript_1FC6C2
+DewfordTown_Gym_EventScript_BrendenBrightenRoom:: @ 81FC938
+ call DewfordTown_Gym_EventScript_BrightenRoom
release
end
-DewfordTown_Gym_EventScript_1FC93F:: @ 81FC93F
- trainerbattle_single TRAINER_CRISTIAN, DewfordTown_Gym_Text_1FCEDC, DewfordTown_Gym_Text_1FCF0A, DewfordTown_Gym_EventScript_1FC95A
- msgbox DewfordTown_Gym_Text_1FCF26, MSGBOX_AUTOCLOSE
+DewfordTown_Gym_EventScript_Cristian:: @ 81FC93F
+ trainerbattle_single TRAINER_CRISTIAN, DewfordTown_Gym_Text_CristianPreBattle, DewfordTown_Gym_Text_CristianDefeat, DewfordTown_Gym_EventScript_CristianBrightenRoom
+ msgbox DewfordTown_Gym_Text_CristianPostBattle, MSGBOX_AUTOCLOSE
end
-DewfordTown_Gym_EventScript_1FC95A:: @ 81FC95A
- call DewfordTown_Gym_EventScript_1FC6C2
+DewfordTown_Gym_EventScript_CristianBrightenRoom:: @ 81FC95A
+ call DewfordTown_Gym_EventScript_BrightenRoom
release
end
-DewfordTown_Gym_EventScript_1FC961:: @ 81FC961
- trainerbattle_single TRAINER_LILITH, DewfordTown_Gym_Text_1FCDB8, DewfordTown_Gym_Text_1FCDE5, DewfordTown_Gym_EventScript_1FC97C
- msgbox DewfordTown_Gym_Text_1FCE08, MSGBOX_AUTOCLOSE
+DewfordTown_Gym_EventScript_Lilith:: @ 81FC961
+ trainerbattle_single TRAINER_LILITH, DewfordTown_Gym_Text_LilithPreBattle, DewfordTown_Gym_Text_LilithDefeat, DewfordTown_Gym_EventScript_LilithBrightenRoom
+ msgbox DewfordTown_Gym_Text_LilithPostBattle, MSGBOX_AUTOCLOSE
end
-DewfordTown_Gym_EventScript_1FC97C:: @ 81FC97C
- call DewfordTown_Gym_EventScript_1FC6C2
+DewfordTown_Gym_EventScript_LilithBrightenRoom:: @ 81FC97C
+ call DewfordTown_Gym_EventScript_BrightenRoom
release
end
-DewfordTown_Gym_EventScript_1FC983:: @ 81FC983
+DewfordTown_Gym_EventScript_GymGuide:: @ 81FC983
lock
faceplayer
- goto_if_set FLAG_DEFEATED_DEWFORD_GYM, DewfordTown_Gym_EventScript_1FC998
- msgbox DewfordTown_Gym_Text_1FC9D6, MSGBOX_DEFAULT
+ goto_if_set FLAG_DEFEATED_DEWFORD_GYM, DewfordTown_Gym_EventScript_GymGuidePostVictory
+ msgbox DewfordTown_Gym_Text_GymGuideAdvice, MSGBOX_DEFAULT
release
end
-DewfordTown_Gym_EventScript_1FC998:: @ 81FC998
- msgbox DewfordTown_Gym_Text_1FCB5C, MSGBOX_DEFAULT
+DewfordTown_Gym_EventScript_GymGuidePostVictory:: @ 81FC998
+ msgbox DewfordTown_Gym_Text_GymGuidePostVictory, MSGBOX_DEFAULT
release
end
-DewfordTown_Gym_EventScript_1FC9A2:: @ 81FC9A2
+DewfordTown_Gym_EventScript_LeftGymStatue:: @ 81FC9A2
lockall
- goto_if_set FLAG_BADGE02_GET, DewfordTown_Gym_EventScript_1FC9C2
- goto DewfordTown_Gym_EventScript_1FC9CC
+ goto_if_set FLAG_BADGE02_GET, DewfordTown_Gym_EventScript_GymStatueCertified
+ goto DewfordTown_Gym_EventScript_GymStatue
end
-DewfordTown_Gym_EventScript_1FC9B2:: @ 81FC9B2
+DewfordTown_Gym_EventScript_RightGymStatue:: @ 81FC9B2
lockall
- goto_if_set FLAG_BADGE02_GET, DewfordTown_Gym_EventScript_1FC9C2
- goto DewfordTown_Gym_EventScript_1FC9CC
+ goto_if_set FLAG_BADGE02_GET, DewfordTown_Gym_EventScript_GymStatueCertified
+ goto DewfordTown_Gym_EventScript_GymStatue
end
-DewfordTown_Gym_EventScript_1FC9C2:: @ 81FC9C2
- msgbox DewfordTown_Gym_Text_1FD28B, MSGBOX_DEFAULT
+DewfordTown_Gym_EventScript_GymStatueCertified:: @ 81FC9C2
+ msgbox DewfordTown_Gym_Text_GymStatueCertified, MSGBOX_DEFAULT
releaseall
end
-DewfordTown_Gym_EventScript_1FC9CC:: @ 81FC9CC
- msgbox DewfordTown_Gym_Text_1FD272, MSGBOX_DEFAULT
+DewfordTown_Gym_EventScript_GymStatue:: @ 81FC9CC
+ msgbox DewfordTown_Gym_Text_GymStatue, MSGBOX_DEFAULT
releaseall
end
-DewfordTown_Gym_Text_1FC9D6: @ 81FC9D6
+DewfordTown_Gym_Text_GymGuideAdvice: @ 81FC9D6
.string "Hey, how's it going, CHAMPION-\n"
.string "bound {PLAYER}?\p"
.string "DEWFORD's GYM LEADER BRAWLY commands\n"
@@ -325,88 +320,88 @@ DewfordTown_Gym_Text_1FC9D6: @ 81FC9D6
.string "the TRAINERS in your way.\p"
.string "Hey, okay, go for it!$"
-DewfordTown_Gym_Text_1FCB5C: @ 81FCB5C
+DewfordTown_Gym_Text_GymGuidePostVictory: @ 81FCB5C
.string "Whoah! It's turned too bright in here!\p"
.string "Your future is bright, too!$"
-DewfordTown_Gym_Text_1FCB9F: @ 81FCB9F
+DewfordTown_Gym_Text_TakaoPreBattle: @ 81FCB9F
.string "Might is right!\n"
.string "Come on!$"
-DewfordTown_Gym_Text_1FCBB8: @ 81FCBB8
+DewfordTown_Gym_Text_TakaoDefeat: @ 81FCBB8
.string "Not enough power…$"
-DewfordTown_Gym_Text_1FCBCA: @ 81FCBCA
+DewfordTown_Gym_Text_TakaoPostBattle: @ 81FCBCA
.string "Your skill overcame my strength!\n"
.string "Your technique is commendable!$"
-DewfordTown_Gym_Text_1FCC0A: @ 81FCC0A
+DewfordTown_Gym_Text_JocelynPreBattle: @ 81FCC0A
.string "There's no need for BRAWLY to be\n"
.string "involved!\p"
.string "I'll crush you!$"
-DewfordTown_Gym_Text_1FCC45: @ 81FCC45
+DewfordTown_Gym_Text_JocelynDefeat: @ 81FCC45
.string "But… How?\n"
.string "How could I lose so easily?$"
-DewfordTown_Gym_Text_1FCC6B: @ 81FCC6B
+DewfordTown_Gym_Text_JocelynPostBattle: @ 81FCC6B
.string "I'm not going to waste this loss.\n"
.string "I'll use it to motivate me to train!\p"
.string "One day I'll become a GYM LEADER…\p"
.string "No, I'll become the POKéMON LEAGUE\n"
.string "CHAMPION!$"
-DewfordTown_Gym_Text_1FCD01: @ 81FCD01
+DewfordTown_Gym_Text_LauraPreBattle: @ 81FCD01
.string "Don't you dare brush me off!\n"
.string "It's not my fault if you cry!$"
-DewfordTown_Gym_Text_1FCD3C: @ 81FCD3C
+DewfordTown_Gym_Text_LauraDefeat: @ 81FCD3C
.string "Waaaaaaah!\n"
.string "I lost!$"
-DewfordTown_Gym_Text_1FCD4F: @ 81FCD4F
+DewfordTown_Gym_Text_LauraPostBattle: @ 81FCD4F
.string "I battle in the dark to make my heart\n"
.string "stronger.\p"
.string "But because it's so dark, I can never\n"
.string "see BRAWLY's face…$"
-DewfordTown_Gym_Text_1FCDB8: @ 81FCDB8
+DewfordTown_Gym_Text_LilithPreBattle: @ 81FCDB8
.string "Ufufu…\n"
.string "Are you stumbling around in the dark?$"
-DewfordTown_Gym_Text_1FCDE5: @ 81FCDE5
+DewfordTown_Gym_Text_LilithDefeat: @ 81FCDE5
.string "Oh, you…\n"
.string "I don't want to know you!$"
-DewfordTown_Gym_Text_1FCE08: @ 81FCE08
+DewfordTown_Gym_Text_LilithPostBattle: @ 81FCE08
.string "You deserve to stay lost and end up\n"
.string "back at the entrance again!$"
-DewfordTown_Gym_Text_1FCE48: @ 81FCE48
+DewfordTown_Gym_Text_BrendenPreBattle: @ 81FCE48
.string "I'll show you the gumption of\n"
.string "a sailing man!$"
-DewfordTown_Gym_Text_1FCE75: @ 81FCE75
+DewfordTown_Gym_Text_BrendenDefeat: @ 81FCE75
.string "How'd this happen?\n"
.string "It's not like me to lose this way!$"
-DewfordTown_Gym_Text_1FCEAB: @ 81FCEAB
+DewfordTown_Gym_Text_BrendenPostBattle: @ 81FCEAB
.string "Oh, aye! You're worthy of seeing\n"
.string "our GYM LEADER.$"
-DewfordTown_Gym_Text_1FCEDC: @ 81FCEDC
+DewfordTown_Gym_Text_CristianPreBattle: @ 81FCEDC
.string "If you mean to pass, it has to be\n"
.string "through me!$"
-DewfordTown_Gym_Text_1FCF0A: @ 81FCF0A
+DewfordTown_Gym_Text_CristianDefeat: @ 81FCF0A
.string "Grrrrr!\n"
.string "Vastly overpowered!$"
-DewfordTown_Gym_Text_1FCF26: @ 81FCF26
+DewfordTown_Gym_Text_CristianPostBattle: @ 81FCF26
.string "You win!\n"
.string "Go after that BADGE!$"
-DewfordTown_Gym_Text_1FCF44: @ 81FCF44
+DewfordTown_Gym_Text_BrawlyPreBattle: @ 81FCF44
.string "I'm BRAWLY!\n"
.string "DEWFORD's GYM LEADER!\p"
.string "I've been churned in the rough waves\n"
@@ -415,18 +410,18 @@ DewfordTown_Gym_Text_1FCF44: @ 81FCF44
.string "So you wanted to challenge me?\n"
.string "Let me see what you're made of!$"
-DewfordTown_Gym_Text_1FD008: @ 81FD008
+DewfordTown_Gym_Text_BrawlyDefeat: @ 81FD008
.string "Whoah, wow! You made a much bigger\n"
.string "splash than I expected!\p"
.string "You swamped me!\p"
.string "Okay, you've got me.\n"
.string "Take this GYM BADGE!$"
-DewfordTown_Gym_Text_1FD07D: @ 81FD07D
+DewfordTown_Gym_Text_ReceivedKnuckleBadge: @ 81FD07D
.string "{PLAYER} received the KNUCKLE BADGE\n"
.string "from BRAWLY.$"
-DewfordTown_Gym_Text_1FD0A8: @ 81FD0A8
+DewfordTown_Gym_Text_KnuckleBadgeInfoTakeThis: @ 81FD0A8
.string "The KNUCKLE BADGE makes all POKéMON\n"
.string "up to Level 30, even those you get in\l"
.string "trades, obey without question.\p"
@@ -435,30 +430,30 @@ DewfordTown_Gym_Text_1FD0A8: @ 81FD0A8
.string "If you'd like, use this TECHNICAL\n"
.string "MACHINE, too.$"
-DewfordTown_Gym_Text_1FD181: @ 81FD181
+DewfordTown_Gym_Text_ExplainBulkUp: @ 81FD181
.string "That TM08 contains BULK UP.\p"
.string "It's a move that raises both ATTACK\n"
.string "and DEFENSE stats.\p"
.string "… … … … … …$"
-DewfordTown_Gym_Text_1FD1E0: @ 81FD1E0
+DewfordTown_Gym_Text_RegisteredBrawly: @ 81FD1E0
.string "Registered GYM LEADER BRAWLY\n"
.string "in the POKéNAV.$"
-DewfordTown_Gym_Text_1FD20D: @ 81FD20D
+DewfordTown_Gym_Text_BrawlyPostBattle: @ 81FD20D
.string "I can see your talent becoming a giant\n"
.string "wave to cause a storm of astonishment\l"
.string "among TRAINERS one day!$"
-DewfordTown_Gym_Text_1FD272: @ 81FD272
+DewfordTown_Gym_Text_GymStatue: @ 81FD272
.string "DEWFORD TOWN POKéMON GYM$"
-DewfordTown_Gym_Text_1FD28B: @ 81FD28B
+DewfordTown_Gym_Text_GymStatueCertified: @ 81FD28B
.string "DEWFORD TOWN POKéMON GYM\p"
.string "BRAWLY'S CERTIFIED TRAINERS:\n"
.string "{PLAYER}$"
-DewfordTown_Gym_Text_1FD2C4: @ 81FD2C4
+DewfordTown_Gym_Text_BrawlyPreRematch: @ 81FD2C4
.string "BRAWLY: A wave may draw back, but it\n"
.string "always returns to the shore.\p"
.string "A giant wave of a talent like you…\n"
@@ -466,16 +461,16 @@ DewfordTown_Gym_Text_1FD2C4: @ 81FD2C4
.string "Show me how much higher\n"
.string "you've gone!$"
-DewfordTown_Gym_Text_1FD367: @ 81FD367
+DewfordTown_Gym_Text_BrawlyRematchDefeat: @ 81FD367
.string "Wow!\n"
.string "Swamped again!$"
-DewfordTown_Gym_Text_1FD37B: @ 81FD37B
+DewfordTown_Gym_Text_BrawlyPostRematch: @ 81FD37B
.string "BRAWLY: Battling is vast and it's deep.\n"
.string "You can't see the bottom.\l"
.string "It's just like the sea of HOENN!$"
-DewfordTown_Gym_Text_1FD3DE: @ 81FD3DE
+DewfordTown_Gym_Text_BrawlyRematchNeedTwoMons: @ 81FD3DE
.string "BRAWLY: A wave may draw back, but it\n"
.string "always returns to the shore.\p"
.string "A giant wave of a talent like you…\n"
diff --git a/data/maps/DewfordTown_Hall/scripts.inc b/data/maps/DewfordTown_Hall/scripts.inc
index 22bf5ed6a..9790753cf 100644
--- a/data/maps/DewfordTown_Hall/scripts.inc
+++ b/data/maps/DewfordTown_Hall/scripts.inc
@@ -53,7 +53,7 @@ DewfordTown_Hall_EventScript_1FD547:: @ 81FD547
call DewfordTown_Hall_EventScript_271E8B
msgbox DewfordTown_Hall_Text_1FDA5C, MSGBOX_DEFAULT
closemessage
- applymovement 4, Common_Movement_WalkInPlaceUp
+ applymovement 4, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
release
end
@@ -64,7 +64,7 @@ DewfordTown_Hall_EventScript_1FD563:: @ 81FD563
call DewfordTown_Hall_EventScript_271E8B
msgbox DewfordTown_Hall_Text_1FDA99, MSGBOX_DEFAULT
closemessage
- applymovement 5, Common_Movement_WalkInPlaceUp
+ applymovement 5, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
release
end
@@ -198,9 +198,9 @@ DewfordTown_Hall_EventScript_1FD73A:: @ 81FD73A
end
DewfordTown_Hall_EventScript_1FD75B:: @ 81FD75B
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
goto_if_eq DewfordTown_Hall_EventScript_1FD739
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
@@ -217,26 +217,26 @@ DewfordTown_Hall_EventScript_1FD772:: @ 81FD772
end
DewfordTown_Hall_EventScript_1FD793:: @ 81FD793
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq DewfordTown_Hall_EventScript_1FD7AA
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq DewfordTown_Hall_EventScript_1FD7B5
return
DewfordTown_Hall_EventScript_1FD7AA:: @ 81FD7AA
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
DewfordTown_Hall_EventScript_1FD7B5:: @ 81FD7B5
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
DewfordTown_Hall_EventScript_1FD7C0:: @ 81FD7C0
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
goto_if_eq DewfordTown_Hall_EventScript_1FD739
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
diff --git a/data/maps/DewfordTown_PokemonCenter_1F/scripts.inc b/data/maps/DewfordTown_PokemonCenter_1F/scripts.inc
index bde0f84fb..6fc9abb99 100644
--- a/data/maps/DewfordTown_PokemonCenter_1F/scripts.inc
+++ b/data/maps/DewfordTown_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
DewfordTown_PokemonCenter_1F_MapScripts:: @ 81FC523
map_script MAP_SCRIPT_ON_TRANSITION, DewfordTown_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, DewfordTown_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
DewfordTown_PokemonCenter_1F_OnTransition: @ 81FC52E
diff --git a/data/maps/DewfordTown_PokemonCenter_2F/map.json b/data/maps/DewfordTown_PokemonCenter_2F/map.json
index 2792a9a20..6ebca2ae0 100644
--- a/data/maps/DewfordTown_PokemonCenter_2F/map.json
+++ b/data/maps/DewfordTown_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "DewfordTown_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "DewfordTown_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "DewfordTown_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "DewfordTown_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/DewfordTown_PokemonCenter_2F/scripts.inc b/data/maps/DewfordTown_PokemonCenter_2F/scripts.inc
index f49560d8c..df8539f0b 100644
--- a/data/maps/DewfordTown_PokemonCenter_2F/scripts.inc
+++ b/data/maps/DewfordTown_PokemonCenter_2F/scripts.inc
@@ -1,19 +1,20 @@
DewfordTown_PokemonCenter_2F_MapScripts:: @ 81FC615
- map_script MAP_SCRIPT_ON_FRAME_TABLE, DewfordTown_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, DewfordTown_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, DewfordTown_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-DewfordTown_PokemonCenter_2F_EventScript_1FC62A:: @ 81FC62A
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+DewfordTown_PokemonCenter_2F_EventScript_Colosseum:: @ 81FC62A
+ call CableClub_EventScript_Colosseum
end
-DewfordTown_PokemonCenter_2F_EventScript_1FC630:: @ 81FC630
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+DewfordTown_PokemonCenter_2F_EventScript_TradeCenter:: @ 81FC630
+ call CableClub_EventScript_TradeCenter
end
-DewfordTown_PokemonCenter_2F_EventScript_1FC636:: @ 81FC636
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+DewfordTown_PokemonCenter_2F_EventScript_RecordCorner:: @ 81FC636
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc b/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc
index 99a1a6eb3..22acc0361 100644
--- a/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc
+++ b/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc
@@ -1,140 +1,140 @@
EverGrandeCity_ChampionsRoom_MapScripts:: @ 82289EF
map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_ChampionsRoom_OnTransition
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_ChampionsRoom_MapScript2_228A05
- map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_ChampionsRoom_MapScript2_228A14
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_ChampionsRoom_OnWarp
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_ChampionsRoom_OnFrame
.byte 0
EverGrandeCity_ChampionsRoom_OnTransition: @ 82289FF
call Common_EventScript_SetupRivalGfxId
end
-EverGrandeCity_ChampionsRoom_MapScript2_228A05: @ 8228A05
- map_script_2 VAR_TEMP_1, 0, EverGrandeCity_ChampionsRoom_EventScript_228A0F
+EverGrandeCity_ChampionsRoom_OnWarp: @ 8228A05
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_ChampionsRoom_EventScript_PlayerTurnNorth
.2byte 0
-EverGrandeCity_ChampionsRoom_EventScript_228A0F:: @ 8228A0F
+EverGrandeCity_ChampionsRoom_EventScript_PlayerTurnNorth:: @ 8228A0F
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
end
-EverGrandeCity_ChampionsRoom_MapScript2_228A14: @ 8228A14
- map_script_2 VAR_TEMP_1, 0, EverGrandeCity_ChampionsRoom_EventScript_228A1E
+EverGrandeCity_ChampionsRoom_OnFrame: @ 8228A14
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_ChampionsRoom_EventScript_EnterRoom
.2byte 0
-EverGrandeCity_ChampionsRoom_EventScript_228A1E:: @ 8228A1E
+EverGrandeCity_ChampionsRoom_EventScript_EnterRoom:: @ 8228A1E
lockall
- applymovement EVENT_OBJ_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_2725C1
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkUp4
waitmovement 0
delay 40
- applymovement EVENT_OBJ_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_228A42
+ applymovement EVENT_OBJ_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_PlayerApproachWallace
waitmovement 0
setvar VAR_TEMP_1, 1
- goto EverGrandeCity_ChampionsRoom_EventScript_228A45
+ goto EverGrandeCity_ChampionsRoom_EventScript_Wallace
releaseall
end
-EverGrandeCity_ChampionsRoom_Movement_228A42: @ 8228A42
+EverGrandeCity_ChampionsRoom_Movement_PlayerApproachWallace: @ 8228A42
walk_up
walk_up
step_end
-EverGrandeCity_ChampionsRoom_EventScript_228A45:: @ 8228A45
+EverGrandeCity_ChampionsRoom_EventScript_Wallace:: @ 8228A45
playbgm MUS_DAIGO, 0
- msgbox EverGrandeCity_ChampionsRoom_Text_228C4C, MSGBOX_DEFAULT
- trainerbattle_no_intro TRAINER_WALLACE, EverGrandeCity_ChampionsRoom_Text_228EAC
- goto EverGrandeCity_ChampionsRoom_EventScript_228A61
+ msgbox EverGrandeCity_ChampionsRoom_Text_PreBattleSpeech, MSGBOX_DEFAULT
+ trainerbattle_no_intro TRAINER_WALLACE, EverGrandeCity_ChampionsRoom_Text_Defeat
+ goto EverGrandeCity_ChampionsRoom_EventScript_Defeated
end
-EverGrandeCity_ChampionsRoom_EventScript_228A61:: @ 8228A61
+EverGrandeCity_ChampionsRoom_EventScript_Defeated:: @ 8228A61
playse SE_DOOR
setmetatile 6, 1, METATILE_EliteFour_OpenDoorChampion_Frame, 0
setmetatile 6, 2, METATILE_EliteFour_OpenDoorChampion_Opening, 0
special DrawWholeMapView
- msgbox EverGrandeCity_ChampionsRoom_Text_228F66, MSGBOX_DEFAULT
+ msgbox EverGrandeCity_ChampionsRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
closemessage
playse SE_DOOR
checkplayergender
compare VAR_RESULT, MALE
- call_if_eq EverGrandeCity_ChampionsRoom_EventScript_228ABC
+ call_if_eq EverGrandeCity_ChampionsRoom_EventScript_PlayMayMusic
compare VAR_RESULT, FEMALE
- call_if_eq EverGrandeCity_ChampionsRoom_EventScript_228AC1
+ call_if_eq EverGrandeCity_ChampionsRoom_EventScript_PlayBrendanMusic
addobject 2
- call EverGrandeCity_ChampionsRoom_EventScript_228BFD
+ call EverGrandeCity_ChampionsRoom_EventScript_RivalApproachPlayer
checkplayergender
compare VAR_RESULT, MALE
- goto_if_eq EverGrandeCity_ChampionsRoom_EventScript_228AC6
+ goto_if_eq EverGrandeCity_ChampionsRoom_EventScript_MayAdvice
compare VAR_RESULT, FEMALE
- goto_if_eq EverGrandeCity_ChampionsRoom_EventScript_228AFB
+ goto_if_eq EverGrandeCity_ChampionsRoom_EventScript_BrendanAdvice
end
-EverGrandeCity_ChampionsRoom_EventScript_228ABC:: @ 8228ABC
+EverGrandeCity_ChampionsRoom_EventScript_PlayMayMusic:: @ 8228ABC
playbgm MUS_GIRL_SUP, 0
return
-EverGrandeCity_ChampionsRoom_EventScript_228AC1:: @ 8228AC1
+EverGrandeCity_ChampionsRoom_EventScript_PlayBrendanMusic:: @ 8228AC1
playbgm MUS_BOY_SUP, 0
return
-EverGrandeCity_ChampionsRoom_EventScript_228AC6:: @ 8228AC6
- msgbox EverGrandeCity_ChampionsRoom_Text_2290CA, MSGBOX_DEFAULT
+EverGrandeCity_ChampionsRoom_EventScript_MayAdvice:: @ 8228AC6
+ msgbox EverGrandeCity_ChampionsRoom_Text_MayAdvice, MSGBOX_DEFAULT
delay 40
playse SE_PIN
applymovement 2, Common_Movement_ExclamationMark
waitmovement 0
applymovement 2, Common_Movement_Delay48
waitmovement 0
- call EverGrandeCity_ChampionsRoom_EventScript_228C12
- msgbox EverGrandeCity_ChampionsRoom_Text_22910B, MSGBOX_DEFAULT
- goto EverGrandeCity_ChampionsRoom_EventScript_228B30
+ call EverGrandeCity_ChampionsRoom_EventScript_RivalLookBackAndForth
+ msgbox EverGrandeCity_ChampionsRoom_Text_MayItsAlreadyOver, MSGBOX_DEFAULT
+ goto EverGrandeCity_ChampionsRoom_EventScript_BirchArrivesExitForHoF
end
-EverGrandeCity_ChampionsRoom_EventScript_228AFB:: @ 8228AFB
- msgbox EverGrandeCity_ChampionsRoom_Text_229152, MSGBOX_DEFAULT
+EverGrandeCity_ChampionsRoom_EventScript_BrendanAdvice:: @ 8228AFB
+ msgbox EverGrandeCity_ChampionsRoom_Text_BrendanAdvice, MSGBOX_DEFAULT
delay 40
playse SE_PIN
applymovement 2, Common_Movement_ExclamationMark
waitmovement 0
applymovement 2, Common_Movement_Delay48
waitmovement 0
- call EverGrandeCity_ChampionsRoom_EventScript_228C12
- msgbox EverGrandeCity_ChampionsRoom_Text_2291A2, MSGBOX_DEFAULT
- goto EverGrandeCity_ChampionsRoom_EventScript_228B30
+ call EverGrandeCity_ChampionsRoom_EventScript_RivalLookBackAndForth
+ msgbox EverGrandeCity_ChampionsRoom_Text_BrendanYouveWon, MSGBOX_DEFAULT
+ goto EverGrandeCity_ChampionsRoom_EventScript_BirchArrivesExitForHoF
end
-EverGrandeCity_ChampionsRoom_EventScript_228B30:: @ 8228B30
+EverGrandeCity_ChampionsRoom_EventScript_BirchArrivesExitForHoF:: @ 8228B30
closemessage
addobject 3
- applymovement 3, EverGrandeCity_ChampionsRoom_Movement_228C43
+ applymovement 3, EverGrandeCity_ChampionsRoom_Movement_BirchArrives
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
- msgbox EverGrandeCity_ChampionsRoom_Text_2291E6, MSGBOX_DEFAULT
- call EverGrandeCity_ChampionsRoom_EventScript_272184
- msgbox EverGrandeCity_ChampionsRoom_Text_22934D, MSGBOX_DEFAULT
- applymovement 1, Common_Movement_WalkInPlaceUp
+ msgbox EverGrandeCity_ChampionsRoom_Text_BirchArriveRatePokedex, MSGBOX_DEFAULT
+ call ProfBirch_EventScript_RatePokedex
+ msgbox EverGrandeCity_ChampionsRoom_Text_BirchCongratulations, MSGBOX_DEFAULT
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
delay 20
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
- msgbox EverGrandeCity_ChampionsRoom_Text_229399, MSGBOX_DEFAULT
+ msgbox EverGrandeCity_ChampionsRoom_Text_WallaceComeWithMe, MSGBOX_DEFAULT
closemessage
delay 30
- applymovement 1, EverGrandeCity_ChampionsRoom_Movement_228C3B
- applymovement EVENT_OBJ_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_228C1D
- applymovement 3, Common_Movement_WalkInPlaceUp
- applymovement 2, EverGrandeCity_ChampionsRoom_Movement_228C38
+ applymovement 1, EverGrandeCity_ChampionsRoom_Movement_WallaceExitStart
+ applymovement EVENT_OBJ_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_PlayerExitStart
+ applymovement 3, Common_Movement_WalkInPlaceFastestUp
+ applymovement 2, EverGrandeCity_ChampionsRoom_Movement_RivalFollows
waitmovement 0
delay 20
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
- msgbox EverGrandeCity_ChampionsRoom_Text_2293EB, MSGBOX_DEFAULT
+ msgbox EverGrandeCity_ChampionsRoom_Text_WallaceWaitOutside, MSGBOX_DEFAULT
checkplayergender
compare VAR_RESULT, MALE
- call_if_eq EverGrandeCity_ChampionsRoom_EventScript_228BEB
+ call_if_eq EverGrandeCity_ChampionsRoom_EventScript_MayCongratulations
compare VAR_RESULT, FEMALE
- call_if_eq EverGrandeCity_ChampionsRoom_EventScript_228BF4
+ call_if_eq EverGrandeCity_ChampionsRoom_EventScript_BrendanCongratulations
closemessage
- applymovement 1, EverGrandeCity_ChampionsRoom_Movement_228C3F
- applymovement EVENT_OBJ_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_228C20
+ applymovement 1, EverGrandeCity_ChampionsRoom_Movement_WallaceExit
+ applymovement EVENT_OBJ_ID_PLAYER, EverGrandeCity_ChampionsRoom_Movement_PlayerExit
waitmovement 0
setflag FLAG_HIDE_PETALBURG_GYM_GREETER
warp MAP_EVER_GRANDE_CITY_HALL_OF_FAME, 255, 7, 16
@@ -142,32 +142,32 @@ EverGrandeCity_ChampionsRoom_EventScript_228B30:: @ 8228B30
releaseall
end
-EverGrandeCity_ChampionsRoom_EventScript_228BEB:: @ 8228BEB
- msgbox EverGrandeCity_ChampionsRoom_Text_229479, MSGBOX_DEFAULT
+EverGrandeCity_ChampionsRoom_EventScript_MayCongratulations:: @ 8228BEB
+ msgbox EverGrandeCity_ChampionsRoom_Text_MayCongratulations, MSGBOX_DEFAULT
return
-EverGrandeCity_ChampionsRoom_EventScript_228BF4:: @ 8228BF4
- msgbox EverGrandeCity_ChampionsRoom_Text_2294F5, MSGBOX_DEFAULT
+EverGrandeCity_ChampionsRoom_EventScript_BrendanCongratulations:: @ 8228BF4
+ msgbox EverGrandeCity_ChampionsRoom_Text_BrendanCongratulations, MSGBOX_DEFAULT
return
-EverGrandeCity_ChampionsRoom_EventScript_228BFD:: @ 8228BFD
- applymovement 2, EverGrandeCity_ChampionsRoom_Movement_228C26
+EverGrandeCity_ChampionsRoom_EventScript_RivalApproachPlayer:: @ 8228BFD
+ applymovement 2, EverGrandeCity_ChampionsRoom_Movement_RivalApproachPlayer
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
-EverGrandeCity_ChampionsRoom_EventScript_228C12:: @ 8228C12
- applymovement 2, EverGrandeCity_ChampionsRoom_Movement_228C2F
+EverGrandeCity_ChampionsRoom_EventScript_RivalLookBackAndForth:: @ 8228C12
+ applymovement 2, EverGrandeCity_ChampionsRoom_Movement_RivalLookBackAndForth
waitmovement 0
return
-EverGrandeCity_ChampionsRoom_Movement_228C1D: @ 8228C1D
+EverGrandeCity_ChampionsRoom_Movement_PlayerExitStart: @ 8228C1D
walk_up
walk_up
step_end
-EverGrandeCity_ChampionsRoom_Movement_228C20: @ 8228C20
+EverGrandeCity_ChampionsRoom_Movement_PlayerExit: @ 8228C20
walk_up
delay_16
walk_up
@@ -175,7 +175,7 @@ EverGrandeCity_ChampionsRoom_Movement_228C20: @ 8228C20
set_invisible
step_end
-EverGrandeCity_ChampionsRoom_Movement_228C26: @ 8228C26
+EverGrandeCity_ChampionsRoom_Movement_RivalApproachPlayer: @ 8228C26
walk_up
walk_up
walk_up
@@ -186,7 +186,7 @@ EverGrandeCity_ChampionsRoom_Movement_228C26: @ 8228C26
walk_in_place_fastest_right
step_end
-EverGrandeCity_ChampionsRoom_Movement_228C2F: @ 8228C2F
+EverGrandeCity_ChampionsRoom_Movement_RivalLookBackAndForth: @ 8228C2F
walk_in_place_fastest_up
delay_16
walk_in_place_fastest_right
@@ -197,24 +197,24 @@ EverGrandeCity_ChampionsRoom_Movement_228C2F: @ 8228C2F
delay_16
step_end
-EverGrandeCity_ChampionsRoom_Movement_228C38: @ 8228C38
+EverGrandeCity_ChampionsRoom_Movement_RivalFollows: @ 8228C38
walk_right
walk_up
step_end
-EverGrandeCity_ChampionsRoom_Movement_228C3B: @ 8228C3B
+EverGrandeCity_ChampionsRoom_Movement_WallaceExitStart: @ 8228C3B
walk_up
walk_up
walk_in_place_fastest_down
step_end
-EverGrandeCity_ChampionsRoom_Movement_228C3F: @ 8228C3F
+EverGrandeCity_ChampionsRoom_Movement_WallaceExit: @ 8228C3F
walk_up
delay_8
set_invisible
step_end
-EverGrandeCity_ChampionsRoom_Movement_228C43: @ 8228C43
+EverGrandeCity_ChampionsRoom_Movement_BirchArrives: @ 8228C43
walk_up
walk_up
walk_up
@@ -225,7 +225,7 @@ EverGrandeCity_ChampionsRoom_Movement_228C43: @ 8228C43
walk_in_place_fastest_left
step_end
-EverGrandeCity_ChampionsRoom_Text_228C4C: @ 8228C4C
+EverGrandeCity_ChampionsRoom_Text_PreBattleSpeech: @ 8228C4C
.string "WALLACE: Welcome, {PLAYER}{KUN}.\p"
.string "That incident in SOOTOPOLIS CITY…\n"
.string "That was superb work, putting an end\l"
@@ -248,7 +248,7 @@ EverGrandeCity_ChampionsRoom_Text_228C4C: @ 8228C4C
.string "their POKéMON in HOENN?\p"
.string "Show me right here and now!$"
-EverGrandeCity_ChampionsRoom_Text_228EAC: @ 8228EAC
+EverGrandeCity_ChampionsRoom_Text_Defeat: @ 8228EAC
.string "I, the CHAMPION, fall in defeat…\p"
.string "That was wonderful work.\n"
.string "You were elegant, infuriatingly so.\l"
@@ -257,7 +257,7 @@ EverGrandeCity_ChampionsRoom_Text_228EAC: @ 8228EAC
.string "You are a truly noble POKéMON\n"
.string "TRAINER!$"
-EverGrandeCity_ChampionsRoom_Text_228F66: @ 8228F66
+EverGrandeCity_ChampionsRoom_Text_PostBattleSpeech: @ 8228F66
.string "WALLACE: The POKéMON you sent into\n"
.string "battle…\p"
.string "At times they danced like a spring\n"
@@ -272,29 +272,29 @@ EverGrandeCity_ChampionsRoom_Text_228F66: @ 8228F66
.string "I now proclaim you to be the new\n"
.string "HOENN region…$"
-EverGrandeCity_ChampionsRoom_Text_2290CA: @ 82290CA
+EverGrandeCity_ChampionsRoom_Text_MayAdvice: @ 82290CA
.string "MAY: {PLAYER}{KUN}!\p"
.string "Here's some advice before you challenge\n"
.string "the CHAMPION…$"
-EverGrandeCity_ChampionsRoom_Text_22910B: @ 822910B
+EverGrandeCity_ChampionsRoom_Text_MayItsAlreadyOver: @ 822910B
.string "MAY: Huh?\n"
.string "What, what, what?\p"
.string "{PLAYER}{KUN}…\n"
.string "Could it be that…\l"
.string "It's already over?$"
-EverGrandeCity_ChampionsRoom_Text_229152: @ 8229152
+EverGrandeCity_ChampionsRoom_Text_BrendanAdvice: @ 8229152
.string "BRENDAN: {PLAYER}!\p"
.string "How would you like some advice before\n"
.string "you challenge the CHAMPION?…$"
-EverGrandeCity_ChampionsRoom_Text_2291A2: @ 82291A2
+EverGrandeCity_ChampionsRoom_Text_BrendanYouveWon: @ 82291A2
.string "BRENDAN: {PLAYER}…\p"
.string "Are you trying to tell me…\n"
.string "You've beaten the CHAMPION?$"
-EverGrandeCity_ChampionsRoom_Text_2291E6: @ 82291E6
+EverGrandeCity_ChampionsRoom_Text_BirchArriveRatePokedex: @ 82291E6
.string "PROF. BIRCH: See?\n"
.string "What did I tell you, {RIVAL}?\p"
.string "Didn't I tell you that you don't need\n"
@@ -310,25 +310,25 @@ EverGrandeCity_ChampionsRoom_Text_2291E6: @ 82291E6
.string "What became of your POKéDEX?\n"
.string "Here, let me see.$"
-EverGrandeCity_ChampionsRoom_Text_22934D: @ 822934D
+EverGrandeCity_ChampionsRoom_Text_BirchCongratulations: @ 822934D
.string "PROF. BIRCH: Anyways,\n"
.string "congratulations!\p"
.string "Now, go proudly into the final room!$"
-EverGrandeCity_ChampionsRoom_Text_229399: @ 8229399
+EverGrandeCity_ChampionsRoom_Text_WallaceComeWithMe: @ 8229399
.string "WALLACE: {PLAYER}{KUN}…\p"
.string "No, let me rephrase that properly.\p"
.string "The new CHAMPION!\p"
.string "Come with me.$"
-EverGrandeCity_ChampionsRoom_Text_2293EB: @ 82293EB
+EverGrandeCity_ChampionsRoom_Text_WallaceWaitOutside: @ 82293EB
.string "WALLACE: I'm sorry, but…\p"
.string "From here on, only those TRAINERS who\n"
.string "have become CHAMPIONS may enter.\p"
.string "You'll have to wait outside with\n"
.string "PROF. BIRCH.$"
-EverGrandeCity_ChampionsRoom_Text_229479: @ 8229479
+EverGrandeCity_ChampionsRoom_Text_MayCongratulations: @ 8229479
.string "MAY: Groan…\p"
.string "… … … … … … … …\n"
.string "… … … … … … … …\p"
@@ -337,7 +337,7 @@ EverGrandeCity_ChampionsRoom_Text_229479: @ 8229479
.string "{PLAYER}{KUN}!\n"
.string "Honestly, congratulations!$"
-EverGrandeCity_ChampionsRoom_Text_2294F5: @ 82294F5
+EverGrandeCity_ChampionsRoom_Text_BrendanCongratulations: @ 82294F5
.string "BRENDAN: Whaaaat?! … … … … …\n"
.string "… … … … … … … …\p"
.string "It can't be helped if that's the rule.\p"
diff --git a/data/maps/EverGrandeCity_DrakesRoom/map.json b/data/maps/EverGrandeCity_DrakesRoom/map.json
index 4fb0d16ef..5ff910790 100644
--- a/data/maps/EverGrandeCity_DrakesRoom/map.json
+++ b/data/maps/EverGrandeCity_DrakesRoom/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "EverGrandeCity_DrakesRoom_EventScript_2286F3",
+ "script": "EverGrandeCity_DrakesRoom_EventScript_Drake",
"flag": "0"
}
],
diff --git a/data/maps/EverGrandeCity_DrakesRoom/scripts.inc b/data/maps/EverGrandeCity_DrakesRoom/scripts.inc
index bfc1b6027..e2623e28c 100644
--- a/data/maps/EverGrandeCity_DrakesRoom/scripts.inc
+++ b/data/maps/EverGrandeCity_DrakesRoom/scripts.inc
@@ -1,67 +1,68 @@
EverGrandeCity_DrakesRoom_MapScripts:: @ 822869C
- map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_DrakesRoom_MapScript2_2286BB
- map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_DrakesRoom_MapScript1_2286D2
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_DrakesRoom_MapScript2_227F3E
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_DrakesRoom_OnFrame
+ map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_DrakesRoom_OnLoad
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_SidneysRoom_OnWarp
.byte 0
-EverGrandeCity_DrakesRoom_MapScript2_2286AC: @ 82286AC
- map_script_2 VAR_TEMP_1, 0, EverGrandeCity_DrakesRoom_EventScript_2286B6
+@ Unused, Drake uses Sidneys identical OnWarp for some reason
+EverGrandeCity_DrakesRoom_OnWarp: @ 82286AC
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_DrakesRoom_EventScript_PlayerTurnNorth
.2byte 0
-EverGrandeCity_DrakesRoom_EventScript_2286B6:: @ 82286B6
+EverGrandeCity_DrakesRoom_EventScript_PlayerTurnNorth:: @ 82286B6
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
end
-EverGrandeCity_DrakesRoom_MapScript2_2286BB: @ 82286BB
- map_script_2 VAR_ELITE_4_STATE, 3, EverGrandeCity_DrakesRoom_EventScript_2286C5
+EverGrandeCity_DrakesRoom_OnFrame: @ 82286BB
+ map_script_2 VAR_ELITE_4_STATE, 3, EverGrandeCity_DrakesRoom_EventScript_WalkInCloseDoor
.2byte 0
-EverGrandeCity_DrakesRoom_EventScript_2286C5:: @ 82286C5
+EverGrandeCity_DrakesRoom_EventScript_WalkInCloseDoor:: @ 82286C5
lockall
- call EverGrandeCity_DrakesRoom_EventScript_272475
+ call PokemonLeague_EliteFour_EventScript_WalkInCloseDoor
setvar VAR_ELITE_4_STATE, 4
releaseall
end
-EverGrandeCity_DrakesRoom_MapScript1_2286D2: @ 82286D2
- call_if_set FLAG_DEFEATED_ELITE_4_DRAKE, EverGrandeCity_DrakesRoom_EventScript_2286E7
+EverGrandeCity_DrakesRoom_OnLoad: @ 82286D2
+ call_if_set FLAG_DEFEATED_ELITE_4_DRAKE, EverGrandeCity_DrakesRoom_EventScript_ResetAdvanceToNextRoom
compare VAR_ELITE_4_STATE, 4
- call_if_eq EverGrandeCity_DrakesRoom_EventScript_2286ED
+ call_if_eq EverGrandeCity_DrakesRoom_EventScript_CloseDoor
end
-EverGrandeCity_DrakesRoom_EventScript_2286E7:: @ 82286E7
- call EverGrandeCity_DrakesRoom_EventScript_2724BC
+EverGrandeCity_DrakesRoom_EventScript_ResetAdvanceToNextRoom:: @ 82286E7
+ call PokemonLeague_EliteFour_EventScript_ResetAdvanceToNextRoom
return
-EverGrandeCity_DrakesRoom_EventScript_2286ED:: @ 82286ED
- call EverGrandeCity_DrakesRoom_EventScript_27255F
+EverGrandeCity_DrakesRoom_EventScript_CloseDoor:: @ 82286ED
+ call PokemonLeague_EliteFour_EventScript_CloseDoor
return
-EverGrandeCity_DrakesRoom_EventScript_2286F3:: @ 82286F3
+EverGrandeCity_DrakesRoom_EventScript_Drake:: @ 82286F3
lock
faceplayer
- goto_if_set FLAG_DEFEATED_ELITE_4_DRAKE, EverGrandeCity_DrakesRoom_EventScript_22871A
+ goto_if_set FLAG_DEFEATED_ELITE_4_DRAKE, EverGrandeCity_DrakesRoom_EventScript_PostBattleSpeech
playbgm MUS_SITENNOU, 0
- msgbox EverGrandeCity_DrakesRoom_Text_22873E, MSGBOX_DEFAULT
- trainerbattle_no_intro TRAINER_DRAKE, EverGrandeCity_DrakesRoom_Text_228895
- goto EverGrandeCity_DrakesRoom_EventScript_228724
+ msgbox EverGrandeCity_DrakesRoom_Text_PreBattleSpeech, MSGBOX_DEFAULT
+ trainerbattle_no_intro TRAINER_DRAKE, EverGrandeCity_DrakesRoom_Text_Defeat
+ goto EverGrandeCity_DrakesRoom_EventScript_Defeated
end
-EverGrandeCity_DrakesRoom_EventScript_22871A:: @ 822871A
- msgbox EverGrandeCity_DrakesRoom_Text_2288B0, MSGBOX_DEFAULT
+EverGrandeCity_DrakesRoom_EventScript_PostBattleSpeech:: @ 822871A
+ msgbox EverGrandeCity_DrakesRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
release
end
-EverGrandeCity_DrakesRoom_EventScript_228724:: @ 8228724
+EverGrandeCity_DrakesRoom_EventScript_Defeated:: @ 8228724
setvar VAR_0x8004, 0
special sub_813BF7C
setflag FLAG_DEFEATED_ELITE_4_DRAKE
- call EverGrandeCity_DrakesRoom_EventScript_2723F8
- msgbox EverGrandeCity_DrakesRoom_Text_2288B0, MSGBOX_DEFAULT
+ call PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles
+ msgbox EverGrandeCity_DrakesRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
release
end
-EverGrandeCity_DrakesRoom_Text_22873E: @ 822873E
+EverGrandeCity_DrakesRoom_Text_PreBattleSpeech: @ 822873E
.string "I am the last of the POKéMON LEAGUE\n"
.string "ELITE FOUR, DRAKE the DRAGON master!\p"
.string "In their natural state, POKéMON are\n"
@@ -74,10 +75,10 @@ EverGrandeCity_DrakesRoom_Text_22873E: @ 822873E
.string "If you don't, then you will never\n"
.string "prevail over me!$"
-EverGrandeCity_DrakesRoom_Text_228895: @ 8228895
+EverGrandeCity_DrakesRoom_Text_Defeat: @ 8228895
.string "Superb, it should be said.$"
-EverGrandeCity_DrakesRoom_Text_2288B0: @ 82288B0
+EverGrandeCity_DrakesRoom_Text_PostBattleSpeech: @ 82288B0
.string "You deserve every credit for coming\n"
.string "this far as a TRAINER of POKéMON.\p"
.string "You do seem to know what is needed.\p"
diff --git a/data/maps/EverGrandeCity_GlaciasRoom/map.json b/data/maps/EverGrandeCity_GlaciasRoom/map.json
index ea3116460..8d220202e 100644
--- a/data/maps/EverGrandeCity_GlaciasRoom/map.json
+++ b/data/maps/EverGrandeCity_GlaciasRoom/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "EverGrandeCity_GlaciasRoom_EventScript_228469",
+ "script": "EverGrandeCity_GlaciasRoom_EventScript_Glacia",
"flag": "0"
}
],
diff --git a/data/maps/EverGrandeCity_GlaciasRoom/scripts.inc b/data/maps/EverGrandeCity_GlaciasRoom/scripts.inc
index 00e829930..6836b886d 100644
--- a/data/maps/EverGrandeCity_GlaciasRoom/scripts.inc
+++ b/data/maps/EverGrandeCity_GlaciasRoom/scripts.inc
@@ -1,65 +1,65 @@
EverGrandeCity_GlaciasRoom_MapScripts:: @ 8228412
- map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_GlaciasRoom_MapScript2_228431
- map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_GlaciasRoom_MapScript1_228448
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_GlaciasRoom_MapScript2_228422
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_GlaciasRoom_OnFrame
+ map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_GlaciasRoom_OnLoad
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_GlaciasRoom_OnWarp
.byte 0
-EverGrandeCity_GlaciasRoom_MapScript2_228422: @ 8228422
- map_script_2 VAR_TEMP_1, 0, EverGrandeCity_GlaciasRoom_EventScript_22842C
+EverGrandeCity_GlaciasRoom_OnWarp: @ 8228422
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_GlaciasRoom_EventScript_PlayerTurnNorth
.2byte 0
-EverGrandeCity_GlaciasRoom_EventScript_22842C:: @ 822842C
+EverGrandeCity_GlaciasRoom_EventScript_PlayerTurnNorth:: @ 822842C
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
end
-EverGrandeCity_GlaciasRoom_MapScript2_228431: @ 8228431
- map_script_2 VAR_ELITE_4_STATE, 2, EverGrandeCity_GlaciasRoom_EventScript_22843B
+EverGrandeCity_GlaciasRoom_OnFrame: @ 8228431
+ map_script_2 VAR_ELITE_4_STATE, 2, EverGrandeCity_GlaciasRoom_EventScript_WalkInCloseDoor
.2byte 0
-EverGrandeCity_GlaciasRoom_EventScript_22843B:: @ 822843B
+EverGrandeCity_GlaciasRoom_EventScript_WalkInCloseDoor:: @ 822843B
lockall
- call EverGrandeCity_GlaciasRoom_EventScript_272475
+ call PokemonLeague_EliteFour_EventScript_WalkInCloseDoor
setvar VAR_ELITE_4_STATE, 3
releaseall
end
-EverGrandeCity_GlaciasRoom_MapScript1_228448: @ 8228448
- call_if_set FLAG_DEFEATED_ELITE_4_GLACIA, EverGrandeCity_GlaciasRoom_EventScript_22845D
+EverGrandeCity_GlaciasRoom_OnLoad: @ 8228448
+ call_if_set FLAG_DEFEATED_ELITE_4_GLACIA, EverGrandeCity_GlaciasRoom_EventScript_ResetAdvanceToNextRoom
compare VAR_ELITE_4_STATE, 3
- call_if_eq EverGrandeCity_GlaciasRoom_EventScript_228463
+ call_if_eq EverGrandeCity_GlaciasRoom_EventScript_CloseDoor
end
-EverGrandeCity_GlaciasRoom_EventScript_22845D:: @ 822845D
- call EverGrandeCity_GlaciasRoom_EventScript_2724BC
+EverGrandeCity_GlaciasRoom_EventScript_ResetAdvanceToNextRoom:: @ 822845D
+ call PokemonLeague_EliteFour_EventScript_ResetAdvanceToNextRoom
return
-EverGrandeCity_GlaciasRoom_EventScript_228463:: @ 8228463
- call EverGrandeCity_GlaciasRoom_EventScript_27255F
+EverGrandeCity_GlaciasRoom_EventScript_CloseDoor:: @ 8228463
+ call PokemonLeague_EliteFour_EventScript_CloseDoor
return
-EverGrandeCity_GlaciasRoom_EventScript_228469:: @ 8228469
+EverGrandeCity_GlaciasRoom_EventScript_Glacia:: @ 8228469
lock
faceplayer
- goto_if_set FLAG_DEFEATED_ELITE_4_GLACIA, EverGrandeCity_GlaciasRoom_EventScript_228490
+ goto_if_set FLAG_DEFEATED_ELITE_4_GLACIA, EverGrandeCity_GlaciasRoom_EventScript_PostBattleSpeech
playbgm MUS_SITENNOU, 0
- msgbox EverGrandeCity_GlaciasRoom_Text_2284AC, MSGBOX_DEFAULT
- trainerbattle_no_intro TRAINER_GLACIA, EverGrandeCity_GlaciasRoom_Text_2285B4
- goto EverGrandeCity_GlaciasRoom_EventScript_22849A
+ msgbox EverGrandeCity_GlaciasRoom_Text_PreBattleSpeech, MSGBOX_DEFAULT
+ trainerbattle_no_intro TRAINER_GLACIA, EverGrandeCity_GlaciasRoom_Text_Defeat
+ goto EverGrandeCity_GlaciasRoom_EventScript_Defeated
end
-EverGrandeCity_GlaciasRoom_EventScript_228490:: @ 8228490
- msgbox EverGrandeCity_GlaciasRoom_Text_228640, MSGBOX_DEFAULT
+EverGrandeCity_GlaciasRoom_EventScript_PostBattleSpeech:: @ 8228490
+ msgbox EverGrandeCity_GlaciasRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
release
end
-EverGrandeCity_GlaciasRoom_EventScript_22849A:: @ 822849A
+EverGrandeCity_GlaciasRoom_EventScript_Defeated:: @ 822849A
setflag FLAG_DEFEATED_ELITE_4_GLACIA
- call EverGrandeCity_GlaciasRoom_EventScript_2723F8
- msgbox EverGrandeCity_GlaciasRoom_Text_228640, MSGBOX_DEFAULT
+ call PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles
+ msgbox EverGrandeCity_GlaciasRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
release
end
-EverGrandeCity_GlaciasRoom_Text_2284AC: @ 82284AC
+EverGrandeCity_GlaciasRoom_Text_PreBattleSpeech: @ 82284AC
.string "Welcome, my name is GLACIA\n"
.string "of the ELITE FOUR.\p"
.string "I've traveled from afar to HOENN\n"
@@ -70,14 +70,14 @@ EverGrandeCity_GlaciasRoom_Text_2284AC: @ 82284AC
.string "It would please me to no end if I could\n"
.string "go all out against you!$"
-EverGrandeCity_GlaciasRoom_Text_2285B4: @ 82285B4
+EverGrandeCity_GlaciasRoom_Text_Defeat: @ 82285B4
.string "You and your POKéMON…\n"
.string "How hot your spirits burn!\p"
.string "The all-consuming heat overwhelms.\p"
.string "It's no surprise that my icy skills\n"
.string "failed to harm you.$"
-EverGrandeCity_GlaciasRoom_Text_228640: @ 8228640
+EverGrandeCity_GlaciasRoom_Text_PostBattleSpeech: @ 8228640
.string "Advance to the next room.\p"
.string "And there, confirm the truly fearsome\n"
.string "side of the POKéMON LEAGUE.$"
diff --git a/data/maps/EverGrandeCity_HallOfFame/scripts.inc b/data/maps/EverGrandeCity_HallOfFame/scripts.inc
index ebfcb3311..638e18eb5 100644
--- a/data/maps/EverGrandeCity_HallOfFame/scripts.inc
+++ b/data/maps/EverGrandeCity_HallOfFame/scripts.inc
@@ -20,8 +20,8 @@ EverGrandeCity_HallOfFame_EventScript_229850:: @ 8229850
applymovement 1, EverGrandeCity_HallOfFame_Movement_229901
applymovement EVENT_OBJ_ID_PLAYER, EverGrandeCity_HallOfFame_Movement_229901
waitmovement 0
- applymovement 1, Common_Movement_WalkInPlaceRight
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox EverGrandeCity_HallOfFame_Text_22990E, MSGBOX_DEFAULT
closemessage
@@ -29,13 +29,13 @@ EverGrandeCity_HallOfFame_EventScript_229850:: @ 8229850
applymovement EVENT_OBJ_ID_PLAYER, EverGrandeCity_HallOfFame_Movement_229908
waitmovement 0
delay 20
- applymovement 1, Common_Movement_WalkInPlaceRight
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox EverGrandeCity_HallOfFame_Text_2299A3, MSGBOX_DEFAULT
closemessage
- applymovement 1, Common_Movement_WalkInPlaceUp
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
delay 20
dofieldeffect FLDEFF_HALL_OF_FAME_RECORD
diff --git a/data/maps/EverGrandeCity_PhoebesRoom/map.json b/data/maps/EverGrandeCity_PhoebesRoom/map.json
index a0072fd08..73ee3357d 100644
--- a/data/maps/EverGrandeCity_PhoebesRoom/map.json
+++ b/data/maps/EverGrandeCity_PhoebesRoom/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "EverGrandeCity_PhoebesRoom_EventScript_2281CB",
+ "script": "EverGrandeCity_PhoebesRoom_EventScript_Phoebe",
"flag": "0"
}
],
diff --git a/data/maps/EverGrandeCity_PhoebesRoom/scripts.inc b/data/maps/EverGrandeCity_PhoebesRoom/scripts.inc
index b5a3a9999..4843359c0 100644
--- a/data/maps/EverGrandeCity_PhoebesRoom/scripts.inc
+++ b/data/maps/EverGrandeCity_PhoebesRoom/scripts.inc
@@ -1,65 +1,65 @@
EverGrandeCity_PhoebesRoom_MapScripts:: @ 8228174
- map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_PhoebesRoom_MapScript1_2281AA
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_PhoebesRoom_MapScript2_228184
- map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_PhoebesRoom_MapScript2_228193
+ map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_PhoebesRoom_OnLoad
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_PhoebesRoom_OnWarp
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_PhoebesRoom_OnFrame
.byte 0
-EverGrandeCity_PhoebesRoom_MapScript2_228184: @ 8228184
- map_script_2 VAR_TEMP_1, 0, EverGrandeCity_PhoebesRoom_EventScript_22818E
+EverGrandeCity_PhoebesRoom_OnWarp: @ 8228184
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_PhoebesRoom_EventScript_PlayerTurnNorth
.2byte 0
-EverGrandeCity_PhoebesRoom_EventScript_22818E:: @ 822818E
+EverGrandeCity_PhoebesRoom_EventScript_PlayerTurnNorth:: @ 822818E
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
end
-EverGrandeCity_PhoebesRoom_MapScript2_228193: @ 8228193
- map_script_2 VAR_ELITE_4_STATE, 1, EverGrandeCity_PhoebesRoom_EventScript_22819D
+EverGrandeCity_PhoebesRoom_OnFrame: @ 8228193
+ map_script_2 VAR_ELITE_4_STATE, 1, EverGrandeCity_PhoebesRoom_EventScript_WalkInCloseDoor
.2byte 0
-EverGrandeCity_PhoebesRoom_EventScript_22819D:: @ 822819D
+EverGrandeCity_PhoebesRoom_EventScript_WalkInCloseDoor:: @ 822819D
lockall
- call EverGrandeCity_PhoebesRoom_EventScript_272475
+ call PokemonLeague_EliteFour_EventScript_WalkInCloseDoor
setvar VAR_ELITE_4_STATE, 2
releaseall
end
-EverGrandeCity_PhoebesRoom_MapScript1_2281AA: @ 82281AA
- call_if_set FLAG_DEFEATED_ELITE_4_PHOEBE, EverGrandeCity_PhoebesRoom_EventScript_2281BF
+EverGrandeCity_PhoebesRoom_OnLoad: @ 82281AA
+ call_if_set FLAG_DEFEATED_ELITE_4_PHOEBE, EverGrandeCity_PhoebesRoom_EventScript_ResetAdvanceToNextRoom
compare VAR_ELITE_4_STATE, 2
- call_if_eq EverGrandeCity_PhoebesRoom_EventScript_2281C5
+ call_if_eq EverGrandeCity_PhoebesRoom_EventScript_CloseDoor
end
-EverGrandeCity_PhoebesRoom_EventScript_2281BF:: @ 82281BF
- call EverGrandeCity_PhoebesRoom_EventScript_2724BC
+EverGrandeCity_PhoebesRoom_EventScript_ResetAdvanceToNextRoom:: @ 82281BF
+ call PokemonLeague_EliteFour_EventScript_ResetAdvanceToNextRoom
return
-EverGrandeCity_PhoebesRoom_EventScript_2281C5:: @ 82281C5
- call EverGrandeCity_PhoebesRoom_EventScript_27255F
+EverGrandeCity_PhoebesRoom_EventScript_CloseDoor:: @ 82281C5
+ call PokemonLeague_EliteFour_EventScript_CloseDoor
return
-EverGrandeCity_PhoebesRoom_EventScript_2281CB:: @ 82281CB
+EverGrandeCity_PhoebesRoom_EventScript_Phoebe:: @ 82281CB
lock
faceplayer
- goto_if_set FLAG_DEFEATED_ELITE_4_PHOEBE, EverGrandeCity_PhoebesRoom_EventScript_2281F2
+ goto_if_set FLAG_DEFEATED_ELITE_4_PHOEBE, EverGrandeCity_PhoebesRoom_EventScript_PostBattleSpeech
playbgm MUS_SITENNOU, 0
- msgbox EverGrandeCity_PhoebesRoom_Text_22820E, MSGBOX_DEFAULT
- trainerbattle_no_intro TRAINER_PHOEBE, EverGrandeCity_PhoebesRoom_Text_228325
- goto EverGrandeCity_PhoebesRoom_EventScript_2281FC
+ msgbox EverGrandeCity_PhoebesRoom_Text_PreBattleSpeech, MSGBOX_DEFAULT
+ trainerbattle_no_intro TRAINER_PHOEBE, EverGrandeCity_PhoebesRoom_Text_Defeat
+ goto EverGrandeCity_PhoebesRoom_EventScript_Defeated
end
-EverGrandeCity_PhoebesRoom_EventScript_2281F2:: @ 82281F2
- msgbox EverGrandeCity_PhoebesRoom_Text_228343, MSGBOX_DEFAULT
+EverGrandeCity_PhoebesRoom_EventScript_PostBattleSpeech:: @ 82281F2
+ msgbox EverGrandeCity_PhoebesRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
release
end
-EverGrandeCity_PhoebesRoom_EventScript_2281FC:: @ 82281FC
+EverGrandeCity_PhoebesRoom_EventScript_Defeated:: @ 82281FC
setflag FLAG_DEFEATED_ELITE_4_PHOEBE
- call EverGrandeCity_PhoebesRoom_EventScript_2723F8
- msgbox EverGrandeCity_PhoebesRoom_Text_228343, MSGBOX_DEFAULT
+ call PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles
+ msgbox EverGrandeCity_PhoebesRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
release
end
-EverGrandeCity_PhoebesRoom_Text_22820E: @ 822820E
+EverGrandeCity_PhoebesRoom_Text_PreBattleSpeech: @ 822820E
.string "Ahahaha!\p"
.string "I'm PHOEBE of the ELITE FOUR.\n"
.string "I did my training on MT. PYRE.\p"
@@ -70,11 +70,11 @@ EverGrandeCity_PhoebesRoom_Text_22820E: @ 822820E
.string "So, come on, just try and see if you can\n"
.string "even inflict damage on my POKéMON!$"
-EverGrandeCity_PhoebesRoom_Text_228325: @ 8228325
+EverGrandeCity_PhoebesRoom_Text_Defeat: @ 8228325
.string "Oh, darn.\n"
.string "I've gone and lost.$"
-EverGrandeCity_PhoebesRoom_Text_228343: @ 8228343
+EverGrandeCity_PhoebesRoom_Text_PostBattleSpeech: @ 8228343
.string "There's a definite bond between you\n"
.string "and your POKéMON, too.\p"
.string "I didn't recognize it, so it's only\n"
diff --git a/data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc b/data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc
index b9dcc07dd..2d1f1de37 100644
--- a/data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
EverGrandeCity_PokemonCenter_1F_MapScripts:: @ 8229A34
map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, EverGrandeCity_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
EverGrandeCity_PokemonCenter_1F_OnTransition: @ 8229A3F
@@ -34,11 +34,11 @@ EverGrandeCity_PokemonCenter_1F_EventScript_229A79:: @ 8229A79
faceplayer
msgbox EverGrandeCity_PokemonCenter_1F_Text_229BF1, MSGBOX_DEFAULT
closemessage
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq EverGrandeCity_PokemonCenter_1F_EventScript_229AB6
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq EverGrandeCity_PokemonCenter_1F_EventScript_229AC1
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq EverGrandeCity_PokemonCenter_1F_EventScript_229AC1
addvar VAR_SCOTT_STATE, 1
setflag FLAG_MET_SCOTT_IN_EVERGRANDE
diff --git a/data/maps/EverGrandeCity_PokemonCenter_2F/map.json b/data/maps/EverGrandeCity_PokemonCenter_2F/map.json
index f1dcd3868..b99590829 100644
--- a/data/maps/EverGrandeCity_PokemonCenter_2F/map.json
+++ b/data/maps/EverGrandeCity_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "EverGrandeCity_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "EverGrandeCity_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "EverGrandeCity_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "EverGrandeCity_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/EverGrandeCity_PokemonCenter_2F/scripts.inc b/data/maps/EverGrandeCity_PokemonCenter_2F/scripts.inc
index 690032b8a..f52419d60 100644
--- a/data/maps/EverGrandeCity_PokemonCenter_2F/scripts.inc
+++ b/data/maps/EverGrandeCity_PokemonCenter_2F/scripts.inc
@@ -1,20 +1,21 @@
EverGrandeCity_PokemonCenter_2F_MapScripts:: @ 8229CE0
- map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-EverGrandeCity_PokemonCenter_2F_EventScript_229CF5:: @ 8229CF5
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+EverGrandeCity_PokemonCenter_2F_EventScript_Colosseum:: @ 8229CF5
+ call CableClub_EventScript_Colosseum
end
-EverGrandeCity_PokemonCenter_2F_EventScript_229CFB:: @ 8229CFB
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+EverGrandeCity_PokemonCenter_2F_EventScript_TradeCenter:: @ 8229CFB
+ call CableClub_EventScript_TradeCenter
end
-EverGrandeCity_PokemonCenter_2F_EventScript_229D01:: @ 8229D01
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+EverGrandeCity_PokemonCenter_2F_EventScript_RecordCorner:: @ 8229D01
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/EverGrandeCity_PokemonLeague_1F/scripts.inc b/data/maps/EverGrandeCity_PokemonLeague_1F/scripts.inc
index 25899420f..4b695d9d9 100644
--- a/data/maps/EverGrandeCity_PokemonLeague_1F/scripts.inc
+++ b/data/maps/EverGrandeCity_PokemonLeague_1F/scripts.inc
@@ -1,6 +1,6 @@
EverGrandeCity_PokemonLeague_1F_MapScripts:: @ 82295D2
map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_PokemonLeague_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, EverGrandeCity_PokemonLeague_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
EverGrandeCity_PokemonLeague_1F_OnTransition: @ 82295DD
diff --git a/data/maps/EverGrandeCity_PokemonLeague_2F/map.json b/data/maps/EverGrandeCity_PokemonLeague_2F/map.json
index 0d0bb68a1..a016be34b 100644
--- a/data/maps/EverGrandeCity_PokemonLeague_2F/map.json
+++ b/data/maps/EverGrandeCity_PokemonLeague_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "EverGrandeCity_PokemonLeague_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "EverGrandeCity_PokemonLeague_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "EverGrandeCity_PokemonLeague_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "EverGrandeCity_PokemonLeague_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/EverGrandeCity_PokemonLeague_2F/scripts.inc b/data/maps/EverGrandeCity_PokemonLeague_2F/scripts.inc
index 2a2652938..b860f95b8 100644
--- a/data/maps/EverGrandeCity_PokemonLeague_2F/scripts.inc
+++ b/data/maps/EverGrandeCity_PokemonLeague_2F/scripts.inc
@@ -1,19 +1,20 @@
EverGrandeCity_PokemonLeague_2F_MapScripts:: @ 8229D07
- map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_PokemonLeague_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_PokemonLeague_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_PokemonLeague_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-EverGrandeCity_PokemonLeague_2F_EventScript_229D1C:: @ 8229D1C
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+EverGrandeCity_PokemonLeague_2F_EventScript_Colosseum:: @ 8229D1C
+ call CableClub_EventScript_Colosseum
end
-EverGrandeCity_PokemonLeague_2F_EventScript_229D22:: @ 8229D22
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+EverGrandeCity_PokemonLeague_2F_EventScript_TradeCenter:: @ 8229D22
+ call CableClub_EventScript_TradeCenter
end
-EverGrandeCity_PokemonLeague_2F_EventScript_229D28:: @ 8229D28
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+EverGrandeCity_PokemonLeague_2F_EventScript_RecordCorner:: @ 8229D28
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/EverGrandeCity_SidneysRoom/map.json b/data/maps/EverGrandeCity_SidneysRoom/map.json
index 87545b597..0aa57a944 100644
--- a/data/maps/EverGrandeCity_SidneysRoom/map.json
+++ b/data/maps/EverGrandeCity_SidneysRoom/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "EverGrandeCity_SidneysRoom_EventScript_227F64",
+ "script": "EverGrandeCity_SidneysRoom_EventScript_Sidney",
"flag": "0"
}
],
diff --git a/data/maps/EverGrandeCity_SidneysRoom/scripts.inc b/data/maps/EverGrandeCity_SidneysRoom/scripts.inc
index 432747fda..74cd384fb 100644
--- a/data/maps/EverGrandeCity_SidneysRoom/scripts.inc
+++ b/data/maps/EverGrandeCity_SidneysRoom/scripts.inc
@@ -1,8 +1,8 @@
EverGrandeCity_SidneysRoom_MapScripts:: @ 8227F01
- map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_SidneysRoom_MapScript1_227F1D
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_SidneysRoom_MapScript2_227F3E
+ map_script MAP_SCRIPT_ON_LOAD, EverGrandeCity_SidneysRoom_OnLoad
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, EverGrandeCity_SidneysRoom_OnWarp
map_script MAP_SCRIPT_ON_TRANSITION, EverGrandeCity_SidneysRoom_OnTransition
- map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_SidneysRoom_MapScript2_227F4D
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, EverGrandeCity_SidneysRoom_OnFrame
.byte 0
EverGrandeCity_SidneysRoom_OnTransition: @ 8227F16
@@ -10,63 +10,62 @@ EverGrandeCity_SidneysRoom_OnTransition: @ 8227F16
setflag FLAG_HIDE_EVER_GRANDE_POKEMON_CENTER_1F_SCOTT
end
-EverGrandeCity_SidneysRoom_MapScript1_227F1D: @ 8227F1D
- call_if_set FLAG_DEFEATED_ELITE_4_SIDNEY, EverGrandeCity_SidneysRoom_EventScript_227F32
+EverGrandeCity_SidneysRoom_OnLoad: @ 8227F1D
+ call_if_set FLAG_DEFEATED_ELITE_4_SIDNEY, EverGrandeCity_SidneysRoom_EventScript_ResetAdvanceToNextRoom
compare VAR_ELITE_4_STATE, 1
- call_if_eq EverGrandeCity_SidneysRoom_EventScript_227F38
+ call_if_eq EverGrandeCity_SidneysRoom_EventScript_CloseDoor
end
-EverGrandeCity_SidneysRoom_EventScript_227F32:: @ 8227F32
- call EverGrandeCity_SidneysRoom_EventScript_2724BC
+EverGrandeCity_SidneysRoom_EventScript_ResetAdvanceToNextRoom:: @ 8227F32
+ call PokemonLeague_EliteFour_EventScript_ResetAdvanceToNextRoom
return
-EverGrandeCity_SidneysRoom_EventScript_227F38:: @ 8227F38
- call EverGrandeCity_SidneysRoom_EventScript_27255F
+EverGrandeCity_SidneysRoom_EventScript_CloseDoor:: @ 8227F38
+ call PokemonLeague_EliteFour_EventScript_CloseDoor
return
-EverGrandeCity_DrakesRoom_MapScript2_227F3E: @ 8227F3E
-EverGrandeCity_SidneysRoom_MapScript2_227F3E: @ 8227F3E
- map_script_2 VAR_TEMP_1, 0, EverGrandeCity_SidneysRoom_EventScript_227F48
+EverGrandeCity_SidneysRoom_OnWarp: @ 8227F3E
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_SidneysRoom_EventScript_PlayerTurnNorth
.2byte 0
-EverGrandeCity_SidneysRoom_EventScript_227F48:: @ 8227F48
+EverGrandeCity_SidneysRoom_EventScript_PlayerTurnNorth:: @ 8227F48
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
end
-EverGrandeCity_SidneysRoom_MapScript2_227F4D: @ 8227F4D
- map_script_2 VAR_ELITE_4_STATE, 0, EverGrandeCity_SidneysRoom_EventScript_227F57
+EverGrandeCity_SidneysRoom_OnFrame: @ 8227F4D
+ map_script_2 VAR_ELITE_4_STATE, 0, EverGrandeCity_SidneysRoom_EventScript_WalkInCloseDoor
.2byte 0
-EverGrandeCity_SidneysRoom_EventScript_227F57:: @ 8227F57
+EverGrandeCity_SidneysRoom_EventScript_WalkInCloseDoor:: @ 8227F57
lockall
- call EverGrandeCity_SidneysRoom_EventScript_272475
+ call PokemonLeague_EliteFour_EventScript_WalkInCloseDoor
setvar VAR_ELITE_4_STATE, 1
releaseall
end
-EverGrandeCity_SidneysRoom_EventScript_227F64:: @ 8227F64
+EverGrandeCity_SidneysRoom_EventScript_Sidney:: @ 8227F64
lock
faceplayer
- goto_if_set FLAG_DEFEATED_ELITE_4_SIDNEY, EverGrandeCity_SidneysRoom_EventScript_227F8B
+ goto_if_set FLAG_DEFEATED_ELITE_4_SIDNEY, EverGrandeCity_SidneysRoom_EventScript_PostBattleSpeech
playbgm MUS_SITENNOU, 0
- msgbox EverGrandeCity_SidneysRoom_Text_227FA7, MSGBOX_DEFAULT
- trainerbattle_no_intro TRAINER_SIDNEY, EverGrandeCity_SidneysRoom_Text_2280A2
- goto EverGrandeCity_SidneysRoom_EventScript_227F95
+ msgbox EverGrandeCity_SidneysRoom_Text_PreBattleSpeech, MSGBOX_DEFAULT
+ trainerbattle_no_intro TRAINER_SIDNEY, EverGrandeCity_SidneysRoom_Text_Defeat
+ goto EverGrandeCity_SidneysRoom_EventScript_Defeated
end
-EverGrandeCity_SidneysRoom_EventScript_227F8B:: @ 8227F8B
- msgbox EverGrandeCity_SidneysRoom_Text_2280EC, MSGBOX_DEFAULT
+EverGrandeCity_SidneysRoom_EventScript_PostBattleSpeech:: @ 8227F8B
+ msgbox EverGrandeCity_SidneysRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
release
end
-EverGrandeCity_SidneysRoom_EventScript_227F95:: @ 8227F95
+EverGrandeCity_SidneysRoom_EventScript_Defeated:: @ 8227F95
setflag FLAG_DEFEATED_ELITE_4_SIDNEY
- call EverGrandeCity_SidneysRoom_EventScript_2723F8
- msgbox EverGrandeCity_SidneysRoom_Text_2280EC, MSGBOX_DEFAULT
+ call PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles
+ msgbox EverGrandeCity_SidneysRoom_Text_PostBattleSpeech, MSGBOX_DEFAULT
release
end
-EverGrandeCity_SidneysRoom_Text_227FA7: @ 8227FA7
+EverGrandeCity_SidneysRoom_Text_PreBattleSpeech: @ 8227FA7
.string "Welcome, challenger!\n"
.string "I'm SIDNEY of the ELITE FOUR.\p"
.string "I like that look you're giving me.\n"
@@ -76,11 +75,11 @@ EverGrandeCity_SidneysRoom_Text_227FA7: @ 8227FA7
.string "a battle that can only be staged\l"
.string "here in the POKéMON LEAGUE!$"
-EverGrandeCity_SidneysRoom_Text_2280A2: @ 82280A2
+EverGrandeCity_SidneysRoom_Text_Defeat: @ 82280A2
.string "Well, how do you like that? I lost!\n"
.string "Eh, it was fun, so it doesn't matter.$"
-EverGrandeCity_SidneysRoom_Text_2280EC: @ 82280EC
+EverGrandeCity_SidneysRoom_Text_PostBattleSpeech: @ 82280EC
.string "Well, listen to what this loser has\n"
.string "to say.\p"
.string "You've got what it takes to go far.\n"
diff --git a/data/maps/FallarborTown_Mart/map.json b/data/maps/FallarborTown_Mart/map.json
index 9248eec87..60b0be26a 100644
--- a/data/maps/FallarborTown_Mart/map.json
+++ b/data/maps/FallarborTown_Mart/map.json
@@ -76,7 +76,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "FallarborTown_Mart_EventScript_2C80B6",
+ "script": "FallarborTown_Mart_EventScript_MetronomeTutor",
"flag": "0"
}
],
diff --git a/data/maps/FallarborTown_PokemonCenter_1F/scripts.inc b/data/maps/FallarborTown_PokemonCenter_1F/scripts.inc
index 062e6dedc..db9122b6d 100644
--- a/data/maps/FallarborTown_PokemonCenter_1F/scripts.inc
+++ b/data/maps/FallarborTown_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
FallarborTown_PokemonCenter_1F_MapScripts:: @ 8200BCD
map_script MAP_SCRIPT_ON_TRANSITION, FallarborTown_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, FallarborTown_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
FallarborTown_PokemonCenter_1F_OnTransition: @ 8200BD8
@@ -30,8 +30,8 @@ FallarborTown_PokemonCenter_1F_EventScript_200C01:: @ 8200C01
msgbox FallarborTown_PokemonCenter_1F_Text_200C6B, MSGBOX_DEFAULT
closemessage
switch VAR_FACING
- case 2, FallarborTown_PokemonCenter_1F_EventScript_200C28
- case 3, FallarborTown_PokemonCenter_1F_EventScript_200C38
+ case DIR_NORTH, FallarborTown_PokemonCenter_1F_EventScript_200C28
+ case DIR_WEST, FallarborTown_PokemonCenter_1F_EventScript_200C38
end
FallarborTown_PokemonCenter_1F_EventScript_200C28:: @ 8200C28
diff --git a/data/maps/FallarborTown_PokemonCenter_2F/map.json b/data/maps/FallarborTown_PokemonCenter_2F/map.json
index 029a4a9c6..60bca57a9 100644
--- a/data/maps/FallarborTown_PokemonCenter_2F/map.json
+++ b/data/maps/FallarborTown_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "FallarborTown_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "FallarborTown_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "FallarborTown_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "FallarborTown_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/FallarborTown_PokemonCenter_2F/scripts.inc b/data/maps/FallarborTown_PokemonCenter_2F/scripts.inc
index 0d5332647..e9912ee68 100644
--- a/data/maps/FallarborTown_PokemonCenter_2F/scripts.inc
+++ b/data/maps/FallarborTown_PokemonCenter_2F/scripts.inc
@@ -1,19 +1,20 @@
FallarborTown_PokemonCenter_2F_MapScripts:: @ 8200EEB
- map_script MAP_SCRIPT_ON_FRAME_TABLE, FallarborTown_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, FallarborTown_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, FallarborTown_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-FallarborTown_PokemonCenter_2F_EventScript_200F00:: @ 8200F00
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+FallarborTown_PokemonCenter_2F_EventScript_Colosseum:: @ 8200F00
+ call CableClub_EventScript_Colosseum
end
-FallarborTown_PokemonCenter_2F_EventScript_200F06:: @ 8200F06
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+FallarborTown_PokemonCenter_2F_EventScript_TradeCenter:: @ 8200F06
+ call CableClub_EventScript_TradeCenter
end
-FallarborTown_PokemonCenter_2F_EventScript_200F0C:: @ 8200F0C
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+FallarborTown_PokemonCenter_2F_EventScript_RecordCorner:: @ 8200F0C
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/FarawayIsland_Entrance/scripts.inc b/data/maps/FarawayIsland_Entrance/scripts.inc
index e0d54233b..f69bca377 100644
--- a/data/maps/FarawayIsland_Entrance/scripts.inc
+++ b/data/maps/FarawayIsland_Entrance/scripts.inc
@@ -24,7 +24,7 @@ FarawayIsland_Entrance_EventScript_267CA2:: @ 8267CA2
goto_if_eq FarawayIsland_Entrance_EventScript_267CE7
msgbox EventTicket_Text_SailHome, MSGBOX_DEFAULT
closemessage
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceDown
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 30
hideobjectat 1, MAP_FARAWAY_ISLAND_ENTRANCE
diff --git a/data/maps/FarawayIsland_Interior/scripts.inc b/data/maps/FarawayIsland_Interior/scripts.inc
index 9bbf0575d..632240814 100644
--- a/data/maps/FarawayIsland_Interior/scripts.inc
+++ b/data/maps/FarawayIsland_Interior/scripts.inc
@@ -11,13 +11,13 @@ FarawayIsland_Interior_MapScript1_267D0F: @ 8267D0F
FarawayIsland_Interior_EventScript_267D19:: @ 8267D19
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq FarawayIsland_Interior_EventScript_267D4B
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq FarawayIsland_Interior_EventScript_267D4B
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq FarawayIsland_Interior_EventScript_267D4B
- compare VAR_RESULT, 10
+ compare VAR_RESULT, B_OUTCOME_MON_TELEPORTED
goto_if_eq FarawayIsland_Interior_EventScript_267D4B
return
@@ -32,7 +32,7 @@ FarawayIsland_Interior_MapScript1_267D54: @ 8267D54
FarawayIsland_Interior_EventScript_267D5E:: @ 8267D5E
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject VAR_LAST_TALKED
return
@@ -125,13 +125,13 @@ FarawayIsland_Interior_EventScript_267DF2:: @ 8267DF2
message FarawayIsland_Interior_Text_Mew
waitse
playmoncry SPECIES_MEW, 2
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq FarawayIsland_Interior_EventScript_267EAF
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq FarawayIsland_Interior_EventScript_267EBA
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq FarawayIsland_Interior_EventScript_267EC5
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq FarawayIsland_Interior_EventScript_267ED0
special sub_81D4BEC
delay 40
@@ -145,13 +145,13 @@ FarawayIsland_Interior_EventScript_267DF2:: @ 8267DF2
waitstate
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq FarawayIsland_Interior_EventScript_267E96
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq FarawayIsland_Interior_EventScript_267EA4
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq FarawayIsland_Interior_EventScript_267EA4
- compare VAR_RESULT, 10
+ compare VAR_RESULT, B_OUTCOME_MON_TELEPORTED
goto_if_eq FarawayIsland_Interior_EventScript_267EA4
setflag FLAG_CAUGHT_MEW
release
diff --git a/data/maps/FortreeCity/scripts.inc b/data/maps/FortreeCity/scripts.inc
index c951d6030..34853336d 100644
--- a/data/maps/FortreeCity/scripts.inc
+++ b/data/maps/FortreeCity/scripts.inc
@@ -72,7 +72,7 @@ FortreeCity_EventScript_1E2630:: @ 81E2630
FortreeCity_EventScript_1E2645:: @ 81E2645
msgbox FortreeCity_Text_1E2A48, MSGBOX_DEFAULT
closemessage
- applymovement VAR_LAST_TALKED, FortreeCity_Movement_2723C7
+ applymovement VAR_LAST_TALKED, Movement_KecleonAppears
waitmovement 0
waitse
playmoncry SPECIES_KECLEON, 2
diff --git a/data/maps/FortreeCity_House1/scripts.inc b/data/maps/FortreeCity_House1/scripts.inc
index 87aa7a643..e6a617677 100644
--- a/data/maps/FortreeCity_House1/scripts.inc
+++ b/data/maps/FortreeCity_House1/scripts.inc
@@ -5,7 +5,7 @@ FortreeCity_House1_EventScript_2162BB:: @ 82162BB
lock
faceplayer
goto_if_set FLAG_FORTREE_NPC_TRADE_COMPLETED, FortreeCity_House1_EventScript_216355
- setvar VAR_0x8008, 1
+ setvar VAR_0x8008, INGAME_TRADE_PLUSLE
copyvar VAR_0x8004, VAR_0x8008
specialvar VAR_RESULT, GetInGameTradeSpeciesInfo
copyvar VAR_0x8009, VAR_RESULT
diff --git a/data/maps/FortreeCity_House2/map.json b/data/maps/FortreeCity_House2/map.json
index 17f928fe9..492590c6c 100644
--- a/data/maps/FortreeCity_House2/map.json
+++ b/data/maps/FortreeCity_House2/map.json
@@ -37,7 +37,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "FortreeCity_House2_EventScript_2C811E",
+ "script": "FortreeCity_House2_EventScript_SleepTalkTutor",
"flag": "0"
}
],
diff --git a/data/maps/FortreeCity_PokemonCenter_1F/scripts.inc b/data/maps/FortreeCity_PokemonCenter_1F/scripts.inc
index 2b7594959..fa88bd752 100644
--- a/data/maps/FortreeCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/FortreeCity_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
FortreeCity_PokemonCenter_1F_MapScripts:: @ 82173D8
map_script MAP_SCRIPT_ON_TRANSITION, FortreeCity_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, FortreeCity_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
FortreeCity_PokemonCenter_1F_OnTransition: @ 82173E3
diff --git a/data/maps/FortreeCity_PokemonCenter_2F/map.json b/data/maps/FortreeCity_PokemonCenter_2F/map.json
index 79bdfad30..42aca8164 100644
--- a/data/maps/FortreeCity_PokemonCenter_2F/map.json
+++ b/data/maps/FortreeCity_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "FortreeCity_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "FortreeCity_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "FortreeCity_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "FortreeCity_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/FortreeCity_PokemonCenter_2F/scripts.inc b/data/maps/FortreeCity_PokemonCenter_2F/scripts.inc
index 2ab9510f3..183dbece0 100644
--- a/data/maps/FortreeCity_PokemonCenter_2F/scripts.inc
+++ b/data/maps/FortreeCity_PokemonCenter_2F/scripts.inc
@@ -1,19 +1,20 @@
FortreeCity_PokemonCenter_2F_MapScripts:: @ 821763E
- map_script MAP_SCRIPT_ON_FRAME_TABLE, FortreeCity_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, FortreeCity_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, FortreeCity_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-FortreeCity_PokemonCenter_2F_EventScript_217653:: @ 8217653
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+FortreeCity_PokemonCenter_2F_EventScript_Colosseum:: @ 8217653
+ call CableClub_EventScript_Colosseum
end
-FortreeCity_PokemonCenter_2F_EventScript_217659:: @ 8217659
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+FortreeCity_PokemonCenter_2F_EventScript_TradeCenter:: @ 8217659
+ call CableClub_EventScript_TradeCenter
end
-FortreeCity_PokemonCenter_2F_EventScript_21765F:: @ 821765F
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+FortreeCity_PokemonCenter_2F_EventScript_RecordCorner:: @ 821765F
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/GraniteCave_B1F/scripts.inc b/data/maps/GraniteCave_B1F/scripts.inc
index fafd05647..f465b0694 100644
--- a/data/maps/GraniteCave_B1F/scripts.inc
+++ b/data/maps/GraniteCave_B1F/scripts.inc
@@ -1,10 +1,10 @@
GraniteCave_B1F_MapScripts:: @ 822DC5E
- map_script MAP_SCRIPT_ON_FRAME_TABLE, GraniteCave_B1F_MapScript2_2A8327
- map_script MAP_SCRIPT_ON_TRANSITION, GraniteCave_B1F_MapScript1_2A8331
- map_script MAP_SCRIPT_ON_RESUME, GraniteCave_B1F_MapScript1_22DC6E
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CaveHole_CheckFallDownHole
+ map_script MAP_SCRIPT_ON_TRANSITION, CaveHole_FixCrackedGround
+ map_script MAP_SCRIPT_ON_RESUME, GraniteCave_B1F_SetHoleWarp
.byte 0
-GraniteCave_B1F_MapScript1_22DC6E: @ 822DC6E
+GraniteCave_B1F_SetHoleWarp: @ 822DC6E
setstepcallback STEP_CB_CRACKED_FLOOR
setholewarp MAP_GRANITE_CAVE_B2F, 255, 0, 0
end
diff --git a/data/maps/GraniteCave_StevensRoom/scripts.inc b/data/maps/GraniteCave_StevensRoom/scripts.inc
index c08e4c6af..333f97a66 100644
--- a/data/maps/GraniteCave_StevensRoom/scripts.inc
+++ b/data/maps/GraniteCave_StevensRoom/scripts.inc
@@ -23,13 +23,13 @@ GraniteCave_StevensRoom_EventScript_22DC7B:: @ 822DC7B
setflag FLAG_REGISTERED_STEVEN_POKENAV
msgbox GraniteCave_StevensRoom_Text_22DF8C, MSGBOX_DEFAULT
closemessage
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq GraniteCave_StevensRoom_EventScript_22DD0D
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq GraniteCave_StevensRoom_EventScript_22DD2A
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq GraniteCave_StevensRoom_EventScript_22DD18
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq GraniteCave_StevensRoom_EventScript_22DD18
playse SE_KAIDAN
removeobject 1
diff --git a/data/maps/IslandCave/scripts.inc b/data/maps/IslandCave/scripts.inc
index 4664b7dcd..b0843667c 100644
--- a/data/maps/IslandCave/scripts.inc
+++ b/data/maps/IslandCave/scripts.inc
@@ -10,7 +10,7 @@ IslandCave_MapScript1_238E3A: @ 8238E3A
IslandCave_EventScript_238E44:: @ 8238E44
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject VAR_LAST_TALKED
return
@@ -101,11 +101,11 @@ IslandCave_EventScript_238F58:: @ 8238F58
waitstate
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq IslandCave_EventScript_238F9F
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq IslandCave_EventScript_238FA8
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq IslandCave_EventScript_238FA8
setflag FLAG_DEFEATED_REGICE
release
diff --git a/data/maps/LavaridgeTown/scripts.inc b/data/maps/LavaridgeTown/scripts.inc
index eb9bf1018..ee689ed29 100644
--- a/data/maps/LavaridgeTown/scripts.inc
+++ b/data/maps/LavaridgeTown/scripts.inc
@@ -110,7 +110,7 @@ LavaridgeTown_EventScript_1EA635:: @ 81EA635
return
LavaridgeTown_EventScript_1EA63A:: @ 81EA63A
- applymovement 8, Common_Movement_WalkInPlaceUp
+ applymovement 8, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
playse SE_PIN
applymovement 8, Common_Movement_ExclamationMark
@@ -127,14 +127,14 @@ LavaridgeTown_EventScript_1EA65C:: @ 81EA65C
waitmovement 0
closedoor 12, 15
waitdooranim
- applymovement 8, Common_Movement_WalkInPlaceLeft
+ applymovement 8, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
playse SE_PIN
applymovement 8, Common_Movement_ExclamationMark
waitmovement 0
applymovement 8, Common_Movement_Delay48
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
diff --git a/data/maps/LavaridgeTown_Gym_1F/map.json b/data/maps/LavaridgeTown_Gym_1F/map.json
index aae6afc03..51665cdeb 100644
--- a/data/maps/LavaridgeTown_Gym_1F/map.json
+++ b/data/maps/LavaridgeTown_Gym_1F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "LavaridgeTown_Gym_1F_EventScript_1FE78C",
+ "script": "LavaridgeTown_Gym_1F_EventScript_Flannery",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 0,
"trainer_type": "3",
"trainer_sight_or_berry_tree_id": "1",
- "script": "LavaridgeTown_Gym_1F_EventScript_1FE87F",
+ "script": "LavaridgeTown_Gym_1F_EventScript_Cole",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 0,
"trainer_type": "3",
"trainer_sight_or_berry_tree_id": "1",
- "script": "LavaridgeTown_Gym_1F_EventScript_1FE900",
+ "script": "LavaridgeTown_Gym_1F_EventScript_Gerald",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 0,
"trainer_type": "3",
"trainer_sight_or_berry_tree_id": "1",
- "script": "LavaridgeTown_Gym_1F_EventScript_1FE8AF",
+ "script": "LavaridgeTown_Gym_1F_EventScript_Axle",
"flag": "0"
},
{
@@ -76,7 +76,7 @@
"movement_range_y": 0,
"trainer_type": "3",
"trainer_sight_or_berry_tree_id": "1",
- "script": "LavaridgeTown_Gym_1F_EventScript_1FE8E5",
+ "script": "LavaridgeTown_Gym_1F_EventScript_Danielle",
"flag": "0"
},
{
@@ -89,7 +89,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "LavaridgeTown_Gym_1F_EventScript_1FE96C",
+ "script": "LavaridgeTown_Gym_1F_EventScript_GymGuide",
"flag": "0"
}
],
@@ -285,7 +285,7 @@
"y": 15,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
- "script": "LavaridgeTown_Gym_1F_EventScript_1FE98B"
+ "script": "LavaridgeTown_Gym_1F_EventScript_LeftGymStatue"
},
{
"type": "sign",
@@ -293,7 +293,7 @@
"y": 15,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
- "script": "LavaridgeTown_Gym_1F_EventScript_1FE99B"
+ "script": "LavaridgeTown_Gym_1F_EventScript_RightGymStatue"
}
]
} \ No newline at end of file
diff --git a/data/maps/LavaridgeTown_Gym_1F/scripts.inc b/data/maps/LavaridgeTown_Gym_1F/scripts.inc
index 2399c4d3f..a5dcabf30 100644
--- a/data/maps/LavaridgeTown_Gym_1F/scripts.inc
+++ b/data/maps/LavaridgeTown_Gym_1F/scripts.inc
@@ -3,91 +3,84 @@ LavaridgeTown_Gym_1F_MapScripts:: @ 81FE6F4
.byte 0
LavaridgeTown_Gym_1F_OnTransition: @ 81FE6FA
- call LavaridgeTown_Gym_1F_EventScript_1FE705
- call LavaridgeTown_Gym_1F_EventScript_1FE757
+ call LavaridgeTown_Gym_1F_EventScript_SetTrainerTempVars
+ call LavaridgeTown_Gym_1F_EventScript_CheckHideTrainers
end
-LavaridgeTown_Gym_1F_EventScript_1FE705:: @ 81FE705
+@ Unclear where/if these temp vars are getting checked
+LavaridgeTown_Gym_1F_EventScript_SetTrainerTempVars:: @ 81FE705
setvar VAR_TEMP_B, 0
setvar VAR_TEMP_C, 0
setvar VAR_TEMP_D, 0
setvar VAR_TEMP_E, 0
setvar VAR_TEMP_F, 0
checktrainerflag TRAINER_COLE
- goto_if_eq LavaridgeTown_Gym_1F_EventScript_1FE72C
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_SetGeraldTempVar
setvar VAR_TEMP_B, 1
-
-LavaridgeTown_Gym_1F_EventScript_1FE72C:: @ 81FE72C
+LavaridgeTown_Gym_1F_EventScript_SetGeraldTempVar:: @ 81FE72C
checktrainerflag TRAINER_GERALD
- goto_if_eq LavaridgeTown_Gym_1F_EventScript_1FE73A
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_SetAxleTempVar
setvar VAR_TEMP_C, 1
-
-LavaridgeTown_Gym_1F_EventScript_1FE73A:: @ 81FE73A
+LavaridgeTown_Gym_1F_EventScript_SetAxleTempVar:: @ 81FE73A
checktrainerflag TRAINER_AXLE
- goto_if_eq LavaridgeTown_Gym_1F_EventScript_1FE748
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_SetDanielleTempVar
setvar VAR_TEMP_D, 1
-
-LavaridgeTown_Gym_1F_EventScript_1FE748:: @ 81FE748
+LavaridgeTown_Gym_1F_EventScript_SetDanielleTempVar:: @ 81FE748
checktrainerflag TRAINER_DANIELLE
- goto_if_eq LavaridgeTown_Gym_1F_EventScript_1FE756
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_EndSetTrainerTempVars
setvar VAR_TEMP_E, 1
-
-LavaridgeTown_Gym_1F_EventScript_1FE756:: @ 81FE756
+LavaridgeTown_Gym_1F_EventScript_EndSetTrainerTempVars:: @ 81FE756
return
-LavaridgeTown_Gym_1F_EventScript_1FE757:: @ 81FE757
+LavaridgeTown_Gym_1F_EventScript_CheckHideTrainers:: @ 81FE757
checktrainerflag TRAINER_COLE
- goto_if_eq LavaridgeTown_Gym_1F_EventScript_1FE764
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_CheckHideGerald
setobjectmovementtype 2, MOVEMENT_TYPE_HIDDEN
-
-LavaridgeTown_Gym_1F_EventScript_1FE764:: @ 81FE764
+LavaridgeTown_Gym_1F_EventScript_CheckHideGerald:: @ 81FE764
checktrainerflag TRAINER_GERALD
- goto_if_eq LavaridgeTown_Gym_1F_EventScript_1FE771
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_CheckHideAxle
setobjectmovementtype 3, MOVEMENT_TYPE_HIDDEN
-
-LavaridgeTown_Gym_1F_EventScript_1FE771:: @ 81FE771
+LavaridgeTown_Gym_1F_EventScript_CheckHideAxle:: @ 81FE771
checktrainerflag TRAINER_AXLE
- goto_if_eq LavaridgeTown_Gym_1F_EventScript_1FE77E
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_CheckHideDanielle
setobjectmovementtype 4, MOVEMENT_TYPE_HIDDEN
-
-LavaridgeTown_Gym_1F_EventScript_1FE77E:: @ 81FE77E
+LavaridgeTown_Gym_1F_EventScript_CheckHideDanielle:: @ 81FE77E
checktrainerflag TRAINER_DANIELLE
- goto_if_eq LavaridgeTown_Gym_1F_EventScript_1FE78B
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_EndCheckHideTrainers
setobjectmovementtype 5, MOVEMENT_TYPE_HIDDEN
-
-LavaridgeTown_Gym_1F_EventScript_1FE78B:: @ 81FE78B
+LavaridgeTown_Gym_1F_EventScript_EndCheckHideTrainers:: @ 81FE78B
return
-LavaridgeTown_Gym_1F_EventScript_1FE78C:: @ 81FE78C
- trainerbattle_single TRAINER_FLANNERY_1, LavaridgeTown_Gym_1F_Text_1FF0DC, LavaridgeTown_Gym_1F_Text_1FF233, LavaridgeTown_Gym_1F_EventScript_1FE7C1, NO_MUSIC
+LavaridgeTown_Gym_1F_EventScript_Flannery:: @ 81FE78C
+ trainerbattle_single TRAINER_FLANNERY_1, LavaridgeTown_Gym_1F_Text_FlanneryPreBattle, LavaridgeTown_Gym_1F_Text_FlanneryDefeat, LavaridgeTown_Gym_1F_EventScript_FlanneryDefeated, NO_MUSIC
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
- goto_if_eq LavaridgeTown_Gym_1F_EventScript_1FE864
- goto_if_unset FLAG_RECEIVED_TM50, LavaridgeTown_Gym_1F_EventScript_1FE81D
- msgbox LavaridgeTown_Gym_1F_Text_1FF546, MSGBOX_DEFAULT
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_FlanneryRematch
+ goto_if_unset FLAG_RECEIVED_TM50, LavaridgeTown_Gym_1F_EventScript_GiveOverheat2
+ msgbox LavaridgeTown_Gym_1F_Text_FlanneryPostBattle, MSGBOX_DEFAULT
release
end
-LavaridgeTown_Gym_1F_EventScript_1FE7C1:: @ 81FE7C1
- message LavaridgeTown_Gym_1F_Text_1FF32F
+LavaridgeTown_Gym_1F_EventScript_FlanneryDefeated:: @ 81FE7C1
+ message LavaridgeTown_Gym_1F_Text_ReceivedHeatBadge
waitmessage
call Common_EventScript_PlayGymBadgeFanfare
- msgbox LavaridgeTown_Gym_1F_Text_1FF359, MSGBOX_DEFAULT
+ msgbox LavaridgeTown_Gym_1F_Text_ExplainHeatBadgeTakeThis, MSGBOX_DEFAULT
setflag FLAG_FLANNERY_GIVES_BADGE_INFO
setflag FLAG_DEFEATED_LAVARIDGE_GYM
setflag FLAG_BADGE04_GET
addvar VAR_PETALBURG_GYM_STATE, 1
compare VAR_PETALBURG_GYM_STATE, 6
- call_if_eq LavaridgeTown_Gym_1F_EventScript_271E84
+ call_if_eq Common_EventScript_ReadyPetalburgGymForBattle
setvar VAR_0x8008, 4
call Common_EventScript_SetGymTrainers
setflag FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WALLY
setvar VAR_LAVARIDGE_TOWN_STATE, 1
- call LavaridgeTown_Gym_1F_EventScript_1FE841
+ call LavaridgeTown_Gym_1F_EventScript_GiveOverheat
closemessage
delay 30
playfanfare MUS_ME_TORE_EYE
- msgbox LavaridgeTown_Gym_1F_Text_1FF517, MSGBOX_DEFAULT
+ msgbox LavaridgeTown_Gym_1F_Text_RegisteredFlannery, MSGBOX_DEFAULT
waitfanfare
closemessage
delay 30
@@ -95,113 +88,112 @@ LavaridgeTown_Gym_1F_EventScript_1FE7C1:: @ 81FE7C1
release
end
-LavaridgeTown_Gym_1F_EventScript_1FE81D:: @ 81FE81D
+LavaridgeTown_Gym_1F_EventScript_GiveOverheat2:: @ 81FE81D
giveitem_std ITEM_TM50
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_ShowBagIsFull
- msgbox LavaridgeTown_Gym_1F_Text_1FF45C, MSGBOX_DEFAULT
+ msgbox LavaridgeTown_Gym_1F_Text_ExplainOverheat, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM50
release
end
-LavaridgeTown_Gym_1F_EventScript_1FE841:: @ 81FE841
+LavaridgeTown_Gym_1F_EventScript_GiveOverheat:: @ 81FE841
giveitem_std ITEM_TM50
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_BagIsFull
- msgbox LavaridgeTown_Gym_1F_Text_1FF45C, MSGBOX_DEFAULT
+ msgbox LavaridgeTown_Gym_1F_Text_ExplainOverheat, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM50
return
-LavaridgeTown_Gym_1F_EventScript_1FE864:: @ 81FE864
- trainerbattle_rematch_double TRAINER_FLANNERY_1, LavaridgeTown_Gym_1F_Text_1FF601, LavaridgeTown_Gym_1F_Text_1FF69F, LavaridgeTown_Gym_1F_Text_1FF75E
- msgbox LavaridgeTown_Gym_1F_Text_1FF6BF, MSGBOX_AUTOCLOSE
+LavaridgeTown_Gym_1F_EventScript_FlanneryRematch:: @ 81FE864
+ trainerbattle_rematch_double TRAINER_FLANNERY_1, LavaridgeTown_Gym_1F_Text_FlanneryPreRematch, LavaridgeTown_Gym_1F_Text_FlanneryRematchDefeat, LavaridgeTown_Gym_1F_Text_FlanneryRematchNeedTwoMons
+ msgbox LavaridgeTown_Gym_1F_Text_FlanneryPostRematch, MSGBOX_AUTOCLOSE
end
-LavaridgeTown_Gym_1F_EventScript_1FE87F:: @ 81FE87F
- trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_COLE, 2, LavaridgeTown_Gym_1F_Text_1FEADE, LavaridgeTown_Gym_1F_Text_1FEAFB, LavaridgeTown_Gym_1F_EventScript_1FE89A
- msgbox LavaridgeTown_Gym_1F_Text_1FEB1C, MSGBOX_AUTOCLOSE
+LavaridgeTown_Gym_1F_EventScript_Cole:: @ 81FE87F
+ trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_COLE, 2, LavaridgeTown_Gym_1F_Text_ColePreBattle, LavaridgeTown_Gym_1F_Text_ColeDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
+ msgbox LavaridgeTown_Gym_1F_Text_ColePostBattle MSGBOX_AUTOCLOSE
end
-LavaridgeTown_Gym_1F_EventScript_1FE89A:: @ 81FE89A
-LavaridgeTown_Gym_B1F_EventScript_1FE89A:: @ 81FE89A
- call LavaridgeTown_Gym_1F_EventScript_1FE705
+LavaridgeTown_Gym_EventScript_CheckTrainerScript:: @ 81FE89A
+ call LavaridgeTown_Gym_1F_EventScript_SetTrainerTempVars
release
special ShouldTryGetTrainerScript
compare VAR_RESULT, 1
goto_if_eq EventScript_GotoTrainerScript
end
-LavaridgeTown_Gym_1F_EventScript_1FE8AF:: @ 81FE8AF
- trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_AXLE, 4, LavaridgeTown_Gym_1F_Text_1FEB7B, LavaridgeTown_Gym_1F_Text_1FEBC0, LavaridgeTown_Gym_1F_EventScript_1FE89A
- msgbox LavaridgeTown_Gym_1F_Text_1FEBE1, MSGBOX_AUTOCLOSE
+LavaridgeTown_Gym_1F_EventScript_Axle:: @ 81FE8AF
+ trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_AXLE, 4, LavaridgeTown_Gym_1F_Text_AxlePreBattle, LavaridgeTown_Gym_1F_Text_AxleDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
+ msgbox LavaridgeTown_Gym_1F_Text_AxlePostBattle, MSGBOX_AUTOCLOSE
end
-LavaridgeTown_Gym_B1F_EventScript_1FE8CA:: @ 81FE8CA
- trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_KEEGAN, 2, LavaridgeTown_Gym_B1F_Text_1FEC31, LavaridgeTown_Gym_B1F_Text_1FECE3, LavaridgeTown_Gym_B1F_EventScript_1FE89A
- msgbox LavaridgeTown_Gym_B1F_Text_1FED02, MSGBOX_AUTOCLOSE
+LavaridgeTown_Gym_B1F_EventScript_Keegan:: @ 81FE8CA
+ trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_KEEGAN, 2, LavaridgeTown_Gym_B1F_Text_KeeganPreBattle, LavaridgeTown_Gym_B1F_Text_KeeganDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
+ msgbox LavaridgeTown_Gym_B1F_Text_KeeganPostBattle, MSGBOX_AUTOCLOSE
end
-LavaridgeTown_Gym_1F_EventScript_1FE8E5:: @ 81FE8E5
- trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_DANIELLE, 5, LavaridgeTown_Gym_1F_Text_1FEE22, LavaridgeTown_Gym_1F_Text_1FEE42, LavaridgeTown_Gym_1F_EventScript_1FE89A
- msgbox LavaridgeTown_Gym_1F_Text_1FEE5D, MSGBOX_AUTOCLOSE
+LavaridgeTown_Gym_1F_EventScript_Danielle:: @ 81FE8E5
+ trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_DANIELLE, 5, LavaridgeTown_Gym_1F_Text_DaniellePreBattle, LavaridgeTown_Gym_1F_Text_DanielleDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
+ msgbox LavaridgeTown_Gym_1F_Text_DaniellePostBattle, MSGBOX_AUTOCLOSE
end
-LavaridgeTown_Gym_1F_EventScript_1FE900:: @ 81FE900
- trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_GERALD, 3, LavaridgeTown_Gym_1F_Text_1FED72, LavaridgeTown_Gym_1F_Text_1FED9E, LavaridgeTown_Gym_1F_EventScript_1FE89A
- msgbox LavaridgeTown_Gym_1F_Text_1FEDBB, MSGBOX_AUTOCLOSE
+LavaridgeTown_Gym_1F_EventScript_Gerald:: @ 81FE900
+ trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_GERALD, 3, LavaridgeTown_Gym_1F_Text_GeraldPreBattle, LavaridgeTown_Gym_1F_Text_GeraldDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
+ msgbox LavaridgeTown_Gym_1F_Text_GeraldPostBattle, MSGBOX_AUTOCLOSE
end
-LavaridgeTown_Gym_B1F_EventScript_1FE91B:: @ 81FE91B
- trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_JACE, 1, LavaridgeTown_Gym_B1F_Text_1FEE9D, LavaridgeTown_Gym_B1F_Text_1FEED5, LavaridgeTown_Gym_B1F_EventScript_1FE89A
- msgbox LavaridgeTown_Gym_B1F_Text_1FEF07, MSGBOX_AUTOCLOSE
+LavaridgeTown_Gym_B1F_EventScript_Jace:: @ 81FE91B
+ trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_JACE, 1, LavaridgeTown_Gym_B1F_Text_JacePreBattle, LavaridgeTown_Gym_B1F_Text_JaceDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
+ msgbox LavaridgeTown_Gym_B1F_Text_JacePostBattle, MSGBOX_AUTOCLOSE
end
-LavaridgeTown_Gym_B1F_EventScript_1FE936:: @ 81FE936
- trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_JEFF, 3, LavaridgeTown_Gym_B1F_Text_1FEF60, LavaridgeTown_Gym_B1F_Text_1FEFA7, LavaridgeTown_Gym_B1F_EventScript_1FE89A
- msgbox LavaridgeTown_Gym_B1F_Text_1FEFC2, MSGBOX_AUTOCLOSE
+LavaridgeTown_Gym_B1F_EventScript_Jeff:: @ 81FE936
+ trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_JEFF, 3, LavaridgeTown_Gym_B1F_Text_JeffPreBattle, LavaridgeTown_Gym_B1F_Text_JeffDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
+ msgbox LavaridgeTown_Gym_B1F_Text_JeffPostBattle, MSGBOX_AUTOCLOSE
end
-LavaridgeTown_Gym_B1F_EventScript_1FE951:: @ 81FE951
- trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_ELI, 4, LavaridgeTown_Gym_B1F_Text_1FF025, LavaridgeTown_Gym_B1F_Text_1FF05F, LavaridgeTown_Gym_B1F_EventScript_1FE89A
- msgbox LavaridgeTown_Gym_B1F_Text_1FF09A, MSGBOX_AUTOCLOSE
+LavaridgeTown_Gym_B1F_EventScript_Eli:: @ 81FE951
+ trainerbattle TRAINER_BATTLE_CONTINUE_SCRIPT, TRAINER_ELI, 4, LavaridgeTown_Gym_B1F_Text_EliPreBattle, LavaridgeTown_Gym_B1F_Text_EliDefeat, LavaridgeTown_Gym_EventScript_CheckTrainerScript
+ msgbox LavaridgeTown_Gym_B1F_Text_EliPostBattle, MSGBOX_AUTOCLOSE
end
-LavaridgeTown_Gym_1F_EventScript_1FE96C:: @ 81FE96C
+LavaridgeTown_Gym_1F_EventScript_GymGuide:: @ 81FE96C
lock
faceplayer
- goto_if_set FLAG_DEFEATED_LAVARIDGE_GYM, LavaridgeTown_Gym_1F_EventScript_1FE981
- msgbox LavaridgeTown_Gym_1F_Text_1FE9BF, MSGBOX_DEFAULT
+ goto_if_set FLAG_DEFEATED_LAVARIDGE_GYM, LavaridgeTown_Gym_1F_EventScript_GymGuidePostVictory
+ msgbox LavaridgeTown_Gym_1F_Text_GymGuideAdvice, MSGBOX_DEFAULT
release
end
-LavaridgeTown_Gym_1F_EventScript_1FE981:: @ 81FE981
- msgbox LavaridgeTown_Gym_1F_Text_1FEAB8, MSGBOX_DEFAULT
+LavaridgeTown_Gym_1F_EventScript_GymGuidePostVictory:: @ 81FE981
+ msgbox LavaridgeTown_Gym_1F_Text_GymGuidePostVictory, MSGBOX_DEFAULT
release
end
-LavaridgeTown_Gym_1F_EventScript_1FE98B:: @ 81FE98B
+LavaridgeTown_Gym_1F_EventScript_LeftGymStatue:: @ 81FE98B
lockall
- goto_if_set FLAG_BADGE04_GET, LavaridgeTown_Gym_1F_EventScript_1FE9AB
- goto LavaridgeTown_Gym_1F_EventScript_1FE9B5
+ goto_if_set FLAG_BADGE04_GET, LavaridgeTown_Gym_1F_EventScript_GymStatueCertified
+ goto LavaridgeTown_Gym_1F_EventScript_GymStatue
end
-LavaridgeTown_Gym_1F_EventScript_1FE99B:: @ 81FE99B
+LavaridgeTown_Gym_1F_EventScript_RightGymStatue:: @ 81FE99B
lockall
- goto_if_set FLAG_BADGE04_GET, LavaridgeTown_Gym_1F_EventScript_1FE9AB
- goto LavaridgeTown_Gym_1F_EventScript_1FE9B5
+ goto_if_set FLAG_BADGE04_GET, LavaridgeTown_Gym_1F_EventScript_GymStatueCertified
+ goto LavaridgeTown_Gym_1F_EventScript_GymStatue
end
-LavaridgeTown_Gym_1F_EventScript_1FE9AB:: @ 81FE9AB
- msgbox LavaridgeTown_Gym_1F_Text_1FF5C4, MSGBOX_DEFAULT
+LavaridgeTown_Gym_1F_EventScript_GymStatueCertified:: @ 81FE9AB
+ msgbox LavaridgeTown_Gym_1F_Text_GymStatueCertified, MSGBOX_DEFAULT
releaseall
end
-LavaridgeTown_Gym_1F_EventScript_1FE9B5:: @ 81FE9B5
- msgbox LavaridgeTown_Gym_1F_Text_1FF5A9, MSGBOX_DEFAULT
+LavaridgeTown_Gym_1F_EventScript_GymStatue:: @ 81FE9B5
+ msgbox LavaridgeTown_Gym_1F_Text_GymStatue, MSGBOX_DEFAULT
releaseall
end
-LavaridgeTown_Gym_1F_Text_1FE9BF: @ 81FE9BF
+LavaridgeTown_Gym_1F_Text_GymGuideAdvice: @ 81FE9BF
.string "Hey, how's it going, CHAMPION-\n"
.string "bound {PLAYER}?\p"
.string "LAVARIDGE's GYM LEADER FLANNERY\n"
@@ -212,35 +204,35 @@ LavaridgeTown_Gym_1F_Text_1FE9BF: @ 81FE9BF
.string "Hose her down with water and then\l"
.string "go for it!$"
-LavaridgeTown_Gym_1F_Text_1FEAB8: @ 81FEAB8
+LavaridgeTown_Gym_1F_Text_GymGuidePostVictory: @ 81FEAB8
.string "Yow! That was a scorching-hot battle!$"
-LavaridgeTown_Gym_1F_Text_1FEADE: @ 81FEADE
+LavaridgeTown_Gym_1F_Text_ColePreBattle: @ 81FEADE
.string "Owowowowow!\n"
.string "Yikes, it's hot!$"
-LavaridgeTown_Gym_1F_Text_1FEAFB: @ 81FEAFB
+LavaridgeTown_Gym_1F_Text_ColeDefeat: @ 81FEAFB
.string "I'm blinded by sweat in my eyes…$"
-LavaridgeTown_Gym_1F_Text_1FEB1C: @ 81FEB1C
+LavaridgeTown_Gym_1F_Text_ColePostBattle: @ 81FEB1C
.string "Being buried in hot sand promotes\n"
.string "circulation.\p"
.string "It's effective for healing pain in\n"
.string "your joints.$"
-LavaridgeTown_Gym_1F_Text_1FEB7B: @ 81FEB7B
+LavaridgeTown_Gym_1F_Text_AxlePreBattle: @ 81FEB7B
.string "I'm trying to relieve my stress.\n"
.string "Don't come along and stress me out!$"
-LavaridgeTown_Gym_1F_Text_1FEBC0: @ 81FEBC0
+LavaridgeTown_Gym_1F_Text_AxleDefeat: @ 81FEBC0
.string "I hope FLANNERY flames you good!$"
-LavaridgeTown_Gym_1F_Text_1FEBE1: @ 81FEBE1
+LavaridgeTown_Gym_1F_Text_AxlePostBattle: @ 81FEBE1
.string "Haaah… Whew…\p"
.string "If you spend too much time buried in\n"
.string "hot sand, it tuckers you out…$"
-LavaridgeTown_Gym_B1F_Text_1FEC31: @ 81FEC31
+LavaridgeTown_Gym_B1F_Text_KeeganPreBattle: @ 81FEC31
.string "You must be getting tired by now.\n"
.string "You'd like to rest in the hot sand,\l"
.string "wouldn't you?\p"
@@ -248,78 +240,78 @@ LavaridgeTown_Gym_B1F_Text_1FEC31: @ 81FEC31
.string "your willpower is an important ability\l"
.string "for all TRAINERS.$"
-LavaridgeTown_Gym_B1F_Text_1FECE3: @ 81FECE3
+LavaridgeTown_Gym_B1F_Text_KeeganDefeat: @ 81FECE3
.string "Play with fire, and be burned…$"
-LavaridgeTown_Gym_B1F_Text_1FED02: @ 81FED02
+LavaridgeTown_Gym_B1F_Text_KeeganPostBattle: @ 81FED02
.string "Your skill is real…\n"
.string "But our LEADER FLANNERY is strong.\p"
.string "If you don't watch yourself, you'll be\n"
.string "burned seriously.$"
-LavaridgeTown_Gym_1F_Text_1FED72: @ 81FED72
+LavaridgeTown_Gym_1F_Text_GeraldPreBattle: @ 81FED72
.string "Can your POKéMON withstand\n"
.string "392-degree heat?$"
-LavaridgeTown_Gym_1F_Text_1FED9E: @ 81FED9E
+LavaridgeTown_Gym_1F_Text_GeraldDefeat: @ 81FED9E
.string "It didn't burn hotly enough…$"
-LavaridgeTown_Gym_1F_Text_1FEDBB: @ 81FEDBB
+LavaridgeTown_Gym_1F_Text_GeraldPostBattle: @ 81FEDBB
.string "The temperature of magma is\n"
.string "392 degrees.\p"
.string "Your POKéMON beat me, so they should\n"
.string "easily survive in magma.$"
-LavaridgeTown_Gym_1F_Text_1FEE22: @ 81FEE22
+LavaridgeTown_Gym_1F_Text_DaniellePreBattle: @ 81FEE22
.string "Um…\n"
.string "Okay, I'll battle with you.$"
-LavaridgeTown_Gym_1F_Text_1FEE42: @ 81FEE42
+LavaridgeTown_Gym_1F_Text_DanielleDefeat: @ 81FEE42
.string "Oh, but you're too strong.$"
-LavaridgeTown_Gym_1F_Text_1FEE5D: @ 81FEE5D
+LavaridgeTown_Gym_1F_Text_DaniellePostBattle: @ 81FEE5D
.string "I'm going to be a pretty and strong\n"
.string "TRAINER just like FLANNERY.$"
-LavaridgeTown_Gym_B1F_Text_1FEE9D: @ 81FEE9D
+LavaridgeTown_Gym_B1F_Text_JacePreBattle: @ 81FEE9D
.string "Come on, get with it!\n"
.string "Let's go before my feelings cool!$"
-LavaridgeTown_Gym_B1F_Text_1FEED5: @ 81FEED5
+LavaridgeTown_Gym_B1F_Text_JaceDefeat: @ 81FEED5
.string "It's so hot, and yet my heart is\n"
.string "clutched by ice…$"
-LavaridgeTown_Gym_B1F_Text_1FEF07: @ 81FEF07
+LavaridgeTown_Gym_B1F_Text_JacePostBattle: @ 81FEF07
.string "The way the battling spirit burns\n"
.string "within you, you may stand a chance\l"
.string "against our LEADER.$"
-LavaridgeTown_Gym_B1F_Text_1FEF60: @ 81FEF60
+LavaridgeTown_Gym_B1F_Text_JeffPreBattle: @ 81FEF60
.string "See how the flames blaze wildly?\n"
.string "They flare in anticipation of my win!$"
-LavaridgeTown_Gym_B1F_Text_1FEFA7: @ 81FEFA7
+LavaridgeTown_Gym_B1F_Text_JeffDefeat: @ 81FEFA7
.string "Something didn't go right.$"
-LavaridgeTown_Gym_B1F_Text_1FEFC2: @ 81FEFC2
+LavaridgeTown_Gym_B1F_Text_JeffPostBattle: @ 81FEFC2
.string "Well, so what? I say so what?\n"
.string "I can walk on hot coals barefoot!\p"
.string "…Don't even think about trying it!$"
-LavaridgeTown_Gym_B1F_Text_1FF025: @ 81FF025
+LavaridgeTown_Gym_B1F_Text_EliPreBattle: @ 81FF025
.string "As much as I love mountains,\n"
.string "I especially love volcanoes.$"
-LavaridgeTown_Gym_B1F_Text_1FF05F: @ 81FF05F
+LavaridgeTown_Gym_B1F_Text_EliDefeat: @ 81FF05F
.string "Well, it seems to me I lost without\n"
.string "ever being in control.$"
-LavaridgeTown_Gym_B1F_Text_1FF09A: @ 81FF09A
+LavaridgeTown_Gym_B1F_Text_EliPostBattle: @ 81FF09A
.string "I stay here because I became a fan\n"
.string "of FLANNERY's power.\p"
.string "Hehehehe.$"
-LavaridgeTown_Gym_1F_Text_1FF0DC: @ 81FF0DC
+LavaridgeTown_Gym_1F_Text_FlanneryPreBattle: @ 81FF0DC
.string "Welcome… No, wait.\p"
.string "Puny TRAINER, how good to see you've\n"
.string "made it here!\p"
@@ -334,7 +326,7 @@ LavaridgeTown_Gym_1F_Text_1FF0DC: @ 81FF0DC
.string "father, I shall, uh…demonstrate the\l"
.string "hot moves we have honed on this land!$"
-LavaridgeTown_Gym_1F_Text_1FF233: @ 81FF233
+LavaridgeTown_Gym_1F_Text_FlanneryDefeat: @ 81FF233
.string "Oh…\n"
.string "I guess I was trying too hard…\p"
.string "I… I've only recently become\n"
@@ -346,11 +338,11 @@ LavaridgeTown_Gym_1F_Text_1FF233: @ 81FF233
.string "Thanks for teaching me that.\n"
.string "For that, you deserve this.$"
-LavaridgeTown_Gym_1F_Text_1FF32F: @ 81FF32F
+LavaridgeTown_Gym_1F_Text_ReceivedHeatBadge: @ 81FF32F
.string "{PLAYER} received the HEAT BADGE\n"
.string "from FLANNERY.$"
-LavaridgeTown_Gym_1F_Text_1FF359: @ 81FF359
+LavaridgeTown_Gym_1F_Text_ExplainHeatBadgeTakeThis: @ 81FF359
.string "If you have a HEAT BADGE, all POKéMON\n"
.string "up to Level 50, even those you get in\l"
.string "trades from other people, will obey\l"
@@ -360,7 +352,7 @@ LavaridgeTown_Gym_1F_Text_1FF359: @ 81FF359
.string "This is a token of my appreciation.\n"
.string "Don't be shy about taking it!$"
-LavaridgeTown_Gym_1F_Text_1FF45C: @ 81FF45C
+LavaridgeTown_Gym_1F_Text_ExplainOverheat: @ 81FF45C
.string "That TM50 contains OVERHEAT.\p"
.string "That move inflicts serious damage on\n"
.string "the opponent.\p"
@@ -368,24 +360,24 @@ LavaridgeTown_Gym_1F_Text_1FF45C: @ 81FF45C
.string "of the POKéMON using it. It might not\l"
.string "be suitable for longer battles.$"
-LavaridgeTown_Gym_1F_Text_1FF517: @ 81FF517
+LavaridgeTown_Gym_1F_Text_RegisteredFlannery: @ 81FF517
.string "Registered GYM LEADER FLANNERY\n"
.string "in the POKéNAV.$"
-LavaridgeTown_Gym_1F_Text_1FF546: @ 81FF546
+LavaridgeTown_Gym_1F_Text_FlanneryPostBattle: @ 81FF546
.string "Your power reminds me of someone…\p"
.string "Oh! I know! You battle like NORMAN,\n"
.string "the GYM LEADER of PETALBURG.$"
-LavaridgeTown_Gym_1F_Text_1FF5A9: @ 81FF5A9
+LavaridgeTown_Gym_1F_Text_GymStatue: @ 81FF5A9
.string "LAVARIDGE TOWN POKéMON GYM$"
-LavaridgeTown_Gym_1F_Text_1FF5C4: @ 81FF5C4
+LavaridgeTown_Gym_1F_Text_GymStatueCertified: @ 81FF5C4
.string "LAVARIDGE TOWN POKéMON GYM\p"
.string "FLANNERY'S CERTIFIED TRAINERS:\n"
.string "{PLAYER}$"
-LavaridgeTown_Gym_1F_Text_1FF601: @ 81FF601
+LavaridgeTown_Gym_1F_Text_FlanneryPreRematch: @ 81FF601
.string "FLANNERY: Losing a battle isn't going\n"
.string "to deflate me.\p"
.string "I love POKéMON.\n"
@@ -394,11 +386,11 @@ LavaridgeTown_Gym_1F_Text_1FF601: @ 81FF601
.string "Let's exchange superhot moves\n"
.string "in another battle!$"
-LavaridgeTown_Gym_1F_Text_1FF69F: @ 81FF69F
+LavaridgeTown_Gym_1F_Text_FlanneryRematchDefeat: @ 81FF69F
.string "Whew!\n"
.string "On the verge of eruption!$"
-LavaridgeTown_Gym_1F_Text_1FF6BF: @ 81FF6BF
+LavaridgeTown_Gym_1F_Text_FlanneryPostRematch: @ 81FF6BF
.string "FLANNERY: I lost the match,\n"
.string "but I'm completely satisfied.\p"
.string "It's not often I get to enjoy a battle\n"
@@ -406,7 +398,7 @@ LavaridgeTown_Gym_1F_Text_1FF6BF: @ 81FF6BF
.string "Let's have another one like this\n"
.string "again sometime!$"
-LavaridgeTown_Gym_1F_Text_1FF75E: @ 81FF75E
+LavaridgeTown_Gym_1F_Text_FlanneryRematchNeedTwoMons: @ 81FF75E
.string "FLANNERY: Losing a battle isn't going\n"
.string "to deflate me.\p"
.string "I love POKéMON.\n"
diff --git a/data/maps/LavaridgeTown_Gym_B1F/map.json b/data/maps/LavaridgeTown_Gym_B1F/map.json
index 9679beb48..7b03d4f53 100644
--- a/data/maps/LavaridgeTown_Gym_B1F/map.json
+++ b/data/maps/LavaridgeTown_Gym_B1F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "3",
"trainer_sight_or_berry_tree_id": "1",
- "script": "LavaridgeTown_Gym_B1F_EventScript_1FE91B",
+ "script": "LavaridgeTown_Gym_B1F_EventScript_Jace",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "3",
"trainer_sight_or_berry_tree_id": "1",
- "script": "LavaridgeTown_Gym_B1F_EventScript_1FE8CA",
+ "script": "LavaridgeTown_Gym_B1F_EventScript_Keegan",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "3",
"trainer_sight_or_berry_tree_id": "1",
- "script": "LavaridgeTown_Gym_B1F_EventScript_1FE936",
+ "script": "LavaridgeTown_Gym_B1F_EventScript_Jeff",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "3",
"trainer_sight_or_berry_tree_id": "1",
- "script": "LavaridgeTown_Gym_B1F_EventScript_1FE951",
+ "script": "LavaridgeTown_Gym_B1F_EventScript_Eli",
"flag": "0"
}
],
diff --git a/data/maps/LavaridgeTown_Gym_B1F/scripts.inc b/data/maps/LavaridgeTown_Gym_B1F/scripts.inc
index 4f3bb062d..9be4e2975 100644
--- a/data/maps/LavaridgeTown_Gym_B1F/scripts.inc
+++ b/data/maps/LavaridgeTown_Gym_B1F/scripts.inc
@@ -3,57 +3,50 @@ LavaridgeTown_Gym_B1F_MapScripts:: @ 81FF87E
.byte 0
LavaridgeTown_Gym_B1F_OnTransition: @ 81FF884
- call LavaridgeTown_Gym_B1F_EventScript_1FF88F
- call LavaridgeTown_Gym_B1F_EventScript_1FF8DC
+ call LavaridgeTown_Gym_B1F_EventScript_SetTrainerTempVars
+ call LavaridgeTown_Gym_B1F_EventScript_CheckHideTrainers
end
-LavaridgeTown_Gym_B1F_EventScript_1FF88F:: @ 81FF88F
+@ Unclear where/if these temp vars are getting checked
+LavaridgeTown_Gym_B1F_EventScript_SetTrainerTempVars:: @ 81FF88F
setvar VAR_TEMP_7, 0
setvar VAR_TEMP_8, 0
setvar VAR_TEMP_9, 0
setvar VAR_TEMP_A, 0
checktrainerflag TRAINER_KEEGAN
- goto_if_eq LavaridgeTown_Gym_B1F_EventScript_1FF8B1
+ goto_if_eq LavaridgeTown_Gym_B1F_EventScript_SetJaceTempVar
setvar VAR_TEMP_7, 1
-
-LavaridgeTown_Gym_B1F_EventScript_1FF8B1:: @ 81FF8B1
+LavaridgeTown_Gym_B1F_EventScript_SetJaceTempVar:: @ 81FF8B1
checktrainerflag TRAINER_JACE
- goto_if_eq LavaridgeTown_Gym_B1F_EventScript_1FF8BF
+ goto_if_eq LavaridgeTown_Gym_B1F_EventScript_SetJeffTempVar
setvar VAR_TEMP_8, 1
-
-LavaridgeTown_Gym_B1F_EventScript_1FF8BF:: @ 81FF8BF
+LavaridgeTown_Gym_B1F_EventScript_SetJeffTempVar:: @ 81FF8BF
checktrainerflag TRAINER_JEFF
- goto_if_eq LavaridgeTown_Gym_B1F_EventScript_1FF8CD
+ goto_if_eq LavaridgeTown_Gym_B1F_EventScript_SetEliTempVar
setvar VAR_TEMP_9, 1
-
-LavaridgeTown_Gym_B1F_EventScript_1FF8CD:: @ 81FF8CD
+LavaridgeTown_Gym_B1F_EventScript_SetEliTempVar:: @ 81FF8CD
checktrainerflag TRAINER_ELI
- goto_if_eq LavaridgeTown_Gym_B1F_EventScript_1FF8DB
+ goto_if_eq LavaridgeTown_Gym_B1F_EventScript_EndSetTrainerTempVars
setvar VAR_TEMP_A, 1
-
-LavaridgeTown_Gym_B1F_EventScript_1FF8DB:: @ 81FF8DB
+LavaridgeTown_Gym_B1F_EventScript_EndSetTrainerTempVars:: @ 81FF8DB
return
-LavaridgeTown_Gym_B1F_EventScript_1FF8DC:: @ 81FF8DC
+LavaridgeTown_Gym_B1F_EventScript_CheckHideTrainers:: @ 81FF8DC
checktrainerflag TRAINER_KEEGAN
- goto_if_eq LavaridgeTown_Gym_B1F_EventScript_1FF8E9
+ goto_if_eq LavaridgeTown_Gym_B1F_EventScript_CheckHideJace
setobjectmovementtype 2, MOVEMENT_TYPE_HIDDEN
-
-LavaridgeTown_Gym_B1F_EventScript_1FF8E9:: @ 81FF8E9
+LavaridgeTown_Gym_B1F_EventScript_CheckHideJace:: @ 81FF8E9
checktrainerflag TRAINER_JACE
- goto_if_eq LavaridgeTown_Gym_B1F_EventScript_1FF8F6
+ goto_if_eq LavaridgeTown_Gym_B1F_EventScript_CheckHideJeff
setobjectmovementtype 1, MOVEMENT_TYPE_HIDDEN
-
-LavaridgeTown_Gym_B1F_EventScript_1FF8F6:: @ 81FF8F6
+LavaridgeTown_Gym_B1F_EventScript_CheckHideJeff:: @ 81FF8F6
checktrainerflag TRAINER_JEFF
- goto_if_eq LavaridgeTown_Gym_B1F_EventScript_1FF903
+ goto_if_eq LavaridgeTown_Gym_B1F_EventScript_CheckHideEli
setobjectmovementtype 3, MOVEMENT_TYPE_HIDDEN
-
-LavaridgeTown_Gym_B1F_EventScript_1FF903:: @ 81FF903
+LavaridgeTown_Gym_B1F_EventScript_CheckHideEli:: @ 81FF903
checktrainerflag TRAINER_ELI
- goto_if_eq LavaridgeTown_Gym_B1F_EventScript_1FF910
+ goto_if_eq LavaridgeTown_Gym_B1F_EventScript_EndCheckHideTrainers
setobjectmovementtype 4, MOVEMENT_TYPE_HIDDEN
-
-LavaridgeTown_Gym_B1F_EventScript_1FF910:: @ 81FF910
+LavaridgeTown_Gym_B1F_EventScript_EndCheckHideTrainers:: @ 81FF910
return
diff --git a/data/maps/LavaridgeTown_House/map.json b/data/maps/LavaridgeTown_House/map.json
index a0cd74f59..83416a7c0 100644
--- a/data/maps/LavaridgeTown_House/map.json
+++ b/data/maps/LavaridgeTown_House/map.json
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "LavaridgeTown_House_EventScript_2C804E",
+ "script": "LavaridgeTown_House_EventScript_MimicTutor",
"flag": "0"
}
],
diff --git a/data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc b/data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc
index 3968430dd..3a27182d5 100644
--- a/data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc
+++ b/data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
LavaridgeTown_PokemonCenter_1F_MapScripts:: @ 81FFAFA
map_script MAP_SCRIPT_ON_TRANSITION, LavaridgeTown_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, LavaridgeTown_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
LavaridgeTown_PokemonCenter_1F_OnTransition: @ 81FFB05
diff --git a/data/maps/LavaridgeTown_PokemonCenter_2F/map.json b/data/maps/LavaridgeTown_PokemonCenter_2F/map.json
index 95d1e194f..2ee196f9b 100644
--- a/data/maps/LavaridgeTown_PokemonCenter_2F/map.json
+++ b/data/maps/LavaridgeTown_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "LavaridgeTown_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "LavaridgeTown_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "LavaridgeTown_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "LavaridgeTown_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/LavaridgeTown_PokemonCenter_2F/scripts.inc b/data/maps/LavaridgeTown_PokemonCenter_2F/scripts.inc
index c8e52468f..633f91e95 100644
--- a/data/maps/LavaridgeTown_PokemonCenter_2F/scripts.inc
+++ b/data/maps/LavaridgeTown_PokemonCenter_2F/scripts.inc
@@ -1,19 +1,20 @@
LavaridgeTown_PokemonCenter_2F_MapScripts:: @ 81FFC97
- map_script MAP_SCRIPT_ON_FRAME_TABLE, LavaridgeTown_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, LavaridgeTown_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, LavaridgeTown_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-LavaridgeTown_PokemonCenter_2F_EventScript_1FFCAC:: @ 81FFCAC
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+LavaridgeTown_PokemonCenter_2F_EventScript_Colosseum:: @ 81FFCAC
+ call CableClub_EventScript_Colosseum
end
-LavaridgeTown_PokemonCenter_2F_EventScript_1FFCB2:: @ 81FFCB2
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+LavaridgeTown_PokemonCenter_2F_EventScript_TradeCenter:: @ 81FFCB2
+ call CableClub_EventScript_TradeCenter
end
-LavaridgeTown_PokemonCenter_2F_EventScript_1FFCB8:: @ 81FFCB8
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+LavaridgeTown_PokemonCenter_2F_EventScript_RecordCorner:: @ 81FFCB8
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/LilycoveCity/scripts.inc b/data/maps/LilycoveCity/scripts.inc
index 8edf1b385..ed0239819 100644
--- a/data/maps/LilycoveCity/scripts.inc
+++ b/data/maps/LilycoveCity/scripts.inc
@@ -387,7 +387,7 @@ LilycoveCity_EventScript_1E2FFD:: @ 81E2FFD
LilycoveCity_EventScript_1E3006:: @ 81E3006
closemessage
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceDown
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 50
setfieldeffectargument 0, 1
diff --git a/data/maps/LilycoveCity_ContestLobby/scripts.inc b/data/maps/LilycoveCity_ContestLobby/scripts.inc
index a5ab9601c..3b470b8a6 100644
--- a/data/maps/LilycoveCity_ContestLobby/scripts.inc
+++ b/data/maps/LilycoveCity_ContestLobby/scripts.inc
@@ -9,7 +9,7 @@ LilycoveCity_ContestLobby_OnTransition: @ 821A21C
end
LilycoveCity_ContestLobby_EventScript_21A227:: @ 821A227
- getpricereduction 4
+ getpricereduction POKENEWS_BLENDMASTER
compare VAR_RESULT, 1
goto_if_eq LilycoveCity_ContestLobby_EventScript_21A23C
clearflag FLAG_HIDE_LILYCOVE_CONTEST_HALL_POKEBLOCK_EXPERT
@@ -810,7 +810,7 @@ LilycoveCity_ContestLobby_EventScript_21AAE1:: @ 821AAE1
LilycoveCity_ContestLobby_EventScript_21AAEF:: @ 821AAEF
special CloseLink
- msgbox LilycoveCity_ContestLobby_Text_27821C, MSGBOX_DEFAULT
+ msgbox Text_LinkErrorPleaseReset, MSGBOX_DEFAULT
release
end
@@ -908,12 +908,12 @@ LilycoveCity_ContestLobby_EventScript_21AC0B:: @ 821AC0B
end
LilycoveCity_ContestLobby_EventScript_21AC33:: @ 821AC33
- special BerryBlenderLinkBecomeLeader
+ special TryBecomeLinkLeader
waitstate
return
LilycoveCity_ContestLobby_EventScript_21AC38:: @ 821AC38
- special BerryBlenderLinkJoinGroup
+ special TryJoinLinkGroup
waitstate
return
diff --git a/data/maps/LilycoveCity_CoveLilyMotel_1F/scripts.inc b/data/maps/LilycoveCity_CoveLilyMotel_1F/scripts.inc
index 87e4c0afd..d4e630e4a 100644
--- a/data/maps/LilycoveCity_CoveLilyMotel_1F/scripts.inc
+++ b/data/maps/LilycoveCity_CoveLilyMotel_1F/scripts.inc
@@ -44,7 +44,7 @@ LilycoveCity_CoveLilyMotel_1F_EventScript_218211:: @ 8218211
waitmovement 0
applymovement 1, Common_Movement_Delay48
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox LilycoveCity_CoveLilyMotel_1F_Text_21839B, MSGBOX_DEFAULT
closemessage
diff --git a/data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc b/data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc
index 83a43a5b6..d7061d7e4 100644
--- a/data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc
+++ b/data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc
@@ -114,7 +114,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_2207E0:: @ 82207E0
LilycoveCity_DepartmentStoreElevator_EventScript_2207E5:: @ 82207E5
special CloseDeptStoreElevatorWindow
closemessage
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceDown
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
waitse
special MoveElevator
diff --git a/data/maps/LilycoveCity_DepartmentStoreRooftop/map.json b/data/maps/LilycoveCity_DepartmentStoreRooftop/map.json
index 7514a548a..06159b81a 100644
--- a/data/maps/LilycoveCity_DepartmentStoreRooftop/map.json
+++ b/data/maps/LilycoveCity_DepartmentStoreRooftop/map.json
@@ -63,7 +63,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "LilycoveCity_DepartmentStoreRooftop_EventScript_2C8186",
+ "script": "LilycoveCity_DepartmentStoreRooftop_EventScript_SubstituteTutor",
"flag": "0"
}
],
diff --git a/data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc b/data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc
index 654395dde..44b9b2d24 100644
--- a/data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc
+++ b/data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc
@@ -3,7 +3,7 @@ LilycoveCity_DepartmentStoreRooftop_MapScripts:: @ 8220207
.byte 0
LilycoveCity_DepartmentStoreRooftop_OnTransition: @ 822020D
- getpricereduction 3
+ getpricereduction POKENEWS_LILYCOVE
compare VAR_RESULT, 1
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220227
compare VAR_RESULT, 0
@@ -51,7 +51,7 @@ LilycoveCity_DepartmentStoreRooftop_PokemartDecor_220248: @ 8220248
LilycoveCity_DepartmentStoreRooftop_EventScript_220268:: @ 8220268
lock
faceplayer
- getpricereduction 3
+ getpricereduction POKENEWS_LILYCOVE
compare VAR_RESULT, 1
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220282
msgbox LilycoveCity_DepartmentStoreRooftop_Text_220463, MSGBOX_DEFAULT
diff --git a/data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc b/data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc
index a99f92862..36057b3bb 100644
--- a/data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc
+++ b/data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc
@@ -22,7 +22,7 @@ LilycoveCity_DepartmentStore_1F_EventScript_21F69C:: @ 821F69C
copyvar VAR_0x8008, VAR_RESULT
special BufferLottoTicketNumber
msgbox LilycoveCity_DepartmentStore_1F_Text_2A650B, MSGBOX_DEFAULT
- applymovement 2, Common_Movement_WalkInPlaceRight
+ applymovement 2, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
playse SE_PC_ON
special DoLotteryCornerComputerEffect
diff --git a/data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc b/data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc
index 3226e6961..79943cec3 100644
--- a/data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc
+++ b/data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc
@@ -141,7 +141,7 @@ LilycoveCity_DepartmentStore_5F_EventScript_22009C:: @ 822009C
LilycoveCity_DepartmentStore_5F_EventScript_2200A7:: @ 82200A7
msgbox LilycoveCity_DepartmentStore_5F_Text_2201C4, MSGBOX_DEFAULT
closemessage
- applymovement 7, Common_Movement_WalkInPlaceUp
+ applymovement 7, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
releaseall
end
diff --git a/data/maps/LilycoveCity_Harbor/scripts.inc b/data/maps/LilycoveCity_Harbor/scripts.inc
index 292180d31..5ef4852d3 100644
--- a/data/maps/LilycoveCity_Harbor/scripts.inc
+++ b/data/maps/LilycoveCity_Harbor/scripts.inc
@@ -247,7 +247,7 @@ LilycoveCity_Harbor_EventScript_OldSeaMapFirstTime:: @ 821E350
call LilycoveCity_Harbor_EventScript_GetEventTicketSailor
msgbox EventTicket_Text_OldSeaMapTooFar, MSGBOX_DEFAULT
closemessage
- applymovement 4, Common_Movement_WalkInPlaceUp
+ applymovement 4, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
playse SE_PIN
applymovement 4, Common_Movement_ExclamationMark
@@ -329,12 +329,12 @@ LilycoveCity_Harbor_EventScript_MultipleEventTicketsFirstTime:: @ 821E44D
LilycoveCity_Harbor_EventScript_ExitFirstTimeTicketSailSelect:: @ 821E4B6
msgbox EventTicket_Text_AsYouLike, MSGBOX_DEFAULT
closemessage
- applymovement 4, Common_Movement_WalkInPlaceUp
+ applymovement 4, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
delay 30
removeobject 4
delay 30
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
showobjectat 1, MAP_LILYCOVE_CITY_HARBOR
delay 30
@@ -343,7 +343,7 @@ LilycoveCity_Harbor_EventScript_ExitFirstTimeTicketSailSelect:: @ 821E4B6
end
LilycoveCity_Harbor_EventScript_GetEventTicketSailor:: @ 821E4EE
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceUp
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
delay 30
hideobjectat VAR_LAST_TALKED, MAP_LILYCOVE_CITY_HARBOR
@@ -355,7 +355,7 @@ LilycoveCity_Harbor_EventScript_GetEventTicketSailor:: @ 821E4EE
return
LilycoveCity_Harbor_EventScript_BoardFerryWithSailor:: @ 821E514
- applymovement 4, Common_Movement_WalkInPlaceUp
+ applymovement 4, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
delay 30
removeobject 4
@@ -419,7 +419,7 @@ LilycoveCity_Harbor_EventScript_FerryDestinationChangeMind:: @ 821E5C0
LilycoveCity_Harbor_EventScript_BoardFerry:: @ 821E5CC
msgbox LilycoveCity_Harbor_Text_PleaseBoard, MSGBOX_DEFAULT
closemessage
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceUp
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
delay 30
hideobjectat VAR_LAST_TALKED, MAP_LILYCOVE_CITY_HARBOR
@@ -499,22 +499,22 @@ LilycoveCity_Harbor_Movement_SailorOutOfWayEast: @ 821E671
step_end
LilycoveCity_Harbor_EventScript_BrineyFaceSailorNorth:: @ 821E675
- applymovement 5, Common_Movement_WalkInPlaceLeft
+ applymovement 5, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
LilycoveCity_Harbor_EventScript_BrineyFaceSailorEast:: @ 821E680
- applymovement 5, Common_Movement_WalkInPlaceDown
+ applymovement 5, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
LilycoveCity_Harbor_EventScript_BrineyFacePlayerNorth:: @ 821E68B
- applymovement 5, Common_Movement_WalkInPlaceDown
+ applymovement 5, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
LilycoveCity_Harbor_EventScript_BrineyFacePlayerEast:: @ 821E696
- applymovement 5, Common_Movement_WalkInPlaceLeft
+ applymovement 5, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
diff --git a/data/maps/LilycoveCity_LilycoveMuseum_1F/scripts.inc b/data/maps/LilycoveCity_LilycoveMuseum_1F/scripts.inc
index 8ac18ba85..51e9129f9 100644
--- a/data/maps/LilycoveCity_LilycoveMuseum_1F/scripts.inc
+++ b/data/maps/LilycoveCity_LilycoveMuseum_1F/scripts.inc
@@ -40,9 +40,9 @@ LilycoveCity_LilycoveMuseum_1F_EventScript_218D1E:: @ 8218D1E
waitmovement 0
removeobject 2
switch VAR_FACING
- case 2, LilycoveCity_LilycoveMuseum_1F_EventScript_218D5A
- case 3, LilycoveCity_LilycoveMuseum_1F_EventScript_218D6F
- case 4, LilycoveCity_LilycoveMuseum_1F_EventScript_218D84
+ case DIR_NORTH, LilycoveCity_LilycoveMuseum_1F_EventScript_218D5A
+ case DIR_WEST, LilycoveCity_LilycoveMuseum_1F_EventScript_218D6F
+ case DIR_EAST, LilycoveCity_LilycoveMuseum_1F_EventScript_218D84
end
LilycoveCity_LilycoveMuseum_1F_EventScript_218D5A:: @ 8218D5A
diff --git a/data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc b/data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc
index 615153530..09b18f4bd 100644
--- a/data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
LilycoveCity_PokemonCenter_1F_MapScripts:: @ 821C5B2
map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, LilycoveCity_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
LilycoveCity_PokemonCenter_1F_OnTransition: @ 821C5BD
diff --git a/data/maps/LilycoveCity_PokemonCenter_2F/map.json b/data/maps/LilycoveCity_PokemonCenter_2F/map.json
index 6bfb1c4cb..cd1324cbe 100644
--- a/data/maps/LilycoveCity_PokemonCenter_2F/map.json
+++ b/data/maps/LilycoveCity_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "LilycoveCity_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "LilycoveCity_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "LilycoveCity_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "LilycoveCity_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/LilycoveCity_PokemonCenter_2F/scripts.inc b/data/maps/LilycoveCity_PokemonCenter_2F/scripts.inc
index 9bbf4f349..965580da5 100644
--- a/data/maps/LilycoveCity_PokemonCenter_2F/scripts.inc
+++ b/data/maps/LilycoveCity_PokemonCenter_2F/scripts.inc
@@ -1,19 +1,20 @@
LilycoveCity_PokemonCenter_2F_MapScripts:: @ 821C75D
- map_script MAP_SCRIPT_ON_FRAME_TABLE, LilycoveCity_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, LilycoveCity_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, LilycoveCity_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-LilycoveCity_PokemonCenter_2F_EventScript_21C772:: @ 821C772
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+LilycoveCity_PokemonCenter_2F_EventScript_Colosseum:: @ 821C772
+ call CableClub_EventScript_Colosseum
end
-LilycoveCity_PokemonCenter_2F_EventScript_21C778:: @ 821C778
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+LilycoveCity_PokemonCenter_2F_EventScript_TradeCenter:: @ 821C778
+ call CableClub_EventScript_TradeCenter
end
-LilycoveCity_PokemonCenter_2F_EventScript_21C77E:: @ 821C77E
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+LilycoveCity_PokemonCenter_2F_EventScript_RecordCorner:: @ 821C77E
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc b/data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc
index d9ba545fb..8b0cf40ac 100644
--- a/data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc
+++ b/data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc
@@ -9,18 +9,18 @@ LilycoveCity_PokemonTrainerFanClub_MapScript2_21C790: @ 821C790
LilycoveCity_PokemonTrainerFanClub_EventScript_21C79A:: @ 821C79A
lockall
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox LilycoveCity_PokemonTrainerFanClub_Text_21CF00, MSGBOX_DEFAULT
applymovement 4, LilycoveCity_PokemonTrainerFanClub_Movement_21C7FD
applymovement 2, LilycoveCity_PokemonTrainerFanClub_Movement_21C7F5
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox LilycoveCity_PokemonTrainerFanClub_Text_21CF12, MSGBOX_DEFAULT
applymovement 4, LilycoveCity_PokemonTrainerFanClub_Movement_21C804
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
applymovement 4, LilycoveCity_PokemonTrainerFanClub_Movement_21C807
waitmovement 0
diff --git a/data/maps/LittlerootTown/scripts.inc b/data/maps/LittlerootTown/scripts.inc
index c55f1db86..8825d1899 100644
--- a/data/maps/LittlerootTown/scripts.inc
+++ b/data/maps/LittlerootTown/scripts.inc
@@ -357,9 +357,9 @@ LittlerootTown_Movement_1E8118: @ 81E8118
LittlerootTown_EventScript_1E811F:: @ 81E811F
lockall
- applymovement 1, Common_Movement_WalkInPlaceRight
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
special GetPlayerBigGuyGirlString
msgbox LittlerootTown_Text_1E8C3A, MSGBOX_DEFAULT
@@ -490,12 +490,12 @@ LittlerootTown_EventScript_1E828C:: @ 81E828C
return
LittlerootTown_EventScript_1E8297:: @ 81E8297
- applymovement 4, Common_Movement_WalkInPlaceRight
+ applymovement 4, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
LittlerootTown_EventScript_1E82A2:: @ 81E82A2
- applymovement 4, Common_Movement_WalkInPlaceLeft
+ applymovement 4, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
@@ -530,70 +530,70 @@ LittlerootTown_EventScript_1E82F0:: @ 81E82F0
return
LittlerootTown_EventScript_1E8333:: @ 81E8333
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
applymovement 4, LittlerootTown_Movement_1E85D1
waitmovement 0
return
LittlerootTown_EventScript_1E8348:: @ 81E8348
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
applymovement 4, LittlerootTown_Movement_1E85D8
waitmovement 0
return
LittlerootTown_EventScript_1E835D:: @ 81E835D
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
applymovement 4, LittlerootTown_Movement_1E85DF
waitmovement 0
return
LittlerootTown_EventScript_1E8372:: @ 81E8372
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
applymovement 4, LittlerootTown_Movement_1E85E4
waitmovement 0
return
LittlerootTown_EventScript_1E8387:: @ 81E8387
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
applymovement 4, LittlerootTown_Movement_1E85EA
waitmovement 0
return
LittlerootTown_EventScript_1E839C:: @ 81E839C
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
applymovement 4, LittlerootTown_Movement_1E85ED
waitmovement 0
return
LittlerootTown_EventScript_1E83B1:: @ 81E83B1
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
applymovement 4, LittlerootTown_Movement_1E85F1
waitmovement 0
return
LittlerootTown_EventScript_1E83C6:: @ 81E83C6
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
applymovement 4, LittlerootTown_Movement_1E85F5
waitmovement 0
return
LittlerootTown_EventScript_1E83DB:: @ 81E83DB
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
applymovement 4, LittlerootTown_Movement_1E85F8
waitmovement 0
return
LittlerootTown_EventScript_1E83F0:: @ 81E83F0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
applymovement 4, LittlerootTown_Movement_1E85FE
waitmovement 0
@@ -894,7 +894,7 @@ LittlerootTown_EventScript_1E863D:: @ 81E863D
compare VAR_RESULT, FEMALE
call_if_eq LittlerootTown_EventScript_1E828C
call LittlerootTown_EventScript_1E8693
- applymovement 4, Common_Movement_WalkInPlaceUp
+ applymovement 4, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
opendoor VAR_0x8009, VAR_0x800A
waitdooranim
diff --git a/data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc b/data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc
index 397bdfb8f..3d6284600 100644
--- a/data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc
+++ b/data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc
@@ -94,7 +94,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_1F785E:: @ 81F785E
waitmovement 0
applymovement 4, Common_Movement_Delay48
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
applymovement 4, LittlerootTown_BrendansHouse_1F_Movement_1F789C
waitmovement 0
special GetRivalSonDaughterString
@@ -117,7 +117,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_1F78A3:: @ 81F78A3
lockall
setvar VAR_0x8004, 1
setvar VAR_0x8005, 0
- applymovement VAR_0x8004, Common_Movement_WalkInPlaceLeft
+ applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
goto LittlerootTown_BrendansHouse_1F_EventScript_292765
end
@@ -181,7 +181,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_1F78E2:: @ 81F78E2
end
LittlerootTown_BrendansHouse_1F_EventScript_1F7981:: @ 81F7981
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
diff --git a/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc b/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc
index aef95daff..130781f23 100644
--- a/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc
+++ b/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc
@@ -73,13 +73,13 @@ LittlerootTown_BrendansHouse_2F_EventScript_1F8497:: @ 81F8497
waitmovement 0
delay 10
playbgm MUS_BOY_SUP, 1
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1F8507
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1F8536
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1F8565
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1F8594
setvar VAR_LITTLEROOT_RIVAL_STATE, 3
setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F_POKE_BALL
@@ -93,7 +93,7 @@ LittlerootTown_BrendansHouse_2F_EventScript_1F8497:: @ 81F8497
LittlerootTown_BrendansHouse_2F_EventScript_1F8507:: @ 81F8507
applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_1F85C0
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox LittlerootTown_BrendansHouse_2F_Text_1F97B4, MSGBOX_DEFAULT
closemessage
@@ -105,7 +105,7 @@ LittlerootTown_BrendansHouse_2F_EventScript_1F8507:: @ 81F8507
LittlerootTown_BrendansHouse_2F_EventScript_1F8536:: @ 81F8536
applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_1F85D7
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox LittlerootTown_BrendansHouse_2F_Text_1F97B4, MSGBOX_DEFAULT
closemessage
@@ -117,7 +117,7 @@ LittlerootTown_BrendansHouse_2F_EventScript_1F8536:: @ 81F8536
LittlerootTown_BrendansHouse_2F_EventScript_1F8565:: @ 81F8565
applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_1F85E8
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox LittlerootTown_BrendansHouse_2F_Text_1F97B4, MSGBOX_DEFAULT
closemessage
@@ -129,7 +129,7 @@ LittlerootTown_BrendansHouse_2F_EventScript_1F8565:: @ 81F8565
LittlerootTown_BrendansHouse_2F_EventScript_1F8594:: @ 81F8594
applymovement 1, LittlerootTown_BrendansHouse_2F_Movement_1F85FD
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox LittlerootTown_BrendansHouse_2F_Text_1F97B4, MSGBOX_DEFAULT
closemessage
diff --git a/data/maps/LittlerootTown_MaysHouse_1F/scripts.inc b/data/maps/LittlerootTown_MaysHouse_1F/scripts.inc
index 510f8c249..74654f7ee 100644
--- a/data/maps/LittlerootTown_MaysHouse_1F/scripts.inc
+++ b/data/maps/LittlerootTown_MaysHouse_1F/scripts.inc
@@ -94,7 +94,7 @@ LittlerootTown_MaysHouse_1F_EventScript_1F89AE:: @ 81F89AE
waitmovement 0
applymovement 4, Common_Movement_Delay48
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
applymovement 4, LittlerootTown_MaysHouse_1F_Movement_1F89EC
waitmovement 0
special GetRivalSonDaughterString
@@ -154,7 +154,7 @@ LittlerootTown_MaysHouse_1F_EventScript_1F8A4C:: @ 81F8A4C
lockall
setvar VAR_0x8004, 1
setvar VAR_0x8005, 1
- applymovement VAR_0x8004, Common_Movement_WalkInPlaceRight
+ applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
goto LittlerootTown_MaysHouse_1F_EventScript_292765
end
@@ -218,7 +218,7 @@ LittlerootTown_MaysHouse_1F_EventScript_1F8A8B:: @ 81F8A8B
end
LittlerootTown_MaysHouse_1F_EventScript_1F8B2A:: @ 81F8B2A
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
diff --git a/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc b/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc
index 997a4e2c1..31a097ead 100644
--- a/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc
+++ b/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc
@@ -74,13 +74,13 @@ LittlerootTown_MaysHouse_2F_EventScript_1F934A:: @ 81F934A
waitmovement 0
delay 10
playbgm MUS_GIRL_SUP, 1
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq LittlerootTown_MaysHouse_2F_EventScript_1F93BA
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq LittlerootTown_MaysHouse_2F_EventScript_1F93E9
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq LittlerootTown_MaysHouse_2F_EventScript_1F9418
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq LittlerootTown_MaysHouse_2F_EventScript_1F9440
setvar VAR_LITTLEROOT_RIVAL_STATE, 3
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_2F_POKE_BALL
@@ -94,7 +94,7 @@ LittlerootTown_MaysHouse_2F_EventScript_1F934A:: @ 81F934A
LittlerootTown_MaysHouse_2F_EventScript_1F93BA:: @ 81F93BA
applymovement 1, LittlerootTown_MaysHouse_2F_Movement_1F9473
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox LittlerootTown_MaysHouse_2F_Text_1F959C, MSGBOX_DEFAULT
closemessage
@@ -106,7 +106,7 @@ LittlerootTown_MaysHouse_2F_EventScript_1F93BA:: @ 81F93BA
LittlerootTown_MaysHouse_2F_EventScript_1F93E9:: @ 81F93E9
applymovement 1, LittlerootTown_MaysHouse_2F_Movement_1F948B
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox LittlerootTown_MaysHouse_2F_Text_1F959C, MSGBOX_DEFAULT
closemessage
@@ -118,7 +118,7 @@ LittlerootTown_MaysHouse_2F_EventScript_1F93E9:: @ 81F93E9
LittlerootTown_MaysHouse_2F_EventScript_1F9418:: @ 81F9418
applymovement 1, LittlerootTown_MaysHouse_2F_Movement_1F949D
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox LittlerootTown_MaysHouse_2F_Text_1F959C, MSGBOX_DEFAULT
closemessage
@@ -129,7 +129,7 @@ LittlerootTown_MaysHouse_2F_EventScript_1F9418:: @ 81F9418
LittlerootTown_MaysHouse_2F_EventScript_1F9440:: @ 81F9440
applymovement 1, LittlerootTown_MaysHouse_2F_Movement_1F94AD
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox LittlerootTown_MaysHouse_2F_Text_1F959C, MSGBOX_DEFAULT
closemessage
diff --git a/data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc b/data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc
index b0275642c..283be0477 100644
--- a/data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc
+++ b/data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc
@@ -6,7 +6,7 @@ LittlerootTown_ProfessorBirchsLab_MapScripts:: @ 81F9C91
LittlerootTown_ProfessorBirchsLab_MapScript1_1F9CA1: @ 81F9CA1
call Common_EventScript_SetupRivalGfxId
- call LittlerootTown_ProfessorBirchsLab_EventScript_2720AD
+ call ProfBirch_EventScript_UpdateLocation
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_1F9CF7
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 4
@@ -167,8 +167,8 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1F9E80:: @ 81F9E80
delay 10
playse SE_TK_KASYA
delay 20
- applymovement 3, Common_Movement_WalkInPlaceRight
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement 3, Common_Movement_WalkInPlaceFastestRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
checkplayergender
compare VAR_RESULT, MALE
@@ -180,8 +180,8 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1F9E80:: @ 81F9E80
delay 20
applymovement 2, LittlerootTown_ProfessorBirchsLab_Movement_1F9F58
waitmovement 0
- applymovement 3, Common_Movement_WalkInPlaceUp
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement 3, Common_Movement_WalkInPlaceFastestUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox LittlerootTown_ProfessorBirchsLab_Text_1FB419, MSGBOX_DEFAULT
playfanfare MUS_FANFA4
@@ -286,9 +286,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1F9FBB:: @ 81F9FBB
release
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_1FA057
- applymovement 2, Common_Movement_WalkInPlaceRight
+ applymovement 2, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
- drawmonpic SPECIES_CYNDAQUIL, 10, 3
+ showmonpic SPECIES_CYNDAQUIL, 10, 3
msgbox LittlerootTown_ProfessorBirchsLab_Text_1FB7F6, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA061
@@ -299,9 +299,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1F9FEF:: @ 81F9FEF
release
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_1FA057
- applymovement 2, Common_Movement_WalkInPlaceRight
+ applymovement 2, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
- drawmonpic SPECIES_TOTODILE, 10, 3
+ showmonpic SPECIES_TOTODILE, 10, 3
msgbox LittlerootTown_ProfessorBirchsLab_Text_1FB869, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA061
@@ -312,9 +312,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA023:: @ 81FA023
release
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_1FA057
- applymovement 2, Common_Movement_WalkInPlaceRight
+ applymovement 2, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
- drawmonpic SPECIES_CHIKORITA, 10, 3
+ showmonpic SPECIES_CHIKORITA, 10, 3
msgbox LittlerootTown_ProfessorBirchsLab_Text_1FB8E0, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA061
@@ -327,7 +327,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA057:: @ 81FA057
end
LittlerootTown_ProfessorBirchsLab_EventScript_1FA061:: @ 81FA061
- erasemonpic
+ hidemonpic
msgbox LittlerootTown_ProfessorBirchsLab_Text_1FB959, MSGBOX_DEFAULT
releaseall
end
@@ -340,7 +340,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA06C:: @ 81FA06C
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA0A1
compare VAR_RESULT, 1
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA0CC
- erasemonpic
+ hidemonpic
goto Common_EventScript_NoMoreRoomForPokemon
end
@@ -371,7 +371,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA0F2:: @ 81FA0F2
end
LittlerootTown_ProfessorBirchsLab_EventScript_1FA0FD:: @ 81FA0FD
- erasemonpic
+ hidemonpic
msgbox LittlerootTown_ProfessorBirchsLab_Text_1FBA2C, MSGBOX_DEFAULT
setvar VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
releaseall
@@ -385,7 +385,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA10D:: @ 81FA10D
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA142
compare VAR_RESULT, 1
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA16D
- erasemonpic
+ hidemonpic
goto Common_EventScript_NoMoreRoomForPokemon
end
@@ -416,7 +416,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA193:: @ 81FA193
end
LittlerootTown_ProfessorBirchsLab_EventScript_1FA19E:: @ 81FA19E
- erasemonpic
+ hidemonpic
msgbox LittlerootTown_ProfessorBirchsLab_Text_1FBA2C, MSGBOX_DEFAULT
setvar VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
releaseall
@@ -430,7 +430,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA1AE:: @ 81FA1AE
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA1E3
compare VAR_RESULT, 1
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA20E
- erasemonpic
+ hidemonpic
goto Common_EventScript_NoMoreRoomForPokemon
end
@@ -461,7 +461,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA234:: @ 81FA234
end
LittlerootTown_ProfessorBirchsLab_EventScript_1FA23F:: @ 81FA23F
- erasemonpic
+ hidemonpic
msgbox LittlerootTown_ProfessorBirchsLab_Text_1FBA2C, MSGBOX_DEFAULT
setvar VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
releaseall
@@ -482,7 +482,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA25A:: @ 81FA25A
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 2
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA294
goto_if_unset FLAG_HAS_MATCH_CALL, LittlerootTown_ProfessorBirchsLab_EventScript_1FA29E
- goto_if_unset FLAG_ENABLE_PROF_BIRCH_MATCH_CALL, LittlerootTown_ProfessorBirchsLab_EventScript_1FA2D2
+ goto_if_unset FLAG_ENABLE_PROF_BIRCH_MATCH_CALL, EventScript_RegisterProfBirch
goto LittlerootTown_ProfessorBirchsLab_EventScript_1FA29E
end
@@ -497,19 +497,18 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA294:: @ 81FA294
end
LittlerootTown_ProfessorBirchsLab_EventScript_1FA29E:: @ 81FA29E
- goto_if_unset FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_UNKNOWN_0x380, LittlerootTown_ProfessorBirchsLab_EventScript_272141
+ goto_if_unset FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_UNKNOWN_0x380, ProfBirch_EventScript_RatePokedexOrRegister
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 3
- goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_272141
+ goto_if_eq ProfBirch_EventScript_RatePokedexOrRegister
compare VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
- goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_272141
+ goto_if_ge ProfBirch_EventScript_RatePokedexOrRegister
compare VAR_BIRCH_LAB_STATE, 5
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA3C4
msgbox LittlerootTown_ProfessorBirchsLab_Text_1FAA74, MSGBOX_DEFAULT
release
end
-LittlerootTown_ProfessorBirchsLab_EventScript_1FA2D2:: @ 81FA2D2
-Route101_EventScript_1FA2D2:: @ 81FA2D2
+EventScript_RegisterProfBirch:: @ 81FA2D2
msgbox Route101_Text_2B5F52, MSGBOX_DEFAULT
closemessage
delay 30
@@ -530,7 +529,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA2F8:: @ 81FA2F8
closemessage
applymovement 3, LittlerootTown_ProfessorBirchsLab_Movement_1FA3E0
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
checkplayergender
compare VAR_RESULT, MALE
diff --git a/data/maps/MagmaHideout_4F/scripts.inc b/data/maps/MagmaHideout_4F/scripts.inc
index de6790a25..ce2229396 100644
--- a/data/maps/MagmaHideout_4F/scripts.inc
+++ b/data/maps/MagmaHideout_4F/scripts.inc
@@ -18,7 +18,7 @@ MagmaHideout_4F_EventScript_23A560:: @ 823A560
playfanfare MUS_ME_TAMA
playse SE_TAMA
special sub_80B0534
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
delay 150
removeobject 7
@@ -50,7 +50,7 @@ MagmaHideout_4F_EventScript_23A560:: @ 823A560
waitmovement 0
msgbox MagmaHideout_4F_Text_23AADA, MSGBOX_DEFAULT
closemessage
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
delay 30
applymovement 6, Common_Movement_FacePlayer
diff --git a/data/maps/MarineCave_End/scripts.inc b/data/maps/MarineCave_End/scripts.inc
index 2fadf18ca..fd434804e 100644
--- a/data/maps/MarineCave_End/scripts.inc
+++ b/data/maps/MarineCave_End/scripts.inc
@@ -9,7 +9,7 @@ MarineCave_End_MapScript1_23AFEA: @ 823AFEA
MarineCave_End_EventScript_23AFF4:: @ 823AFF4
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject 1
return
@@ -41,11 +41,11 @@ MarineCave_End_EventScript_23B01B:: @ 823B01B
clearflag FLAG_SYS_CTRL_OBJ_DELETE
setvar VAR_TEMP_1, 0
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq MarineCave_End_EventScript_23B084
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq MarineCave_End_EventScript_23B092
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq MarineCave_End_EventScript_23B092
setvar VAR_SHOULD_END_UNUSUAL_WEATHER, 1
setflag FLAG_DEFEATED_KYOGRE
diff --git a/data/maps/MauvilleCity/map.json b/data/maps/MauvilleCity/map.json
index 4163f4d9d..d5dc8ae99 100644
--- a/data/maps/MauvilleCity/map.json
+++ b/data/maps/MauvilleCity/map.json
@@ -162,7 +162,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MauvilleCity_EventScript_2C7F7E",
+ "script": "MauvilleCity_EventScript_RolloutTutor",
"flag": "0"
},
{
diff --git a/data/maps/MauvilleCity/scripts.inc b/data/maps/MauvilleCity/scripts.inc
index 445930e70..52ff2237c 100644
--- a/data/maps/MauvilleCity/scripts.inc
+++ b/data/maps/MauvilleCity/scripts.inc
@@ -86,7 +86,7 @@ MauvilleCity_EventScript_1DF43D:: @ 81DF43D
MauvilleCity_EventScript_1DF452:: @ 81DF452
lockall
goto_if_set FLAG_DECLINED_WALLY_BATTLE_MAUVILLE, MauvilleCity_EventScript_1DF690
- applymovement 6, Common_Movement_WalkInPlaceRight
+ applymovement 6, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox MauvilleCity_Text_1DF845, MSGBOX_DEFAULT
msgbox MauvilleCity_Text_1DF8B9, MSGBOX_DEFAULT
@@ -109,8 +109,8 @@ MauvilleCity_EventScript_1DF4AD:: @ 81DF4AD
goto_if_eq MauvilleCity_EventScript_1DF683
closemessage
switch VAR_FACING
- case 2, MauvilleCity_EventScript_1DF4E0
- case 4, MauvilleCity_EventScript_1DF53D
+ case DIR_NORTH, MauvilleCity_EventScript_1DF4E0
+ case DIR_EAST, MauvilleCity_EventScript_1DF53D
end
MauvilleCity_EventScript_1DF4E0:: @ 81DF4E0
@@ -118,7 +118,7 @@ MauvilleCity_EventScript_1DF4E0:: @ 81DF4E0
applymovement 6, MauvilleCity_Movement_1DF6A8
applymovement 7, MauvilleCity_Movement_1DF6E2
waitmovement 0
- applymovement 6, Common_Movement_WalkInPlaceRight
+ applymovement 6, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
delay 30
applymovement EVENT_OBJ_ID_PLAYER, MauvilleCity_Movement_1DF6EE
@@ -138,7 +138,7 @@ MauvilleCity_EventScript_1DF53D:: @ 81DF53D
applymovement 6, MauvilleCity_Movement_1DF6AE
applymovement 7, MauvilleCity_Movement_1DF6E8
waitmovement 0
- applymovement 6, Common_Movement_WalkInPlaceRight
+ applymovement 6, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
delay 30
applymovement 7, MauvilleCity_Movement_1DF6F7
@@ -160,18 +160,18 @@ MauvilleCity_EventScript_1DF593:: @ 81DF593
setflag FLAG_DEFEATED_WALLY_MAUVILLE
setvar VAR_WALLY_CALL_STEP_COUNTER, 0
setflag FLAG_ENABLE_FIRST_WALLY_POKENAV_CALL
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq MauvilleCity_EventScript_1DF5F3
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq MauvilleCity_EventScript_1DF601
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox MauvilleCity_Text_1DFED5, MSGBOX_DEFAULT
closemessage
addvar VAR_SCOTT_STATE, 1
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq MauvilleCity_EventScript_1DF616
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq MauvilleCity_EventScript_1DF628
removeobject 11
releaseall
@@ -205,13 +205,13 @@ MauvilleCity_EventScript_1DF628:: @ 81DF628
MauvilleCity_EventScript_1DF63A:: @ 81DF63A
msgbox MauvilleCity_Text_1DFB6D, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_WALLY_2, MauvilleCity_Text_1DFB96
- applymovement 6, Common_Movement_WalkInPlaceRight
+ applymovement 6, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox MauvilleCity_Text_1DFBC3, MSGBOX_DEFAULT
applymovement 6, Common_Movement_FacePlayer
waitmovement 0
msgbox MauvilleCity_Text_1DFBED, MSGBOX_DEFAULT
- applymovement 6, Common_Movement_WalkInPlaceRight
+ applymovement 6, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox MauvilleCity_Text_1DFC8A, MSGBOX_DEFAULT
return
diff --git a/data/maps/MauvilleCity_GameCorner/map.json b/data/maps/MauvilleCity_GameCorner/map.json
index 07bfd3bb2..c811cd7fd 100644
--- a/data/maps/MauvilleCity_GameCorner/map.json
+++ b/data/maps/MauvilleCity_GameCorner/map.json
@@ -291,7 +291,7 @@
"y": 6,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MauvilleCity_GameCorner_EventScript_2A5AB1"
+ "script": "Roulette_EventScript_Table1"
},
{
"type": "sign",
@@ -299,7 +299,7 @@
"y": 6,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MauvilleCity_GameCorner_EventScript_2A5AB1"
+ "script": "Roulette_EventScript_Table1"
},
{
"type": "sign",
@@ -307,7 +307,7 @@
"y": 7,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MauvilleCity_GameCorner_EventScript_2A5AB1"
+ "script": "Roulette_EventScript_Table1"
},
{
"type": "sign",
@@ -315,7 +315,7 @@
"y": 7,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MauvilleCity_GameCorner_EventScript_2A5AB1"
+ "script": "Roulette_EventScript_Table1"
},
{
"type": "sign",
@@ -323,7 +323,7 @@
"y": 8,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MauvilleCity_GameCorner_EventScript_2A5AB1"
+ "script": "Roulette_EventScript_Table1"
},
{
"type": "sign",
@@ -331,7 +331,7 @@
"y": 8,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MauvilleCity_GameCorner_EventScript_2A5AB1"
+ "script": "Roulette_EventScript_Table1"
},
{
"type": "sign",
@@ -339,7 +339,7 @@
"y": 6,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MauvilleCity_GameCorner_EventScript_2A5ADF"
+ "script": "Roulette_EventScript_Table2"
},
{
"type": "sign",
@@ -347,7 +347,7 @@
"y": 6,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MauvilleCity_GameCorner_EventScript_2A5ADF"
+ "script": "Roulette_EventScript_Table2"
},
{
"type": "sign",
@@ -355,7 +355,7 @@
"y": 7,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MauvilleCity_GameCorner_EventScript_2A5ADF"
+ "script": "Roulette_EventScript_Table2"
},
{
"type": "sign",
@@ -363,7 +363,7 @@
"y": 7,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MauvilleCity_GameCorner_EventScript_2A5ADF"
+ "script": "Roulette_EventScript_Table2"
},
{
"type": "sign",
@@ -371,7 +371,7 @@
"y": 8,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MauvilleCity_GameCorner_EventScript_2A5ADF"
+ "script": "Roulette_EventScript_Table2"
},
{
"type": "sign",
@@ -379,7 +379,7 @@
"y": 8,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MauvilleCity_GameCorner_EventScript_2A5ADF"
+ "script": "Roulette_EventScript_Table2"
}
]
} \ No newline at end of file
diff --git a/data/maps/MauvilleCity_GameCorner/scripts.inc b/data/maps/MauvilleCity_GameCorner/scripts.inc
index a6ee8ec85..6f6366c59 100644
--- a/data/maps/MauvilleCity_GameCorner/scripts.inc
+++ b/data/maps/MauvilleCity_GameCorner/scripts.inc
@@ -534,7 +534,7 @@ MauvilleCity_GameCorner_EventScript_2102D6:: @ 82102D6
lockall
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 0
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
@@ -545,7 +545,7 @@ MauvilleCity_GameCorner_EventScript_2102F6:: @ 82102F6
lockall
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 1
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
@@ -556,7 +556,7 @@ MauvilleCity_GameCorner_EventScript_210316:: @ 8210316
lockall
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 2
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
@@ -567,7 +567,7 @@ MauvilleCity_GameCorner_EventScript_210336:: @ 8210336
lockall
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 3
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
@@ -578,7 +578,7 @@ MauvilleCity_GameCorner_EventScript_210356:: @ 8210356
lockall
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 4
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
@@ -589,7 +589,7 @@ MauvilleCity_GameCorner_EventScript_210376:: @ 8210376
lockall
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 5
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
@@ -600,7 +600,7 @@ MauvilleCity_GameCorner_EventScript_210396:: @ 8210396
lockall
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 6
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
@@ -611,7 +611,7 @@ MauvilleCity_GameCorner_EventScript_2103B6:: @ 82103B6
lockall
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 7
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
@@ -622,7 +622,7 @@ MauvilleCity_GameCorner_EventScript_2103D6:: @ 82103D6
lockall
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 8
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
@@ -633,7 +633,7 @@ MauvilleCity_GameCorner_EventScript_2103F6:: @ 82103F6
lockall
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 9
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
@@ -644,7 +644,7 @@ MauvilleCity_GameCorner_EventScript_210416:: @ 8210416
lockall
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 10
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
@@ -655,15 +655,15 @@ MauvilleCity_GameCorner_EventScript_210436:: @ 8210436
lockall
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 11
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
releaseall
end
-MauvilleCity_GameCorner_EventScript_210456:: @ 8210456
- msgbox MauvilleCity_GameCorner_Text_210C2E, MSGBOX_DEFAULT
+MauvilleCity_GameCorner_EventScript_NoCoinCase:: @ 8210456
+ msgbox MauvilleCity_GameCorner_Text_CantPlayWithNoCoinCase, MSGBOX_DEFAULT
releaseall
end
@@ -811,7 +811,7 @@ MauvilleCity_GameCorner_Text_210B04: @ 8210B04
.string "That would total 660 COINS, but it's\n"
.string "very difficult to get.$"
-MauvilleCity_GameCorner_Text_210C2E: @ 8210C2E
+MauvilleCity_GameCorner_Text_CantPlayWithNoCoinCase: @ 8210C2E
.string "You can't play if you don't have\n"
.string "a COIN CASE.$"
diff --git a/data/maps/MauvilleCity_Gym/map.json b/data/maps/MauvilleCity_Gym/map.json
index 9de74941c..ecc9f13c2 100644
--- a/data/maps/MauvilleCity_Gym/map.json
+++ b/data/maps/MauvilleCity_Gym/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MauvilleCity_Gym_EventScript_20DEEB",
+ "script": "MauvilleCity_Gym_EventScript_Wattson",
"flag": "FLAG_HIDE_MAUVILLE_GYM_WATTSON"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 0,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "1",
- "script": "MauvilleCity_Gym_EventScript_20E0D0",
+ "script": "MauvilleCity_Gym_EventScript_Shawn",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 0,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "2",
- "script": "MauvilleCity_Gym_EventScript_20E0FE",
+ "script": "MauvilleCity_Gym_EventScript_Vivian",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 0,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "2",
- "script": "MauvilleCity_Gym_EventScript_20E0E7",
+ "script": "MauvilleCity_Gym_EventScript_Ben",
"flag": "0"
},
{
@@ -76,7 +76,7 @@
"movement_range_y": 0,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "2",
- "script": "MauvilleCity_Gym_EventScript_20E0B9",
+ "script": "MauvilleCity_Gym_EventScript_Kirk",
"flag": "0"
},
{
@@ -89,7 +89,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MauvilleCity_Gym_EventScript_20E12C",
+ "script": "MauvilleCity_Gym_EventScript_GymGuide",
"flag": "0"
},
{
@@ -102,7 +102,7 @@
"movement_range_y": 1,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "1",
- "script": "MauvilleCity_Gym_EventScript_20E115",
+ "script": "MauvilleCity_Gym_EventScript_Angelo",
"flag": "0"
}
],
@@ -130,7 +130,7 @@
"elevation": 3,
"var": "VAR_TEMP_0",
"var_value": "0",
- "script": "MauvilleCity_Gym_EventScript_20E01E"
+ "script": "MauvilleCity_Gym_EventScript_Switch2"
},
{
"type": "trigger",
@@ -139,7 +139,7 @@
"elevation": 3,
"var": "VAR_TEMP_0",
"var_value": "0",
- "script": "MauvilleCity_Gym_EventScript_20E043"
+ "script": "MauvilleCity_Gym_EventScript_Switch3"
},
{
"type": "trigger",
@@ -148,7 +148,7 @@
"elevation": 3,
"var": "VAR_TEMP_0",
"var_value": "0",
- "script": "MauvilleCity_Gym_EventScript_20DFF9"
+ "script": "MauvilleCity_Gym_EventScript_Switch1"
},
{
"type": "trigger",
@@ -157,7 +157,7 @@
"elevation": 3,
"var": "VAR_TEMP_0",
"var_value": "0",
- "script": "MauvilleCity_Gym_EventScript_20E068"
+ "script": "MauvilleCity_Gym_EventScript_Switch4"
}
],
"bg_events": [
@@ -167,7 +167,7 @@
"y": 18,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
- "script": "MauvilleCity_Gym_EventScript_20E14B"
+ "script": "MauvilleCity_Gym_EventScript_LeftGymStatue"
},
{
"type": "sign",
@@ -175,7 +175,7 @@
"y": 18,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
- "script": "MauvilleCity_Gym_EventScript_20E15B"
+ "script": "MauvilleCity_Gym_EventScript_RightGymStatue"
}
]
} \ No newline at end of file
diff --git a/data/maps/MauvilleCity_Gym/scripts.inc b/data/maps/MauvilleCity_Gym/scripts.inc
index 10837e269..a4489018f 100644
--- a/data/maps/MauvilleCity_Gym/scripts.inc
+++ b/data/maps/MauvilleCity_Gym/scripts.inc
@@ -1,22 +1,22 @@
MauvilleCity_Gym_MapScripts:: @ 820DD6E
- map_script MAP_SCRIPT_ON_LOAD, MauvilleCity_Gym_MapScript1_20DD74
+ map_script MAP_SCRIPT_ON_LOAD, MauvilleCity_Gym_OnLoad
.byte 0
-MauvilleCity_Gym_MapScript1_20DD74: @ 820DD74
- goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_20DEE7
+MauvilleCity_Gym_OnLoad: @ 820DD74
+ goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_DeactivatePuzzle
switch VAR_MAUVILLE_GYM_STATE
- case 0, MauvilleCity_Gym_EventScript_20DDBA
- case 1, MauvilleCity_Gym_EventScript_20DEAF
- case 2, MauvilleCity_Gym_EventScript_20DEBD
- case 3, MauvilleCity_Gym_EventScript_20DECB
- case 4, MauvilleCity_Gym_EventScript_20DED9
+ case 0, MauvilleCity_Gym_EventScript_UpdateBarriers
+ case 1, MauvilleCity_Gym_EventScript_Switch1Pressed
+ case 2, MauvilleCity_Gym_EventScript_Switch2Pressed
+ case 3, MauvilleCity_Gym_EventScript_Switch3Pressed
+ case 4, MauvilleCity_Gym_EventScript_Switch4Pressed
end
-MauvilleCity_Gym_EventScript_20DDBA:: @ 820DDBA
- goto_if_set FLAG_MAUVILLE_GYM_BARRIERS_STATE, MauvilleCity_Gym_EventScript_20DDC4
+MauvilleCity_Gym_EventScript_UpdateBarriers:: @ 820DDBA
+ goto_if_set FLAG_MAUVILLE_GYM_BARRIERS_STATE, MauvilleCity_Gym_EventScript_SetAltBarriers
end
-MauvilleCity_Gym_EventScript_20DDC4:: @ 820DDC4
+MauvilleCity_Gym_EventScript_SetAltBarriers:: @ 820DDC4
setmetatile 3, 11, METATILE_MauvilleGym_RedBeamV1_On, 1
setmetatile 3, 12, METATILE_MauvilleGym_RedBeamV2_On, 1
setmetatile 3, 13, METATILE_MauvilleGym_PoleTop_On, 1
@@ -45,68 +45,68 @@ MauvilleCity_Gym_EventScript_20DDC4:: @ 820DDC4
setmetatile 5, 7, METATILE_MauvilleGym_GreenBeamH4_Off, 0
end
-MauvilleCity_Gym_EventScript_20DEAF:: @ 820DEAF
+MauvilleCity_Gym_EventScript_Switch1Pressed:: @ 820DEAF
setvar VAR_0x8004, 0
- special MauvilleGymSpecial1
- goto MauvilleCity_Gym_EventScript_20DDBA
+ special MauvilleGymPressSwitch
+ goto MauvilleCity_Gym_EventScript_UpdateBarriers
end
-MauvilleCity_Gym_EventScript_20DEBD:: @ 820DEBD
+MauvilleCity_Gym_EventScript_Switch2Pressed:: @ 820DEBD
setvar VAR_0x8004, 1
- special MauvilleGymSpecial1
- goto MauvilleCity_Gym_EventScript_20DDBA
+ special MauvilleGymPressSwitch
+ goto MauvilleCity_Gym_EventScript_UpdateBarriers
end
-MauvilleCity_Gym_EventScript_20DECB:: @ 820DECB
+MauvilleCity_Gym_EventScript_Switch3Pressed:: @ 820DECB
setvar VAR_0x8004, 2
- special MauvilleGymSpecial1
- goto MauvilleCity_Gym_EventScript_20DDBA
+ special MauvilleGymPressSwitch
+ goto MauvilleCity_Gym_EventScript_UpdateBarriers
end
-MauvilleCity_Gym_EventScript_20DED9:: @ 820DED9
+MauvilleCity_Gym_EventScript_Switch4Pressed:: @ 820DED9
setvar VAR_0x8004, 3
- special MauvilleGymSpecial1
- goto MauvilleCity_Gym_EventScript_20DDBA
+ special MauvilleGymPressSwitch
+ goto MauvilleCity_Gym_EventScript_UpdateBarriers
end
-MauvilleCity_Gym_EventScript_20DEE7:: @ 820DEE7
- special MauvilleGymSpecial3
+MauvilleCity_Gym_EventScript_DeactivatePuzzle:: @ 820DEE7
+ special MauvilleGymDeactivatePuzzle
end
-MauvilleCity_Gym_EventScript_20DEEB:: @ 820DEEB
- trainerbattle_single TRAINER_WATTSON_1, MauvilleCity_Gym_Text_20E602, MauvilleCity_Gym_Text_20E734, MauvilleCity_Gym_EventScript_20DF2B, NO_MUSIC
+MauvilleCity_Gym_EventScript_Wattson:: @ 820DEEB
+ trainerbattle_single TRAINER_WATTSON_1, MauvilleCity_Gym_Text_WattsonPreBattle, MauvilleCity_Gym_Text_WattsonDefeat, MauvilleCity_Gym_EventScript_WattsonDefeated, NO_MUSIC
specialvar VAR_RESULT, ShouldTryRematchBattle
- compare VAR_RESULT, 1
- goto_if_eq MauvilleCity_Gym_EventScript_20DFDE
- goto_if_unset FLAG_RECEIVED_TM34, MauvilleCity_Gym_EventScript_20DF8D
+ compare VAR_RESULT, TRUE
+ goto_if_eq MauvilleCity_Gym_EventScript_WattsonRematch
+ goto_if_unset FLAG_RECEIVED_TM34, MauvilleCity_Gym_EventScript_GiveShockWave2
compare VAR_NEW_MAUVILLE_STATE, 2
- goto_if_eq MauvilleCity_Gym_EventScript_20DFD4
- msgbox MauvilleCity_Gym_Text_20E8E3, MSGBOX_DEFAULT
+ goto_if_eq MauvilleCity_Gym_EventScript_CompletedNewMauville
+ msgbox MauvilleCity_Gym_Text_WattsonPostBattle, MSGBOX_DEFAULT
release
end
-MauvilleCity_Gym_EventScript_20DF2B:: @ 820DF2B
- message MauvilleCity_Gym_Text_20E77F
+MauvilleCity_Gym_EventScript_WattsonDefeated:: @ 820DF2B
+ message MauvilleCity_Gym_Text_ReceivedDynamoBadge
waitmessage
call Common_EventScript_PlayGymBadgeFanfare
- msgbox MauvilleCity_Gym_Text_20E7AA, MSGBOX_DEFAULT
+ msgbox MauvilleCity_Gym_Text_ExplainDynamoBadgeTakeThis, MSGBOX_DEFAULT
setvar VAR_SLATEPORT_OUTSIDE_MUSEUM_STATE, 3
clearflag FLAG_HIDE_VERDANTURF_TOWN_SCOTT
setflag FLAG_DEFEATED_MAUVILLE_GYM
setflag FLAG_BADGE03_GET
addvar VAR_PETALBURG_GYM_STATE, 1
compare VAR_PETALBURG_GYM_STATE, 6
- call_if_eq MauvilleCity_Gym_EventScript_271E84
+ call_if_eq Common_EventScript_ReadyPetalburgGymForBattle
setvar VAR_0x8008, 3
call Common_EventScript_SetGymTrainers
- special MauvilleGymSpecial3
+ special MauvilleGymDeactivatePuzzle
special DrawWholeMapView
playse SE_KI_GASYAN
- call MauvilleCity_Gym_EventScript_20DFB1
+ call MauvilleCity_Gym_EventScript_GiveShockWave
closemessage
delay 30
playfanfare MUS_ME_TORE_EYE
- msgbox MauvilleCity_Gym_Text_20E8B5, MSGBOX_DEFAULT
+ msgbox MauvilleCity_Gym_Text_RegisteredWattson, MSGBOX_DEFAULT
waitfanfare
closemessage
delay 30
@@ -114,158 +114,158 @@ MauvilleCity_Gym_EventScript_20DF2B:: @ 820DF2B
release
end
-MauvilleCity_Gym_EventScript_20DF8D:: @ 820DF8D
+MauvilleCity_Gym_EventScript_GiveShockWave2:: @ 820DF8D
giveitem_std ITEM_TM34
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_ShowBagIsFull
- msgbox MauvilleCity_Gym_Text_20E844, MSGBOX_DEFAULT
+ msgbox MauvilleCity_Gym_Text_ExplainShockWave, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM34
release
end
-MauvilleCity_Gym_EventScript_20DFB1:: @ 820DFB1
+MauvilleCity_Gym_EventScript_GiveShockWave:: @ 820DFB1
giveitem_std ITEM_TM34
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_BagIsFull
- msgbox MauvilleCity_Gym_Text_20E844, MSGBOX_DEFAULT
+ msgbox MauvilleCity_Gym_Text_ExplainShockWave, MSGBOX_DEFAULT
setflag FLAG_RECEIVED_TM34
return
-MauvilleCity_Gym_EventScript_20DFD4:: @ 820DFD4
- msgbox MauvilleCity_Gym_Text_20E925, MSGBOX_DEFAULT
+MauvilleCity_Gym_EventScript_CompletedNewMauville:: @ 820DFD4
+ msgbox MauvilleCity_Gym_Text_WattsonGoForthAndEndeavor, MSGBOX_DEFAULT
release
end
-MauvilleCity_Gym_EventScript_20DFDE:: @ 820DFDE
- trainerbattle_rematch_double TRAINER_WATTSON_1, MauvilleCity_Gym_Text_20E9A7, MauvilleCity_Gym_Text_20EA42, MauvilleCity_Gym_Text_20EAFD
+MauvilleCity_Gym_EventScript_WattsonRematch:: @ 820DFDE
+ trainerbattle_rematch_double TRAINER_WATTSON_1, MauvilleCity_Gym_Text_WattsonPreRematch, MauvilleCity_Gym_Text_WattsonRematchDefeat, MauvilleCity_Gym_Text_WattsonRematchNeedTwoMons
msgbox MauvilleCity_Gym_Text_20EA5E, MSGBOX_AUTOCLOSE
end
-MauvilleCity_Gym_EventScript_20DFF9:: @ 820DFF9
+MauvilleCity_Gym_EventScript_Switch1:: @ 820DFF9
lockall
- goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_20E0AD
+ goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_SwitchDoNothing
compare VAR_MAUVILLE_GYM_STATE, 1
- goto_if_eq MauvilleCity_Gym_EventScript_20E0AD
+ goto_if_eq MauvilleCity_Gym_EventScript_SwitchDoNothing
setvar VAR_MAUVILLE_GYM_STATE, 1
setvar VAR_0x8004, 0
- goto MauvilleCity_Gym_EventScript_20E08D
+ goto MauvilleCity_Gym_EventScript_PressFloorSwitch
end
-MauvilleCity_Gym_EventScript_20E01E:: @ 820E01E
+MauvilleCity_Gym_EventScript_Switch2:: @ 820E01E
lockall
- goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_20E0AD
+ goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_SwitchDoNothing
compare VAR_MAUVILLE_GYM_STATE, 2
- goto_if_eq MauvilleCity_Gym_EventScript_20E0AD
+ goto_if_eq MauvilleCity_Gym_EventScript_SwitchDoNothing
setvar VAR_MAUVILLE_GYM_STATE, 2
setvar VAR_0x8004, 1
- goto MauvilleCity_Gym_EventScript_20E08D
+ goto MauvilleCity_Gym_EventScript_PressFloorSwitch
end
-MauvilleCity_Gym_EventScript_20E043:: @ 820E043
+MauvilleCity_Gym_EventScript_Switch3:: @ 820E043
lockall
- goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_20E0AD
+ goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_SwitchDoNothing
compare VAR_MAUVILLE_GYM_STATE, 3
- goto_if_eq MauvilleCity_Gym_EventScript_20E0AD
+ goto_if_eq MauvilleCity_Gym_EventScript_SwitchDoNothing
setvar VAR_MAUVILLE_GYM_STATE, 3
setvar VAR_0x8004, 2
- goto MauvilleCity_Gym_EventScript_20E08D
+ goto MauvilleCity_Gym_EventScript_PressFloorSwitch
end
-MauvilleCity_Gym_EventScript_20E068:: @ 820E068
+MauvilleCity_Gym_EventScript_Switch4:: @ 820E068
lockall
- goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_20E0AD
+ goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_SwitchDoNothing
compare VAR_MAUVILLE_GYM_STATE, 4
- goto_if_eq MauvilleCity_Gym_EventScript_20E0AD
+ goto_if_eq MauvilleCity_Gym_EventScript_SwitchDoNothing
setvar VAR_MAUVILLE_GYM_STATE, 4
setvar VAR_0x8004, 3
- goto MauvilleCity_Gym_EventScript_20E08D
+ goto MauvilleCity_Gym_EventScript_PressFloorSwitch
end
-MauvilleCity_Gym_EventScript_20E08D:: @ 820E08D
- special MauvilleGymSpecial2
- special MauvilleGymSpecial1
+MauvilleCity_Gym_EventScript_PressFloorSwitch:: @ 820E08D
+ special MauvilleGymSetDefaultBarriers
+ special MauvilleGymPressSwitch
special DrawWholeMapView
playse SE_KI_GASYAN
- goto_if_set FLAG_MAUVILLE_GYM_BARRIERS_STATE, MauvilleCity_Gym_EventScript_20E0B4
- goto_if_unset FLAG_MAUVILLE_GYM_BARRIERS_STATE, MauvilleCity_Gym_EventScript_20E0AF
+ goto_if_set FLAG_MAUVILLE_GYM_BARRIERS_STATE, MauvilleCity_Gym_EventScript_ClearBarriersAltState
+ goto_if_unset FLAG_MAUVILLE_GYM_BARRIERS_STATE, MauvilleCity_Gym_EventScript_SetBarriersAltState
releaseall
end
-MauvilleCity_Gym_EventScript_20E0AD:: @ 820E0AD
+MauvilleCity_Gym_EventScript_SwitchDoNothing:: @ 820E0AD
releaseall
end
-MauvilleCity_Gym_EventScript_20E0AF:: @ 820E0AF
+MauvilleCity_Gym_EventScript_SetBarriersAltState:: @ 820E0AF
setflag FLAG_MAUVILLE_GYM_BARRIERS_STATE
releaseall
end
-MauvilleCity_Gym_EventScript_20E0B4:: @ 820E0B4
+MauvilleCity_Gym_EventScript_ClearBarriersAltState:: @ 820E0B4
clearflag FLAG_MAUVILLE_GYM_BARRIERS_STATE
releaseall
end
-MauvilleCity_Gym_EventScript_20E0B9:: @ 820E0B9
- trainerbattle_single TRAINER_KIRK, MauvilleCity_Gym_Text_20E2BC, MauvilleCity_Gym_Text_20E2FC
- msgbox MauvilleCity_Gym_Text_20E336, MSGBOX_AUTOCLOSE
+MauvilleCity_Gym_EventScript_Kirk:: @ 820E0B9
+ trainerbattle_single TRAINER_KIRK, MauvilleCity_Gym_Text_KirkPreBattle, MauvilleCity_Gym_Text_KirkDefeat
+ msgbox MauvilleCity_Gym_Text_KirkPostBattle, MSGBOX_AUTOCLOSE
end
-MauvilleCity_Gym_EventScript_20E0D0:: @ 820E0D0
- trainerbattle_single TRAINER_SHAWN, MauvilleCity_Gym_Text_20E369, MauvilleCity_Gym_Text_20E3A7
- msgbox MauvilleCity_Gym_Text_20E3C1, MSGBOX_AUTOCLOSE
+MauvilleCity_Gym_EventScript_Shawn:: @ 820E0D0
+ trainerbattle_single TRAINER_SHAWN, MauvilleCity_Gym_Text_ShawnPreBattle, MauvilleCity_Gym_Text_ShawnDefeat
+ msgbox MauvilleCity_Gym_Text_ShawnPostBattle, MSGBOX_AUTOCLOSE
end
-MauvilleCity_Gym_EventScript_20E0E7:: @ 820E0E7
- trainerbattle_single TRAINER_BEN, MauvilleCity_Gym_Text_20E443, MauvilleCity_Gym_Text_20E469
- msgbox MauvilleCity_Gym_Text_20E47E, MSGBOX_AUTOCLOSE
+MauvilleCity_Gym_EventScript_Ben:: @ 820E0E7
+ trainerbattle_single TRAINER_BEN, MauvilleCity_Gym_Text_BenPreBattle, MauvilleCity_Gym_Text_BenDefeat
+ msgbox MauvilleCity_Gym_Text_BenPostBattle, MSGBOX_AUTOCLOSE
end
-MauvilleCity_Gym_EventScript_20E0FE:: @ 820E0FE
- trainerbattle_single TRAINER_VIVIAN, MauvilleCity_Gym_Text_20E4BB, MauvilleCity_Gym_Text_20E4F4
- msgbox MauvilleCity_Gym_Text_20E50F, MSGBOX_AUTOCLOSE
+MauvilleCity_Gym_EventScript_Vivian:: @ 820E0FE
+ trainerbattle_single TRAINER_VIVIAN, MauvilleCity_Gym_Text_VivianPreBattle, MauvilleCity_Gym_Text_VivianDefeat
+ msgbox MauvilleCity_Gym_Text_VivianPostBattle, MSGBOX_AUTOCLOSE
end
-MauvilleCity_Gym_EventScript_20E115:: @ 820E115
- trainerbattle_single TRAINER_ANGELO, MauvilleCity_Gym_Text_20E593, MauvilleCity_Gym_Text_20E5A8
- msgbox MauvilleCity_Gym_Text_20E5C2, MSGBOX_AUTOCLOSE
+MauvilleCity_Gym_EventScript_Angelo:: @ 820E115
+ trainerbattle_single TRAINER_ANGELO, MauvilleCity_Gym_Text_AngeloPreBattle, MauvilleCity_Gym_Text_AngeloDefeat
+ msgbox MauvilleCity_Gym_Text_AngeloPostBattle, MSGBOX_AUTOCLOSE
end
-MauvilleCity_Gym_EventScript_20E12C:: @ 820E12C
+MauvilleCity_Gym_EventScript_GymGuide:: @ 820E12C
lock
faceplayer
- goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_20E141
- msgbox MauvilleCity_Gym_Text_20E17F, MSGBOX_DEFAULT
+ goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_GymGuidePostVictory
+ msgbox MauvilleCity_Gym_Text_GymGuideAdvice, MSGBOX_DEFAULT
release
end
-MauvilleCity_Gym_EventScript_20E141:: @ 820E141
- msgbox MauvilleCity_Gym_Text_20E283, MSGBOX_DEFAULT
+MauvilleCity_Gym_EventScript_GymGuidePostVictory:: @ 820E141
+ msgbox MauvilleCity_Gym_Text_GymGuidePostVictory, MSGBOX_DEFAULT
release
end
-MauvilleCity_Gym_EventScript_20E14B:: @ 820E14B
+MauvilleCity_Gym_EventScript_LeftGymStatue:: @ 820E14B
lockall
- goto_if_set FLAG_BADGE03_GET, MauvilleCity_Gym_EventScript_20E16B
- goto MauvilleCity_Gym_EventScript_20E175
+ goto_if_set FLAG_BADGE03_GET, MauvilleCity_Gym_EventScript_GymStatueCertified
+ goto MauvilleCity_Gym_EventScript_GymStatue
end
-MauvilleCity_Gym_EventScript_20E15B:: @ 820E15B
+MauvilleCity_Gym_EventScript_RightGymStatue:: @ 820E15B
lockall
- goto_if_set FLAG_BADGE03_GET, MauvilleCity_Gym_EventScript_20E16B
- goto MauvilleCity_Gym_EventScript_20E175
+ goto_if_set FLAG_BADGE03_GET, MauvilleCity_Gym_EventScript_GymStatueCertified
+ goto MauvilleCity_Gym_EventScript_GymStatue
end
-MauvilleCity_Gym_EventScript_20E16B:: @ 820E16B
- msgbox MauvilleCity_Gym_Text_20E96C, MSGBOX_DEFAULT
+MauvilleCity_Gym_EventScript_GymStatueCertified:: @ 820E16B
+ msgbox MauvilleCity_Gym_Text_GymStatueCertified, MSGBOX_DEFAULT
releaseall
end
-MauvilleCity_Gym_EventScript_20E175:: @ 820E175
- msgbox MauvilleCity_Gym_Text_20E952, MSGBOX_DEFAULT
+MauvilleCity_Gym_EventScript_GymStatue:: @ 820E175
+ msgbox MauvilleCity_Gym_Text_GymStatue, MSGBOX_DEFAULT
releaseall
end
-MauvilleCity_Gym_Text_20E17F: @ 820E17F
+MauvilleCity_Gym_Text_GymGuideAdvice: @ 820E17F
.string "Hey, how's it going, CHAMPION-\n"
.string "bound {PLAYER}?\p"
.string "WATTSON, the LEADER of MAUVILLE\n"
@@ -276,72 +276,72 @@ MauvilleCity_Gym_Text_20E17F: @ 820E17F
.string "doors all over his GYM! Eccentric!\p"
.string "Hey, go for it!$"
-MauvilleCity_Gym_Text_20E283: @ 820E283
+MauvilleCity_Gym_Text_GymGuidePostVictory: @ 820E283
.string "Whoa, you're electrifying!\n"
.string "You've powered the door open!$"
-MauvilleCity_Gym_Text_20E2BC: @ 820E2BC
+MauvilleCity_Gym_Text_KirkPreBattle: @ 820E2BC
.string "My electric soul, it'll shatter your\n"
.string "dreams whole, whoa-yeahah!$"
-MauvilleCity_Gym_Text_20E2FC: @ 820E2FC
+MauvilleCity_Gym_Text_KirkDefeat: @ 820E2FC
.string "That was plugged in, amped up,\n"
.string "over-driven electric, man!$"
-MauvilleCity_Gym_Text_20E336: @ 820E336
+MauvilleCity_Gym_Text_KirkPostBattle: @ 820E336
.string "POKéMON and rock, it's all about heart,\n"
.string "whoa-yeah!$"
-MauvilleCity_Gym_Text_20E369: @ 820E369
+MauvilleCity_Gym_Text_ShawnPreBattle: @ 820E369
.string "I trained under WATTSON!\n"
.string "There ain't no way I'll lose easily!$"
-MauvilleCity_Gym_Text_20E3A7: @ 820E3A7
+MauvilleCity_Gym_Text_ShawnDefeat: @ 820E3A7
.string "Unplugged and turned off…$"
-MauvilleCity_Gym_Text_20E3C1: @ 820E3C1
+MauvilleCity_Gym_Text_ShawnPostBattle: @ 820E3C1
.string "WATTSON, our GYM LEADER, has been\n"
.string "around for a long, long time.\p"
.string "He was battling even before your\n"
.string "daddy was born, that tough coot.$"
-MauvilleCity_Gym_Text_20E443: @ 820E443
+MauvilleCity_Gym_Text_BenPreBattle: @ 820E443
.string "This GYM's got puzzles!\n"
.string "Isn't it fun?$"
-MauvilleCity_Gym_Text_20E469: @ 820E469
+MauvilleCity_Gym_Text_BenDefeat: @ 820E469
.string "It's no fun to lose…$"
-MauvilleCity_Gym_Text_20E47E: @ 820E47E
+MauvilleCity_Gym_Text_BenPostBattle: @ 820E47E
.string "WATTSON says he likes setting up\n"
.string "little traps with switches.$"
-MauvilleCity_Gym_Text_20E4BB: @ 820E4BB
+MauvilleCity_Gym_Text_VivianPreBattle: @ 820E4BB
.string "With my charm and my POKéMON's moves,\n"
.string "you'll be shocked!$"
-MauvilleCity_Gym_Text_20E4F4: @ 820E4F4
+MauvilleCity_Gym_Text_VivianDefeat: @ 820E4F4
.string "I'm shocked by your power!$"
-MauvilleCity_Gym_Text_20E50F: @ 820E50F
+MauvilleCity_Gym_Text_VivianPostBattle: @ 820E50F
.string "I've heard that MAUVILLE was founded\n"
.string "by WATTSON.\p"
.string "He was a TRAINER long before we\n"
.string "became TRAINERS.\l"
.string "He must know all sorts of things!$"
-MauvilleCity_Gym_Text_20E593: @ 820E593
+MauvilleCity_Gym_Text_AngeloPreBattle: @ 820E593
.string "I love shiny things!$"
-MauvilleCity_Gym_Text_20E5A8: @ 820E5A8
+MauvilleCity_Gym_Text_AngeloDefeat: @ 820E5A8
.string "Oh…\n"
.string "My eyes are frazzled…$"
-MauvilleCity_Gym_Text_20E5C2: @ 820E5C2
+MauvilleCity_Gym_Text_AngeloPostBattle: @ 820E5C2
.string "MAUVILLE GYM's WATTSON has a shiny\n"
.string "forehead. It makes me happy!$"
-MauvilleCity_Gym_Text_20E602: @ 820E602
+MauvilleCity_Gym_Text_WattsonPreBattle: @ 820E602
.string "I've given up on my plans to convert\n"
.string "the city, I have.\p"
.string "And so, I put my time into making\n"
@@ -354,17 +354,17 @@ MauvilleCity_Gym_Text_20E602: @ 820E602
.string "Then, I, WATTSON, the LEADER of\n"
.string "MAUVILLE GYM, shall electrify you!$"
-MauvilleCity_Gym_Text_20E734: @ 820E734
+MauvilleCity_Gym_Text_WattsonDefeat: @ 820E734
.string "Wahahahah!\n"
.string "Fine, I lost!\p"
.string "You ended up giving me a thrill!\n"
.string "Take this BADGE!$"
-MauvilleCity_Gym_Text_20E77F: @ 820E77F
+MauvilleCity_Gym_Text_ReceivedDynamoBadge: @ 820E77F
.string "{PLAYER} received the DYNAMO BADGE\n"
.string "from WATTSON.$"
-MauvilleCity_Gym_Text_20E7AA: @ 820E7AA
+MauvilleCity_Gym_Text_ExplainDynamoBadgeTakeThis: @ 820E7AA
.string "With the DYNAMO BADGE, POKéMON can\n"
.string "use ROCK SMASH out of battle.\p"
.string "And, it will make your POKéMON a little\n"
@@ -372,33 +372,33 @@ MauvilleCity_Gym_Text_20E7AA: @ 820E7AA
.string "Hmm…\n"
.string "You should take this, too!$"
-MauvilleCity_Gym_Text_20E844: @ 820E844
+MauvilleCity_Gym_Text_ExplainShockWave: @ 820E844
.string "That TM34 there contains SHOCK WAVE.\p"
.string "It's a trustworthy move that never\n"
.string "misses! You can count on it!\p"
.string "… … … … … …$"
-MauvilleCity_Gym_Text_20E8B5: @ 820E8B5
+MauvilleCity_Gym_Text_RegisteredWattson: @ 820E8B5
.string "Registered GYM LEADER WATTSON\n"
.string "in the POKéNAV.$"
-MauvilleCity_Gym_Text_20E8E3: @ 820E8E3
+MauvilleCity_Gym_Text_WattsonPostBattle: @ 820E8E3
.string "I swell with optimism, seeing a promising\n"
.string "young TRAINER like you!$"
-MauvilleCity_Gym_Text_20E925: @ 820E925
+MauvilleCity_Gym_Text_WattsonGoForthAndEndeavor: @ 820E925
.string "Wahahahah!\n"
.string "Go forth and endeavor, youngster!$"
-MauvilleCity_Gym_Text_20E952: @ 820E952
+MauvilleCity_Gym_Text_GymStatue: @ 820E952
.string "MAUVILLE CITY POKéMON GYM$"
-MauvilleCity_Gym_Text_20E96C: @ 820E96C
+MauvilleCity_Gym_Text_GymStatueCertified: @ 820E96C
.string "MAUVILLE CITY POKéMON GYM\p"
.string "WATTSON'S CERTIFIED TRAINERS:\n"
.string "{PLAYER}$"
-MauvilleCity_Gym_Text_20E9A7: @ 820E9A7
+MauvilleCity_Gym_Text_WattsonPreRematch: @ 820E9A7
.string "WATTSON: Ah-ha! Here at last!\n"
.string "I know what you want.\l"
.string "You want to battle my POKéMON!\p"
@@ -406,7 +406,7 @@ MauvilleCity_Gym_Text_20E9A7: @ 820E9A7
.string "I'll make sparks fly from you!\n"
.string "Don't say I didn't warn you!$"
-MauvilleCity_Gym_Text_20EA42: @ 820EA42
+MauvilleCity_Gym_Text_WattsonRematchDefeat: @ 820EA42
.string "Oof…\n"
.string "Our batteries ran dry…$"
@@ -418,7 +418,7 @@ MauvilleCity_Gym_Text_20EA5E: @ 820EA5E
.string "So, come back again sometime,\n"
.string "won't you?$"
-MauvilleCity_Gym_Text_20EAFD: @ 820EAFD
+MauvilleCity_Gym_Text_WattsonRematchNeedTwoMons: @ 820EAFD
.string "WATTSON: Ah-ha! Here at last!\n"
.string "I know what you want.\l"
.string "You want to battle my POKéMON!\p"
diff --git a/data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc b/data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc
index 6343bd090..dd302167b 100644
--- a/data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
MauvilleCity_PokemonCenter_1F_MapScripts:: @ 8210E5B
map_script MAP_SCRIPT_ON_TRANSITION, MauvilleCity_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, MauvilleCity_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
MauvilleCity_PokemonCenter_1F_OnTransition: @ 8210E66
diff --git a/data/maps/MauvilleCity_PokemonCenter_2F/map.json b/data/maps/MauvilleCity_PokemonCenter_2F/map.json
index 4afcc3882..000f0cf64 100644
--- a/data/maps/MauvilleCity_PokemonCenter_2F/map.json
+++ b/data/maps/MauvilleCity_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MauvilleCity_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MauvilleCity_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MauvilleCity_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MauvilleCity_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
},
{
@@ -76,7 +76,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MauvilleCity_PokemonCenter_2F_EventScript_21102F",
+ "script": "MauvilleCity_PokemonCenter_2F_EventScript_Youngster",
"flag": "0"
}
],
diff --git a/data/maps/MauvilleCity_PokemonCenter_2F/scripts.inc b/data/maps/MauvilleCity_PokemonCenter_2F/scripts.inc
index c0200ea1f..9626e4882 100644
--- a/data/maps/MauvilleCity_PokemonCenter_2F/scripts.inc
+++ b/data/maps/MauvilleCity_PokemonCenter_2F/scripts.inc
@@ -1,27 +1,28 @@
MauvilleCity_PokemonCenter_2F_MapScripts:: @ 8211008
- map_script MAP_SCRIPT_ON_FRAME_TABLE, MauvilleCity_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, MauvilleCity_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, MauvilleCity_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-MauvilleCity_PokemonCenter_2F_EventScript_21101D:: @ 821101D
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+MauvilleCity_PokemonCenter_2F_EventScript_Colosseum:: @ 821101D
+ call CableClub_EventScript_Colosseum
end
-MauvilleCity_PokemonCenter_2F_EventScript_211023:: @ 8211023
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+MauvilleCity_PokemonCenter_2F_EventScript_TradeCenter:: @ 8211023
+ call CableClub_EventScript_TradeCenter
end
-MauvilleCity_PokemonCenter_2F_EventScript_211029:: @ 8211029
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+MauvilleCity_PokemonCenter_2F_EventScript_RecordCorner:: @ 8211029
+ call CableClub_EventScript_RecordCorner
end
-MauvilleCity_PokemonCenter_2F_EventScript_21102F:: @ 821102F
- msgbox MauvilleCity_PokemonCenter_2F_Text_211038, MSGBOX_NPC
+MauvilleCity_PokemonCenter_2F_EventScript_Youngster:: @ 821102F
+ msgbox MauvilleCity_PokemonCenter_2F_Text_Youngster, MSGBOX_NPC
end
-MauvilleCity_PokemonCenter_2F_Text_211038: @ 8211038
+MauvilleCity_PokemonCenter_2F_Text_Youngster: @ 8211038
.string "Did you know that you can link battle\n"
.string "at the COLOSSEUM here?\p"
.string "They put up your record on the wall\n"
diff --git a/data/maps/MeteorFalls_1F_1R/scripts.inc b/data/maps/MeteorFalls_1F_1R/scripts.inc
index 8211034a6..dc81427bc 100644
--- a/data/maps/MeteorFalls_1F_1R/scripts.inc
+++ b/data/maps/MeteorFalls_1F_1R/scripts.inc
@@ -19,12 +19,12 @@ MeteorFalls_1F_1R_EventScript_22BD5F:: @ 822BD5F
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_FaceDown
waitmovement 0
delay 30
- applymovement 5, MeteorFalls_1F_1R_Movement_2725B4
+ applymovement 5, Common_Movement_WalkInPlaceDown
waitmovement 0
msgbox MeteorFalls_1F_1R_Text_22BF47, MSGBOX_DEFAULT
closemessage
- applymovement 5, Common_Movement_WalkInPlaceUp
- applymovement 6, Common_Movement_WalkInPlaceUp
+ applymovement 5, Common_Movement_WalkInPlaceFastestUp
+ applymovement 6, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
playse SE_PIN
applymovement 5, Common_Movement_ExclamationMark
@@ -37,9 +37,9 @@ MeteorFalls_1F_1R_EventScript_22BD5F:: @ 822BD5F
waitmovement 0
msgbox MeteorFalls_1F_1R_Text_22BFE4, MSGBOX_DEFAULT
closemessage
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
- applymovement 5, Common_Movement_WalkInPlaceLeft
- applymovement 6, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
+ applymovement 5, Common_Movement_WalkInPlaceFastestLeft
+ applymovement 6, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
addobject 7
addobject 8
@@ -49,8 +49,8 @@ MeteorFalls_1F_1R_EventScript_22BD5F:: @ 822BD5F
applymovement 8, MeteorFalls_1F_1R_Movement_22BEE0
applymovement 9, MeteorFalls_1F_1R_Movement_22BEE8
waitmovement 0
- applymovement 5, Common_Movement_WalkInPlaceLeft
- applymovement 6, Common_Movement_WalkInPlaceLeft
+ applymovement 5, Common_Movement_WalkInPlaceFastestLeft
+ applymovement 6, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox MeteorFalls_1F_1R_Text_22C04E, MSGBOX_DEFAULT
closemessage
@@ -68,10 +68,10 @@ MeteorFalls_1F_1R_EventScript_22BD5F:: @ 822BD5F
applymovement 9, MeteorFalls_1F_1R_Movement_22BF18
waitmovement 0
msgbox MeteorFalls_1F_1R_Text_22C268, MSGBOX_DEFAULT
- applymovement 7, Common_Movement_WalkInPlaceDown
+ applymovement 7, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox MeteorFalls_1F_1R_Text_22C292, MSGBOX_DEFAULT
- applymovement 7, Common_Movement_WalkInPlaceLeft
+ applymovement 7, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox MeteorFalls_1F_1R_Text_22C2FC, MSGBOX_DEFAULT
closemessage
diff --git a/data/maps/MirageTower_2F/scripts.inc b/data/maps/MirageTower_2F/scripts.inc
index 5b18092f7..888288633 100644
--- a/data/maps/MirageTower_2F/scripts.inc
+++ b/data/maps/MirageTower_2F/scripts.inc
@@ -1,10 +1,10 @@
MirageTower_2F_MapScripts:: @ 823AD11
- map_script MAP_SCRIPT_ON_FRAME_TABLE, MirageTower_2F_MapScript2_2A8327
- map_script MAP_SCRIPT_ON_TRANSITION, MirageTower_2F_MapScript1_2A8331
- map_script MAP_SCRIPT_ON_RESUME, MirageTower_2F_MapScript1_23AD21
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CaveHole_CheckFallDownHole
+ map_script MAP_SCRIPT_ON_TRANSITION, CaveHole_FixCrackedGround
+ map_script MAP_SCRIPT_ON_RESUME, MirageTower_2F_SetHoleWarp
.byte 0
-MirageTower_2F_MapScript1_23AD21: @ 823AD21
+MirageTower_2F_SetHoleWarp: @ 823AD21
setstepcallback STEP_CB_CRACKED_FLOOR
setholewarp MAP_MIRAGE_TOWER_1F, 255, 0, 0
end
diff --git a/data/maps/MirageTower_3F/scripts.inc b/data/maps/MirageTower_3F/scripts.inc
index 5f8a8ff5a..a54b2ccca 100644
--- a/data/maps/MirageTower_3F/scripts.inc
+++ b/data/maps/MirageTower_3F/scripts.inc
@@ -1,10 +1,10 @@
MirageTower_3F_MapScripts:: @ 823AD2C
- map_script MAP_SCRIPT_ON_FRAME_TABLE, MirageTower_3F_MapScript2_2A8327
- map_script MAP_SCRIPT_ON_TRANSITION, MirageTower_3F_MapScript1_2A8331
- map_script MAP_SCRIPT_ON_RESUME, MirageTower_3F_MapScript1_23AD3C
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CaveHole_CheckFallDownHole
+ map_script MAP_SCRIPT_ON_TRANSITION, CaveHole_FixCrackedGround
+ map_script MAP_SCRIPT_ON_RESUME, MirageTower_3F_SetHoleWarp
.byte 0
-MirageTower_3F_MapScript1_23AD3C: @ 823AD3C
+MirageTower_3F_SetHoleWarp: @ 823AD3C
setstepcallback STEP_CB_CRACKED_FLOOR
setholewarp MAP_MIRAGE_TOWER_2F, 255, 0, 0
end
diff --git a/data/maps/MossdeepCity/map.json b/data/maps/MossdeepCity/map.json
index db24a9b3b..580b4ca62 100644
--- a/data/maps/MossdeepCity/map.json
+++ b/data/maps/MossdeepCity/map.json
@@ -222,7 +222,7 @@
"movement_range_y": 3,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MossdeepCity_EventScript_2C81EE",
+ "script": "MossdeepCity_EventScript_DynamicPunchTutor",
"flag": "0"
},
{
diff --git a/data/maps/MossdeepCity/scripts.inc b/data/maps/MossdeepCity/scripts.inc
index 646b1d908..cbdec6b33 100644
--- a/data/maps/MossdeepCity/scripts.inc
+++ b/data/maps/MossdeepCity/scripts.inc
@@ -255,9 +255,9 @@ MossdeepCity_EventScript_1E4C85:: @ 81E4C85
faceplayer
msgbox MossdeepCity_Text_1E5453, MSGBOX_DEFAULT
closemessage
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq MossdeepCity_EventScript_1E4CB0
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq MossdeepCity_EventScript_1E4CC2
addvar VAR_SCOTT_STATE, 1
removeobject 16
diff --git a/data/maps/MossdeepCity_GameCorner_1F/map.json b/data/maps/MossdeepCity_GameCorner_1F/map.json
index 8ea28a474..3e64c45fd 100644
--- a/data/maps/MossdeepCity_GameCorner_1F/map.json
+++ b/data/maps/MossdeepCity_GameCorner_1F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MossdeepCity_GameCorner_1F_EventScript_224B54",
+ "script": "MossdeepCity_GameCorner_1F_EventScript_OldMan",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MossdeepCity_GameCorner_1F_EventScript_224B4B",
+ "script": "MossdeepCity_GameCorner_1F_EventScript_InfoMan",
"flag": "0"
}
],
@@ -72,7 +72,7 @@
"y": 0,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MossdeepCity_GameCorner_1F_EventScript_224B5D"
+ "script": "RS_MysteryEventsHouse_EventScript_Door"
},
{
"type": "sign",
@@ -80,7 +80,7 @@
"y": 1,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MossdeepCity_GameCorner_1F_EventScript_277E9D"
+ "script": "MossdeepCity_GameCorner_1F_EventScript_DodrioBerryPickingRecords"
},
{
"type": "sign",
@@ -88,7 +88,7 @@
"y": 1,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
- "script": "MossdeepCity_GameCorner_1F_EventScript_277E96"
+ "script": "MossdeepCity_GameCorner_1F_EventScript_PokemonJumpRecords"
}
]
-} \ No newline at end of file
+}
diff --git a/data/maps/MossdeepCity_GameCorner_1F/scripts.inc b/data/maps/MossdeepCity_GameCorner_1F/scripts.inc
index db9a1f854..79f1a54e2 100644
--- a/data/maps/MossdeepCity_GameCorner_1F/scripts.inc
+++ b/data/maps/MossdeepCity_GameCorner_1F/scripts.inc
@@ -1,80 +1,87 @@
MossdeepCity_GameCorner_1F_MapScripts:: @ 8224B27
map_script MAP_SCRIPT_ON_FRAME_TABLE, MossdeepCity_GameCorner_1F_MapScript2_224B41
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, MossdeepCity_GameCorner_1F_MapScript2_224B37
- map_script MAP_SCRIPT_ON_LOAD, MossdeepCity_GameCorner_1F_MapScript1_276BBE
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
.byte 0
MossdeepCity_GameCorner_1F_MapScript2_224B37: @ 8224B37
- map_script_2 VAR_CABLE_CLUB_STATE, 8, MossdeepCity_GameCorner_1F_EventScript_276BAE
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_MINIGAME, CableClub_EventScript_CheckTurnAttendant
.2byte 0
MossdeepCity_GameCorner_1F_MapScript2_224B41: @ 8224B41
- map_script_2 VAR_CABLE_CLUB_STATE, 8, MossdeepCity_GameCorner_1F_EventScript_276C9D
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_MINIGAME, CableClub_EventScript_ExitMinigameRoom
.2byte 0
-MossdeepCity_GameCorner_1F_EventScript_224B4B:: @ 8224B4B
+@ Script is redundant, the label in the goto also does lock and faceplayer
+MossdeepCity_GameCorner_1F_EventScript_InfoMan:: @ 8224B4B
lock
faceplayer
- goto MossdeepCity_GameCorner_1F_EventScript_277C34
+ goto MossdeepCity_GameCorner_1F_EventScript_InfoMan2
release
end
-MossdeepCity_GameCorner_1F_EventScript_224B54:: @ 8224B54
+@ Script is redundant, the label in the goto also does lock and faceplayer
+MossdeepCity_GameCorner_1F_EventScript_OldMan:: @ 8224B54
lock
faceplayer
- goto MossdeepCity_GameCorner_1F_EventScript_277C91
+ goto MossdeepCity_GameCorner_1F_EventScript_OldMan2
release
end
-MossdeepCity_GameCorner_1F_EventScript_224B5D:: @ 8224B5D
- msgbox MossdeepCity_GameCorner_1F_Text_224BFD, MSGBOX_SIGN
+
+@ Everything below is leftover from RS
+@ The house that was here in RS was moved to Sootopolis and replaced by the Game Corner
+@ The text below is unused and duplicated in its replacement in Sootopolis City
+@ And the BG Door event was moved inaccessibly into a wall
+
+RS_MysteryEventsHouse_EventScript_Door:: @ 8224B5D
+ msgbox RS_MysteryEventsHouse_Text_DoorIsLocked, MSGBOX_SIGN
end
-MossdeepCity_GameCorner_1F_Text_224B66: @ 8224B66
+RS_MysteryEventsHouse_Text_OldManGreeting: @ 8224B66
.string "When I was young, I traveled the world\n"
.string "as a POKéMON TRAINER.\p"
.string "Now that I've become an old buzzard,\n"
.string "my only amusement is watching young\l"
.string "TRAINERS battle.$"
-MossdeepCity_GameCorner_1F_Text_224BFD: @ 8224BFD
+RS_MysteryEventsHouse_Text_DoorIsLocked: @ 8224BFD
.string "The door appears to be locked.$"
-MossdeepCity_GameCorner_1F_Text_224C1C: @ 8224C1C
+RS_MysteryEventsHouse_Text_ChallengeVisitingTrainer: @ 8224C1C
.string "A TRAINER named {STR_VAR_1} is\n"
.string "visiting my home.\p"
.string "Would you like to challenge\n"
.string "{STR_VAR_1}?$"
-MossdeepCity_GameCorner_1F_Text_224C64: @ 8224C64
+RS_MysteryEventsHouse_Text_YouWontBattle: @ 8224C64
.string "You won't battle? I'm disappointed\n"
.string "that I can't see you battle…$"
-MossdeepCity_GameCorner_1F_Text_224CA4: @ 8224CA4
+RS_MysteryEventsHouse_Text_KeepItToA3On3: @ 8224CA4
.string "Oh, good, good!\p"
.string "But my house isn't all that sturdy.\p"
.string "Could I ask you to keep it down to\n"
.string "a 3-on-3 match?$"
-MossdeepCity_GameCorner_1F_Text_224D0B: @ 8224D0B
+RS_MysteryEventsHouse_Text_SaveYourProgress: @ 8224D0B
.string "Before you two battle, you should\n"
.string "save your progress.$"
-MossdeepCity_GameCorner_1F_Text_224D41: @ 8224D41
+RS_MysteryEventsHouse_Text_HopeToSeeAGoodMatch: @ 8224D41
.string "I hope to see a good match!$"
-MossdeepCity_GameCorner_1F_Text_224D5D: @ 8224D5D
+RS_MysteryEventsHouse_Text_BattleTie: @ 8224D5D
.string "So, it became a standoff.\p"
.string "It was a brilliant match in which\n"
.string "neither side conceded a step!$"
-MossdeepCity_GameCorner_1F_Text_224DB7: @ 8224DB7
+RS_MysteryEventsHouse_Text_BattleWon: @ 8224DB7
.string "That was superlative!\p"
.string "Why, it was like seeing myself in\n"
.string "my youth again!$"
-MossdeepCity_GameCorner_1F_Text_224DFF: @ 8224DFF
+RS_MysteryEventsHouse_Text_BattleLost: @ 8224DFF
.string "Ah, too bad for you!\p"
.string "But it was a good match.\n"
.string "I hope you can win next time.$"
-
diff --git a/data/maps/MossdeepCity_House2/scripts.inc b/data/maps/MossdeepCity_House2/scripts.inc
index 2151b2626..792ee7fd1 100644
--- a/data/maps/MossdeepCity_House2/scripts.inc
+++ b/data/maps/MossdeepCity_House2/scripts.inc
@@ -19,9 +19,9 @@ MossdeepCity_House2_EventScript_2220F1:: @ 82220F1
closemessage
setflag FLAG_WINGULL_DELIVERED_MAIL
clearflag FLAG_HIDE_FORTREE_CITY_HOUSE_4_WINGULL
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq MossdeepCity_House2_EventScript_222124
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq MossdeepCity_House2_EventScript_22212F
removeobject 3
release
diff --git a/data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc b/data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc
index 6611238ab..02e8b33b4 100644
--- a/data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
MossdeepCity_PokemonCenter_1F_MapScripts:: @ 822223F
map_script MAP_SCRIPT_ON_TRANSITION, MossdeepCity_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, MossdeepCity_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
MossdeepCity_PokemonCenter_1F_OnTransition: @ 822224A
diff --git a/data/maps/MossdeepCity_PokemonCenter_2F/map.json b/data/maps/MossdeepCity_PokemonCenter_2F/map.json
index 88bf3caf2..aa8691ac8 100644
--- a/data/maps/MossdeepCity_PokemonCenter_2F/map.json
+++ b/data/maps/MossdeepCity_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MossdeepCity_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MossdeepCity_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MossdeepCity_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MossdeepCity_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
},
{
@@ -76,7 +76,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MossdeepCity_PokemonCenter_2F_EventScript_22235B",
+ "script": "MossdeepCity_PokemonCenter_2F_EventScript_Woman5",
"flag": "0"
}
],
diff --git a/data/maps/MossdeepCity_PokemonCenter_2F/scripts.inc b/data/maps/MossdeepCity_PokemonCenter_2F/scripts.inc
index 1c9c89fef..1d88c9ca2 100644
--- a/data/maps/MossdeepCity_PokemonCenter_2F/scripts.inc
+++ b/data/maps/MossdeepCity_PokemonCenter_2F/scripts.inc
@@ -1,27 +1,28 @@
MossdeepCity_PokemonCenter_2F_MapScripts:: @ 8222334
- map_script MAP_SCRIPT_ON_FRAME_TABLE, MossdeepCity_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, MossdeepCity_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, MossdeepCity_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-MossdeepCity_PokemonCenter_2F_EventScript_222349:: @ 8222349
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+MossdeepCity_PokemonCenter_2F_EventScript_Colosseum:: @ 8222349
+ call CableClub_EventScript_Colosseum
end
-MossdeepCity_PokemonCenter_2F_EventScript_22234F:: @ 822234F
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+MossdeepCity_PokemonCenter_2F_EventScript_TradeCenter:: @ 822234F
+ call CableClub_EventScript_TradeCenter
end
-MossdeepCity_PokemonCenter_2F_EventScript_222355:: @ 8222355
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+MossdeepCity_PokemonCenter_2F_EventScript_RecordCorner:: @ 8222355
+ call CableClub_EventScript_RecordCorner
end
-MossdeepCity_PokemonCenter_2F_EventScript_22235B:: @ 822235B
- msgbox MossdeepCity_PokemonCenter_2F_Text_222364, MSGBOX_NPC
+MossdeepCity_PokemonCenter_2F_EventScript_Woman5:: @ 822235B
+ msgbox MossdeepCity_PokemonCenter_2F_Text_Woman5, MSGBOX_NPC
end
-MossdeepCity_PokemonCenter_2F_Text_222364: @ 8222364
+MossdeepCity_PokemonCenter_2F_Text_Woman5: @ 8222364
.string "If I win a whole lot of link battles\n"
.string "and show everyone how good I am,\l"
.string "I might get a fan following!$"
diff --git a/data/maps/MossdeepCity_SpaceCenter_1F/scripts.inc b/data/maps/MossdeepCity_SpaceCenter_1F/scripts.inc
index 144113d72..1058761c5 100644
--- a/data/maps/MossdeepCity_SpaceCenter_1F/scripts.inc
+++ b/data/maps/MossdeepCity_SpaceCenter_1F/scripts.inc
@@ -82,7 +82,7 @@ MossdeepCity_SpaceCenter_1F_EventScript_223024:: @ 8223024
compare VAR_RESULT, 1
call_if_ge MossdeepCity_SpaceCenter_1F_EventScript_22305A
closemessage
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceRight
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
release
end
@@ -106,7 +106,7 @@ MossdeepCity_SpaceCenter_1F_EventScript_223063:: @ 8223063
MossdeepCity_SpaceCenter_1F_EventScript_22307A:: @ 822307A
msgbox MossdeepCity_SpaceCenter_1F_Text_2234B7, MSGBOX_DEFAULT
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceRight
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
release
end
@@ -139,14 +139,14 @@ MossdeepCity_SpaceCenter_1F_EventScript_2230DA:: @ 82230DA
goto_if_eq Common_EventScript_ShowBagIsFull
setflag FLAG_RECEIVED_SUN_STONE_MOSSDEEP
msgbox MossdeepCity_SpaceCenter_1F_Text_223664, MSGBOX_DEFAULT
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceRight
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
release
end
MossdeepCity_SpaceCenter_1F_EventScript_223119:: @ 8223119
msgbox MossdeepCity_SpaceCenter_1F_Text_223664, MSGBOX_DEFAULT
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceRight
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
release
end
@@ -238,8 +238,8 @@ MossdeepCity_SpaceCenter_1F_EventScript_22321F:: @ 822321F
setflag FLAG_DEFEATED_GRUNT_SPACE_CENTER_1F
copyobjectxytoperm 9
switch VAR_FACING
- case 3, MossdeepCity_SpaceCenter_1F_EventScript_223278
- case 3, MossdeepCity_SpaceCenter_1F_EventScript_223289
+ case DIR_WEST, MossdeepCity_SpaceCenter_1F_EventScript_223278
+ case DIR_WEST, MossdeepCity_SpaceCenter_1F_EventScript_223289
applymovement 9, MossdeepCity_SpaceCenter_1F_Movement_2232A2
waitmovement 0
setvar VAR_MOSSDEEP_SPACE_CENTER_STATE_1, 2
diff --git a/data/maps/MossdeepCity_SpaceCenter_2F/scripts.inc b/data/maps/MossdeepCity_SpaceCenter_2F/scripts.inc
index 903dc8136..32c34ed23 100644
--- a/data/maps/MossdeepCity_SpaceCenter_2F/scripts.inc
+++ b/data/maps/MossdeepCity_SpaceCenter_2F/scripts.inc
@@ -57,13 +57,13 @@ MossdeepCity_SpaceCenter_2F_EventScript_223E09:: @ 8223E09
trainerbattle_no_intro TRAINER_GRUNT_34, MossdeepCity_SpaceCenter_2F_Text_224461
applymovement 6, MossdeepCity_SpaceCenter_2F_Movement_223E85
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox MossdeepCity_SpaceCenter_2F_Text_22446E, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_GRUNT_35, MossdeepCity_SpaceCenter_2F_Text_224499
applymovement 5, MossdeepCity_SpaceCenter_2F_Movement_223E81
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox MossdeepCity_SpaceCenter_2F_Text_2244AB, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_GRUNT_36, MossdeepCity_SpaceCenter_2F_Text_2244F1
@@ -194,7 +194,7 @@ MossdeepCity_SpaceCenter_2F_EventScript_223F7A:: @ 8223F7A
delay 30
playse SE_KOUKA_L
switch VAR_FACING
- case 1, MossdeepCity_SpaceCenter_2F_EventScript_223FBA
+ case DIR_SOUTH, MossdeepCity_SpaceCenter_2F_EventScript_223FBA
applymovement 4, MossdeepCity_SpaceCenter_2F_Movement_223FC6
waitmovement 0
releaseall
@@ -238,13 +238,13 @@ MossdeepCity_SpaceCenter_2F_EventScript_223FDA:: @ 8223FDA
goto_if_eq MossdeepCity_SpaceCenter_2F_EventScript_22400C
msgbox MossdeepCity_SpaceCenter_2F_Text_224854, MSGBOX_DEFAULT
closemessage
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceDown
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
releaseall
end
MossdeepCity_SpaceCenter_2F_EventScript_22400C:: @ 822400C
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceDown
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
special SavePlayerParty
fadescreen 1
@@ -270,19 +270,19 @@ MossdeepCity_SpaceCenter_2F_EventScript_224032:: @ 8224032
switch VAR_RESULT
case 1, MossdeepCity_SpaceCenter_2F_EventScript_224071
fadescreen 1
- special sp0C8_whiteout_maybe
+ special SetCB2WhiteOut
waitstate
MossdeepCity_SpaceCenter_2F_EventScript_224071:: @ 8224071
msgbox MossdeepCity_SpaceCenter_2F_Text_2248C2, MSGBOX_DEFAULT
closemessage
delay 20
- applymovement 9, Common_Movement_WalkInPlaceLeft
- applymovement 8, Common_Movement_WalkInPlaceDown
+ applymovement 9, Common_Movement_WalkInPlaceFastestLeft
+ applymovement 8, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 60
- applymovement 9, Common_Movement_WalkInPlaceUp
- applymovement 8, Common_Movement_WalkInPlaceRight
+ applymovement 9, Common_Movement_WalkInPlaceFastestUp
+ applymovement 8, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
delay 20
msgbox MossdeepCity_SpaceCenter_2F_Text_2249DC, MSGBOX_DEFAULT
@@ -326,8 +326,8 @@ MossdeepCity_SpaceCenter_2F_EventScript_224071:: @ 8224071
MossdeepCity_SpaceCenter_2F_EventScript_224131:: @ 8224131
switch VAR_FACING
- case 1, MossdeepCity_SpaceCenter_2F_EventScript_22414D
- case 3, MossdeepCity_SpaceCenter_2F_EventScript_224152
+ case DIR_SOUTH, MossdeepCity_SpaceCenter_2F_EventScript_22414D
+ case DIR_WEST, MossdeepCity_SpaceCenter_2F_EventScript_224152
return
MossdeepCity_SpaceCenter_2F_EventScript_22414D:: @ 822414D
diff --git a/data/maps/MossdeepCity_StevensHouse/scripts.inc b/data/maps/MossdeepCity_StevensHouse/scripts.inc
index 677f1d382..33b30e1d0 100644
--- a/data/maps/MossdeepCity_StevensHouse/scripts.inc
+++ b/data/maps/MossdeepCity_StevensHouse/scripts.inc
@@ -28,7 +28,7 @@ MossdeepCity_StevensHouse_MapScript2_2227C0: @ 82227C0
MossdeepCity_StevensHouse_EventScript_2227CA:: @ 82227CA
lockall
- applymovement 1, Common_Movement_WalkInPlaceLeft
+ applymovement 1, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
playse SE_PIN
applymovement 1, Common_Movement_ExclamationMark
diff --git a/data/maps/MtChimney/scripts.inc b/data/maps/MtChimney/scripts.inc
index 8d28ca715..11e9b5c9f 100644
--- a/data/maps/MtChimney/scripts.inc
+++ b/data/maps/MtChimney/scripts.inc
@@ -56,17 +56,17 @@ MtChimney_EventScript_22EE0B:: @ 822EE0B
fadescreen 0
setobjectxyperm 1, 10, 12
addobject 1
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq MtChimney_EventScript_22EEC7
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq MtChimney_EventScript_22EED2
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox MtChimney_Text_22FC3D, MSGBOX_DEFAULT
closemessage
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq MtChimney_EventScript_22EEDD
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq MtChimney_EventScript_22EEE8
removeobject 1
setflag FLAG_HIDE_MT_CHIMNEY_TEAM_AQUA
diff --git a/data/maps/MtPyre_2F/scripts.inc b/data/maps/MtPyre_2F/scripts.inc
index e402cb8fa..be98ac8e7 100644
--- a/data/maps/MtPyre_2F/scripts.inc
+++ b/data/maps/MtPyre_2F/scripts.inc
@@ -1,10 +1,10 @@
MtPyre_2F_MapScripts:: @ 82310FB
- map_script MAP_SCRIPT_ON_FRAME_TABLE, MtPyre_2F_MapScript2_2A8327
- map_script MAP_SCRIPT_ON_TRANSITION, MtPyre_2F_MapScript1_2A8331
- map_script MAP_SCRIPT_ON_RESUME, MtPyre_2F_MapScript1_23110B
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CaveHole_CheckFallDownHole
+ map_script MAP_SCRIPT_ON_TRANSITION, CaveHole_FixCrackedGround
+ map_script MAP_SCRIPT_ON_RESUME, MtPyre_2F_SetHoleWarp
.byte 0
-MtPyre_2F_MapScript1_23110B: @ 823110B
+MtPyre_2F_SetHoleWarp: @ 823110B
setstepcallback STEP_CB_CRACKED_FLOOR
setholewarp MAP_MT_PYRE_1F, 255, 0, 0
end
diff --git a/data/maps/MtPyre_Summit/scripts.inc b/data/maps/MtPyre_Summit/scripts.inc
index eb61c4c2d..4049a1f29 100644
--- a/data/maps/MtPyre_Summit/scripts.inc
+++ b/data/maps/MtPyre_Summit/scripts.inc
@@ -34,7 +34,7 @@ MtPyre_Summit_EventScript_23203C:: @ 823203C
playbgm MUS_AQA_0, 0
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_FaceUp
waitmovement 0
- applymovement 2, Common_Movement_WalkInPlaceDown
+ applymovement 2, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 50
compare VAR_0x8008, 0
@@ -86,7 +86,7 @@ MtPyre_Summit_EventScript_2320EC:: @ 82320EC
MtPyre_Summit_EventScript_2320F7:: @ 82320F7
applymovement 3, MtPyre_Summit_Movement_23212C
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
@@ -98,7 +98,7 @@ MtPyre_Summit_EventScript_23210C:: @ 823210C
MtPyre_Summit_EventScript_232117:: @ 8232117
applymovement 3, MtPyre_Summit_Movement_232132
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
@@ -207,7 +207,7 @@ MtPyre_Summit_EventScript_232204:: @ 8232204
end
MtPyre_Summit_EventScript_232210:: @ 8232210
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
delay 60
compare VAR_0x8008, 0
@@ -292,7 +292,7 @@ MtPyre_Summit_EventScript_23235A:: @ 823235A
applymovement EVENT_OBJ_ID_PLAYER, MtPyre_Summit_Movement_2323EA
applymovement 8, MtPyre_Summit_Movement_2323ED
waitmovement 0
- applymovement 2, Common_Movement_WalkInPlaceRight
+ applymovement 2, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
@@ -300,7 +300,7 @@ MtPyre_Summit_EventScript_232376:: @ 8232376
applymovement EVENT_OBJ_ID_PLAYER, MtPyre_Summit_Movement_2323EA
applymovement 8, MtPyre_Summit_Movement_2323F3
waitmovement 0
- applymovement 2, Common_Movement_WalkInPlaceRight
+ applymovement 2, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
@@ -308,7 +308,7 @@ MtPyre_Summit_EventScript_232392:: @ 8232392
applymovement EVENT_OBJ_ID_PLAYER, MtPyre_Summit_Movement_2323EA
applymovement 8, MtPyre_Summit_Movement_2323F8
waitmovement 0
- applymovement 2, Common_Movement_WalkInPlaceRight
+ applymovement 2, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
diff --git a/data/maps/NavelRock_Bottom/scripts.inc b/data/maps/NavelRock_Bottom/scripts.inc
index 64b860fa7..a09b6ed13 100644
--- a/data/maps/NavelRock_Bottom/scripts.inc
+++ b/data/maps/NavelRock_Bottom/scripts.inc
@@ -23,7 +23,7 @@ NavelRock_Bottom_MapScript1_269284: @ 8269284
NavelRock_Bottom_EventScript_26928E:: @ 826928E
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject 1
return
@@ -61,11 +61,11 @@ NavelRock_Bottom_EventScript_2692A2:: @ 82692A2
waitstate
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq NavelRock_Bottom_EventScript_269336
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq NavelRock_Bottom_EventScript_269344
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq NavelRock_Bottom_EventScript_269344
setflag FLAG_CAUGHT_LUGIA
release
diff --git a/data/maps/NavelRock_Harbor/scripts.inc b/data/maps/NavelRock_Harbor/scripts.inc
index 873b4fd3b..6538b2b8e 100644
--- a/data/maps/NavelRock_Harbor/scripts.inc
+++ b/data/maps/NavelRock_Harbor/scripts.inc
@@ -9,7 +9,7 @@ NavelRock_Harbor_EventScript_2690BD:: @ 82690BD
goto_if_eq NavelRock_Harbor_EventScript_269102
msgbox EventTicket_Text_SailHome, MSGBOX_DEFAULT
closemessage
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceDown
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 30
hideobjectat 1, MAP_NAVEL_ROCK_HARBOR
diff --git a/data/maps/NavelRock_Top/scripts.inc b/data/maps/NavelRock_Top/scripts.inc
index a3179e8a6..6734ef5f0 100644
--- a/data/maps/NavelRock_Top/scripts.inc
+++ b/data/maps/NavelRock_Top/scripts.inc
@@ -26,7 +26,7 @@ NavelRock_Top_MapScript1_269151: @ 8269151
NavelRock_Top_EventScript_26915B:: @ 826915B
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject 1
return
@@ -66,11 +66,11 @@ NavelRock_Top_EventScript_26916F:: @ 826916F
clearflag FLAG_SYS_CTRL_OBJ_DELETE
setvar VAR_LAST_TALKED, 1
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq NavelRock_Top_EventScript_269217
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq NavelRock_Top_EventScript_269225
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq NavelRock_Top_EventScript_269225
setflag FLAG_CAUGHT_HO_OH
releaseall
diff --git a/data/maps/NewMauville_Entrance/scripts.inc b/data/maps/NewMauville_Entrance/scripts.inc
index 1fadc7b7d..9b31454fd 100644
--- a/data/maps/NewMauville_Entrance/scripts.inc
+++ b/data/maps/NewMauville_Entrance/scripts.inc
@@ -23,7 +23,7 @@ NewMauville_Entrance_OnTransition: @ 82372FB
NewMauville_Entrance_EventScript_2372FF:: @ 82372FF
lockall
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox NewMauville_Entrance_Text_237382, MSGBOX_DEFAULT
checkitem ITEM_BASEMENT_KEY, 1
diff --git a/data/maps/NewMauville_Inside/scripts.inc b/data/maps/NewMauville_Inside/scripts.inc
index 427b0ed72..be4e846eb 100644
--- a/data/maps/NewMauville_Inside/scripts.inc
+++ b/data/maps/NewMauville_Inside/scripts.inc
@@ -14,7 +14,7 @@ NewMauville_Inside_MapScript1_2373E7: @ 82373E7
NewMauville_Inside_EventScript_237407:: @ 8237407
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject VAR_LAST_TALKED
return
@@ -190,11 +190,11 @@ NewMauville_Inside_EventScript_2377AF:: @ 82377AF
dowildbattle
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq NewMauville_Inside_EventScript_2377F3
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq NewMauville_Inside_EventScript_2377F3
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq NewMauville_Inside_EventScript_2377F3
setflag FLAG_DEFEATED_VOLTORB_1_NEW_MAUVILLE
release
@@ -217,11 +217,11 @@ NewMauville_Inside_EventScript_2377FC:: @ 82377FC
dowildbattle
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq NewMauville_Inside_EventScript_237840
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq NewMauville_Inside_EventScript_237840
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq NewMauville_Inside_EventScript_237840
setflag FLAG_DEFEATED_VOLTORB_2_NEW_MAUVILLE
release
@@ -244,11 +244,11 @@ NewMauville_Inside_EventScript_237849:: @ 8237849
dowildbattle
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq NewMauville_Inside_EventScript_23788D
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq NewMauville_Inside_EventScript_23788D
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq NewMauville_Inside_EventScript_23788D
setflag FLAG_DEFEATED_VOLTORB_3_NEW_MAUVILLE
release
diff --git a/data/maps/OldaleTown/scripts.inc b/data/maps/OldaleTown/scripts.inc
index 655081dc4..8e3950cae 100644
--- a/data/maps/OldaleTown/scripts.inc
+++ b/data/maps/OldaleTown/scripts.inc
@@ -42,9 +42,9 @@ OldaleTown_EventScript_1E8EFC:: @ 81E8EFC
msgbox OldaleTown_Text_1E91C0, MSGBOX_DEFAULT
closemessage
switch VAR_FACING
- case 1, OldaleTown_EventScript_1E8F47
- case 2, OldaleTown_EventScript_1E8F5E
- case 4, OldaleTown_EventScript_1E8F75
+ case DIR_SOUTH, OldaleTown_EventScript_1E8F47
+ case DIR_NORTH, OldaleTown_EventScript_1E8F5E
+ case DIR_EAST, OldaleTown_EventScript_1E8F75
end
OldaleTown_EventScript_1E8F47:: @ 81E8F47
@@ -227,7 +227,7 @@ OldaleTown_EventScript_1E9086:: @ 81E9086
lockall
applymovement 4, OldaleTown_Movement_1E9170
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
setvar VAR_0x8009, 1
goto OldaleTown_EventScript_1E90E6
@@ -237,7 +237,7 @@ OldaleTown_EventScript_1E90A6:: @ 81E90A6
lockall
applymovement 4, OldaleTown_Movement_1E9173
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
setvar VAR_0x8009, 1
goto OldaleTown_EventScript_1E90E6
@@ -247,7 +247,7 @@ OldaleTown_EventScript_1E90C6:: @ 81E90C6
lockall
applymovement 4, OldaleTown_Movement_1E9175
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
setvar VAR_0x8009, 1
goto OldaleTown_EventScript_1E90E6
@@ -286,7 +286,7 @@ OldaleTown_EventScript_1E911A:: @ 81E911A
end
OldaleTown_EventScript_1E9148:: @ 81E9148
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
goto_if_ne OldaleTown_EventScript_1E915E
applymovement 4, OldaleTown_Movement_1E9177
waitmovement 0
diff --git a/data/maps/OldaleTown_PokemonCenter_1F/scripts.inc b/data/maps/OldaleTown_PokemonCenter_1F/scripts.inc
index 87c8693a7..9df202d09 100644
--- a/data/maps/OldaleTown_PokemonCenter_1F/scripts.inc
+++ b/data/maps/OldaleTown_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
OldaleTown_PokemonCenter_1F_MapScripts:: @ 81FC006
map_script MAP_SCRIPT_ON_TRANSITION, OldaleTown_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, OldaleTown_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
OldaleTown_PokemonCenter_1F_OnTransition: @ 81FC011
diff --git a/data/maps/OldaleTown_PokemonCenter_2F/map.json b/data/maps/OldaleTown_PokemonCenter_2F/map.json
index cddd0a5a3..c3e41775d 100644
--- a/data/maps/OldaleTown_PokemonCenter_2F/map.json
+++ b/data/maps/OldaleTown_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "OldaleTown_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "OldaleTown_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "OldaleTown_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "OldaleTown_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/OldaleTown_PokemonCenter_2F/scripts.inc b/data/maps/OldaleTown_PokemonCenter_2F/scripts.inc
index aead0bd65..125805f50 100644
--- a/data/maps/OldaleTown_PokemonCenter_2F/scripts.inc
+++ b/data/maps/OldaleTown_PokemonCenter_2F/scripts.inc
@@ -1,19 +1,20 @@
OldaleTown_PokemonCenter_2F_MapScripts:: @ 81FC218
- map_script MAP_SCRIPT_ON_FRAME_TABLE, OldaleTown_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, OldaleTown_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, OldaleTown_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-OldaleTown_PokemonCenter_2F_EventScript_1FC22D:: @ 81FC22D
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+OldaleTown_PokemonCenter_2F_EventScript_Colosseum:: @ 81FC22D
+ call CableClub_EventScript_Colosseum
end
-OldaleTown_PokemonCenter_2F_EventScript_1FC233:: @ 81FC233
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+OldaleTown_PokemonCenter_2F_EventScript_TradeCenter:: @ 81FC233
+ call CableClub_EventScript_TradeCenter
end
-OldaleTown_PokemonCenter_2F_EventScript_1FC239:: @ 81FC239
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+OldaleTown_PokemonCenter_2F_EventScript_RecordCorner:: @ 81FC239
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/PacifidlogTown_House3/scripts.inc b/data/maps/PacifidlogTown_House3/scripts.inc
index 28f187da9..9633ddc8b 100644
--- a/data/maps/PacifidlogTown_House3/scripts.inc
+++ b/data/maps/PacifidlogTown_House3/scripts.inc
@@ -5,7 +5,7 @@ PacifidlogTown_House3_EventScript_203C11:: @ 8203C11
lock
faceplayer
goto_if_set FLAG_PACIFIDLOG_NPC_TRADE_COMPLETED, PacifidlogTown_House3_EventScript_203CAB
- setvar VAR_0x8008, 2
+ setvar VAR_0x8008, INGAME_TRADE_HORSEA
copyvar VAR_0x8004, VAR_0x8008
specialvar VAR_RESULT, GetInGameTradeSpeciesInfo
copyvar VAR_0x8009, VAR_RESULT
diff --git a/data/maps/PacifidlogTown_PokemonCenter_1F/map.json b/data/maps/PacifidlogTown_PokemonCenter_1F/map.json
index 690243277..83fdd1f79 100644
--- a/data/maps/PacifidlogTown_PokemonCenter_1F/map.json
+++ b/data/maps/PacifidlogTown_PokemonCenter_1F/map.json
@@ -76,7 +76,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "PacifidlogTown_PokemonCenter_1F_EventScript_2C82BE",
+ "script": "PacifidlogTown_PokemonCenter_1F_EventScript_ExplosionTutor",
"flag": "0"
}
],
diff --git a/data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc b/data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc
index 1a30d620b..e51f6e89f 100644
--- a/data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc
+++ b/data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
PacifidlogTown_PokemonCenter_1F_MapScripts:: @ 82034A7
map_script MAP_SCRIPT_ON_TRANSITION, PacifidlogTown_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, PacifidlogTown_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
PacifidlogTown_PokemonCenter_1F_OnTransition: @ 82034B2
diff --git a/data/maps/PacifidlogTown_PokemonCenter_2F/map.json b/data/maps/PacifidlogTown_PokemonCenter_2F/map.json
index c5f7c9907..25d8abd04 100644
--- a/data/maps/PacifidlogTown_PokemonCenter_2F/map.json
+++ b/data/maps/PacifidlogTown_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "PacifidlogTown_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "PacifidlogTown_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "PacifidlogTown_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "PacifidlogTown_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/PacifidlogTown_PokemonCenter_2F/scripts.inc b/data/maps/PacifidlogTown_PokemonCenter_2F/scripts.inc
index fcb4f1ab4..576c1679c 100644
--- a/data/maps/PacifidlogTown_PokemonCenter_2F/scripts.inc
+++ b/data/maps/PacifidlogTown_PokemonCenter_2F/scripts.inc
@@ -1,19 +1,20 @@
PacifidlogTown_PokemonCenter_2F_MapScripts:: @ 8203635
- map_script MAP_SCRIPT_ON_FRAME_TABLE, PacifidlogTown_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, PacifidlogTown_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, PacifidlogTown_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-PacifidlogTown_PokemonCenter_2F_EventScript_20364A:: @ 820364A
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+PacifidlogTown_PokemonCenter_2F_EventScript_Colosseum:: @ 820364A
+ call CableClub_EventScript_Colosseum
end
-PacifidlogTown_PokemonCenter_2F_EventScript_203650:: @ 8203650
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+PacifidlogTown_PokemonCenter_2F_EventScript_TradeCenter:: @ 8203650
+ call CableClub_EventScript_TradeCenter
end
-PacifidlogTown_PokemonCenter_2F_EventScript_203656:: @ 8203656
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+PacifidlogTown_PokemonCenter_2F_EventScript_RecordCorner:: @ 8203656
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/PetalburgCity/scripts.inc b/data/maps/PetalburgCity/scripts.inc
index c9fabf5a2..d16430069 100644
--- a/data/maps/PetalburgCity/scripts.inc
+++ b/data/maps/PetalburgCity/scripts.inc
@@ -44,7 +44,7 @@ PetalburgCity_EventScript_1DC32E:: @ 81DC32E
special StartWallyTutorialBattle
waitstate
msgbox PetalburgCity_Text_1EC271, MSGBOX_DEFAULT
- applymovement 2, Common_Movement_WalkInPlaceLeft, MAP_PETALBURG_CITY
+ applymovement 2, Common_Movement_WalkInPlaceFastestLeft, MAP_PETALBURG_CITY
waitmovement 2, MAP_PETALBURG_CITY
msgbox PetalburgCity_Text_1EC297, MSGBOX_DEFAULT
closemessage
@@ -290,8 +290,8 @@ PetalburgCity_EventScript_1DC4CA:: @ 81DC4CA
compare VAR_0x8008, 3
call_if_eq PetalburgCity_EventScript_1DC5FF
msgbox PetalburgCity_Text_1DC91B, MSGBOX_DEFAULT
- applymovement 8, Common_Movement_WalkInPlaceRight
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement 8, Common_Movement_WalkInPlaceFastestRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox PetalburgCity_Text_1DC93E, MSGBOX_DEFAULT
closemessage
@@ -304,7 +304,7 @@ PetalburgCity_EventScript_1DC4CA:: @ 81DC4CA
PetalburgCity_EventScript_1DC57F:: @ 81DC57F
applymovement 8, PetalburgCity_Movement_1DC615
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
@@ -316,14 +316,14 @@ PetalburgCity_EventScript_1DC594:: @ 81DC594
PetalburgCity_EventScript_1DC59F:: @ 81DC59F
applymovement 8, PetalburgCity_Movement_1DC61D
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
PetalburgCity_EventScript_1DC5B4:: @ 81DC5B4
applymovement 8, PetalburgCity_Movement_1DC622
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
@@ -549,17 +549,17 @@ PetalburgCity_EventScript_1DC6E9:: @ 81DC6E9
waitmovement 0
applymovement 9, PetalburgCity_Movement_1DC7DB
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
setvar VAR_SCOTT_STATE, 1
msgbox PetalburgCity_Text_1DCB31, MSGBOX_DEFAULT
closemessage
- applymovement 9, Common_Movement_WalkInPlaceRight
+ applymovement 9, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
delay 30
msgbox PetalburgCity_Text_1DCB82, MSGBOX_DEFAULT
closemessage
- applymovement 9, Common_Movement_WalkInPlaceLeft
+ applymovement 9, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
delay 30
msgbox PetalburgCity_Text_1DCC09, MSGBOX_DEFAULT
diff --git a/data/maps/PetalburgCity_Gym/scripts.inc b/data/maps/PetalburgCity_Gym/scripts.inc
index 35abd19ba..f6a21b0b8 100644
--- a/data/maps/PetalburgCity_Gym/scripts.inc
+++ b/data/maps/PetalburgCity_Gym/scripts.inc
@@ -91,14 +91,14 @@ PetalburgCity_Gym_EventScript_ReturnFromWallyTutorial:: @ 82049A4
msgbox PetalburgCity_Gym_Text_DadSoDidItWorkOut, MSGBOX_DEFAULT
msgbox PetalburgCity_Gym_Text_WallyThankYouBye, MSGBOX_DEFAULT
closemessage
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
applymovement 10, PetalburgCity_Gym_Movement_WallyExitGym
waitmovement 0
playse SE_KAIDAN
removeobject 10
setflag FLAG_HIDE_PETALBURG_CITY_WALLY
delay 30
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox PetalburgCity_Gym_Text_DadGoCollectBadges, MSGBOX_DEFAULT
setvar VAR_PETALBURG_GYM_STATE, 2
@@ -229,7 +229,7 @@ PetalburgCity_Gym_EventScript_BeginWallyTutorial:: @ 8204AAC
end
PetalburgCity_Gym_EventScript_WallyArriveSouth:: @ 8204C31
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
applymovement 10, PetalburgCity_Gym_Movement_WallyArrive
waitmovement 0
return
@@ -237,20 +237,20 @@ PetalburgCity_Gym_EventScript_WallyArriveSouth:: @ 8204C31
PetalburgCity_Gym_EventScript_WallyArriveNorth:: @ 8204C43
applymovement 10, PetalburgCity_Gym_Movement_WallyArriveNorth
waitmovement 0
- applymovement 1, Common_Movement_WalkInPlaceRight
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
PetalburgCity_Gym_EventScript_WallyArriveWestEast:: @ 8204C5F
- applymovement 1, Common_Movement_WalkInPlaceDown
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
applymovement 10, PetalburgCity_Gym_Movement_WallyArrive
waitmovement 0
return
PetalburgCity_Gym_EventScript_ExitGymWithWallySouth:: @ 8204C78
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
applymovement 10, PetalburgCity_Gym_Movement_WallyExitSouthWest
applymovement EVENT_OBJ_ID_PLAYER, PetalburgCity_Gym_Movement_PlayerExitWithWallySouth
waitmovement 0
@@ -275,45 +275,45 @@ PetalburgCity_Gym_EventScript_ExitGymWithWallyEast:: @ 8204CB5
return
PetalburgCity_Gym_EventScript_NormanAddressPlayerSouth:: @ 8204CC7
- applymovement 1, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
PetalburgCity_Gym_EventScript_NormanAddressPlayerNorth:: @ 8204CD2
- applymovement 1, Common_Movement_WalkInPlaceDown
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
PetalburgCity_Gym_EventScript_NormanAddressPlayerWest:: @ 8204CE4
- applymovement 1, Common_Movement_WalkInPlaceRight
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
PetalburgCity_Gym_EventScript_NormanAddressPlayerEast:: @ 8204CF6
- applymovement 1, Common_Movement_WalkInPlaceLeft
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement 1, Common_Movement_WalkInPlaceFastestLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
PetalburgCity_Gym_EventScript_NormanAddressWallySouth:: @ 8204D08
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
PetalburgCity_Gym_EventScript_NormanAddressWallyNorth:: @ 8204D13
- applymovement 1, Common_Movement_WalkInPlaceRight
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
PetalburgCity_Gym_EventScript_NormanAddressWallyWest:: @ 8204D1E
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
PetalburgCity_Gym_EventScript_NormanAddressWallyEast:: @ 8204D29
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
@@ -323,7 +323,7 @@ PetalburgCity_Gym_EventScript_WallyFacePlayer:: @ 8204D34
return
PetalburgCity_Gym_EventScript_WallyFaceDown:: @ 8204D3F
- applymovement 10, Common_Movement_WalkInPlaceDown
+ applymovement 10, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
@@ -352,7 +352,7 @@ PetalburgCity_Gym_EventScript_NormanFaceDoorSouth:: @ 8204D72
@ For all other NormanFaceDoorX, Norman is already facing the door from NormanAddressWallyX
PetalburgCity_Gym_EventScript_NormanFaceDoorNorth:: @ 8204D73
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
@@ -506,47 +506,47 @@ PetalburgCity_Gym_EventScript_WallysUncleArrives:: @ 8204F13
end
PetalburgCity_Gym_EventScript_WallysUncleFaceNormanNorth:: @ 8204FCC
- applymovement 11, Common_Movement_WalkInPlaceUp
+ applymovement 11, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
PetalburgCity_Gym_EventScript_WallysUncleFaceNormanEast:: @ 8204FD7
- applymovement 11, Common_Movement_WalkInPlaceRight
+ applymovement 11, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
PetalburgCity_Gym_EventScript_WallysUncleFaceNormanWest:: @ 8204FE2
- applymovement 11, Common_Movement_WalkInPlaceLeft
+ applymovement 11, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
PetalburgCity_Gym_EventScript_WallysUncleApproachPlayerNorth:: @ 8204FED
applymovement 11, PetalburgCity_Gym_Movement_WallysUncleApproachPlayerNorth
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
- applymovement 1, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
+ applymovement 1, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
PetalburgCity_Gym_EventScript_WallysUncleApproachPlayerEast:: @ 8205009
applymovement 11, PetalburgCity_Gym_Movement_WallysUncleApproachPlayerEast
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
PetalburgCity_Gym_EventScript_WallysUncleApproachPlayerWest:: @ 8205025
applymovement 11, PetalburgCity_Gym_Movement_WallysUncleApproachPlayerWest
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
PetalburgCity_Gym_EventScript_ExitGymWithWallysUncleNorth:: @ 8205041
applymovement 11, PetalburgCity_Gym_Movement_WallysUncleExitNorth
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
applymovement EVENT_OBJ_ID_PLAYER, PetalburgCity_Gym_Movement_PlayerExitWithWallysUncleNorth
waitmovement 0
return
diff --git a/data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc b/data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc
index 85a16914f..a5b069d94 100644
--- a/data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
PetalburgCity_PokemonCenter_1F_MapScripts:: @ 82079E8
map_script MAP_SCRIPT_ON_TRANSITION, PetalburgCity_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, PetalburgCity_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
PetalburgCity_PokemonCenter_1F_OnTransition: @ 82079F3
diff --git a/data/maps/PetalburgCity_PokemonCenter_2F/map.json b/data/maps/PetalburgCity_PokemonCenter_2F/map.json
index 279c5e44b..067d6f237 100644
--- a/data/maps/PetalburgCity_PokemonCenter_2F/map.json
+++ b/data/maps/PetalburgCity_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "PetalburgCity_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "PetalburgCity_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "PetalburgCity_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "PetalburgCity_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/PetalburgCity_PokemonCenter_2F/scripts.inc b/data/maps/PetalburgCity_PokemonCenter_2F/scripts.inc
index d2370c6b1..8485ae2c6 100644
--- a/data/maps/PetalburgCity_PokemonCenter_2F/scripts.inc
+++ b/data/maps/PetalburgCity_PokemonCenter_2F/scripts.inc
@@ -1,19 +1,20 @@
PetalburgCity_PokemonCenter_2F_MapScripts:: @ 8207D41
- map_script MAP_SCRIPT_ON_FRAME_TABLE, PetalburgCity_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, PetalburgCity_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, PetalburgCity_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-PetalburgCity_PokemonCenter_2F_EventScript_207D56:: @ 8207D56
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+PetalburgCity_PokemonCenter_2F_EventScript_Colosseum:: @ 8207D56
+ call CableClub_EventScript_Colosseum
end
-PetalburgCity_PokemonCenter_2F_EventScript_207D5C:: @ 8207D5C
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+PetalburgCity_PokemonCenter_2F_EventScript_TradeCenter:: @ 8207D5C
+ call CableClub_EventScript_TradeCenter
end
-PetalburgCity_PokemonCenter_2F_EventScript_207D62:: @ 8207D62
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+PetalburgCity_PokemonCenter_2F_EventScript_RecordCorner:: @ 8207D62
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/PetalburgWoods/scripts.inc b/data/maps/PetalburgWoods/scripts.inc
index da07716db..5a194c721 100644
--- a/data/maps/PetalburgWoods/scripts.inc
+++ b/data/maps/PetalburgWoods/scripts.inc
@@ -15,7 +15,7 @@ PetalburgWoods_EventScript_22DFD7:: @ 822DFD7
closemessage
applymovement 3, PetalburgWoods_Movement_22E1F6
waitmovement 0
- applymovement 4, Common_Movement_WalkInPlaceUp
+ applymovement 4, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox PetalburgWoods_Text_22E428, MSGBOX_DEFAULT
closemessage
@@ -41,7 +41,7 @@ PetalburgWoods_EventScript_22E079:: @ 822E079
call PetalburgWoods_EventScript_22E124
applymovement 4, PetalburgWoods_Movement_22E1D0
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox PetalburgWoods_Text_22E34F, MSGBOX_DEFAULT
closemessage
@@ -52,14 +52,14 @@ PetalburgWoods_EventScript_22E079:: @ 822E079
closemessage
applymovement 3, PetalburgWoods_Movement_22E205
waitmovement 0
- applymovement 4, Common_Movement_WalkInPlaceUp
+ applymovement 4, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox PetalburgWoods_Text_22E428, MSGBOX_DEFAULT
closemessage
applymovement 4, PetalburgWoods_Movement_22E1EA
waitmovement 0
msgbox PetalburgWoods_Text_22E457, MSGBOX_DEFAULT
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox PetalburgWoods_Text_22E4A5, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_GRUNT_8, PetalburgWoods_Text_22E542
@@ -85,7 +85,7 @@ PetalburgWoods_EventScript_22E138:: @ 822E138
applymovement 3, PetalburgWoods_Movement_22E1FD
waitmovement 0
removeobject 3
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox PetalburgWoods_Text_22E63D, MSGBOX_DEFAULT
giveitem_std ITEM_GREAT_BALL
diff --git a/data/maps/Route101/map.json b/data/maps/Route101/map.json
index 44d8b2137..7e8cfb959 100644
--- a/data/maps/Route101/map.json
+++ b/data/maps/Route101/map.json
@@ -87,7 +87,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "Route101_EventScript_272141",
+ "script": "ProfBirch_EventScript_RatePokedexOrRegister",
"flag": "FLAG_HIDE_ROUTE_101_BIRCH"
},
{
diff --git a/data/maps/Route101/scripts.inc b/data/maps/Route101/scripts.inc
index 73bfe570c..3b5b22b37 100644
--- a/data/maps/Route101/scripts.inc
+++ b/data/maps/Route101/scripts.inc
@@ -4,7 +4,7 @@ Route101_MapScripts:: @ 81EBCBA
.byte 0
Route101_OnTransition: @ 81EBCC5
- call Route101_EventScript_2720AD
+ call ProfBirch_EventScript_UpdateLocation
end
Route101_MapScript2_1EBCCB: @ 81EBCCB
@@ -30,7 +30,7 @@ Route101_EventScript_1EBCDE:: @ 81EBCDE
applymovement 4, Route101_Movement_1EBD96
applymovement 2, Route101_Movement_1EBDC8
waitmovement 0
- applymovement 2, Common_Movement_WalkInPlaceRight
+ applymovement 2, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
applymovement 4, Route101_Movement_1EBDBD
applymovement 2, Route101_Movement_1EBDEF
@@ -223,7 +223,7 @@ Route101_EventScript_1EBE16:: @ 81EBE16
fadescreen 1
removeobject 4
setobjectxy EVENT_OBJ_ID_PLAYER, 6, 13
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
special ChooseStarter
waitstate
diff --git a/data/maps/Route103/map.json b/data/maps/Route103/map.json
index bf207ec2f..8f5b9f2b3 100644
--- a/data/maps/Route103/map.json
+++ b/data/maps/Route103/map.json
@@ -165,7 +165,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "Route103_EventScript_272141",
+ "script": "ProfBirch_EventScript_RatePokedexOrRegister",
"flag": "FLAG_HIDE_ROUTE_103_BIRCH"
},
{
diff --git a/data/maps/Route103/scripts.inc b/data/maps/Route103/scripts.inc
index 84e7ad98b..9a185aa14 100644
--- a/data/maps/Route103/scripts.inc
+++ b/data/maps/Route103/scripts.inc
@@ -5,7 +5,7 @@ Route103_MapScripts:: @ 81EC38E
Route103_OnTransition: @ 81EC399
call Common_EventScript_SetupRivalGfxId
- call Route103_EventScript_2720AD
+ call ProfBirch_EventScript_UpdateLocation
end
Route103_MapScript1_1EC3A4: @ 81EC3A4
@@ -103,10 +103,10 @@ Route103_EventScript_1EC4FC:: @ 81EC4FC
Route103_EventScript_1EC50A:: @ 81EC50A
closemessage
switch VAR_FACING
- case 1, Route103_EventScript_1EC585
- case 2, Route103_EventScript_1EC53D
- case 3, Route103_EventScript_1EC561
- case 4, Route103_EventScript_1EC561
+ case DIR_SOUTH, Route103_EventScript_1EC585
+ case DIR_NORTH, Route103_EventScript_1EC53D
+ case DIR_WEST, Route103_EventScript_1EC561
+ case DIR_EAST, Route103_EventScript_1EC561
end
Route103_EventScript_1EC53D:: @ 81EC53D
diff --git a/data/maps/Route104/scripts.inc b/data/maps/Route104/scripts.inc
index 0eaf5d487..c943066f9 100644
--- a/data/maps/Route104/scripts.inc
+++ b/data/maps/Route104/scripts.inc
@@ -51,7 +51,7 @@ Route104_EventScript_1ECCB3:: @ 81ECCB3
setflag FLAG_HIDE_RUSBORO_CITY_RIVAL
setvar VAR_RUSTBORO_CITY_STATE, 8
setvar VAR_ROUTE104_STATE, 2
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
delay 10
addobject 34
diff --git a/data/maps/Route105/scripts.inc b/data/maps/Route105/scripts.inc
index c95511397..ff4b3dbe1 100644
--- a/data/maps/Route105/scripts.inc
+++ b/data/maps/Route105/scripts.inc
@@ -19,7 +19,7 @@ Route105_EventScript_1EE20B:: @ 81EE20B
Route105_OnTransition: @ 81EE21E
compare VAR_SHOULD_END_UNUSUAL_WEATHER, 1
- call_if_eq Route105_EventScript_273D13
+ call_if_eq UnusualWeather_EventScript_HideMapNamePopup
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_105_NORTH
call_if_eq UnusualWeather_StartKyogreWeather
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_105_SOUTH
diff --git a/data/maps/Route109/scripts.inc b/data/maps/Route109/scripts.inc
index a74c3223d..a4ac60a9c 100644
--- a/data/maps/Route109/scripts.inc
+++ b/data/maps/Route109/scripts.inc
@@ -9,9 +9,9 @@ Route109_EventScript_1EE760:: @ 81EE760
waitmovement 0
removeobject 2
switch VAR_FACING
- case 1, Route109_EventScript_1EE7A5
- case 3, Route109_EventScript_1EE7C5
- case 4, Route109_EventScript_1EE7B5
+ case DIR_SOUTH, Route109_EventScript_1EE7A5
+ case DIR_WEST, Route109_EventScript_1EE7C5
+ case DIR_EAST, Route109_EventScript_1EE7B5
end
Route109_EventScript_1EE7A5:: @ 81EE7A5
diff --git a/data/maps/Route110/scripts.inc b/data/maps/Route110/scripts.inc
index 140687c2e..cafd99a9c 100644
--- a/data/maps/Route110/scripts.inc
+++ b/data/maps/Route110/scripts.inc
@@ -307,7 +307,7 @@ Route110_EventScript_1EF64A:: @ 81EF64A
Route110_EventScript_1EF661:: @ 81EF661
lockall
- applymovement 21, Common_Movement_WalkInPlaceRight
+ applymovement 21, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
call Route110_EventScript_1EF673
releaseall
@@ -383,7 +383,7 @@ Route110_EventScript_1EF76E:: @ 81EF76E
call_if_eq Route110_EventScript_1EF7E1
compare VAR_RESULT, FEMALE
call_if_eq Route110_EventScript_1EF7E6
- applymovement 28, Common_Movement_WalkInPlaceDown
+ applymovement 28, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
applymovement 28, Common_Movement_ExclamationMark
waitmovement 0
@@ -631,13 +631,13 @@ Route110_EventScript_1EF9F7:: @ 81EF9F7
msgbox Route110_Text_1F0AB5, MSGBOX_DEFAULT
closemessage
delay 20
- applymovement 36, Common_Movement_WalkInPlaceLeft
+ applymovement 36, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
delay 10
- applymovement 36, Common_Movement_WalkInPlaceRight
+ applymovement 36, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
delay 20
- applymovement 36, Common_Movement_WalkInPlaceDown
+ applymovement 36, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 30
msgbox Route110_Text_1F0AFF, MSGBOX_DEFAULT
diff --git a/data/maps/Route110_TrickHouseEnd/scripts.inc b/data/maps/Route110_TrickHouseEnd/scripts.inc
index 048e64174..46c4c316e 100644
--- a/data/maps/Route110_TrickHouseEnd/scripts.inc
+++ b/data/maps/Route110_TrickHouseEnd/scripts.inc
@@ -150,13 +150,13 @@ Route110_TrickHouseEnd_EventScript_26AEEC:: @ 826AEEC
Route110_TrickHouseEnd_EventScript_26AF28:: @ 826AF28
msgbox Route110_TrickHouseEnd_Text_26B3AB, MSGBOX_DEFAULT
closemessage
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq Route110_TrickHouseEnd_EventScript_26B015
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq Route110_TrickHouseEnd_EventScript_26B020
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq Route110_TrickHouseEnd_EventScript_26B02B
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq Route110_TrickHouseEnd_EventScript_26B036
delay 30
msgbox Route110_TrickHouseEnd_Text_26B3FA, MSGBOX_DEFAULT
@@ -212,22 +212,22 @@ Route110_TrickHouseEnd_EventScript_26B002:: @ 826B002
return
Route110_TrickHouseEnd_EventScript_26B015:: @ 826B015
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
Route110_TrickHouseEnd_EventScript_26B020:: @ 826B020
- applymovement 1, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
Route110_TrickHouseEnd_EventScript_26B02B:: @ 826B02B
- applymovement 1, Common_Movement_WalkInPlaceLeft
+ applymovement 1, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
Route110_TrickHouseEnd_EventScript_26B036:: @ 826B036
- applymovement 1, Common_Movement_WalkInPlaceRight
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
@@ -241,7 +241,7 @@ Route110_TrickHouseEnd_EventScript_26B041:: @ 826B041
applymovement 1, Route110_TrickHouseEnd_Movement_26B08B
waitmovement 0
playse SE_W153
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox Route110_TrickHouseEnd_Text_26B8BD, MSGBOX_DEFAULT
closemessage
diff --git a/data/maps/Route110_TrickHouseEntrance/scripts.inc b/data/maps/Route110_TrickHouseEntrance/scripts.inc
index 0e729d333..173151c37 100644
--- a/data/maps/Route110_TrickHouseEntrance/scripts.inc
+++ b/data/maps/Route110_TrickHouseEntrance/scripts.inc
@@ -334,7 +334,7 @@ Route110_TrickHouseEntrance_EventScript_269E51:: @ 8269E51
applymovement 1, Common_Movement_Delay48
waitmovement 0
msgbox Route110_TrickHouseEntrance_Text_26A9AF, MSGBOX_DEFAULT
- applymovement 1, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
releaseall
end
@@ -432,7 +432,7 @@ Route110_TrickHouseEntrance_EventScript_269FF7:: @ 8269FF7
Route110_TrickHouseEntrance_EventScript_26A023:: @ 826A023
setvar VAR_TRICK_HOUSE_PRIZE_PICKUP, 0
setvar VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 3
- applymovement 1, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
releaseall
end
@@ -506,7 +506,7 @@ Route110_TrickHouseEntrance_EventScript_26A126:: @ 826A126
setmetatile 5, 1, METATILE_GenericBuilding_TrickHouse_Stairs_Down, 0
special DrawWholeMapView
delay 20
- applymovement EVENT_OBJ_ID_PLAYER, Route110_TrickHouseEntrance_Movement_2725C9
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkUp
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, Route110_TrickHouseEntrance_Movement_26A1A7
waitmovement 0
diff --git a/data/maps/Route111/scripts.inc b/data/maps/Route111/scripts.inc
index 88b2f1add..fceacdfcc 100644
--- a/data/maps/Route111/scripts.inc
+++ b/data/maps/Route111/scripts.inc
@@ -285,7 +285,7 @@ Route111_EventScript_1F0FC5:: @ 81F0FC5
Route111_EventScript_1F0FE7:: @ 81F0FE7
msgbox Route111_Text_1F1523, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_VICTOR, Route111_Text_1F1542
- applymovement 1, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
call Route111_EventScript_1F113C
msgbox Route111_Text_1F156F, MSGBOX_DEFAULT
@@ -303,7 +303,7 @@ Route111_EventScript_1F0FE7:: @ 81F0FE7
call Route111_EventScript_1F1143
msgbox Route111_Text_1F159D, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_VICTORIA, Route111_Text_1F1616
- applymovement 2, Common_Movement_WalkInPlaceUp
+ applymovement 2, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
call Route111_EventScript_1F113C
msgbox Route111_Text_1F1645, MSGBOX_DEFAULT
@@ -321,7 +321,7 @@ Route111_EventScript_1F0FE7:: @ 81F0FE7
call Route111_EventScript_1F1143
msgbox Route111_Text_1F167E, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_VIVI, Route111_Text_1F16C6
- applymovement 3, Common_Movement_WalkInPlaceUp
+ applymovement 3, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
call Route111_EventScript_1F113C
msgbox Route111_Text_1F16DC, MSGBOX_DEFAULT
@@ -341,7 +341,7 @@ Route111_EventScript_1F0FE7:: @ 81F0FE7
trainerbattle_no_intro TRAINER_VICKY, Route111_Text_1F1756
msgbox Route111_Text_1F1788, MSGBOX_DEFAULT
closemessage
- applymovement 4, Common_Movement_WalkInPlaceUp
+ applymovement 4, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
call Route111_EventScript_1F113C
applymovement 4, Route111_Movement_1F114A
diff --git a/data/maps/Route112/scripts.inc b/data/maps/Route112/scripts.inc
index 58109bd40..0659095f6 100644
--- a/data/maps/Route112/scripts.inc
+++ b/data/maps/Route112/scripts.inc
@@ -10,7 +10,7 @@ Route112_OnTransition: @ 81F1DAE
Route112_EventScript_1F1DB7:: @ 81F1DB7
lockall
delay 40
- applymovement 1, Common_Movement_WalkInPlaceRight
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
delay 20
msgbox Route112_Text_1F1F3F, MSGBOX_DEFAULT
@@ -18,7 +18,7 @@ Route112_EventScript_1F1DB7:: @ 81F1DB7
applymovement 1, Common_Movement_FaceOriginalDirection
waitmovement 0
delay 40
- applymovement 6, Common_Movement_WalkInPlaceLeft
+ applymovement 6, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
delay 20
msgbox Route112_Text_1F1F7A, MSGBOX_DEFAULT
@@ -26,7 +26,7 @@ Route112_EventScript_1F1DB7:: @ 81F1DB7
applymovement 6, Common_Movement_FaceOriginalDirection
waitmovement 0
delay 40
- applymovement 1, Common_Movement_WalkInPlaceRight
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
delay 20
msgbox Route112_Text_1F1FBA, MSGBOX_DEFAULT
@@ -34,7 +34,7 @@ Route112_EventScript_1F1DB7:: @ 81F1DB7
applymovement 1, Common_Movement_FaceOriginalDirection
waitmovement 0
delay 40
- applymovement 6, Common_Movement_WalkInPlaceLeft
+ applymovement 6, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
delay 20
msgbox Route112_Text_1F2003, MSGBOX_DEFAULT
diff --git a/data/maps/Route114/scripts.inc b/data/maps/Route114/scripts.inc
index faa79b861..3434d6753 100644
--- a/data/maps/Route114/scripts.inc
+++ b/data/maps/Route114/scripts.inc
@@ -6,7 +6,7 @@ Route114_MapScripts:: @ 81F252F
Route114_OnTransition: @ 81F253F
compare VAR_SHOULD_END_UNUSUAL_WEATHER, 1
- call_if_eq Route114_EventScript_273D13
+ call_if_eq UnusualWeather_EventScript_HideMapNamePopup
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_114_NORTH
call_if_eq UnusualWeather_StartGroudonWeather
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_114_SOUTH
diff --git a/data/maps/Route114_FossilManiacsTunnel/scripts.inc b/data/maps/Route114_FossilManiacsTunnel/scripts.inc
index 3de7350ac..8c5ec779d 100644
--- a/data/maps/Route114_FossilManiacsTunnel/scripts.inc
+++ b/data/maps/Route114_FossilManiacsTunnel/scripts.inc
@@ -23,8 +23,8 @@ Route114_FossilManiacsTunnel_EventScript_22AF53:: @ 822AF53
Route114_FossilManiacsTunnel_EventScript_22AF66:: @ 822AF66
lockall
- applymovement 1, Common_Movement_WalkInPlaceUp
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox Route114_FossilManiacsTunnel_Text_22B1F7, MSGBOX_DEFAULT
setvar VAR_FOSSIL_MANIAC_STATE, 2
diff --git a/data/maps/Route115/scripts.inc b/data/maps/Route115/scripts.inc
index 7c5b63bcd..79d2caedc 100644
--- a/data/maps/Route115/scripts.inc
+++ b/data/maps/Route115/scripts.inc
@@ -13,7 +13,7 @@ Route115_MapScript1_1F2930: @ 81F2930
Route115_OnTransition: @ 81F2947
compare VAR_SHOULD_END_UNUSUAL_WEATHER, 1
- call_if_eq Route115_EventScript_273D13
+ call_if_eq UnusualWeather_EventScript_HideMapNamePopup
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_115_WEST
call_if_eq UnusualWeather_StartGroudonWeather
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_115_EAST
diff --git a/data/maps/Route116/scripts.inc b/data/maps/Route116/scripts.inc
index 0dbe63728..cef5051e0 100644
--- a/data/maps/Route116/scripts.inc
+++ b/data/maps/Route116/scripts.inc
@@ -7,7 +7,7 @@ Route116_MapScripts:: @ 81F2C0C
Route116_OnTransition: @ 81F2C1C
call_if_set FLAG_RECOVERED_DEVON_GOODS, Route116_EventScript_1F2C47
compare VAR_SHOULD_END_UNUSUAL_WEATHER, 1
- call_if_eq Route116_EventScript_273D13
+ call_if_eq UnusualWeather_EventScript_HideMapNamePopup
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_116_NORTH
call_if_eq UnusualWeather_StartGroudonWeather
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_116_SOUTH
@@ -63,13 +63,13 @@ Route116_EventScript_1F2CBB:: @ 81F2CBB
goto_if_eq Route116_EventScript_1F2D39
msgbox Route116_Text_1F3521, MSGBOX_DEFAULT
closemessage
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq Route116_EventScript_1F2D15
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq Route116_EventScript_1F2D15
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq Route116_EventScript_1F2D15
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq Route116_EventScript_1F2D20
removeobject VAR_LAST_TALKED
clearflag FLAG_HIDE_RUSTBORO_CITY_DEVON_CORP_3F_EMPLOYEE
@@ -151,8 +151,8 @@ Route116_EventScript_1F2D84:: @ 81F2D84
Route116_EventScript_1F2D95:: @ 81F2D95
lockall
- applymovement 11, Common_Movement_WalkInPlaceRight
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement 11, Common_Movement_WalkInPlaceFastestRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox Route116_Text_1F309D, MSGBOX_DEFAULT
setvar VAR_ROUTE116_STATE, 2
@@ -196,13 +196,13 @@ Route116_EventScript_1F2E1B:: @ 81F2E1B
Route116_EventScript_1F2E2A:: @ 81F2E2A
delay 20
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq Route116_EventScript_1F2E5E
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq Route116_EventScript_1F2E5E
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq Route116_EventScript_1F2E5E
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq Route116_EventScript_1F2E69
removeobject VAR_LAST_TALKED
release
diff --git a/data/maps/Route118/scripts.inc b/data/maps/Route118/scripts.inc
index 858f0d598..661bd938c 100644
--- a/data/maps/Route118/scripts.inc
+++ b/data/maps/Route118/scripts.inc
@@ -7,7 +7,7 @@ Route118_MapScripts:: @ 81F3DBC
Route118_OnTransition: @ 81F3DCC
call Route118_EventScript_28CCC7
compare VAR_SHOULD_END_UNUSUAL_WEATHER, 1
- call_if_eq Route118_EventScript_273D13
+ call_if_eq UnusualWeather_EventScript_HideMapNamePopup
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_118_EAST
call_if_eq UnusualWeather_StartGroudonWeather
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_118_WEST
diff --git a/data/maps/Route119/map.json b/data/maps/Route119/map.json
index c84ff9db1..badd5d14e 100644
--- a/data/maps/Route119/map.json
+++ b/data/maps/Route119/map.json
@@ -477,7 +477,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "Route119_EventScript_27231C",
+ "script": "Route119_EventScript_Kecleon1",
"flag": "FLAG_HIDE_ROUTE_119_KECLEON_1"
},
{
@@ -490,7 +490,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "Route119_EventScript_272329",
+ "script": "Route119_EventScript_Kecleon2",
"flag": "FLAG_HIDE_ROUTE_119_KECLEON_2"
},
{
diff --git a/data/maps/Route119/scripts.inc b/data/maps/Route119/scripts.inc
index 1dff6a6e2..ec1063c6d 100644
--- a/data/maps/Route119/scripts.inc
+++ b/data/maps/Route119/scripts.inc
@@ -9,7 +9,7 @@ Route119_MapScript1_1F442F: @ 81F442F
Route119_EventScript_1F4439:: @ 81F4439
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject VAR_LAST_TALKED
return
@@ -51,7 +51,7 @@ Route119_EventScript_1F4488:: @ 81F4488
call_if_eq Route119_EventScript_1F46C6
compare VAR_TEMP_1, 2
call_if_eq Route119_EventScript_1F46D1
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 30
compare VAR_TEMP_1, 1
diff --git a/data/maps/Route120/map.json b/data/maps/Route120/map.json
index fccf5c88e..47f472a3d 100644
--- a/data/maps/Route120/map.json
+++ b/data/maps/Route120/map.json
@@ -412,8 +412,8 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "Route120_EventScript_1F57BC",
- "flag": "FLAG_HIDE_ROUTE_120_KECLEON_1"
+ "script": "Route120_EventScript_InvisibleBridgeKecleon",
+ "flag": "FLAG_HIDE_ROUTE_120_KECLEON_BRIDGE_INVISIBLE"
},
{
"graphics_id": "EVENT_OBJ_GFX_STEVEN",
@@ -425,7 +425,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "Route120_EventScript_1F5641",
+ "script": "Route120_EventScript_Steven",
"flag": "FLAG_HIDE_ROUTE_120_STEVEN"
},
{
@@ -491,7 +491,7 @@
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
"script": "0x0",
- "flag": "FLAG_HIDE_ROUTE_120_KECLEON_BRIDGE"
+ "flag": "FLAG_HIDE_ROUTE_120_KECLEON_BRIDGE_VISIBLE"
},
{
"graphics_id": "EVENT_OBJ_GFX_KECLEON_1",
@@ -503,8 +503,8 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "Route120_EventScript_2722DB",
- "flag": "FLAG_HIDE_ROUTE_120_KECLEON_2"
+ "script": "Route120_EventScript_Kecleon1",
+ "flag": "FLAG_HIDE_ROUTE_120_KECLEON_1"
},
{
"graphics_id": "EVENT_OBJ_GFX_KECLEON_1",
@@ -516,8 +516,8 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "Route120_EventScript_2722E8",
- "flag": "FLAG_HIDE_ROUTE_120_KECLEON_3"
+ "script": "Route120_EventScript_Kecleon2",
+ "flag": "FLAG_HIDE_ROUTE_120_KECLEON_2"
},
{
"graphics_id": "EVENT_OBJ_GFX_KECLEON_1",
@@ -529,8 +529,8 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "Route120_EventScript_2722F5",
- "flag": "FLAG_HIDE_ROUTE_120_KECLEON_4"
+ "script": "Route120_EventScript_Kecleon3",
+ "flag": "FLAG_HIDE_ROUTE_120_KECLEON_3"
},
{
"graphics_id": "EVENT_OBJ_GFX_KECLEON_1",
@@ -542,8 +542,8 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "Route120_EventScript_27230F",
- "flag": "FLAG_HIDE_ROUTE_120_KECLEON_6"
+ "script": "Route120_EventScript_Kecleon5",
+ "flag": "FLAG_HIDE_ROUTE_120_KECLEON_5"
},
{
"graphics_id": "EVENT_OBJ_GFX_KECLEON_1",
@@ -555,8 +555,8 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "Route120_EventScript_272302",
- "flag": "FLAG_HIDE_ROUTE_120_KECLEON_5"
+ "script": "Route120_EventScript_Kecleon4",
+ "flag": "FLAG_HIDE_ROUTE_120_KECLEON_4"
},
{
"graphics_id": "EVENT_OBJ_GFX_GIRL_3",
diff --git a/data/maps/Route120/scripts.inc b/data/maps/Route120/scripts.inc
index 23f9c13e0..0629d8f0d 100644
--- a/data/maps/Route120/scripts.inc
+++ b/data/maps/Route120/scripts.inc
@@ -1,44 +1,44 @@
Route120_MapScripts:: @ 81F53EC
- map_script MAP_SCRIPT_ON_RESUME, Route120_MapScript1_1F53FC
+ map_script MAP_SCRIPT_ON_RESUME, Route120_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, Route120_OnTransition
- map_script MAP_SCRIPT_ON_LOAD, Route120_MapScript1_1F5474
+ map_script MAP_SCRIPT_ON_LOAD, Route120_OnLoad
.byte 0
-Route120_MapScript1_1F53FC: @ 81F53FC
- call_if_set FLAG_SYS_CTRL_OBJ_DELETE, Route120_EventScript_1F5406
+Route120_OnResume: @ 81F53FC
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, Route120_EventScript_RemoveKecleonObject
end
-Route120_EventScript_1F5406:: @ 81F5406
+Route120_EventScript_RemoveKecleonObject:: @ 81F5406
compare VAR_0x8009, 0
- call_if_eq Route120_EventScript_1F5449
+ call_if_eq Route120_EventScript_RemoveBridgeKecleon
compare VAR_0x8009, 1
- call_if_eq Route120_EventScript_1F5460
+ call_if_eq Route120_EventScript_RemoveKecleon
compare VAR_0x8009, 2
- call_if_eq Route120_EventScript_1F5460
+ call_if_eq Route120_EventScript_RemoveKecleon
compare VAR_0x8009, 3
- call_if_eq Route120_EventScript_1F5460
+ call_if_eq Route120_EventScript_RemoveKecleon
compare VAR_0x8009, 4
- call_if_eq Route120_EventScript_1F5460
+ call_if_eq Route120_EventScript_RemoveKecleon
compare VAR_0x8009, 5
- call_if_eq Route120_EventScript_1F5460
+ call_if_eq Route120_EventScript_RemoveKecleon
return
-Route120_EventScript_1F5449:: @ 81F5449
+Route120_EventScript_RemoveBridgeKecleon:: @ 81F5449
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
- removeobject 30
- removeobject 36
+ removeobject 30 @ Invisible Bridge Kecleon
+ removeobject 36 @ Visible Bridge Kecleon
return
-Route120_EventScript_1F5460:: @ 81F5460
+Route120_EventScript_RemoveKecleon:: @ 81F5460
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject VAR_LAST_TALKED
return
-Route120_MapScript1_1F5474: @ 81F5474
+Route120_OnLoad: @ 81F5474
call_if_unset FLAG_REGI_DOORS_OPENED, Route120_EventScript_1F5490
call_if_set FLAG_RECEIVED_DEVON_SCOPE, Route120_EventScript_1F54A3
call_if_unset FLAG_RECEIVED_DEVON_SCOPE, Route120_EventScript_1F54C8
@@ -166,44 +166,44 @@ Route120_EventScript_1F5638:: @ 81F5638
msgbox Route120_Text_2A7183, MSGBOX_DEFAULT
return
-Route120_EventScript_1F5641:: @ 81F5641
+Route120_EventScript_Steven:: @ 81F5641
lock
faceplayer
goto_if_set FLAG_NOT_READY_FOR_BATTLE_ROUTE_120, Route120_EventScript_1F5672
- msgbox Route120_Text_1F5998, MSGBOX_YESNO
+ msgbox Route120_Text_StevenGreeting, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq Route120_EventScript_1F5665
- goto Route120_EventScript_1F568B
+ goto_if_eq Route120_EventScript_StevenNotReady
+ goto Route120_EventScript_StevenBattleKecleon
end
-Route120_EventScript_1F5665:: @ 81F5665
+Route120_EventScript_StevenNotReady:: @ 81F5665
msgbox Route120_Text_1F5AAC, MSGBOX_DEFAULT
setflag FLAG_NOT_READY_FOR_BATTLE_ROUTE_120
release
end
Route120_EventScript_1F5672:: @ 81F5672
- msgbox Route120_Text_1F5ADE, MSGBOX_YESNO
+ msgbox Route120_Text_StevenReadyForBattle, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq Route120_EventScript_1F5665
- goto Route120_EventScript_1F568B
+ goto_if_eq Route120_EventScript_StevenNotReady
+ goto Route120_EventScript_StevenBattleKecleon
end
-Route120_EventScript_1F568B:: @ 81F568B
- msgbox Route120_Text_1F5B0F, MSGBOX_DEFAULT
+Route120_EventScript_StevenBattleKecleon:: @ 81F568B
+ msgbox Route120_Text_StevenShowMeYourPower, MSGBOX_DEFAULT
closemessage
- compare VAR_FACING, 2
- call_if_eq Route120_EventScript_1F57A3
- compare VAR_FACING, 3
- call_if_eq Route120_EventScript_1F57AE
- applymovement 31, Common_Movement_WalkInPlaceLeft
+ compare VAR_FACING, DIR_NORTH
+ call_if_eq Route120_EventScript_PlayerApproachKecleonNorth
+ compare VAR_FACING, DIR_WEST
+ call_if_eq Route120_EventScript_PlayerApproachKecleonWest
+ applymovement 31, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
delay 20
- msgbox Route120_Text_1F5B43, MSGBOX_DEFAULT
+ msgbox Route120_Text_StevenUsedDevonScope, MSGBOX_DEFAULT
closemessage
- applymovement 30, Common_Movement_WalkInPlaceRight
+ applymovement 30, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
- applymovement 30, Route120_Movement_2723C7
+ applymovement 30, Movement_KecleonAppears
waitmovement 0
waitse
playmoncry SPECIES_KECLEON, 2
@@ -215,33 +215,33 @@ Route120_EventScript_1F568B:: @ 81F568B
dowildbattle
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
- goto_if_eq Route120_EventScript_1F571C
- compare VAR_RESULT, 4
- goto_if_eq Route120_EventScript_1F571C
- compare VAR_RESULT, 5
- goto_if_eq Route120_EventScript_1F571C
- goto Route120_EventScript_1F572C
+ compare VAR_RESULT, B_OUTCOME_WON
+ goto_if_eq Route120_EventScript_RemoveBridgeKecleonPostBattle
+ compare VAR_RESULT, B_OUTCOME_RAN
+ goto_if_eq Route120_EventScript_RemoveBridgeKecleonPostBattle
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
+ goto_if_eq Route120_EventScript_RemoveBridgeKecleonPostBattle
+ goto Route120_EventScript_StevenGiveDeconScope
end
-Route120_EventScript_1F571C:: @ 81F571C
+Route120_EventScript_RemoveBridgeKecleonPostBattle:: @ 81F571C
fadescreenswapbuffers 1
- removeobject 30
- removeobject 36
+ removeobject 30 @ Invisible Bridge Kecleon
+ removeobject 36 @ Visible Bridge Kecleon
fadescreenswapbuffers 0
- goto Route120_EventScript_1F572C
+ goto Route120_EventScript_StevenGiveDeconScope
end
-Route120_EventScript_1F572C:: @ 81F572C
- applymovement 31, Common_Movement_WalkInPlaceDown
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+Route120_EventScript_StevenGiveDeconScope:: @ 81F572C
+ applymovement 31, Common_Movement_WalkInPlaceFastestDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
- msgbox Route120_Text_1F5BAF, MSGBOX_DEFAULT
+ msgbox Route120_Text_StevenGiveDevonScope, MSGBOX_DEFAULT
giveitem_std ITEM_DEVON_SCOPE
setflag FLAG_RECEIVED_DEVON_SCOPE
- msgbox Route120_Text_1F5C7B, MSGBOX_DEFAULT
+ msgbox Route120_Text_StevenGoodbye, MSGBOX_DEFAULT
closemessage
- applymovement 31, Common_Movement_WalkInPlaceDown
+ applymovement 31, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 50
setfieldeffectargument 0, 1
@@ -257,23 +257,23 @@ Route120_EventScript_1F572C:: @ 81F572C
release
end
-Route120_EventScript_1F57A3:: @ 81F57A3
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+Route120_EventScript_PlayerApproachKecleonNorth:: @ 81F57A3
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
-Route120_EventScript_1F57AE:: @ 81F57AE
- applymovement EVENT_OBJ_ID_PLAYER, Route120_Movement_1F57B9
+Route120_EventScript_PlayerApproachKecleonWest:: @ 81F57AE
+ applymovement EVENT_OBJ_ID_PLAYER, Route120_Movement_ApproachKecleonWest
waitmovement 0
return
-Route120_Movement_1F57B9: @ 81F57B9
+Route120_Movement_ApproachKecleonWest: @ 81F57B9
walk_down
walk_left
step_end
-Route120_EventScript_1F57BC:: @ 81F57BC
- msgbox Route120_Text_1F5D00, MSGBOX_NPC
+Route120_EventScript_InvisibleBridgeKecleon:: @ 81F57BC
+ msgbox Kecleon_Text_SomethingUnseeable, MSGBOX_NPC
end
Route120_EventScript_1F57C5:: @ 81F57C5
@@ -383,7 +383,7 @@ Route120_EventScript_1F5981:: @ 81F5981
msgbox Route120_Text_29F002, MSGBOX_AUTOCLOSE
end
-Route120_Text_1F5998: @ 81F5998
+Route120_Text_StevenGreeting: @ 81F5998
.string "STEVEN: Hm? {PLAYER}{KUN}, hi.\n"
.string "It's been a while.\p"
.string "There's something here that you can't\n"
@@ -400,21 +400,21 @@ Route120_Text_1F5AAC: @ 81F5AAC
.string "STEVEN: No?\p"
.string "I'll wait here, so you can get ready.$"
-Route120_Text_1F5ADE: @ 81F5ADE
+Route120_Text_StevenReadyForBattle: @ 81F5ADE
.string "STEVEN: {PLAYER}{KUN}, are your POKéMON\n"
.string "ready for battle?$"
-Route120_Text_1F5B0F: @ 81F5B0F
+Route120_Text_StevenShowMeYourPower: @ 81F5B0F
.string "STEVEN: {PLAYER}{KUN}, show me your true\n"
.string "power as a TRAINER!$"
-Route120_Text_1F5B43: @ 81F5B43
+Route120_Text_StevenUsedDevonScope: @ 81F5B43
.string "STEVEN used the DEVON SCOPE.\p"
.string "An invisible POKéMON became completely\n"
.string "visible!\p"
.string "The startled POKéMON attacked!$"
-Route120_Text_1F5BAF: @ 81F5BAF
+Route120_Text_StevenGiveDevonScope: @ 81F5BAF
.string "STEVEN: I see…\n"
.string "Your battle style is intriguing.\p"
.string "Your POKéMON have obviously grown\n"
@@ -424,22 +424,21 @@ Route120_Text_1F5BAF: @ 81F5BAF
.string "Who knows, there may be other\n"
.string "concealed POKéMON.$"
-Route120_Text_1F5C7B: @ 81F5C7B
+Route120_Text_StevenGoodbye: @ 81F5C7B
.string "STEVEN: {PLAYER}{KUN}.\p"
.string "I enjoy seeing POKéMON and TRAINERS\n"
.string "who strive together.\p"
.string "I think you're doing great.\p"
.string "Well, let's meet again somewhere.$"
-Route119_Text_1F5D00: @ 81F5D00
-Route120_Text_1F5D00: @ 81F5D00
+Kecleon_Text_SomethingUnseeable: @ 81F5D00
.string "Something unseeable is in the way.$"
-Route119_Text_1F5D23: @ 81F5D23
+Kecleon_Text_WantToUseDevonScope: @ 81F5D23
.string "Something unseeable is in the way.\p"
.string "Want to use the DEVON SCOPE?$"
-Route119_Text_1F5D63: @ 81F5D63
+Kecleon_Text_UseDevonScopeMonAttacked: @ 81F5D63
.string "{PLAYER} used the DEVON SCOPE.\p"
.string "An invisible POKéMON became completely\n"
.string "visible!\p"
diff --git a/data/maps/Route121/scripts.inc b/data/maps/Route121/scripts.inc
index edca585c9..6aa82857f 100644
--- a/data/maps/Route121/scripts.inc
+++ b/data/maps/Route121/scripts.inc
@@ -16,7 +16,7 @@ Route121_EventScript_1F5E0F:: @ 81F5E0F
Route121_EventScript_1F5E18:: @ 81F5E18
lockall
playbgm MUS_AQA_0, 0
- applymovement 13, Route121_Movement_2725B8
+ applymovement 13, Common_Movement_WalkInPlaceRight
waitmovement 0
msgbox Route121_Text_1F605A, MSGBOX_DEFAULT
closemessage
diff --git a/data/maps/Route121_SafariZoneEntrance/scripts.inc b/data/maps/Route121_SafariZoneEntrance/scripts.inc
index d0c950cf5..88c4ac03d 100644
--- a/data/maps/Route121_SafariZoneEntrance/scripts.inc
+++ b/data/maps/Route121_SafariZoneEntrance/scripts.inc
@@ -46,7 +46,7 @@ Route121_SafariZoneEntrance_EventScript_22BC0E:: @ 822BC0E
Route121_SafariZoneEntrance_EventScript_22BC18:: @ 822BC18
lockall
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
showmoneybox 0, 0, 0
msgbox Route121_SafariZoneEntrance_Text_2A4F74, MSGBOX_YESNO
diff --git a/data/maps/Route125/scripts.inc b/data/maps/Route125/scripts.inc
index 2c15eee3d..62b66e3a6 100644
--- a/data/maps/Route125/scripts.inc
+++ b/data/maps/Route125/scripts.inc
@@ -7,7 +7,7 @@ Route125_MapScripts:: @ 81F6748
Route125_OnTransition: @ 81F6758
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetWeather15
compare VAR_SHOULD_END_UNUSUAL_WEATHER, 1
- call_if_eq Route125_EventScript_273D13
+ call_if_eq UnusualWeather_EventScript_HideMapNamePopup
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_125_WEST
call_if_eq UnusualWeather_StartKyogreWeather
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_125_EAST
diff --git a/data/maps/Route127/scripts.inc b/data/maps/Route127/scripts.inc
index 1829dbcfd..fcc666ec6 100644
--- a/data/maps/Route127/scripts.inc
+++ b/data/maps/Route127/scripts.inc
@@ -7,7 +7,7 @@ Route127_MapScripts:: @ 81F69D9
Route127_OnTransition: @ 81F69E9
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetWeather15
compare VAR_SHOULD_END_UNUSUAL_WEATHER, 1
- call_if_eq Route127_EventScript_273D13
+ call_if_eq UnusualWeather_EventScript_HideMapNamePopup
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_127_NORTH
call_if_eq UnusualWeather_StartKyogreWeather
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_127_SOUTH
diff --git a/data/maps/Route128/scripts.inc b/data/maps/Route128/scripts.inc
index bad74f451..a19c0edf9 100644
--- a/data/maps/Route128/scripts.inc
+++ b/data/maps/Route128/scripts.inc
@@ -24,18 +24,18 @@ Route128_EventScript_1F6B57:: @ 81F6B57
closemessage
applymovement 5, Route128_Movement_1F6CAD
waitmovement 0
- applymovement 4, Common_Movement_WalkInPlaceUp
+ applymovement 4, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox Route128_Text_1F6E5A, MSGBOX_DEFAULT
closemessage
applymovement 5, Route128_Movement_1F6CBB
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox Route128_Text_1F6F1E, MSGBOX_DEFAULT
closemessage
applymovement 4, Route128_Movement_1F6C96
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
applymovement 5, Route128_Movement_1F6CA8
waitmovement 0
msgbox Route128_Text_1F704F, MSGBOX_DEFAULT
@@ -53,19 +53,19 @@ Route128_EventScript_1F6B57:: @ 81F6B57
addobject 3
applymovement 3, Route128_Movement_1F6C87
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox Route128_Text_1F70C9, MSGBOX_DEFAULT
closemessage
applymovement 3, Route128_Movement_1F6C85
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox Route128_Text_1F70EA, MSGBOX_DEFAULT
- applymovement 3, Common_Movement_WalkInPlaceDown
+ applymovement 3, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox Route128_Text_1F721B, MSGBOX_DEFAULT
closemessage
- applymovement 3, Common_Movement_WalkInPlaceDown
+ applymovement 3, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 50
setfieldeffectargument 0, 1
diff --git a/data/maps/Route129/scripts.inc b/data/maps/Route129/scripts.inc
index d57a27cf9..43d828bcd 100644
--- a/data/maps/Route129/scripts.inc
+++ b/data/maps/Route129/scripts.inc
@@ -13,7 +13,7 @@ Route129_MapScript1_1F7294: @ 81F7294
Route129_OnTransition: @ 81F72AB
compare VAR_SHOULD_END_UNUSUAL_WEATHER, 1
- call_if_eq Route129_EventScript_273D13
+ call_if_eq UnusualWeather_EventScript_HideMapNamePopup
compare VAR_SOOTOPOLIS_CITY_STATE, 4
call_if_ge Route129_EventScript_1F72D8
compare VAR_UNUSUAL_WEATHER_LOCATION, UNUSUAL_WEATHER_ROUTE_129_WEST
diff --git a/data/maps/RustboroCity/scripts.inc b/data/maps/RustboroCity/scripts.inc
index 666691135..28a5f8278 100644
--- a/data/maps/RustboroCity/scripts.inc
+++ b/data/maps/RustboroCity/scripts.inc
@@ -46,14 +46,14 @@ RustboroCity_EventScript_1E0715:: @ 81E0715
waitmovement 0
applymovement 15, Common_Movement_Delay48
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
applymovement 15, RustboroCity_Movement_1E084E
waitmovement 0
msgbox RustboroCity_Text_1E22A5, MSGBOX_DEFAULT
closemessage
setflag FLAG_HAS_MATCH_CALL
- applymovement 15, Common_Movement_WalkInPlaceLeft
+ applymovement 15, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
playse SE_TK_KASYA
delay 10
@@ -63,7 +63,7 @@ RustboroCity_EventScript_1E0715:: @ 81E0715
delay 10
playse SE_TK_KASYA
delay 20
- applymovement 15, Common_Movement_WalkInPlaceDown
+ applymovement 15, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox RustboroCity_Text_1E2331, MSGBOX_DEFAULT
closemessage
@@ -344,7 +344,7 @@ RustboroCity_EventScript_1E0A6E:: @ 81E0A6E
RustboroCity_EventScript_1E0A79:: @ 81E0A79
applymovement 9, RustboroCity_Movement_1E0AD5
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
@@ -500,43 +500,43 @@ RustboroCity_EventScript_1E0B2E:: @ 81E0B2E
end
RustboroCity_EventScript_1E0B6F:: @ 81E0B6F
- applymovement 9, Common_Movement_WalkInPlaceUp
+ applymovement 9, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
playse SE_PIN
applymovement 9, Common_Movement_ExclamationMark
waitmovement 0
applymovement 9, Common_Movement_Delay48
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
RustboroCity_EventScript_1E0B9B:: @ 81E0B9B
- applymovement 9, Common_Movement_WalkInPlaceLeft
+ applymovement 9, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
playse SE_PIN
applymovement 9, Common_Movement_ExclamationMark
waitmovement 0
applymovement 9, Common_Movement_Delay48
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, RustboroCity_Movement_2725AC
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_FaceRight
waitmovement 0
return
RustboroCity_EventScript_1E0BC7:: @ 81E0BC7
- applymovement 9, Common_Movement_WalkInPlaceDown
+ applymovement 9, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
playse SE_PIN
applymovement 9, Common_Movement_ExclamationMark
waitmovement 0
applymovement 9, Common_Movement_Delay48
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
RustboroCity_EventScript_1E0BF3:: @ 81E0BF3
- applymovement 9, Common_Movement_WalkInPlaceDown
+ applymovement 9, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
playse SE_PIN
applymovement 9, Common_Movement_ExclamationMark
@@ -545,7 +545,7 @@ RustboroCity_EventScript_1E0BF3:: @ 81E0BF3
waitmovement 0
applymovement 9, RustboroCity_Movement_1E0C29
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
@@ -608,43 +608,43 @@ RustboroCity_EventScript_1E0CD3:: @ 81E0CD3
return
RustboroCity_EventScript_1E0CDC:: @ 81E0CDC
- applymovement 9, Common_Movement_WalkInPlaceUp
+ applymovement 9, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
playse SE_PIN
applymovement 9, Common_Movement_ExclamationMark
waitmovement 0
applymovement 9, Common_Movement_Delay48
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
RustboroCity_EventScript_1E0D08:: @ 81E0D08
- applymovement 9, Common_Movement_WalkInPlaceRight
+ applymovement 9, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
playse SE_PIN
applymovement 9, Common_Movement_ExclamationMark
waitmovement 0
applymovement 9, Common_Movement_Delay48
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, RustboroCity_Movement_2725AE
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_FaceLeft
waitmovement 0
return
RustboroCity_EventScript_1E0D34:: @ 81E0D34
- applymovement 9, Common_Movement_WalkInPlaceDown
+ applymovement 9, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
playse SE_PIN
applymovement 9, Common_Movement_ExclamationMark
waitmovement 0
applymovement 9, Common_Movement_Delay48
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
RustboroCity_EventScript_1E0D60:: @ 81E0D60
- applymovement 9, Common_Movement_WalkInPlaceDown
+ applymovement 9, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
playse SE_PIN
applymovement 9, Common_Movement_ExclamationMark
@@ -653,12 +653,12 @@ RustboroCity_EventScript_1E0D60:: @ 81E0D60
waitmovement 0
applymovement 9, RustboroCity_Movement_1E0C29
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
RustboroCity_EventScript_1E0D96:: @ 81E0D96
- applymovement 9, Common_Movement_WalkInPlaceLeft
+ applymovement 9, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
playse SE_PIN
applymovement 9, Common_Movement_ExclamationMark
@@ -694,7 +694,7 @@ RustboroCity_EventScript_1E0DEE:: @ 81E0DEE
RustboroCity_EventScript_1E0DF3:: @ 81E0DF3
lockall
call RustboroCity_EventScript_1E0DD1
- applymovement 14, Common_Movement_WalkInPlaceDown
+ applymovement 14, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
playse SE_PIN
applymovement 14, Common_Movement_ExclamationMark
@@ -703,14 +703,14 @@ RustboroCity_EventScript_1E0DF3:: @ 81E0DF3
waitmovement 0
applymovement 14, RustboroCity_Movement_1E120E
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
goto RustboroCity_EventScript_1E0FF3
RustboroCity_EventScript_1E0E33:: @ 81E0E33
lockall
call RustboroCity_EventScript_1E0DD1
- applymovement 14, Common_Movement_WalkInPlaceDown
+ applymovement 14, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
playse SE_PIN
applymovement 14, Common_Movement_ExclamationMark
@@ -719,14 +719,14 @@ RustboroCity_EventScript_1E0E33:: @ 81E0E33
waitmovement 0
applymovement 14, RustboroCity_Movement_1E1215
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
goto RustboroCity_EventScript_1E0FF3
RustboroCity_EventScript_1E0E73:: @ 81E0E73
lockall
call RustboroCity_EventScript_1E0DD1
- applymovement 14, Common_Movement_WalkInPlaceDown
+ applymovement 14, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
playse SE_PIN
applymovement 14, Common_Movement_ExclamationMark
@@ -735,14 +735,14 @@ RustboroCity_EventScript_1E0E73:: @ 81E0E73
waitmovement 0
applymovement 14, RustboroCity_Movement_1E121B
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
goto RustboroCity_EventScript_1E0FF3
RustboroCity_EventScript_1E0EB3:: @ 81E0EB3
lockall
call RustboroCity_EventScript_1E0DD1
- applymovement 14, Common_Movement_WalkInPlaceDown
+ applymovement 14, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
playse SE_PIN
applymovement 14, Common_Movement_ExclamationMark
@@ -751,14 +751,14 @@ RustboroCity_EventScript_1E0EB3:: @ 81E0EB3
waitmovement 0
applymovement 14, RustboroCity_Movement_1E1220
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
goto RustboroCity_EventScript_1E0FF3
RustboroCity_EventScript_1E0EF3:: @ 81E0EF3
lockall
call RustboroCity_EventScript_1E0DD1
- applymovement 14, Common_Movement_WalkInPlaceDown
+ applymovement 14, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
playse SE_PIN
applymovement 14, Common_Movement_ExclamationMark
@@ -767,14 +767,14 @@ RustboroCity_EventScript_1E0EF3:: @ 81E0EF3
waitmovement 0
applymovement 14, RustboroCity_Movement_1E1224
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
goto RustboroCity_EventScript_1E0FF3
RustboroCity_EventScript_1E0F33:: @ 81E0F33
lockall
call RustboroCity_EventScript_1E0DD1
- applymovement 14, Common_Movement_WalkInPlaceDown
+ applymovement 14, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
playse SE_PIN
applymovement 14, Common_Movement_ExclamationMark
@@ -783,14 +783,14 @@ RustboroCity_EventScript_1E0F33:: @ 81E0F33
waitmovement 0
applymovement 14, RustboroCity_Movement_1E1227
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
goto RustboroCity_EventScript_1E0FF3
RustboroCity_EventScript_1E0F73:: @ 81E0F73
lockall
call RustboroCity_EventScript_1E0DD1
- applymovement 14, Common_Movement_WalkInPlaceDown
+ applymovement 14, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
playse SE_PIN
applymovement 14, Common_Movement_ExclamationMark
@@ -799,14 +799,14 @@ RustboroCity_EventScript_1E0F73:: @ 81E0F73
waitmovement 0
applymovement 14, RustboroCity_Movement_1E122B
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
goto RustboroCity_EventScript_1E0FF3
RustboroCity_EventScript_1E0FB3:: @ 81E0FB3
lockall
call RustboroCity_EventScript_1E0DD1
- applymovement 14, Common_Movement_WalkInPlaceDown
+ applymovement 14, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
playse SE_PIN
applymovement 14, Common_Movement_ExclamationMark
@@ -815,7 +815,7 @@ RustboroCity_EventScript_1E0FB3:: @ 81E0FB3
waitmovement 0
applymovement 14, RustboroCity_Movement_1E1230
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
goto RustboroCity_EventScript_1E0FF3
diff --git a/data/maps/RustboroCity_Gym/map.json b/data/maps/RustboroCity_Gym/map.json
index 3da39df9d..99ae9ebd8 100644
--- a/data/maps/RustboroCity_Gym/map.json
+++ b/data/maps/RustboroCity_Gym/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "RustboroCity_Gym_EventScript_212F31",
+ "script": "RustboroCity_Gym_EventScript_Roxanne",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 0,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "2",
- "script": "RustboroCity_Gym_EventScript_212FE3",
+ "script": "RustboroCity_Gym_EventScript_Josh",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 0,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "3",
- "script": "RustboroCity_Gym_EventScript_212FFA",
+ "script": "RustboroCity_Gym_EventScript_Tommy",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "RustboroCity_Gym_EventScript_213028",
+ "script": "RustboroCity_Gym_EventScript_GymGuide",
"flag": "0"
},
{
@@ -76,7 +76,7 @@
"movement_range_y": 1,
"trainer_type": "1",
"trainer_sight_or_berry_tree_id": "3",
- "script": "RustboroCity_Gym_EventScript_213011",
+ "script": "RustboroCity_Gym_EventScript_Marc",
"flag": "0"
}
],
@@ -104,7 +104,7 @@
"y": 18,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
- "script": "RustboroCity_Gym_EventScript_213047"
+ "script": "RustboroCity_Gym_EventScript_LeftGymStatue"
},
{
"type": "sign",
@@ -112,7 +112,7 @@
"y": 18,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
- "script": "RustboroCity_Gym_EventScript_213057"
+ "script": "RustboroCity_Gym_EventScript_RightGymStatue"
}
]
} \ No newline at end of file
diff --git a/data/maps/RustboroCity_Gym/scripts.inc b/data/maps/RustboroCity_Gym/scripts.inc
index dc11d3a10..0a95a86e5 100644
--- a/data/maps/RustboroCity_Gym/scripts.inc
+++ b/data/maps/RustboroCity_Gym/scripts.inc
@@ -1,21 +1,21 @@
RustboroCity_Gym_MapScripts:: @ 8212F30
.byte 0
-RustboroCity_Gym_EventScript_212F31:: @ 8212F31
- trainerbattle_single TRAINER_ROXANNE_1, RustboroCity_Gym_Text_21362A, RustboroCity_Gym_Text_21370B, RustboroCity_Gym_EventScript_212F66, NO_MUSIC
+RustboroCity_Gym_EventScript_Roxanne:: @ 8212F31
+ trainerbattle_single TRAINER_ROXANNE_1, RustboroCity_Gym_Text_RoxannePreBattle, RustboroCity_Gym_Text_RoxanneDefeat, RustboroCity_Gym_EventScript_RoxanneDefeated, NO_MUSIC
specialvar VAR_RESULT, ShouldTryRematchBattle
- compare VAR_RESULT, 1
- goto_if_eq RustboroCity_Gym_EventScript_212FC8
- goto_if_unset FLAG_RECEIVED_TM39, RustboroCity_Gym_EventScript_212FA4
- msgbox RustboroCity_Gym_Text_2139A7, MSGBOX_DEFAULT
+ compare VAR_RESULT, TRUE
+ goto_if_eq RustboroCity_Gym_EventScript_RoxanneRematch
+ goto_if_unset FLAG_RECEIVED_TM39, RustboroCity_Gym_EventScript_GiveRockTomb
+ msgbox RustboroCity_Gym_Text_RoxannePostBattle, MSGBOX_DEFAULT
release
end
-RustboroCity_Gym_EventScript_212F66:: @ 8212F66
- message RustboroCity_Gym_Text_2137EC
+RustboroCity_Gym_EventScript_RoxanneDefeated:: @ 8212F66
+ message RustboroCity_Gym_Text_ReceivedStoneBadge
waitmessage
call Common_EventScript_PlayGymBadgeFanfare
- msgbox RustboroCity_Gym_Text_213816, MSGBOX_DEFAULT
+ msgbox RustboroCity_Gym_Text_StoneBadgeInfoTakeThis, MSGBOX_DEFAULT
setflag FLAG_DEFEATED_RUSTBORO_GYM
setflag FLAG_BADGE01_GET
setvar VAR_RUSTBORO_CITY_STATE, 1
@@ -23,81 +23,81 @@ RustboroCity_Gym_EventScript_212F66:: @ 8212F66
setvar VAR_0x8008, 1
call Common_EventScript_SetGymTrainers
compare VAR_PETALBURG_GYM_STATE, 6
- call_if_eq RustboroCity_Gym_EventScript_271E84
- goto RustboroCity_Gym_EventScript_212FA4
+ call_if_eq Common_EventScript_ReadyPetalburgGymForBattle
+ goto RustboroCity_Gym_EventScript_GiveRockTomb
end
-RustboroCity_Gym_EventScript_212FA4:: @ 8212FA4
+RustboroCity_Gym_EventScript_GiveRockTomb:: @ 8212FA4
giveitem_std ITEM_TM39
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_ShowBagIsFull
setflag FLAG_RECEIVED_TM39
- msgbox RustboroCity_Gym_Text_2138B1, MSGBOX_DEFAULT
+ msgbox RustboroCity_Gym_Text_ExplainRockTomb, MSGBOX_DEFAULT
release
end
-RustboroCity_Gym_EventScript_212FC8:: @ 8212FC8
- trainerbattle_rematch_double TRAINER_ROXANNE_1, RustboroCity_Gym_Text_213C2F, RustboroCity_Gym_Text_213CF9, RustboroCity_Gym_Text_213D93
- msgbox RustboroCity_Gym_Text_213D12, MSGBOX_AUTOCLOSE
+RustboroCity_Gym_EventScript_RoxanneRematch:: @ 8212FC8
+ trainerbattle_rematch_double TRAINER_ROXANNE_1, RustboroCity_Gym_Text_RoxannePreRematch, RustboroCity_Gym_Text_RoxanneRematchDefeat, RustboroCity_Gym_Text_RoxanneRematchNeedTwoMons
+ msgbox RustboroCity_Gym_Text_RoxannePostRematch, MSGBOX_AUTOCLOSE
end
-RustboroCity_Gym_EventScript_212FE3:: @ 8212FE3
- trainerbattle_single TRAINER_JOSH, RustboroCity_Gym_Text_2133E9, RustboroCity_Gym_Text_21342D
- msgbox RustboroCity_Gym_Text_213447, MSGBOX_AUTOCLOSE
+RustboroCity_Gym_EventScript_Josh:: @ 8212FE3
+ trainerbattle_single TRAINER_JOSH, RustboroCity_Gym_Text_JoshPreBattle, RustboroCity_Gym_Text_JoshDefeat
+ msgbox RustboroCity_Gym_Text_JoshPostBattle, MSGBOX_AUTOCLOSE
end
-RustboroCity_Gym_EventScript_212FFA:: @ 8212FFA
- trainerbattle_single TRAINER_TOMMY, RustboroCity_Gym_Text_213486, RustboroCity_Gym_Text_2134C6
- msgbox RustboroCity_Gym_Text_2134E6, MSGBOX_AUTOCLOSE
+RustboroCity_Gym_EventScript_Tommy:: @ 8212FFA
+ trainerbattle_single TRAINER_TOMMY, RustboroCity_Gym_Text_TommyPreBattle, RustboroCity_Gym_Text_TommyDefeat
+ msgbox RustboroCity_Gym_Text_TommyPostBattle, MSGBOX_AUTOCLOSE
end
-RustboroCity_Gym_EventScript_213011:: @ 8213011
- trainerbattle_single TRAINER_MARC, RustboroCity_Gym_Text_213533, RustboroCity_Gym_Text_213589
- msgbox RustboroCity_Gym_Text_2135C0, MSGBOX_AUTOCLOSE
+RustboroCity_Gym_EventScript_Marc:: @ 8213011
+ trainerbattle_single TRAINER_MARC, RustboroCity_Gym_Text_MarcPreBattle, RustboroCity_Gym_Text_MarcDefeat
+ msgbox RustboroCity_Gym_Text_MarcPostBattle, MSGBOX_AUTOCLOSE
end
-RustboroCity_Gym_EventScript_213028:: @ 8213028
+RustboroCity_Gym_EventScript_GymGuide:: @ 8213028
lock
faceplayer
- goto_if_set FLAG_DEFEATED_RUSTBORO_GYM, RustboroCity_Gym_EventScript_21303D
- msgbox RustboroCity_Gym_Text_21309D, MSGBOX_DEFAULT
+ goto_if_set FLAG_DEFEATED_RUSTBORO_GYM, RustboroCity_Gym_EventScript_GymGuidePostVictory
+ msgbox RustboroCity_Gym_Text_GymGuideAdvice, MSGBOX_DEFAULT
release
end
-RustboroCity_Gym_EventScript_21303D:: @ 821303D
- msgbox RustboroCity_Gym_Text_2132E2, MSGBOX_DEFAULT
+RustboroCity_Gym_EventScript_GymGuidePostVictory:: @ 821303D
+ msgbox RustboroCity_Gym_Text_GymGuidePostVictory, MSGBOX_DEFAULT
release
end
-RustboroCity_Gym_EventScript_213047:: @ 8213047
+RustboroCity_Gym_EventScript_LeftGymStatue:: @ 8213047
lockall
- goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_213067
- goto RustboroCity_Gym_EventScript_213071
+ goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_GymStatueCertified
+ goto RustboroCity_Gym_EventScript_GymStatue
end
-RustboroCity_Gym_EventScript_213057:: @ 8213057
+RustboroCity_Gym_EventScript_RightGymStatue:: @ 8213057
lockall
- goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_213067
- goto RustboroCity_Gym_EventScript_213071
+ goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_GymStatueCertified
+ goto RustboroCity_Gym_EventScript_GymStatue
end
-RustboroCity_Gym_EventScript_213067:: @ 8213067
- msgbox RustboroCity_Gym_Text_213A3B, MSGBOX_DEFAULT
+RustboroCity_Gym_EventScript_GymStatueCertified:: @ 8213067
+ msgbox RustboroCity_Gym_Text_GymStatueCertified, MSGBOX_DEFAULT
releaseall
end
-RustboroCity_Gym_EventScript_213071:: @ 8213071
- msgbox RustboroCity_Gym_Text_213A21, MSGBOX_DEFAULT
+RustboroCity_Gym_EventScript_GymStatue:: @ 8213071
+ msgbox RustboroCity_Gym_Text_GymStatue, MSGBOX_DEFAULT
releaseall
end
-RustboroCity_Gym_EventScript_21307B:: @ 821307B
+RustboroCity_Gym_EventScript_RegisterRoxanne:: @ 821307B
lockall
- pokenavcall RustboroCity_Gym_Text_213A76
+ pokenavcall RustboroCity_Gym_Text_RoxanneRegisterCall
waitmessage
delay 30
playfanfare MUS_ME_TORE_EYE
- msgbox RustboroCity_Gym_Text_213C01, MSGBOX_DEFAULT
+ msgbox RustboroCity_Gym_Text_RegisteredRoxanne, MSGBOX_DEFAULT
waitfanfare
closemessage
delay 30
@@ -106,7 +106,7 @@ RustboroCity_Gym_EventScript_21307B:: @ 821307B
releaseall
end
-RustboroCity_Gym_Text_21309D: @ 821309D
+RustboroCity_Gym_Text_GymGuideAdvice: @ 821309D
.string "Yo, how's it going?\p"
.string "Listen, my friend!\n"
.string "Would you like to become the CHAMPION?\p"
@@ -128,7 +128,7 @@ RustboroCity_Gym_Text_21309D: @ 821309D
.string "the GYM LEADER.\p"
.string "Well, go for it!$"
-RustboroCity_Gym_Text_2132E2: @ 82132E2
+RustboroCity_Gym_Text_GymGuidePostVictory: @ 82132E2
.string "Whoa! What a breathtaking victory!\n"
.string "My cheering must've worked!\p"
.string "Great!\n"
@@ -140,45 +140,45 @@ RustboroCity_Gym_Text_2132E2: @ 82132E2
.string "the stairs to the CHAMPIONSHIP!\p"
.string "That's got to feel awesome!$"
-RustboroCity_Gym_Text_2133E9: @ 82133E9
+RustboroCity_Gym_Text_JoshPreBattle: @ 82133E9
.string "Don't take us GYM TRAINERS lightly!\n"
.string "I'll show you why we're better!$"
-RustboroCity_Gym_Text_21342D: @ 821342D
+RustboroCity_Gym_Text_JoshDefeat: @ 821342D
.string "You were too good for me…$"
-RustboroCity_Gym_Text_213447: @ 8213447
+RustboroCity_Gym_Text_JoshPostBattle: @ 8213447
.string "You haven't seen anything of the ROCK\n"
.string "type's terrifying power!$"
-RustboroCity_Gym_Text_213486: @ 8213486
+RustboroCity_Gym_Text_TommyPreBattle: @ 8213486
.string "If you can't beat me, you won't stand\n"
.string "a chance against ROXANNE!$"
-RustboroCity_Gym_Text_2134C6: @ 82134C6
+RustboroCity_Gym_Text_TommyDefeat: @ 82134C6
.string "Wow! You've got some potential!$"
-RustboroCity_Gym_Text_2134E6: @ 82134E6
+RustboroCity_Gym_Text_TommyPostBattle: @ 82134E6
.string "ROXANNE is stronger than me by\n"
.string "several times.\p"
.string "You'd better be on your guard!$"
-RustboroCity_Gym_Text_213533: @ 8213533
+RustboroCity_Gym_Text_MarcPreBattle: @ 8213533
.string "We might be in the middle of town,\n"
.string "but so what?\p"
.string "My ROCK POKéMON need room to\n"
.string "rampage!$"
-RustboroCity_Gym_Text_213589: @ 8213589
+RustboroCity_Gym_Text_MarcDefeat: @ 8213589
.string "Oh, man oh man!\n"
.string "Our challenger is one feisty customer!$"
-RustboroCity_Gym_Text_2135C0: @ 82135C0
+RustboroCity_Gym_Text_MarcPostBattle: @ 82135C0
.string "I have to hand it to our LEADER.\p"
.string "It took smarts and sense for her to\n"
.string "pick the ROCK type at her young age.$"
-RustboroCity_Gym_Text_21362A: @ 821362A
+RustboroCity_Gym_Text_RoxannePreBattle: @ 821362A
.string "Hello, I am ROXANNE, the RUSTBORO\n"
.string "POKéMON GYM LEADER.\p"
.string "I became a GYM LEADER so that I might\n"
@@ -187,7 +187,7 @@ RustboroCity_Gym_Text_21362A: @ 821362A
.string "Would you kindly demonstrate how you\n"
.string "battle, and with which POKéMON?$"
-RustboroCity_Gym_Text_21370B: @ 821370B
+RustboroCity_Gym_Text_RoxanneDefeat: @ 821370B
.string "So…\n"
.string "I lost…\p"
.string "It seems that I still have much more\n"
@@ -199,18 +199,18 @@ RustboroCity_Gym_Text_21370B: @ 821370B
.string "Please accept the official POKéMON\n"
.string "LEAGUE STONE BADGE.$"
-RustboroCity_Gym_Text_2137EC: @ 82137EC
+RustboroCity_Gym_Text_ReceivedStoneBadge: @ 82137EC
.string "{PLAYER} received the STONE BADGE\n"
.string "from ROXANNE.$"
-RustboroCity_Gym_Text_213816: @ 8213816
+RustboroCity_Gym_Text_StoneBadgeInfoTakeThis: @ 8213816
.string "The STONE BADGE heightens the ATTACK\n"
.string "power of your POKéMON.\p"
.string "It also enables them to use the HM move\n"
.string "CUT outside of battle.\p"
.string "Please take this with you, too.$"
-RustboroCity_Gym_Text_2138B1: @ 82138B1
+RustboroCity_Gym_Text_ExplainRockTomb: @ 82138B1
.string "That TECHNICAL MACHINE, TM39,\n"
.string "contains ROCK TOMB.\p"
.string "It not only inflicts damage by dropping\n"
@@ -220,22 +220,21 @@ RustboroCity_Gym_Text_2138B1: @ 82138B1
.string "Remember, a TM can be used only once,\n"
.string "so think before you use it.$"
-RustboroCity_Gym_Text_2139A7: @ 82139A7
+RustboroCity_Gym_Text_RoxannePostBattle: @ 82139A7
.string "Since you are so strong, you should\n"
.string "challenge other GYM LEADERS.\p"
.string "By battling many TRAINERS, you should\n"
.string "learn many things.$"
-RustboroCity_Gym_Text_213A21: @ 8213A21
+RustboroCity_Gym_Text_GymStatue: @ 8213A21
.string "RUSTBORO CITY POKéMON GYM$"
-RustboroCity_Gym_Text_213A3B: @ 8213A3B
+RustboroCity_Gym_Text_GymStatueCertified: @ 8213A3B
.string "RUSTBORO CITY POKéMON GYM\p"
.string "ROXANNE'S CERTIFIED TRAINERS:\n"
.string "{PLAYER}$"
-
-RustboroCity_Gym_Text_213A76: @ 8213A76
+RustboroCity_Gym_Text_RoxanneRegisterCall: @ 8213A76
.string "… … … … … …\n"
.string "… … … … … Beep!\p"
.string "ROXANNE: Oh, hello, {PLAYER}?\n"
@@ -252,11 +251,11 @@ RustboroCity_Gym_Text_213A76: @ 8213A76
.string "… … … … … …\n"
.string "… … … … … Click!$"
-RustboroCity_Gym_Text_213C01: @ 8213C01
+RustboroCity_Gym_Text_RegisteredRoxanne: @ 8213C01
.string "Registered GYM LEADER ROXANNE\n"
.string "in the POKéNAV.$"
-RustboroCity_Gym_Text_213C2F: @ 8213C2F
+RustboroCity_Gym_Text_RoxannePreRematch: @ 8213C2F
.string "ROXANNE: I'm so glad to see you again.\n"
.string "I'm ROXANNE, the GYM LEADER here.\p"
.string "I'm sure we've both experienced many\n"
@@ -264,17 +263,17 @@ RustboroCity_Gym_Text_213C2F: @ 8213C2F
.string "I would like to see how much better\n"
.string "we've become. Let us battle!$"
-RustboroCity_Gym_Text_213CF9: @ 8213CF9
+RustboroCity_Gym_Text_RoxanneRematchDefeat: @ 8213CF9
.string "Grr…\n"
.string "Again, I have lost…$"
-RustboroCity_Gym_Text_213D12: @ 8213D12
+RustboroCity_Gym_Text_RoxannePostRematch: @ 8213D12
.string "ROXANNE: I still have much to learn\n"
.string "when it comes to battling POKéMON.\p"
.string "That awareness makes me love battling\n"
.string "all that much more!$"
-RustboroCity_Gym_Text_213D93: @ 8213D93
+RustboroCity_Gym_Text_RoxanneRematchNeedTwoMons: @ 8213D93
.string "ROXANNE: I'm so glad to see you again.\n"
.string "I'm ROXANNE, the GYM LEADER here.\p"
.string "I'm sure we've both experienced many\n"
diff --git a/data/maps/RustboroCity_House1/scripts.inc b/data/maps/RustboroCity_House1/scripts.inc
index eb5655b1a..f0a0f4827 100644
--- a/data/maps/RustboroCity_House1/scripts.inc
+++ b/data/maps/RustboroCity_House1/scripts.inc
@@ -5,7 +5,7 @@ RustboroCity_House1_EventScript_21593F:: @ 821593F
lock
faceplayer
goto_if_set FLAG_RUSTBORO_NPC_TRADE_COMPLETED, RustboroCity_House1_EventScript_2159D5
- setvar VAR_0x8008, 0
+ setvar VAR_0x8008, INGAME_TRADE_SEEDOT
copyvar VAR_0x8004, VAR_0x8008
specialvar VAR_RESULT, GetInGameTradeSpeciesInfo
copyvar VAR_0x8009, VAR_RESULT
diff --git a/data/maps/RustboroCity_PokemonCenter_1F/scripts.inc b/data/maps/RustboroCity_PokemonCenter_1F/scripts.inc
index 116d0fb50..46555ba28 100644
--- a/data/maps/RustboroCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/RustboroCity_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
RustboroCity_PokemonCenter_1F_MapScripts:: @ 8214D62
map_script MAP_SCRIPT_ON_TRANSITION, RustboroCity_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, RustboroCity_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
RustboroCity_PokemonCenter_1F_OnTransition: @ 8214D6D
diff --git a/data/maps/RustboroCity_PokemonCenter_2F/map.json b/data/maps/RustboroCity_PokemonCenter_2F/map.json
index db6388bba..812cb7c02 100644
--- a/data/maps/RustboroCity_PokemonCenter_2F/map.json
+++ b/data/maps/RustboroCity_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "RustboroCity_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "RustboroCity_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "RustboroCity_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "RustboroCity_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/RustboroCity_PokemonCenter_2F/scripts.inc b/data/maps/RustboroCity_PokemonCenter_2F/scripts.inc
index 3c62abc4a..ba7b5b285 100644
--- a/data/maps/RustboroCity_PokemonCenter_2F/scripts.inc
+++ b/data/maps/RustboroCity_PokemonCenter_2F/scripts.inc
@@ -1,19 +1,20 @@
RustboroCity_PokemonCenter_2F_MapScripts:: @ 8214EDE
- map_script MAP_SCRIPT_ON_FRAME_TABLE, RustboroCity_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, RustboroCity_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, RustboroCity_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-RustboroCity_PokemonCenter_2F_EventScript_214EF3:: @ 8214EF3
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+RustboroCity_PokemonCenter_2F_EventScript_Colosseum:: @ 8214EF3
+ call CableClub_EventScript_Colosseum
end
-RustboroCity_PokemonCenter_2F_EventScript_214EF9:: @ 8214EF9
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+RustboroCity_PokemonCenter_2F_EventScript_TradeCenter:: @ 8214EF9
+ call CableClub_EventScript_TradeCenter
end
-RustboroCity_PokemonCenter_2F_EventScript_214EFF:: @ 8214EFF
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+RustboroCity_PokemonCenter_2F_EventScript_RecordCorner:: @ 8214EFF
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/RustboroCity_PokemonSchool/scripts.inc b/data/maps/RustboroCity_PokemonSchool/scripts.inc
index 4d0abc9c3..db4bf21f0 100644
--- a/data/maps/RustboroCity_PokemonSchool/scripts.inc
+++ b/data/maps/RustboroCity_PokemonSchool/scripts.inc
@@ -78,16 +78,16 @@ RustboroCity_PokemonSchool_EventScript_213F95:: @ 8213F95
lock
faceplayer
goto_if_set FLAG_RECEIVED_QUICK_CLAW, RustboroCity_PokemonSchool_EventScript_213FFB
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq RustboroCity_PokemonSchool_EventScript_213FE5
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq RustboroCity_PokemonSchool_EventScript_213FF0
msgbox RustboroCity_PokemonSchool_Text_214433, MSGBOX_DEFAULT
giveitem_std ITEM_QUICK_CLAW
compare VAR_RESULT, 0
goto_if_eq Common_EventScript_ShowBagIsFull
closemessage
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceDown
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
setflag FLAG_RECEIVED_QUICK_CLAW
release
@@ -106,7 +106,7 @@ RustboroCity_PokemonSchool_EventScript_213FF0:: @ 8213FF0
RustboroCity_PokemonSchool_EventScript_213FFB:: @ 8213FFB
msgbox RustboroCity_PokemonSchool_Text_2144C8, MSGBOX_DEFAULT
closemessage
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceDown
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
release
end
diff --git a/data/maps/RusturfTunnel/scripts.inc b/data/maps/RusturfTunnel/scripts.inc
index 8cb20e372..9bdec7e8e 100644
--- a/data/maps/RusturfTunnel/scripts.inc
+++ b/data/maps/RusturfTunnel/scripts.inc
@@ -94,7 +94,7 @@ RusturfTunnel_EventScript_22CF6F:: @ 822CF6F
applymovement EVENT_OBJ_ID_PLAYER, RusturfTunnel_Movement_22D045
applymovement 1, RusturfTunnel_Movement_22D06C
waitmovement 0
- applymovement 10, Common_Movement_WalkInPlaceDown
+ applymovement 10, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
@@ -102,14 +102,14 @@ RusturfTunnel_EventScript_22CF8B:: @ 822CF8B
applymovement EVENT_OBJ_ID_PLAYER, RusturfTunnel_Movement_22D045
applymovement 1, RusturfTunnel_Movement_22D06C
waitmovement 0
- applymovement 10, Common_Movement_WalkInPlaceDown
+ applymovement 10, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
RusturfTunnel_EventScript_22CFA7:: @ 822CFA7
- applymovement 1, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
diff --git a/data/maps/SSTidalCorridor/scripts.inc b/data/maps/SSTidalCorridor/scripts.inc
index ec231ccdd..f91cc6a3b 100644
--- a/data/maps/SSTidalCorridor/scripts.inc
+++ b/data/maps/SSTidalCorridor/scripts.inc
@@ -201,7 +201,7 @@ SSTidalCorridor_EventScript_23C219:: @ 823C219
lockall
applymovement 5, SSTidalCorridor_Movement_23C26D
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox SSTidalCorridor_Text_23C28F, MSGBOX_DEFAULT
closemessage
diff --git a/data/maps/SafariZone_South/scripts.inc b/data/maps/SafariZone_South/scripts.inc
index 45273de12..a6c3629bc 100644
--- a/data/maps/SafariZone_South/scripts.inc
+++ b/data/maps/SafariZone_South/scripts.inc
@@ -69,8 +69,8 @@ SafariZone_South_EventScript_23D31A:: @ 823D31A
msgbox SafariZone_South_Text_2A5248, MSGBOX_DEFAULT
closemessage
switch VAR_FACING
- case 2, SafariZone_South_EventScript_23D33F
- case 4, SafariZone_South_EventScript_23D359
+ case DIR_NORTH, SafariZone_South_EventScript_23D33F
+ case DIR_EAST, SafariZone_South_EventScript_23D359
end
SafariZone_South_EventScript_23D33F:: @ 823D33F
diff --git a/data/maps/SeafloorCavern_Entrance/scripts.inc b/data/maps/SeafloorCavern_Entrance/scripts.inc
index bc4f04b7f..e10b52d00 100644
--- a/data/maps/SeafloorCavern_Entrance/scripts.inc
+++ b/data/maps/SeafloorCavern_Entrance/scripts.inc
@@ -18,48 +18,48 @@ SeafloorCavern_Entrance_EventScript_234485:: @ 8234485
applymovement 1, Common_Movement_Delay48
waitmovement 0
delay 20
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq SeafloorCavern_Entrance_EventScript_23452E
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq SeafloorCavern_Entrance_EventScript_234523
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq SeafloorCavern_Entrance_EventScript_234539
delay 30
setvar VAR_HAS_TALKED_TO_SEAFLOOR_CAVERN_ENTRANCE_GRUNT, 1
copyobjectxytoperm 1
msgbox SeafloorCavern_Entrance_Text_234544, MSGBOX_DEFAULT
closemessage
- applymovement 1, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
releaseall
end
SeafloorCavern_Entrance_EventScript_2344ED:: @ 82344ED
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq SeafloorCavern_Entrance_EventScript_23452E
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq SeafloorCavern_Entrance_EventScript_234523
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq SeafloorCavern_Entrance_EventScript_234539
msgbox SeafloorCavern_Entrance_Text_2346C8, MSGBOX_DEFAULT
closemessage
- applymovement 1, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
releaseall
end
SeafloorCavern_Entrance_EventScript_234523:: @ 8234523
- applymovement 1, Common_Movement_WalkInPlaceLeft
+ applymovement 1, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
SeafloorCavern_Entrance_EventScript_23452E:: @ 823452E
- applymovement 1, Common_Movement_WalkInPlaceRight
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
SeafloorCavern_Entrance_EventScript_234539:: @ 8234539
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
diff --git a/data/maps/SeafloorCavern_Room9/scripts.inc b/data/maps/SeafloorCavern_Room9/scripts.inc
index 49981d335..026c29700 100644
--- a/data/maps/SeafloorCavern_Room9/scripts.inc
+++ b/data/maps/SeafloorCavern_Room9/scripts.inc
@@ -7,7 +7,7 @@ SeafloorCavern_Room9_EventScript_234DC9:: @ 8234DC9
setvar VAR_0x8005, 3
setvar VAR_0x8006, 4
setvar VAR_0x8007, 5
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, SeafloorCavern_Room9_Movement_23505C
waitmovement 0
@@ -15,12 +15,12 @@ SeafloorCavern_Room9_EventScript_234DC9:: @ 8234DC9
msgbox SeafloorCavern_Room9_Text_23505F, MSGBOX_DEFAULT
closemessage
addobject VAR_0x8004
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
applymovement VAR_0x8004, SeafloorCavern_Room9_Movement_23502A
waitmovement 0
msgbox SeafloorCavern_Room9_Text_23507C, MSGBOX_DEFAULT
- applymovement VAR_0x8004, Common_Movement_WalkInPlaceUp
+ applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox SeafloorCavern_Room9_Text_2350A6, MSGBOX_DEFAULT
applymovement VAR_0x8004, Common_Movement_FacePlayer
@@ -30,7 +30,7 @@ SeafloorCavern_Room9_EventScript_234DC9:: @ 8234DC9
msgbox SeafloorCavern_Room9_Text_2351E5, MSGBOX_DEFAULT
setweather WEATHER_NONE
doweather
- special sub_80B05B4
+ special Script_FadeOutMapMusic
waitstate
msgbox SeafloorCavern_Room9_Text_235279, MSGBOX_DEFAULT
special WaitWeather
@@ -47,8 +47,8 @@ SeafloorCavern_Room9_EventScript_234DC9:: @ 8234DC9
playfanfare MUS_ME_TAMA
playse SE_TAMA
special sub_80B0534
- applymovement VAR_0x8004, Common_Movement_WalkInPlaceUp
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
delay 150
removeobject 7
@@ -82,7 +82,7 @@ SeafloorCavern_Room9_EventScript_234DC9:: @ 8234DC9
setvar VAR_0x8007, 5
msgbox SeafloorCavern_Room9_Text_2352A7, MSGBOX_DEFAULT
playse SE_PC_LOGIN
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox SeafloorCavern_Room9_Text_2352F6, MSGBOX_DEFAULT
closemessage
@@ -92,7 +92,7 @@ SeafloorCavern_Room9_EventScript_234DC9:: @ 8234DC9
closemessage
playse SE_PC_OFF
delay 20
- applymovement VAR_0x8004, Common_Movement_WalkInPlaceDown
+ applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox SeafloorCavern_Room9_Text_23546F, MSGBOX_DEFAULT
closemessage
@@ -103,7 +103,7 @@ SeafloorCavern_Room9_EventScript_234DC9:: @ 8234DC9
applymovement VAR_0x8006, SeafloorCavern_Room9_Movement_235057
applymovement VAR_0x8005, SeafloorCavern_Room9_Movement_23504E
waitmovement 0
- applymovement VAR_0x8004, Common_Movement_WalkInPlaceLeft
+ applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox SeafloorCavern_Room9_Text_2354F0, MSGBOX_DEFAULT
playse SE_PIN
diff --git a/data/maps/SingleBattleColosseum/map.json b/data/maps/SingleBattleColosseum/map.json
index a7ad50f1b..f63464424 100644
--- a/data/maps/SingleBattleColosseum/map.json
+++ b/data/maps/SingleBattleColosseum/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SingleBattleColosseum_EventScript_2774A6",
+ "script": "SingleBattleColosseum_EventScript_Attendant",
"flag": "0"
}
],
diff --git a/data/maps/SkyPillar_2F/scripts.inc b/data/maps/SkyPillar_2F/scripts.inc
index 27f985b16..8a02974ea 100644
--- a/data/maps/SkyPillar_2F/scripts.inc
+++ b/data/maps/SkyPillar_2F/scripts.inc
@@ -1,20 +1,20 @@
SkyPillar_2F_MapScripts:: @ 823962B
- map_script MAP_SCRIPT_ON_FRAME_TABLE, SkyPillar_2F_MapScript2_2A8327
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CaveHole_CheckFallDownHole
map_script MAP_SCRIPT_ON_TRANSITION, SkyPillar_2F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, SkyPillar_2F_MapScript1_239650
+ map_script MAP_SCRIPT_ON_RESUME, SkyPillar_2F_SetHoleWarp
.byte 0
SkyPillar_2F_OnTransition: @ 823963B
compare VAR_SKY_PILLAR_STATE, 2
call_if_lt SkyPillar_2F_EventScript_CleanFloor
- copyvar VAR_ICE_STEP_COUNT, 0x1
+ copyvar VAR_ICE_STEP_COUNT, 1
end
SkyPillar_2F_EventScript_CleanFloor:: @ 823964C
setmaplayoutindex LAYOUT_SKY_PILLAR_2F_CLEAN
return
-SkyPillar_2F_MapScript1_239650: @ 8239650
+SkyPillar_2F_SetHoleWarp: @ 8239650
setstepcallback STEP_CB_CRACKED_FLOOR
setholewarp MAP_SKY_PILLAR_1F, 255, 0, 0
end
diff --git a/data/maps/SkyPillar_4F/scripts.inc b/data/maps/SkyPillar_4F/scripts.inc
index 0736dce36..af54deaff 100644
--- a/data/maps/SkyPillar_4F/scripts.inc
+++ b/data/maps/SkyPillar_4F/scripts.inc
@@ -1,20 +1,20 @@
SkyPillar_4F_MapScripts:: @ 8239671
- map_script MAP_SCRIPT_ON_FRAME_TABLE, SkyPillar_4F_MapScript2_2A8327
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CaveHole_CheckFallDownHole
map_script MAP_SCRIPT_ON_TRANSITION, SkyPillar_4F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, SkyPillar_4F_MapScript1_239696
+ map_script MAP_SCRIPT_ON_RESUME, SkyPillar_4F_SetHoleWarp
.byte 0
SkyPillar_4F_OnTransition: @ 8239681
compare VAR_SKY_PILLAR_STATE, 2
call_if_lt SkyPillar_4F_EventScript_CleanFloor
- copyvar VAR_ICE_STEP_COUNT, 0x1
+ copyvar VAR_ICE_STEP_COUNT, 1
end
SkyPillar_4F_EventScript_CleanFloor:: @ 8239692
setmaplayoutindex LAYOUT_SKY_PILLAR_4F_CLEAN
return
-SkyPillar_4F_MapScript1_239696: @ 8239696
+SkyPillar_4F_SetHoleWarp: @ 8239696
setstepcallback STEP_CB_CRACKED_FLOOR
setholewarp MAP_SKY_PILLAR_3F, 255, 0, 0
end
diff --git a/data/maps/SkyPillar_Outside/scripts.inc b/data/maps/SkyPillar_Outside/scripts.inc
index 9262ca4c4..72748842b 100644
--- a/data/maps/SkyPillar_Outside/scripts.inc
+++ b/data/maps/SkyPillar_Outside/scripts.inc
@@ -36,7 +36,7 @@ SkyPillar_Outside_EventScript_239304:: @ 8239304
lockall
applymovement 1, SkyPillar_Outside_Movement_2393D3
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox SkyPillar_Outside_Text_239416, MSGBOX_DEFAULT
closemessage
@@ -60,13 +60,13 @@ SkyPillar_Outside_EventScript_239304:: @ 8239304
special ShakeCamera
waitstate
delay 20
- applymovement 1, Common_Movement_WalkInPlaceLeft
+ applymovement 1, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
delay 10
- applymovement 1, Common_Movement_WalkInPlaceRight
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
delay 20
- applymovement 1, Common_Movement_WalkInPlaceDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 30
msgbox SkyPillar_Outside_Text_23950C, MSGBOX_DEFAULT
diff --git a/data/maps/SkyPillar_Top/scripts.inc b/data/maps/SkyPillar_Top/scripts.inc
index 4ab5b3424..95f430cbd 100644
--- a/data/maps/SkyPillar_Top/scripts.inc
+++ b/data/maps/SkyPillar_Top/scripts.inc
@@ -10,7 +10,7 @@ SkyPillar_Top_MapScript1_2396C8: @ 82396C8
SkyPillar_Top_EventScript_2396D2:: @ 82396D2
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject VAR_LAST_TALKED
return
@@ -55,11 +55,11 @@ SkyPillar_Top_EventScript_239722:: @ 8239722
waitstate
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq SkyPillar_Top_EventScript_239768
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq SkyPillar_Top_EventScript_239771
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq SkyPillar_Top_EventScript_239771
setflag FLAG_DEFEATED_RAYQUAZA
releaseall
diff --git a/data/maps/SlateportCity/scripts.inc b/data/maps/SlateportCity/scripts.inc
index e4753b501..d7fab0171 100644
--- a/data/maps/SlateportCity/scripts.inc
+++ b/data/maps/SlateportCity/scripts.inc
@@ -61,11 +61,11 @@ SlateportCity_EventScript_1DCD1C:: @ 81DCD1C
waitmovement 0
msgbox SlateportCity_Text_1DF032, MSGBOX_DEFAULT
closemessage
- applymovement 35, Common_Movement_WalkInPlaceLeft
+ applymovement 35, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
delay 60
msgbox SlateportCity_Text_1DF0FE, MSGBOX_DEFAULT
- applymovement 35, Common_Movement_WalkInPlaceRight
+ applymovement 35, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox SlateportCity_Text_1DF12B, MSGBOX_DEFAULT
closemessage
@@ -563,10 +563,10 @@ SlateportCity_EventScript_1DD1F8:: @ 81DD1F8
msgbox SlateportCity_Text_1DE502, MSGBOX_DEFAULT
msgbox SlateportCity_Text_1DE54A, MSGBOX_DEFAULT
closemessage
- applymovement 10, Common_Movement_WalkInPlaceRight
+ applymovement 10, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
delay 10
- applymovement 9, Common_Movement_WalkInPlaceDown
+ applymovement 9, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 25
applymovement 11, SlateportCity_Movement_1DD33C
@@ -577,18 +577,18 @@ SlateportCity_EventScript_1DD1F8:: @ 81DD1F8
removeobject 10
removeobject 9
msgbox SlateportCity_Text_1DE5F7, MSGBOX_DEFAULT
- applymovement 11, Common_Movement_WalkInPlaceUp
+ applymovement 11, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox SlateportCity_Text_1DE64F, MSGBOX_DEFAULT
playbgm MUS_AQA_0, 0
msgbox SlateportCity_Text_1DE724, MSGBOX_DEFAULT
- applymovement 6, Common_Movement_WalkInPlaceLeft
- applymovement 1, Common_Movement_WalkInPlaceLeft
+ applymovement 6, Common_Movement_WalkInPlaceFastestLeft
+ applymovement 1, Common_Movement_WalkInPlaceFastestLeft
applymovement 7, SlateportCity_Movement_1DD309
- applymovement 3, SlateportCity_Movement_272596
+ applymovement 3, Common_Movement_QuestionMark
applymovement 2, SlateportCity_Movement_1DD311
waitmovement 0
- applymovement 11, Common_Movement_WalkInPlaceDown
+ applymovement 11, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox SlateportCity_Text_1DE7F7, MSGBOX_DEFAULT
playse SE_PIN
@@ -596,7 +596,7 @@ SlateportCity_EventScript_1DD1F8:: @ 81DD1F8
waitmovement 0
applymovement 11, Common_Movement_Delay48
waitmovement 0
- applymovement 11, Common_Movement_WalkInPlaceUp
+ applymovement 11, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox SlateportCity_Text_1DE860, MSGBOX_DEFAULT
msgbox SlateportCity_Text_1DE8A0, MSGBOX_DEFAULT
diff --git a/data/maps/SlateportCity_BattleTentCorridor/scripts.inc b/data/maps/SlateportCity_BattleTentCorridor/scripts.inc
index 5ab5b78e9..fcbfa025c 100644
--- a/data/maps/SlateportCity_BattleTentCorridor/scripts.inc
+++ b/data/maps/SlateportCity_BattleTentCorridor/scripts.inc
@@ -44,7 +44,7 @@ SlateportCity_BattleTentCorridor_EventScript_208E65:: @ 8208E65
SlateportCity_BattleTentCorridor_EventScript_208EB4:: @ 8208EB4
msgbox SlateportCity_BattleTentCorridor_Text_25AB96, MSGBOX_DEFAULT
closemessage
- applymovement 1, Common_Movement_WalkInPlaceUp
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
opendoor 2, 1
waitdooranim
diff --git a/data/maps/SlateportCity_Harbor/scripts.inc b/data/maps/SlateportCity_Harbor/scripts.inc
index b6888ddd5..aa0eaab77 100644
--- a/data/maps/SlateportCity_Harbor/scripts.inc
+++ b/data/maps/SlateportCity_Harbor/scripts.inc
@@ -48,10 +48,10 @@ SlateportCity_Harbor_EventScript_20C9DF:: @ 820C9DF
end
SlateportCity_Harbor_EventScript_20C9F5:: @ 820C9F5
- applymovement 7, Common_Movement_WalkInPlaceDown
+ applymovement 7, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
- applymovement 6, Common_Movement_WalkInPlaceDown
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement 6, Common_Movement_WalkInPlaceFastestDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox SlateportCity_Harbor_Text_20D291, MSGBOX_DEFAULT
closemessage
@@ -85,21 +85,21 @@ SlateportCity_Harbor_EventScript_20C9F5:: @ 820C9F5
SlateportCity_Harbor_EventScript_20CA89:: @ 820CA89
applymovement 4, SlateportCity_Harbor_Movement_20CAE0
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
return
SlateportCity_Harbor_EventScript_20CA9E:: @ 820CA9E
applymovement 4, SlateportCity_Harbor_Movement_20CAE6
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
SlateportCity_Harbor_EventScript_20CAB3:: @ 820CAB3
applymovement 4, SlateportCity_Harbor_Movement_20CAEB
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
@@ -226,13 +226,13 @@ SlateportCity_Harbor_EventScript_20CBDD:: @ 820CBDD
SlateportCity_Harbor_EventScript_20CBE9:: @ 820CBE9
msgbox SlateportCity_Harbor_Text_20CFCB, MSGBOX_DEFAULT
closemessage
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceUp
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
delay 30
hideobjectat VAR_LAST_TALKED, MAP_SLATEPORT_CITY_HARBOR
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq SlateportCity_Harbor_EventScript_20CC42
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq SlateportCity_Harbor_EventScript_20CC37
delay 30
hideobjectat EVENT_OBJ_ID_PLAYER, MAP_PETALBURG_CITY
diff --git a/data/maps/SlateportCity_OceanicMuseum_1F/scripts.inc b/data/maps/SlateportCity_OceanicMuseum_1F/scripts.inc
index 0516db1fc..f0a4305c1 100644
--- a/data/maps/SlateportCity_OceanicMuseum_1F/scripts.inc
+++ b/data/maps/SlateportCity_OceanicMuseum_1F/scripts.inc
@@ -7,14 +7,14 @@ SlateportCity_OceanicMuseum_1F_EventScript_20AD96:: @ 820AD96
SlateportCity_OceanicMuseum_1F_EventScript_20AD9F:: @ 820AD9F
lockall
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
goto SlateportCity_OceanicMuseum_1F_EventScript_20ADC1
end
SlateportCity_OceanicMuseum_1F_EventScript_20ADB0:: @ 820ADB0
lockall
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
goto SlateportCity_OceanicMuseum_1F_EventScript_20ADC1
end
@@ -165,13 +165,13 @@ SlateportCity_OceanicMuseum_1F_EventScript_20AEF8:: @ 820AEF8
setflag FLAG_RECEIVED_TM46
msgbox SlateportCity_OceanicMuseum_1F_Text_20B449, MSGBOX_DEFAULT
closemessage
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_20AF6C
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_20AF83
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_20AF93
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_20AF93
end
diff --git a/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc b/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc
index 7a03202ad..ab47c1dea 100644
--- a/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc
+++ b/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc
@@ -16,21 +16,21 @@ SlateportCity_OceanicMuseum_2F_EventScript_20BB00:: @ 820BB00
applymovement 3, SlateportCity_OceanicMuseum_2F_Movement_20BCE8
applymovement 4, SlateportCity_OceanicMuseum_2F_Movement_20BCF5
waitmovement 0
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq SlateportCity_OceanicMuseum_2F_EventScript_20BC92
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq SlateportCity_OceanicMuseum_2F_EventScript_20BC92
msgbox SlateportCity_OceanicMuseum_2F_Text_20BE40, MSGBOX_DEFAULT
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_ne SlateportCity_OceanicMuseum_2F_EventScript_20BC9D
msgbox SlateportCity_OceanicMuseum_2F_Text_20BE69, MSGBOX_DEFAULT
msgbox SlateportCity_OceanicMuseum_2F_Text_20BE93, MSGBOX_DEFAULT
closemessage
applymovement 4, SlateportCity_OceanicMuseum_2F_Movement_20BCE2
waitmovement 0
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq SlateportCity_OceanicMuseum_2F_EventScript_20BCA8
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq SlateportCity_OceanicMuseum_2F_EventScript_20BCB3
trainerbattle_no_intro TRAINER_GRUNT_14, SlateportCity_OceanicMuseum_2F_Text_20BEE2
msgbox SlateportCity_OceanicMuseum_2F_Text_20BEFA, MSGBOX_DEFAULT
@@ -43,8 +43,8 @@ SlateportCity_OceanicMuseum_2F_EventScript_20BB00:: @ 820BB00
trainerbattle_no_intro TRAINER_GRUNT_15, SlateportCity_OceanicMuseum_2F_Text_20BF66
applymovement 3, SlateportCity_OceanicMuseum_2F_Movement_20BCEF
waitmovement 0
- applymovement 3, Common_Movement_WalkInPlaceDown
- applymovement 4, Common_Movement_WalkInPlaceUp
+ applymovement 3, Common_Movement_WalkInPlaceFastestDown
+ applymovement 4, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox SlateportCity_OceanicMuseum_2F_Text_20BF7A, MSGBOX_DEFAULT
closemessage
@@ -68,7 +68,7 @@ SlateportCity_OceanicMuseum_2F_EventScript_20BB00:: @ 820BB00
fadescreen 0
delay 30
setflag FLAG_HIDE_SLATEPORT_CITY_OCEANIC_MUSEUM_AQUA_GRUNTS
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox SlateportCity_OceanicMuseum_2F_Text_20C2BE, MSGBOX_DEFAULT
setvar VAR_0x8004, ITEM_DEVON_GOODS
@@ -96,12 +96,12 @@ SlateportCity_OceanicMuseum_2F_EventScript_20BC8C:: @ 820BC8C
return
SlateportCity_OceanicMuseum_2F_EventScript_20BC92:: @ 820BC92
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
SlateportCity_OceanicMuseum_2F_EventScript_20BC9D:: @ 820BC9D
- applymovement 1, Common_Movement_WalkInPlaceLeft
+ applymovement 1, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
diff --git a/data/maps/SlateportCity_PokemonCenter_1F/scripts.inc b/data/maps/SlateportCity_PokemonCenter_1F/scripts.inc
index a6c344a21..f148e5d3f 100644
--- a/data/maps/SlateportCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/SlateportCity_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
SlateportCity_PokemonCenter_1F_MapScripts:: @ 820DABF
map_script MAP_SCRIPT_ON_TRANSITION, SlateportCity_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, SlateportCity_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
SlateportCity_PokemonCenter_1F_OnTransition: @ 820DACA
diff --git a/data/maps/SlateportCity_PokemonCenter_2F/map.json b/data/maps/SlateportCity_PokemonCenter_2F/map.json
index e6ad0518b..74cccebf0 100644
--- a/data/maps/SlateportCity_PokemonCenter_2F/map.json
+++ b/data/maps/SlateportCity_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SlateportCity_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SlateportCity_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SlateportCity_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SlateportCity_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/SlateportCity_PokemonCenter_2F/scripts.inc b/data/maps/SlateportCity_PokemonCenter_2F/scripts.inc
index a9d48f43d..6406df27d 100644
--- a/data/maps/SlateportCity_PokemonCenter_2F/scripts.inc
+++ b/data/maps/SlateportCity_PokemonCenter_2F/scripts.inc
@@ -1,19 +1,20 @@
SlateportCity_PokemonCenter_2F_MapScripts:: @ 820DC21
- map_script MAP_SCRIPT_ON_FRAME_TABLE, SlateportCity_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, SlateportCity_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, SlateportCity_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-SlateportCity_PokemonCenter_2F_EventScript_20DC36:: @ 820DC36
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+SlateportCity_PokemonCenter_2F_EventScript_Colosseum:: @ 820DC36
+ call CableClub_EventScript_Colosseum
end
-SlateportCity_PokemonCenter_2F_EventScript_20DC3C:: @ 820DC3C
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+SlateportCity_PokemonCenter_2F_EventScript_TradeCenter:: @ 820DC3C
+ call CableClub_EventScript_TradeCenter
end
-SlateportCity_PokemonCenter_2F_EventScript_20DC42:: @ 820DC42
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+SlateportCity_PokemonCenter_2F_EventScript_RecordCorner:: @ 820DC42
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/SlateportCity_PokemonFanClub/map.json b/data/maps/SlateportCity_PokemonFanClub/map.json
index 045a0c315..faf7e7db2 100644
--- a/data/maps/SlateportCity_PokemonFanClub/map.json
+++ b/data/maps/SlateportCity_PokemonFanClub/map.json
@@ -128,7 +128,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SlateportCity_PokemonFanClub_EventScript_2C7F16",
+ "script": "SlateportCity_PokemonFanClub_EventScript_SwaggerTutor",
"flag": "0"
}
],
diff --git a/data/maps/SootopolisCity/scripts.inc b/data/maps/SootopolisCity/scripts.inc
index 04186ee08..817ae4402 100644
--- a/data/maps/SootopolisCity/scripts.inc
+++ b/data/maps/SootopolisCity/scripts.inc
@@ -219,8 +219,8 @@ SootopolisCity_EventScript_1E5946:: @ 81E5946
setvar VAR_0x8004, 0
special Script_DoRayquazaScene
waitstate
- applymovement 10, Common_Movement_WalkInPlaceLeft
- applymovement 9, Common_Movement_WalkInPlaceRight
+ applymovement 10, Common_Movement_WalkInPlaceFastestLeft
+ applymovement 9, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
delay 60
waitse
@@ -319,8 +319,8 @@ SootopolisCity_EventScript_1E5A82:: @ 81E5A82
setvar VAR_0x8004, 0
special Script_DoRayquazaScene
waitstate
- applymovement 10, Common_Movement_WalkInPlaceLeft
- applymovement 9, Common_Movement_WalkInPlaceRight
+ applymovement 10, Common_Movement_WalkInPlaceFastestLeft
+ applymovement 9, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
delay 60
waitse
@@ -959,9 +959,9 @@ SootopolisCity_EventScript_1E61C2:: @ 81E61C2
SootopolisCity_EventScript_1E61CC:: @ 81E61CC
msgbox SootopolisCity_Text_1E75CB, MSGBOX_DEFAULT
closemessage
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq SootopolisCity_EventScript_1E6243
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq SootopolisCity_EventScript_1E6255
msgbox SootopolisCity_Text_1E7737, MSGBOX_DEFAULT
closemessage
@@ -1354,11 +1354,11 @@ SootopolisCity_EventScript_1E646F:: @ 81E646F
setflag FLAG_RECEIVED_HM07
msgbox SootopolisCity_Text_1E7B86, MSGBOX_DEFAULT
closemessage
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq SootopolisCity_EventScript_1E64B2
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq SootopolisCity_EventScript_1E64B2
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq SootopolisCity_EventScript_1E64C5
release
end
diff --git a/data/maps/SootopolisCity_MysteryEventsHouse_1F/scripts.inc b/data/maps/SootopolisCity_MysteryEventsHouse_1F/scripts.inc
index 78938b7d8..e6e522908 100644
--- a/data/maps/SootopolisCity_MysteryEventsHouse_1F/scripts.inc
+++ b/data/maps/SootopolisCity_MysteryEventsHouse_1F/scripts.inc
@@ -37,7 +37,7 @@ SootopolisCity_MysteryEventsHouse_1F_EventScript_2279B7:: @ 82279B7
applymovement 1, SootopolisCity_MysteryEventsHouse_1F_Movement_227A21
waitmovement 0
copyobjectxytoperm 1
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
compare VAR_SOOTOPOLIS_MYSTERY_EVENTS_STATE, 1
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227A04
@@ -109,11 +109,11 @@ SootopolisCity_MysteryEventsHouse_1F_EventScript_227A58:: @ 8227A58
special ReducePlayerPartyToSelectedMons
msgbox SootopolisCity_MysteryEventsHouse_1F_Text_227D21, MSGBOX_DEFAULT
closemessage
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227AFE
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227B10
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq SootopolisCity_MysteryEventsHouse_1F_EventScript_227B22
warp MAP_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_B1F, 255, 3, 1
waitstate
diff --git a/data/maps/SootopolisCity_PokemonCenter_1F/map.json b/data/maps/SootopolisCity_PokemonCenter_1F/map.json
index 90a8dcdad..a2307dc10 100644
--- a/data/maps/SootopolisCity_PokemonCenter_1F/map.json
+++ b/data/maps/SootopolisCity_PokemonCenter_1F/map.json
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SootopolisCity_PokemonCenter_1F_EventScript_2C8256",
+ "script": "SootopolisCity_PokemonCenter_1F_EventScript_DoubleEdgeTutor",
"flag": "0"
}
],
diff --git a/data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc b/data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc
index 41a180c4f..d2b546831 100644
--- a/data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc
+++ b/data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
SootopolisCity_PokemonCenter_1F_MapScripts:: @ 82264F1
map_script MAP_SCRIPT_ON_TRANSITION, SootopolisCity_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, SootopolisCity_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
SootopolisCity_PokemonCenter_1F_OnTransition: @ 82264FC
diff --git a/data/maps/SootopolisCity_PokemonCenter_2F/map.json b/data/maps/SootopolisCity_PokemonCenter_2F/map.json
index 33308de7b..6c00e8e21 100644
--- a/data/maps/SootopolisCity_PokemonCenter_2F/map.json
+++ b/data/maps/SootopolisCity_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SootopolisCity_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SootopolisCity_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SootopolisCity_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "SootopolisCity_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/SootopolisCity_PokemonCenter_2F/scripts.inc b/data/maps/SootopolisCity_PokemonCenter_2F/scripts.inc
index 4c9fce912..57d21cbb5 100644
--- a/data/maps/SootopolisCity_PokemonCenter_2F/scripts.inc
+++ b/data/maps/SootopolisCity_PokemonCenter_2F/scripts.inc
@@ -1,19 +1,20 @@
SootopolisCity_PokemonCenter_2F_MapScripts:: @ 822676D
- map_script MAP_SCRIPT_ON_FRAME_TABLE, SootopolisCity_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, SootopolisCity_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, SootopolisCity_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-SootopolisCity_PokemonCenter_2F_EventScript_226782:: @ 8226782
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+SootopolisCity_PokemonCenter_2F_EventScript_Colosseum:: @ 8226782
+ call CableClub_EventScript_Colosseum
end
-SootopolisCity_PokemonCenter_2F_EventScript_226788:: @ 8226788
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+SootopolisCity_PokemonCenter_2F_EventScript_TradeCenter:: @ 8226788
+ call CableClub_EventScript_TradeCenter
end
-SootopolisCity_PokemonCenter_2F_EventScript_22678E:: @ 822678E
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+SootopolisCity_PokemonCenter_2F_EventScript_RecordCorner:: @ 822678E
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/SouthernIsland_Exterior/scripts.inc b/data/maps/SouthernIsland_Exterior/scripts.inc
index 2ee0ae602..f5879e1e8 100644
--- a/data/maps/SouthernIsland_Exterior/scripts.inc
+++ b/data/maps/SouthernIsland_Exterior/scripts.inc
@@ -14,7 +14,7 @@ SouthernIsland_Exterior_EventScript_2429D2:: @ 82429D2
goto_if_eq SouthernIsland_Exterior_EventScript_242A17
msgbox EventTicket_Text_SailHome, MSGBOX_DEFAULT
closemessage
- applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceDown
+ applymovement VAR_LAST_TALKED, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
delay 30
hideobjectat 1, MAP_SOUTHERN_ISLAND_EXTERIOR
diff --git a/data/maps/SouthernIsland_Interior/scripts.inc b/data/maps/SouthernIsland_Interior/scripts.inc
index 6283516b0..7f4a55f29 100644
--- a/data/maps/SouthernIsland_Interior/scripts.inc
+++ b/data/maps/SouthernIsland_Interior/scripts.inc
@@ -9,7 +9,7 @@ SouthernIsland_Interior_MapScript1_242A50: @ 8242A50
SouthernIsland_Interior_EventScript_242A5A:: @ 8242A5A
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject 2
return
@@ -86,11 +86,11 @@ SouthernIsland_Interior_EventScript_242AD0:: @ 8242AD0
waitstate
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq SouthernIsland_Interior_EventScript_242B81
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq SouthernIsland_Interior_EventScript_242B8F
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq SouthernIsland_Interior_EventScript_242B8F
setflag FLAG_CAUGHT_LATIAS_OR_LATIOS
releaseall
diff --git a/data/maps/TerraCave_End/scripts.inc b/data/maps/TerraCave_End/scripts.inc
index df2e6f969..efab053aa 100644
--- a/data/maps/TerraCave_End/scripts.inc
+++ b/data/maps/TerraCave_End/scripts.inc
@@ -9,7 +9,7 @@ TerraCave_End_MapScript1_23B0BB: @ 823B0BB
TerraCave_End_EventScript_23B0C5:: @ 823B0C5
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject 1
return
@@ -41,11 +41,11 @@ TerraCave_End_EventScript_23B0EC:: @ 823B0EC
clearflag FLAG_SYS_CTRL_OBJ_DELETE
setvar VAR_TEMP_1, 0
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq TerraCave_End_EventScript_23B155
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq TerraCave_End_EventScript_23B163
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq TerraCave_End_EventScript_23B163
setvar VAR_SHOULD_END_UNUSUAL_WEATHER, 1
setflag FLAG_DEFEATED_GROUDON
diff --git a/data/maps/TradeCenter/map.json b/data/maps/TradeCenter/map.json
index 1c409132d..98e7d46c1 100644
--- a/data/maps/TradeCenter/map.json
+++ b/data/maps/TradeCenter/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "TradeCenter_EventScript_2774B6",
+ "script": "TradeCenter_EventScript_Attendant",
"flag": "0"
}
],
diff --git a/data/maps/TrainerHill_Entrance/scripts.inc b/data/maps/TrainerHill_Entrance/scripts.inc
index 840822780..3b9fb77a4 100644
--- a/data/maps/TrainerHill_Entrance/scripts.inc
+++ b/data/maps/TrainerHill_Entrance/scripts.inc
@@ -114,7 +114,7 @@ TrainerHill_Entrance_EventScript_2681EF:: @ 82681EF
TrainerHill_Entrance_EventScript_2681FD:: @ 82681FD
lock
faceplayer
- setvar VAR_0x8004, TRAINER_HILL_FUNC_10
+ setvar VAR_0x8004, TRAINER_HILL_FUNC_IS_IN
special CallTrainerHillFunction
compare VAR_RESULT, 0
goto_if_eq TrainerHill_Entrance_EventScript_26821F
diff --git a/data/maps/VerdanturfTown_BattleTentBattleRoom/scripts.inc b/data/maps/VerdanturfTown_BattleTentBattleRoom/scripts.inc
index fd8c05546..9a764cd58 100644
--- a/data/maps/VerdanturfTown_BattleTentBattleRoom/scripts.inc
+++ b/data/maps/VerdanturfTown_BattleTentBattleRoom/scripts.inc
@@ -77,8 +77,8 @@ VerdanturfTown_BattleTentBattleRoom_EventScript_2023C8:: @ 82023C8
applymovement 2, VerdanturfTown_BattleTentBattleRoom_Movement_202581
waitmovement 0
removeobject 2
- applymovement 3, Common_Movement_WalkInPlaceDown
- applymovement 1, Common_Movement_WalkInPlaceUp
+ applymovement 3, Common_Movement_WalkInPlaceFastestDown
+ applymovement 1, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox VerdanturfTown_BattleTentBattleRoom_Text_24FF00, MSGBOX_DEFAULT
special LoadPlayerParty
@@ -121,8 +121,8 @@ VerdanturfTown_BattleTentBattleRoom_EventScript_2024B8:: @ 82024B8
case MULTI_B_PRESSED, VerdanturfTown_BattleTentBattleRoom_EventScript_20243C
VerdanturfTown_BattleTentBattleRoom_EventScript_2024EA:: @ 82024EA
- applymovement 3, Common_Movement_WalkInPlaceRight
- applymovement 1, Common_Movement_WalkInPlaceRight
+ applymovement 3, Common_Movement_WalkInPlaceFastestRight
+ applymovement 1, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
closemessage
goto VerdanturfTown_BattleTentBattleRoom_EventScript_20236F
diff --git a/data/maps/VerdanturfTown_PokemonCenter_1F/map.json b/data/maps/VerdanturfTown_PokemonCenter_1F/map.json
index f9df06d33..c437aeece 100644
--- a/data/maps/VerdanturfTown_PokemonCenter_1F/map.json
+++ b/data/maps/VerdanturfTown_PokemonCenter_1F/map.json
@@ -63,7 +63,7 @@
"movement_range_y": 0,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "VerdanturfTown_PokemonCenter_1F_EventScript_2C7FE6",
+ "script": "VerdanturfTown_PokemonCenter_1F_EventScript_FuryCutterTutor",
"flag": "0"
}
],
diff --git a/data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc b/data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc
index f785e8771..32cecf152 100644
--- a/data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc
+++ b/data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc
@@ -1,6 +1,6 @@
VerdanturfTown_PokemonCenter_1F_MapScripts:: @ 8202726
map_script MAP_SCRIPT_ON_TRANSITION, VerdanturfTown_PokemonCenter_1F_OnTransition
- map_script MAP_SCRIPT_ON_RESUME, VerdanturfTown_PokemonCenter_1F_MapScript1_277C30
+ map_script MAP_SCRIPT_ON_RESUME, CableClub_OnResume
.byte 0
VerdanturfTown_PokemonCenter_1F_OnTransition: @ 8202731
diff --git a/data/maps/VerdanturfTown_PokemonCenter_2F/map.json b/data/maps/VerdanturfTown_PokemonCenter_2F/map.json
index bfa6db09e..26f0d3aaa 100644
--- a/data/maps/VerdanturfTown_PokemonCenter_2F/map.json
+++ b/data/maps/VerdanturfTown_PokemonCenter_2F/map.json
@@ -24,7 +24,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "VerdanturfTown_PokemonCenter_2F_EventScript_27375B",
+ "script": "Common_EventScript_UnionRoomAttendant",
"flag": "0"
},
{
@@ -37,7 +37,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "VerdanturfTown_PokemonCenter_2F_EventScript_273761",
+ "script": "Common_EventScript_WirelessClubAttendant",
"flag": "0"
},
{
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "VerdanturfTown_PokemonCenter_2F_EventScript_273767",
+ "script": "Common_EventScript_DirectCornerAttendant",
"flag": "0"
},
{
@@ -63,7 +63,7 @@
"movement_range_y": 1,
"trainer_type": "0",
"trainer_sight_or_berry_tree_id": "0",
- "script": "VerdanturfTown_PokemonCenter_2F_EventScript_276B03",
+ "script": "CableClub_EventScript_MysteryGiftMan",
"flag": "FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN"
}
],
diff --git a/data/maps/VerdanturfTown_PokemonCenter_2F/scripts.inc b/data/maps/VerdanturfTown_PokemonCenter_2F/scripts.inc
index 0964fa96f..7802f5b03 100644
--- a/data/maps/VerdanturfTown_PokemonCenter_2F/scripts.inc
+++ b/data/maps/VerdanturfTown_PokemonCenter_2F/scripts.inc
@@ -1,19 +1,20 @@
VerdanturfTown_PokemonCenter_2F_MapScripts:: @ 8202897
- map_script MAP_SCRIPT_ON_FRAME_TABLE, VerdanturfTown_PokemonCenter_2F_MapScript2_276C3B
- map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, VerdanturfTown_PokemonCenter_2F_MapScript2_276B6C
- map_script MAP_SCRIPT_ON_LOAD, VerdanturfTown_PokemonCenter_2F_MapScript1_276BBE
- map_script MAP_SCRIPT_ON_TRANSITION, PokemonCenter_2F_OnTransition
+ map_script MAP_SCRIPT_ON_FRAME_TABLE, CableClub_OnFrame
+ map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, CableClub_OnWarp
+ map_script MAP_SCRIPT_ON_LOAD, CableClub_OnLoad
+ map_script MAP_SCRIPT_ON_TRANSITION, CableClub_OnTransition
.byte 0
-VerdanturfTown_PokemonCenter_2F_EventScript_2028AC:: @ 82028AC
- call OldaleTown_PokemonCenter_2F_EventScript_276EB7
+@ The below 3 are unused and leftover from RS
+VerdanturfTown_PokemonCenter_2F_EventScript_Colosseum:: @ 82028AC
+ call CableClub_EventScript_Colosseum
end
-VerdanturfTown_PokemonCenter_2F_EventScript_2028B2:: @ 82028B2
- call OldaleTown_PokemonCenter_2F_EventScript_2770B2
+VerdanturfTown_PokemonCenter_2F_EventScript_TradeCenter:: @ 82028B2
+ call CableClub_EventScript_TradeCenter
end
-VerdanturfTown_PokemonCenter_2F_EventScript_2028B8:: @ 82028B8
- call OldaleTown_PokemonCenter_2F_EventScript_2771DB
+VerdanturfTown_PokemonCenter_2F_EventScript_RecordCorner:: @ 82028B8
+ call CableClub_EventScript_RecordCorner
end
diff --git a/data/maps/VictoryRoad_1F/scripts.inc b/data/maps/VictoryRoad_1F/scripts.inc
index b6983eac0..9b7c00c62 100644
--- a/data/maps/VictoryRoad_1F/scripts.inc
+++ b/data/maps/VictoryRoad_1F/scripts.inc
@@ -38,7 +38,7 @@ VictoryRoad_1F_EventScript_235DC8:: @ 8235DC8
end
VictoryRoad_1F_EventScript_235DE1:: @ 8235DE1
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceDown
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
msgbox VictoryRoad_1F_Text_235EE6, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_WALLY_1, VictoryRoad_1F_Text_235FFC
diff --git a/data/scripts/apprentice.inc b/data/scripts/apprentice.inc
index b75a3c579..7eae99dcf 100644
--- a/data/scripts/apprentice.inc
+++ b/data/scripts/apprentice.inc
@@ -74,7 +74,7 @@ Script_Apprentice_FirstMeetingNag:
release
releaseall
switch VAR_FACING
- case 2, Script_Apprentice_LeaveGoRight
+ case DIR_NORTH, Script_Apprentice_LeaveGoRight
goto Script_Apprentice_Leave
end
@@ -117,7 +117,7 @@ BattleFrontier_BattleTowerLobby_EventScript_2B69D3:
release
releaseall
switch VAR_FACING
- case 2, Script_Apprentice_LeaveGoRight
+ case DIR_NORTH, Script_Apprentice_LeaveGoRight
goto Script_Apprentice_Leave
end
@@ -163,7 +163,7 @@ BattleFrontier_BattleTowerLobby_EventScript_2B6B09:
release
releaseall
switch VAR_FACING
- case 2, Script_Apprentice_LeaveGoRight
+ case DIR_NORTH, Script_Apprentice_LeaveGoRight
goto Script_Apprentice_Leave
end
@@ -187,7 +187,7 @@ BattleFrontier_BattleTowerLobby_EventScript_2B6BD4:
release
releaseall
switch VAR_FACING
- case 2, Script_Apprentice_LeaveGoRight
+ case DIR_NORTH, Script_Apprentice_LeaveGoRight
goto Script_Apprentice_Leave
end
@@ -235,7 +235,7 @@ BattleFrontier_BattleTowerLobby_EventScript_2B6C77:
release
releaseall
switch VAR_FACING
- case 2, Script_Apprentice_LeaveGoRight
+ case DIR_NORTH, Script_Apprentice_LeaveGoRight
goto Script_Apprentice_Leave
end
@@ -261,7 +261,7 @@ BattleFrontier_BattleTowerLobby_EventScript_2B6D5C:
release
releaseall
switch VAR_FACING
- case 2, Script_Apprentice_LeaveGoRight
+ case DIR_NORTH, Script_Apprentice_LeaveGoRight
goto Script_Apprentice_Leave
end
@@ -283,7 +283,7 @@ BattleFrontier_BattleTowerLobby_EventScript_2B6DD4:
release
releaseall
switch VAR_FACING
- case 2, Script_Apprentice_LeaveGoRight
+ case DIR_NORTH, Script_Apprentice_LeaveGoRight
goto Script_Apprentice_Leave
end
diff --git a/data/scripts/battle_pike.inc b/data/scripts/battle_pike.inc
index 581a789e4..9892ffb7b 100644
--- a/data/scripts/battle_pike.inc
+++ b/data/scripts/battle_pike.inc
@@ -3,9 +3,9 @@ BattleFrontier_BattlePikeRandomRoom1_MapScripts_2C3E1B: @ 82C3E1B
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeRandomRoom1_MapScript2_2C3EDE
BattleFrontier_BattlePikeRandomRoom1_MapScript1_2C3E25: @ 82C3E25
- setvar VAR_0x8004, 4
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_UP_ROOM_OBJECTS
special CallBattlePikeFunction
- setvar VAR_0x8004, 5
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_TYPE
special CallBattlePikeFunction
switch VAR_RESULT
case 0, BattleFrontier_BattlePikeRandomRoom1_EventScript_2C3EB1
@@ -50,7 +50,7 @@ BattleFrontier_BattlePikeRandomRoom1_MapScript2_2C3EDE: @ 82C3EDE
BattleFrontier_BattlePikeRandomRoom1_EventScript_2C3EE8:: @ 82C3EE8
setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_LINK_RECEPTIONIST
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_LINK_RECEPTIONIST
- setvar VAR_0x8004, 5
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_TYPE
special CallBattlePikeFunction
compare VAR_RESULT, 3
goto_if_eq BattleFrontier_BattlePikeRandomRoom1_EventScript_2C3F35
@@ -92,11 +92,11 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_2C3F64:: @ 82C3F64
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_2C3F6F:: @ 82C3F6F
- setvar VAR_0x8004, 1
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_DATA
setvar VAR_0x8005, 1
special CallBattlePikeFunction
addvar VAR_RESULT, 1
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_DATA
setvar VAR_0x8005, 1
copyvar VAR_0x8006, VAR_RESULT
special CallBattlePikeFunction
@@ -108,9 +108,9 @@ BattleFrontier_BattlePikeThreePathRoom_EventScript_2C3F6F:: @ 82C3F6F
setvar VAR_0x8005, 2
copyvar VAR_0x8006, VAR_RESULT
special CallFrontierUtilFunc
- setvar VAR_0x8004, 0
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_ROOM_TYPE
special CallBattlePikeFunction
- setvar VAR_0x8004, 5
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_ROOM_TYPE
special CallBattlePikeFunction
switch VAR_RESULT
case 0, BattleFrontier_BattlePikeThreePathRoom_EventScript_2C4030
@@ -167,17 +167,17 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_2C408D:: @ 82C408D
end
BattleFrontier_BattlePikeRandomRoom1_EventScript_2C40A2:: @ 82C40A2
- setvar VAR_0x8004, 25
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_CAN_PARTY_BE_HEALED
special CallBattlePikeFunction
compare VAR_RESULT, 1
call_if_eq BattleFrontier_BattlePikeRandomRoom1_EventScript_2C4128
compare VAR_RESULT, 1
call_if_ne BattleFrontier_BattlePikeRandomRoom1_EventScript_2C4136
- setvar VAR_0x8004, 1
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_DATA
setvar VAR_0x8005, 1
special CallBattlePikeFunction
addvar VAR_RESULT, 1
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_DATA
setvar VAR_0x8005, 1
copyvar VAR_0x8006, VAR_RESULT
special CallBattlePikeFunction
@@ -189,7 +189,7 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_2C40A2:: @ 82C40A2
setvar VAR_0x8005, 2
copyvar VAR_0x8006, VAR_RESULT
special CallFrontierUtilFunc
- setvar VAR_0x8004, 3
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_IN_FINAL_ROOM
special CallBattlePikeFunction
compare VAR_RESULT, 1
call_if_eq BattleFrontier_BattlePikeRandomRoom1_EventScript_2C4144
@@ -200,14 +200,14 @@ BattleFrontier_BattlePikeRandomRoom1_EventScript_2C40A2:: @ 82C40A2
BattleFrontier_BattlePikeRandomRoom1_EventScript_2C4128:: @ 82C4128
BattleFrontier_BattlePikeRandomRoom3_EventScript_2C4128:: @ 82C4128
- setvar VAR_0x8004, 24
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_HEALING_ROOMS_DISABLED
setvar VAR_0x8005, 1
special CallBattlePikeFunction
return
BattleFrontier_BattlePikeRandomRoom1_EventScript_2C4136:: @ 82C4136
BattleFrontier_BattlePikeRandomRoom3_EventScript_2C4136:: @ 82C4136
- setvar VAR_0x8004, 24
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_HEALING_ROOMS_DISABLED
setvar VAR_0x8005, 0
special CallBattlePikeFunction
return
@@ -229,19 +229,19 @@ BattleFrontier_BattlePikeRandomRoom3_EventScript_2C415C:: @ 82C415C
return
BattleFrontier_BattlePikeRandomRoom3_EventScript_2C4174:: @ 82C4174
- setvar VAR_0x8004, 7
+ setvar VAR_0x8004,BATTLE_PIKE_FUNC_7
special CallBattlePikeFunction
- setvar VAR_0x8004, 25
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_CAN_PARTY_BE_HEALED
special CallBattlePikeFunction
compare VAR_RESULT, 1
call_if_eq BattleFrontier_BattlePikeRandomRoom3_EventScript_2C4128
compare VAR_RESULT, 1
call_if_ne BattleFrontier_BattlePikeRandomRoom3_EventScript_2C4136
- setvar VAR_0x8004, 1
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_DATA
setvar VAR_0x8005, 1
special CallBattlePikeFunction
addvar VAR_RESULT, 1
- setvar VAR_0x8004, 2
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_DATA
setvar VAR_0x8005, 1
copyvar VAR_0x8006, VAR_RESULT
special CallBattlePikeFunction
@@ -253,7 +253,7 @@ BattleFrontier_BattlePikeRandomRoom3_EventScript_2C4174:: @ 82C4174
setvar VAR_0x8005, 2
copyvar VAR_0x8006, VAR_RESULT
special CallFrontierUtilFunc
- setvar VAR_0x8004, 3
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_IN_FINAL_ROOM
special CallBattlePikeFunction
compare VAR_RESULT, 1
call_if_eq BattleFrontier_BattlePikeRandomRoom3_EventScript_2C4144
@@ -275,7 +275,7 @@ BattleFrontier_BattlePikeRandomRoom3_EventScript_2C420D:: @ 82C420D
closemessage
end
-BattleFrontier_BattlePikeThreePathRoom_EventScript_2C4222:: @ 82C4222
+BattleFrontier_BattlePike_EventScript_Retire:: @ 82C4222
setvar VAR_0x8004, 2
setvar VAR_0x8005, 0
setvar VAR_0x8006, 4
diff --git a/data/scripts/cable_club.inc b/data/scripts/cable_club.inc
index 3fcb25807..6962d17f8 100644
--- a/data/scripts/cable_club.inc
+++ b/data/scripts/cable_club.inc
@@ -1,558 +1,492 @@
-PokemonCenter_2F_OnTransition: @ 8276ACF
- call OldaleTown_PokemonCenter_2F_EventScript_OnTransitionCheckMysteryGift
+CableClub_OnTransition: @ 8276ACF
+ call CableClub_EventScript_HideOrShowMysteryGiftMan
end
-OldaleTown_PokemonCenter_2F_EventScript_OnTransitionCheckMysteryGift:: @ 8276AD5
- specialvar VAR_RESULT, sub_813B514
- compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276AFB
+CableClub_EventScript_HideOrShowMysteryGiftMan:: @ 8276AD5
+ specialvar VAR_RESULT, ShouldDistributeEonTicket
+ compare VAR_RESULT, TRUE
+ goto_if_eq CableClub_EventScript_ShowMysteryGiftMan
specialvar VAR_RESULT, ValidateReceivedWonderCard
- compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276AFF
- goto OldaleTown_PokemonCenter_2F_EventScript_276AFB
+ compare VAR_RESULT, FALSE
+ goto_if_eq CableClub_EventScript_HideMysteryGiftMan
+ goto CableClub_EventScript_ShowMysteryGiftMan
end
-OldaleTown_PokemonCenter_2F_EventScript_276AFB:: @ 8276AFB
+CableClub_EventScript_ShowMysteryGiftMan:: @ 8276AFB
clearflag FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN
return
-OldaleTown_PokemonCenter_2F_EventScript_276AFF:: @ 8276AFF
+CableClub_EventScript_HideMysteryGiftMan:: @ 8276AFF
setflag FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN
return
-BattleFrontier_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-DewfordTown_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-EverGrandeCity_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-EverGrandeCity_PokemonLeague_2F_EventScript_276B03:: @ 8276B03
-FallarborTown_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-FortreeCity_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-LavaridgeTown_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-LilycoveCity_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-MauvilleCity_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-MossdeepCity_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-OldaleTown_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-PacifidlogTown_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-PetalburgCity_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-RustboroCity_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-SlateportCity_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-SootopolisCity_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
-VerdanturfTown_PokemonCenter_2F_EventScript_276B03:: @ 8276B03
- specialvar VAR_RESULT, sub_813B514
- compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276B23
- goto OldaleTown_PokemonCenter_2F_EventScript_276B19
+CableClub_EventScript_MysteryGiftMan:: @ 8276B03
+ specialvar VAR_RESULT, ShouldDistributeEonTicket
+ compare VAR_RESULT, TRUE
+ goto_if_eq CableClub_EventScript_DistributeEonTicket
+ goto CableClub_EventScript_AlreadyGotEonTicket
end
-OldaleTown_PokemonCenter_2F_EventScript_276B19:: @ 8276B19
+CableClub_EventScript_AlreadyGotEonTicket:: @ 8276B19
gotoram
-OldaleTown_PokemonCenter_2F_EventScript_276B1A:: @ 8276B1A
+@ Unused?
+CableClub_EventScript_MysteryGiftThankYou:: @ 8276B1A
msgbox gText_ThankYouForAccessingMysteryGift, MSGBOX_NPC
end
-OldaleTown_PokemonCenter_2F_EventScript_276B23:: @ 8276B23
+CableClub_EventScript_DistributeEonTicket:: @ 8276B23
checkitem ITEM_EON_TICKET, 1
- compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276B19
- goto_if_set FLAG_SYS_HAS_EON_TICKET, OldaleTown_PokemonCenter_2F_EventScript_276B19
- msgbox gUnknown_08273594, MSGBOX_DEFAULT
+ compare VAR_RESULT, TRUE
+ goto_if_eq CableClub_EventScript_AlreadyGotEonTicket
+ goto_if_set FLAG_SYS_HAS_EON_TICKET, CableClub_EventScript_AlreadyGotEonTicket
+ msgbox Mevent_Text_TheresATicketForYou, MSGBOX_DEFAULT
giveitem_std ITEM_EON_TICKET
setflag FLAG_SYS_HAS_EON_TICKET
- setvar VAR_ALWAYS_ZERO_0x403F, 0
- msgbox gUnknown_082735F2, MSGBOX_DEFAULT
+ setvar VAR_DISTRIBUTE_EON_TICKET, 0
+ msgbox Mevent_Text_TryUsingItAtLilycovePort, MSGBOX_DEFAULT
release
end
+@ Unused?
OldaleTown_PokemonCenter_2F_EventScript_276B62:: @ 8276B62
msgbox gText_ThankYouForAccessingMysteryGift, MSGBOX_DEFAULT
release
end
-BattleFrontier_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-DewfordTown_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-EverGrandeCity_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-EverGrandeCity_PokemonLeague_2F_MapScript2_276B6C: @ 8276B6C
-FallarborTown_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-FortreeCity_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-LavaridgeTown_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-LilycoveCity_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-MauvilleCity_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-MossdeepCity_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-OldaleTown_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-PacifidlogTown_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-PetalburgCity_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-RustboroCity_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-SlateportCity_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-SootopolisCity_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
-VerdanturfTown_PokemonCenter_2F_MapScript2_276B6C: @ 8276B6C
- map_script_2 VAR_CABLE_CLUB_STATE, 1, OldaleTown_PokemonCenter_2F_EventScript_276BAE
- map_script_2 VAR_CABLE_CLUB_STATE, 2, OldaleTown_PokemonCenter_2F_EventScript_276BAE
- map_script_2 VAR_CABLE_CLUB_STATE, 5, OldaleTown_PokemonCenter_2F_EventScript_276BAE
- map_script_2 VAR_CABLE_CLUB_STATE, 3, OldaleTown_PokemonCenter_2F_EventScript_276BAE
- map_script_2 VAR_CABLE_CLUB_STATE, 4, OldaleTown_PokemonCenter_2F_EventScript_276BAE
- map_script_2 VAR_CABLE_CLUB_STATE, 6, OldaleTown_PokemonCenter_2F_EventScript_276BAE
- map_script_2 VAR_CABLE_CLUB_STATE, 7, OldaleTown_PokemonCenter_2F_EventScript_276BAE
- map_script_2 VAR_CABLE_CLUB_STATE, 8, OldaleTown_PokemonCenter_2F_EventScript_276BAE
+CableClub_OnWarp: @ 8276B6C
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_SINGLE_BATTLE, CableClub_EventScript_CheckTurnAttendant
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_DOUBLE_BATTLE, CableClub_EventScript_CheckTurnAttendant
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_MULTI_BATTLE, CableClub_EventScript_CheckTurnAttendant
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_TRADE_CENTER, CableClub_EventScript_CheckTurnAttendant
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_RECORD_CORNER, CableClub_EventScript_CheckTurnAttendant
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_UNION_ROOM, CableClub_EventScript_CheckTurnAttendant
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_BERRY_CRUSH, CableClub_EventScript_CheckTurnAttendant
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_MINIGAME, CableClub_EventScript_CheckTurnAttendant
.2byte 0
-MossdeepCity_GameCorner_1F_EventScript_276BAE:: @ 8276BAE
-OldaleTown_PokemonCenter_2F_EventScript_276BAE:: @ 8276BAE
+CableClub_EventScript_CheckTurnAttendant:: @ 8276BAE
compare VAR_0x8007, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276BBD
+ goto_if_eq CableClub_EventScript_DontTurnAttendant
turnobject VAR_0x8007, DIR_WEST
+CableClub_EventScript_DontTurnAttendant:: @ 8276BBD
+ end
+
+CableClub_OnLoad: @ 8276BBE
+ compare VAR_CABLE_CLUB_STATE, USING_SINGLE_BATTLE
+ goto_if_eq CableClub_EventScript_OnLoadFromColosseum
+ compare VAR_CABLE_CLUB_STATE, USING_DOUBLE_BATTLE
+ goto_if_eq CableClub_EventScript_OnLoadFromColosseum
+ compare VAR_CABLE_CLUB_STATE, USING_MULTI_BATTLE
+ goto_if_eq CableClub_EventScript_OnLoadFromColosseum
+ compare VAR_CABLE_CLUB_STATE, USING_TRADE_CENTER
+ goto_if_eq CableClub_EventScript_OnLoadFromTradeCenter
+ compare VAR_CABLE_CLUB_STATE, USING_RECORD_CORNER
+ goto_if_eq CableClub_EventScript_OnLoadFromRecordCorner
+ compare VAR_CABLE_CLUB_STATE, USING_UNION_ROOM
+ goto_if_eq CableClub_EventScript_OnLoadFromUnionRoom
+ compare VAR_CABLE_CLUB_STATE, USING_BERRY_CRUSH
+ goto_if_eq CableClub_EventScript_OnLoadFromBerryCrush
+ compare VAR_CABLE_CLUB_STATE, USING_MINIGAME
+ goto_if_eq CableClub_EventScript_OnLoadFromGameCorner
+ end
+
+CableClub_EventScript_OnLoadFromColosseum:: @ 8276C17
+ call CableClub_EventScript_OpenDirectCornerBarrier
+ end
-OldaleTown_PokemonCenter_2F_EventScript_276BBD:: @ 8276BBD
- end
-
-BattleFrontier_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-DewfordTown_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-EverGrandeCity_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-EverGrandeCity_PokemonLeague_2F_MapScript1_276BBE: @ 8276BBE
-FallarborTown_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-FortreeCity_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-LavaridgeTown_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-LilycoveCity_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-MauvilleCity_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-MossdeepCity_GameCorner_1F_MapScript1_276BBE: @ 8276BBE
-MossdeepCity_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-OldaleTown_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-PacifidlogTown_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-PetalburgCity_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-RustboroCity_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-SlateportCity_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-SootopolisCity_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
-VerdanturfTown_PokemonCenter_2F_MapScript1_276BBE: @ 8276BBE
- compare VAR_CABLE_CLUB_STATE, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276C17
- compare VAR_CABLE_CLUB_STATE, 2
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276C17
- compare VAR_CABLE_CLUB_STATE, 5
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276C17
- compare VAR_CABLE_CLUB_STATE, 3
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276C1D
- compare VAR_CABLE_CLUB_STATE, 4
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276C23
- compare VAR_CABLE_CLUB_STATE, 6
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276C29
- compare VAR_CABLE_CLUB_STATE, 7
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276C2F
- compare VAR_CABLE_CLUB_STATE, 8
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276C35
- end
-
-OldaleTown_PokemonCenter_2F_EventScript_276C17:: @ 8276C17
- call OldaleTown_PokemonCenter_2F_EventScript_277BE4
- end
-
-OldaleTown_PokemonCenter_2F_EventScript_276C1D:: @ 8276C1D
- call OldaleTown_PokemonCenter_2F_EventScript_277BE4
- end
-
-OldaleTown_PokemonCenter_2F_EventScript_276C23:: @ 8276C23
- call OldaleTown_PokemonCenter_2F_EventScript_277BE4
- end
-
-OldaleTown_PokemonCenter_2F_EventScript_276C29:: @ 8276C29
- call OldaleTown_PokemonCenter_2F_EventScript_277BBE
- end
-
-OldaleTown_PokemonCenter_2F_EventScript_276C2F:: @ 8276C2F
- call OldaleTown_PokemonCenter_2F_EventScript_277BE4
- end
-
-OldaleTown_PokemonCenter_2F_EventScript_276C35:: @ 8276C35
- call OldaleTown_PokemonCenter_2F_EventScript_277C0A
- end
-
-BattleFrontier_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-DewfordTown_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-EverGrandeCity_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-EverGrandeCity_PokemonLeague_2F_MapScript2_276C3B: @ 8276C3B
-FallarborTown_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-FortreeCity_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-LavaridgeTown_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-LilycoveCity_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-MauvilleCity_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-MossdeepCity_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-OldaleTown_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-PacifidlogTown_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-PetalburgCity_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-RustboroCity_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-SlateportCity_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-SootopolisCity_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
-VerdanturfTown_PokemonCenter_2F_MapScript2_276C3B: @ 8276C3B
- map_script_2 VAR_CABLE_CLUB_TUTORIAL_STATE, 1, OldaleTown_PokemonCenter_2F_EventScript_276DE0
- map_script_2 VAR_CABLE_CLUB_STATE, 1, OldaleTown_PokemonCenter_2F_EventScript_276C85
- map_script_2 VAR_CABLE_CLUB_STATE, 2, OldaleTown_PokemonCenter_2F_EventScript_276C85
- map_script_2 VAR_CABLE_CLUB_STATE, 5, OldaleTown_PokemonCenter_2F_EventScript_276C85
- map_script_2 VAR_CABLE_CLUB_STATE, 3, OldaleTown_PokemonCenter_2F_EventScript_276CE7
- map_script_2 VAR_CABLE_CLUB_STATE, 4, OldaleTown_PokemonCenter_2F_EventScript_276D2C
- map_script_2 VAR_CABLE_CLUB_STATE, 6, OldaleTown_PokemonCenter_2F_EventScript_276D6C
- map_script_2 VAR_CABLE_CLUB_STATE, 7, OldaleTown_PokemonCenter_2F_EventScript_276C85
- map_script_2 VAR_CABLE_CLUB_STATE, 8, OldaleTown_PokemonCenter_2F_EventScript_276C9D
+CableClub_EventScript_OnLoadFromTradeCenter:: @ 8276C1D
+ call CableClub_EventScript_OpenDirectCornerBarrier
+ end
+
+CableClub_EventScript_OnLoadFromRecordCorner:: @ 8276C23
+ call CableClub_EventScript_OpenDirectCornerBarrier
+ end
+
+CableClub_EventScript_OnLoadFromUnionRoom:: @ 8276C29
+ call CableClub_EventScript_OpenUnionRoomBarrier
+ end
+
+CableClub_EventScript_OnLoadFromBerryCrush:: @ 8276C2F
+ call CableClub_EventScript_OpenDirectCornerBarrier
+ end
+
+CableClub_EventScript_OnLoadFromGameCorner:: @ 8276C35
+ call EventScript_OpenMossdeepGameCornerBarrier
+ end
+
+CableClub_OnFrame: @ 8276C3B
+ map_script_2 VAR_CABLE_CLUB_TUTORIAL_STATE, 1, CableClub_EventScript_Tutorial
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_SINGLE_BATTLE, CableClub_EventScript_ExitLinkRoom
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_DOUBLE_BATTLE, CableClub_EventScript_ExitLinkRoom
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_MULTI_BATTLE, CableClub_EventScript_ExitLinkRoom
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_TRADE_CENTER, CableClub_EventScript_ExitTradeCenter
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_RECORD_CORNER, CableClub_EventScript_ExitRecordCorner
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_UNION_ROOM, CableClub_EventScript_ExitUnionRoom
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_BERRY_CRUSH, CableClub_EventScript_ExitLinkRoom
+ map_script_2 VAR_CABLE_CLUB_STATE, USING_MINIGAME, CableClub_EventScript_ExitMinigameRoom
.2byte 0
-OldaleTown_PokemonCenter_2F_EventScript_276C85:: @ 8276C85
+CableClub_EventScript_ExitLinkRoom:: @ 8276C85
lockall
- call OldaleTown_PokemonCenter_2F_EventScript_276CB5
- call OldaleTown_PokemonCenter_2F_EventScript_277BF7
+ call CableClub_EventScript_CloseLinkAndExitLinkRoom
+ call CableClub_EventScript_CloseDirectCornerBarrier
special DrawWholeMapView
playse SE_TK_KASYA
erasebox 0, 0, 29, 19
releaseall
end
-MossdeepCity_GameCorner_1F_EventScript_276C9D:: @ 8276C9D
-OldaleTown_PokemonCenter_2F_EventScript_276C9D:: @ 8276C9D
+CableClub_EventScript_ExitMinigameRoom:: @ 8276C9D
lockall
- call OldaleTown_PokemonCenter_2F_EventScript_276CB5
- call OldaleTown_PokemonCenter_2F_EventScript_277C1D
+ call CableClub_EventScript_CloseLinkAndExitLinkRoom
+ call EventScript_CloseMossdeepGameCornerBarrier
special DrawWholeMapView
playse SE_TK_KASYA
erasebox 0, 0, 29, 19
releaseall
end
-OldaleTown_PokemonCenter_2F_EventScript_276CB5:: @ 8276CB5
+CableClub_EventScript_CloseLinkAndExitLinkRoom:: @ 8276CB5
special CloseLink
setvar VAR_CABLE_CLUB_STATE, 0
compare VAR_0x8007, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276DD5
- applymovement VAR_0x8007, OldaleTown_PokemonCenter_2F_Movement_27734D
+ goto_if_eq CableClub_EventScript_PlayerExitLinkRoom
+ applymovement VAR_0x8007, Movement_AttendantFaceLeft
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_27734F
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerExitLinkRoom
waitmovement 0
- applymovement VAR_0x8007, OldaleTown_PokemonCenter_2F_Movement_277349
+ applymovement VAR_0x8007, Movement_AttendantFaceDown
waitmovement 0
return
-OldaleTown_PokemonCenter_2F_EventScript_276CE7:: @ 8276CE7
+CableClub_EventScript_ExitTradeCenter:: @ 8276CE7
lockall
- call OldaleTown_PokemonCenter_2F_EventScript_276CFF
- call OldaleTown_PokemonCenter_2F_EventScript_277BF7
+ call CableClub_EventScript_PlayerExitTradeCenter
+ call CableClub_EventScript_CloseDirectCornerBarrier
special DrawWholeMapView
playse SE_TK_KASYA
erasebox 0, 0, 29, 19
releaseall
end
-OldaleTown_PokemonCenter_2F_EventScript_276CFF:: @ 8276CFF
+CableClub_EventScript_PlayerExitTradeCenter:: @ 8276CFF
special CloseLink
setvar VAR_CABLE_CLUB_STATE, 0
compare VAR_0x8007, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276DD5
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_27735E
+ goto_if_eq CableClub_EventScript_PlayerExitLinkRoom
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerFaceAttendantRight
waitmovement 0
- applymovement VAR_0x8007, OldaleTown_PokemonCenter_2F_Movement_27734D
+ applymovement VAR_0x8007, Movement_AttendantFaceLeft
waitmovement 0
- call OldaleTown_PokemonCenter_2F_EventScript_276DAE
+ call CableClub_EventScript_TrainerCardDataOverwritten
return
-OldaleTown_PokemonCenter_2F_EventScript_276D2C:: @ 8276D2C
+CableClub_EventScript_ExitRecordCorner:: @ 8276D2C
lockall
- call OldaleTown_PokemonCenter_2F_EventScript_276D44
- call OldaleTown_PokemonCenter_2F_EventScript_277BF7
+ call CableClub_EventScript_PlayerExitRecordCorner
+ call CableClub_EventScript_CloseDirectCornerBarrier
special DrawWholeMapView
playse SE_TK_KASYA
erasebox 0, 0, 29, 19
releaseall
end
-OldaleTown_PokemonCenter_2F_EventScript_276D44:: @ 8276D44
+CableClub_EventScript_PlayerExitRecordCorner:: @ 8276D44
special CloseLink
setvar VAR_CABLE_CLUB_STATE, 0
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_27734F
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerExitLinkRoom
waitmovement 0
compare VAR_0x8007, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276D6B
- applymovement VAR_0x8007, OldaleTown_PokemonCenter_2F_Movement_277349
+ goto_if_eq CableClub_EventScript_ExitRecordCornerRet
+ applymovement VAR_0x8007, Movement_AttendantFaceDown
waitmovement 0
-
-OldaleTown_PokemonCenter_2F_EventScript_276D6B:: @ 8276D6B
+CableClub_EventScript_ExitRecordCornerRet:: @ 8276D6B
return
-OldaleTown_PokemonCenter_2F_EventScript_276D6C:: @ 8276D6C
+CableClub_EventScript_ExitUnionRoom:: @ 8276D6C
lockall
- call OldaleTown_PokemonCenter_2F_EventScript_276D84
- call OldaleTown_PokemonCenter_2F_EventScript_277BD1
+ call CableClub_EventScript_PlayerExitUnionRoom
+ call CableClub_EventScript_CloseUnionRoomBarrier
special DrawWholeMapView
playse SE_TK_KASYA
erasebox 0, 0, 29, 19
releaseall
end
-OldaleTown_PokemonCenter_2F_EventScript_276D84:: @ 8276D84
+CableClub_EventScript_PlayerExitUnionRoom:: @ 8276D84
setvar VAR_CABLE_CLUB_STATE, 0
compare VAR_0x8007, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276DD5
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_27735E
+ goto_if_eq CableClub_EventScript_PlayerExitLinkRoom
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerFaceAttendantRight
waitmovement 0
- applymovement VAR_0x8007, OldaleTown_PokemonCenter_2F_Movement_27734D
+ applymovement VAR_0x8007, Movement_AttendantFaceLeft
waitmovement 0
- call OldaleTown_PokemonCenter_2F_EventScript_276DAE
+ call CableClub_EventScript_TrainerCardDataOverwritten
return
-OldaleTown_PokemonCenter_2F_EventScript_276DAE:: @ 8276DAE
- message OldaleTown_PokemonCenter_2F_Text_278521
+CableClub_EventScript_TrainerCardDataOverwritten:: @ 8276DAE
+ message CableClub_Text_TrainerCardDataOverwritten
waitmessage
playse SE_PIN
delay 60
- message OldaleTown_PokemonCenter_2F_Text_27854C
+ message CableClub_Text_HopeToSeeYouAgain
waitmessage
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_27734F
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerExitLinkRoom
waitmovement 0
- applymovement VAR_0x8007, OldaleTown_PokemonCenter_2F_Movement_277349
+ applymovement VAR_0x8007, Movement_AttendantFaceDown
waitmovement 0
return
-OldaleTown_PokemonCenter_2F_EventScript_276DD5:: @ 8276DD5
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_27734F
+CableClub_EventScript_PlayerExitLinkRoom:: @ 8276DD5
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerExitLinkRoom
waitmovement 0
return
-OldaleTown_PokemonCenter_2F_EventScript_276DE0:: @ 8276DE0
+CableClub_EventScript_Tutorial:: @ 8276DE0
lockall
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
- msgbox OldaleTown_PokemonCenter_2F_Text_27964A, MSGBOX_DEFAULT
+ msgbox CableClub_Text_FirstTimeRightThisWay, MSGBOX_DEFAULT
closemessage
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_276E10
+ applymovement EVENT_OBJ_ID_PLAYER, CableClub_Movement_PlayerApproachCounter
waitmovement 0
delay 30
- msgbox OldaleTown_PokemonCenter_2F_Text_279718, MSGBOX_DEFAULT
+ msgbox CableClub_Text_ExplainWirelessClubFirstTime, MSGBOX_DEFAULT
setvar VAR_CABLE_CLUB_TUTORIAL_STATE, 2
releaseall
end
-OldaleTown_PokemonCenter_2F_Movement_276E10: @ 8276E10
+CableClub_Movement_PlayerApproachCounter: @ 8276E10
walk_up
walk_up
step_end
-OldaleTown_PokemonCenter_2F_EventScript_276E13:: @ 8276E13
- message OldaleTown_PokemonCenter_2F_Text_277EA4
+CableClub_EventScript_WelcomeToCableClub:: @ 8276E13
+ message CableClub_Text_WelcomeWhichCableClubService
waitmessage
delay 28
- goto OldaleTown_PokemonCenter_2F_EventScript_276E30
+ goto CableClub_EventScript_SelectCableClubRoom
end
-OldaleTown_PokemonCenter_2F_EventScript_276E22:: @ 8276E22
- msgbox OldaleTown_PokemonCenter_2F_Text_277EF1, MSGBOX_DEFAULT
- goto OldaleTown_PokemonCenter_2F_EventScript_276E30
+CableClub_EventScript_UnusedWelcomeToCableClub:: @ 8276E22
+ msgbox CableClub_Text_WhichService, MSGBOX_DEFAULT
+ goto CableClub_EventScript_SelectCableClubRoom
end
-OldaleTown_PokemonCenter_2F_EventScript_276E30:: @ 8276E30
+CableClub_EventScript_SelectCableClubRoom:: @ 8276E30
setvar VAR_0x8004, 0
- goto_if_set FLAG_VISITED_MAUVILLE_CITY, OldaleTown_PokemonCenter_2F_EventScript_276E75
+ goto_if_set FLAG_VISITED_MAUVILLE_CITY, CableClub_EventScript_CableClubUnlockedRecordCorner
multichoice 0, 0, MULTI_CABLE_CLUB_NO_RECORD_MIX, 0
switch VAR_RESULT
- case 0, OldaleTown_PokemonCenter_2F_EventScript_2770B2
- case 1, OldaleTown_PokemonCenter_2F_EventScript_276EB7
- case 2, OldaleTown_PokemonCenter_2F_EventScript_2772EC
- case MULTI_B_PRESSED, OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ case 0, CableClub_EventScript_TradeCenter
+ case 1, CableClub_EventScript_Colosseum
+ case 2, CableClub_EventScript_AbortLink
+ case MULTI_B_PRESSED, CableClub_EventScript_AbortLink
end
-OldaleTown_PokemonCenter_2F_EventScript_276E75:: @ 8276E75
+CableClub_EventScript_CableClubUnlockedRecordCorner:: @ 8276E75
multichoice 0, 0, MULTI_CABLE_CLUB_WITH_RECORD_MIX, 0
switch VAR_RESULT
- case 0, OldaleTown_PokemonCenter_2F_EventScript_2770B2
- case 1, OldaleTown_PokemonCenter_2F_EventScript_276EB7
- case 2, OldaleTown_PokemonCenter_2F_EventScript_2771DB
- case 3, OldaleTown_PokemonCenter_2F_EventScript_2772EC
- case MULTI_B_PRESSED, OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ case 0, CableClub_EventScript_TradeCenter
+ case 1, CableClub_EventScript_Colosseum
+ case 2, CableClub_EventScript_RecordCorner
+ case 3, CableClub_EventScript_AbortLink
+ case MULTI_B_PRESSED, CableClub_EventScript_AbortLink
end
-OldaleTown_PokemonCenter_2F_EventScript_276EB7:: @ 8276EB7
+CableClub_EventScript_Colosseum:: @ 8276EB7
copyvar VAR_0x8007, VAR_LAST_TALKED
- goto OldaleTown_PokemonCenter_2F_EventScript_276EC2
+ goto CableClub_EventScript_SelectBattleMode
end
-OldaleTown_PokemonCenter_2F_EventScript_276EC2:: @ 8276EC2
- message OldaleTown_PokemonCenter_2F_Text_2790BE
+CableClub_EventScript_SelectBattleMode:: @ 8276EC2
+ message CableClub_Text_WhichBattleMode
waitmessage
multichoice 0, 0, MULTI_BATTLE_MODE, 0
switch VAR_RESULT
- case 0, OldaleTown_PokemonCenter_2F_EventScript_276F23
- case 1, OldaleTown_PokemonCenter_2F_EventScript_276F2E
- case 2, OldaleTown_PokemonCenter_2F_EventScript_276F55
- case 3, OldaleTown_PokemonCenter_2F_EventScript_276F15
- case 4, OldaleTown_PokemonCenter_2F_EventScript_2772EC
- case MULTI_B_PRESSED, OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ case 0, CableClub_EventScript_SingleBattleMode
+ case 1, CableClub_EventScript_DoubleBattleMode
+ case 2, CableClub_EventScript_MultiBattleMode
+ case 3, CableClub_EventScript_BattleModeInfo
+ case 4, CableClub_EventScript_AbortLink
+ case MULTI_B_PRESSED, CableClub_EventScript_AbortLink
end
-OldaleTown_PokemonCenter_2F_EventScript_276F15:: @ 8276F15
- msgbox OldaleTown_PokemonCenter_2F_Text_279142, MSGBOX_DEFAULT
- goto OldaleTown_PokemonCenter_2F_EventScript_276EC2
+CableClub_EventScript_BattleModeInfo:: @ 8276F15
+ msgbox CableClub_Text_ExplainBattleModes, MSGBOX_DEFAULT
+ goto CableClub_EventScript_SelectBattleMode
end
-OldaleTown_PokemonCenter_2F_EventScript_276F23:: @ 8276F23
- setvar VAR_0x8004, 1
- goto OldaleTown_PokemonCenter_2F_EventScript_276F60
+CableClub_EventScript_SingleBattleMode:: @ 8276F23
+ setvar VAR_0x8004, USING_SINGLE_BATTLE
+ goto CableClub_EventScript_TryEnterColosseum
end
-OldaleTown_PokemonCenter_2F_EventScript_276F2E:: @ 8276F2E
+CableClub_EventScript_DoubleBattleMode:: @ 8276F2E
special HasEnoughMonsForDoubleBattle
compare VAR_RESULT, PLAYER_HAS_TWO_USABLE_MONS
- goto_if_ne OldaleTown_PokemonCenter_2F_EventScript_276F47
- setvar VAR_0x8004, 2
- goto OldaleTown_PokemonCenter_2F_EventScript_276F60
+ goto_if_ne CableClub_EventScript_NeedTwoMonsForDoubleBattle
+ setvar VAR_0x8004, USING_DOUBLE_BATTLE
+ goto CableClub_EventScript_TryEnterColosseum
end
-OldaleTown_PokemonCenter_2F_EventScript_276F47:: @ 8276F47
- msgbox OldaleTown_PokemonCenter_2F_Text_277FEE, MSGBOX_DEFAULT
- goto OldaleTown_PokemonCenter_2F_EventScript_276EC2
+CableClub_EventScript_NeedTwoMonsForDoubleBattle:: @ 8276F47
+ msgbox CableClub_Text_NeedTwoMonsForDoubleBattle, MSGBOX_DEFAULT
+ goto CableClub_EventScript_SelectBattleMode
end
-OldaleTown_PokemonCenter_2F_EventScript_276F55:: @ 8276F55
- setvar VAR_0x8004, 5
- goto OldaleTown_PokemonCenter_2F_EventScript_276F60
+CableClub_EventScript_MultiBattleMode:: @ 8276F55
+ setvar VAR_0x8004, USING_MULTI_BATTLE
+ goto CableClub_EventScript_TryEnterColosseum
end
-OldaleTown_PokemonCenter_2F_EventScript_276F60:: @ 8276F60
+CableClub_EventScript_TryEnterColosseum:: @ 8276F60
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ goto_if_eq CableClub_EventScript_AbortLink
message gText_PleaseWaitForLink
waitmessage
- special sub_80B2DA4
+ special TryBattleLinkup
waitstate
compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276FBD
+ goto_if_eq CableClub_EventScript_EnterColosseum
compare VAR_RESULT, 2
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772D2
+ goto_if_eq CableClub_EventScript_AbortLinkSomeoneNotReady
compare VAR_RESULT, 3
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772DF
+ goto_if_eq CableClub_EventScript_AbortLinkDifferentSelections
compare VAR_RESULT, 4
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277046
+ goto_if_eq CableClub_EventScript_AbortLinkIncorrectNumberOfBattlers
compare VAR_RESULT, 5
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ goto_if_eq CableClub_EventScript_AbortLink
compare VAR_RESULT, 6
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772C5
+ goto_if_eq CableClub_EventScript_AbortLinkConnectionError
end
-OldaleTown_PokemonCenter_2F_EventScript_276FBD:: @ 8276FBD
+CableClub_EventScript_EnterColosseum:: @ 8276FBD
special HealPlayerParty
special SavePlayerParty
special LoadPlayerBag
copyvar VAR_CABLE_CLUB_STATE, VAR_0x8004
- messageautoscroll OldaleTown_PokemonCenter_2F_Text_278197
+ messageautoscroll CableClub_Text_PleaseEnter
waitmessage
- call OldaleTown_PokemonCenter_2F_EventScript_277BE4
+ call CableClub_EventScript_OpenDirectCornerBarrier
special DrawWholeMapView
playse SE_TK_KASYA
delay 60
- applymovement VAR_LAST_TALKED, OldaleTown_PokemonCenter_2F_Movement_27734D
+ applymovement VAR_LAST_TALKED, Movement_AttendantFaceLeft
waitmovement 0
closemessage
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_277356
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerApproachLinkRoomLeft
waitmovement 0
opendoor 9, 1
waitdooranim
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_27735A
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerEnterLinkRoom
waitmovement 0
hideobjectat EVENT_OBJ_ID_PLAYER, MAP_PETALBURG_CITY
closedoor 9, 1
waitdooranim
release
- compare VAR_0x8004, 5
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277036
+ compare VAR_0x8004, USING_MULTI_BATTLE
+ goto_if_eq CableClub_EventScript_WarpToDoubleColosseum
special SetCableClubWarp
warp MAP_SINGLE_BATTLE_COLOSSEUM, 255, 6, 8
special sub_80AF948
waitstate
end
-OldaleTown_PokemonCenter_2F_EventScript_27702B:: @ 827702B
- applymovement EVENT_OBJ_ID_PLAYER, Movement_277352
+@ Unused
+CableClub_EventScript_PlayerApproachLinkRoomRight:: @ 827702B
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerApproachLinkRoomRight
waitmovement 0
return
-OldaleTown_PokemonCenter_2F_EventScript_277036:: @ 8277036
+CableClub_EventScript_WarpToDoubleColosseum:: @ 8277036
special SetCableClubWarp
warp MAP_DOUBLE_BATTLE_COLOSSEUM, 255, 5, 8
special sub_80AF948
waitstate
end
-OldaleTown_PokemonCenter_2F_EventScript_277046:: @ 8277046
+CableClub_EventScript_AbortLinkIncorrectNumberOfBattlers:: @ 8277046
switch VAR_0x8004
- case 1, OldaleTown_PokemonCenter_2F_EventScript_277094
- case 2, OldaleTown_PokemonCenter_2F_EventScript_277083
- case 5, OldaleTown_PokemonCenter_2F_EventScript_277072
- goto OldaleTown_PokemonCenter_2F_EventScript_27730E
+ case USING_SINGLE_BATTLE, CableClub_EventScript_AbortLinkWrongNumberForSingleBattle
+ case USING_DOUBLE_BATTLE, CableClub_EventScript_AbortLinkWrongNumberForDoubleBattle
+ case USING_MULTI_BATTLE, CableClub_EventScript_AbortLinkNeedFourPlayers
+ goto CableClub_EventScript_AbortLinkIncorrectNumberOfParticipants
end
-OldaleTown_PokemonCenter_2F_EventScript_277072:: @ 8277072
+CableClub_EventScript_AbortLinkNeedFourPlayers:: @ 8277072
special CloseLink
- msgbox OldaleTown_PokemonCenter_2F_Text_27833D, MSGBOX_DEFAULT
- goto OldaleTown_PokemonCenter_2F_EventScript_2770A5
+ msgbox CableClub_Text_NeedFourPlayers, MSGBOX_DEFAULT
+ goto CableClub_EventScript_ConfirmNumberAndRestart
end
-OldaleTown_PokemonCenter_2F_EventScript_277083:: @ 8277083
+CableClub_EventScript_AbortLinkWrongNumberForDoubleBattle:: @ 8277083
special CloseLink
- msgbox OldaleTown_PokemonCenter_2F_Text_278307, MSGBOX_DEFAULT
- goto OldaleTown_PokemonCenter_2F_EventScript_2770A5
+ msgbox CableClub_Text_CantDoubleBattleWithXPlayers, MSGBOX_DEFAULT
+ goto CableClub_EventScript_ConfirmNumberAndRestart
end
-OldaleTown_PokemonCenter_2F_EventScript_277094:: @ 8277094
+CableClub_EventScript_AbortLinkWrongNumberForSingleBattle:: @ 8277094
special CloseLink
- msgbox OldaleTown_PokemonCenter_2F_Text_2782D1, MSGBOX_DEFAULT
- goto OldaleTown_PokemonCenter_2F_EventScript_2770A5
+ msgbox CableClub_Text_CantSingleBattleWithXPlayers, MSGBOX_DEFAULT
+ goto CableClub_EventScript_ConfirmNumberAndRestart
end
-OldaleTown_PokemonCenter_2F_EventScript_2770A5:: @ 82770A5
- special CloseLink
- msgbox OldaleTown_PokemonCenter_2F_Text_278372, MSGBOX_DEFAULT
+CableClub_EventScript_ConfirmNumberAndRestart:: @ 82770A5
+ special CloseLink @ Redundant
+ msgbox CableClub_Text_PleaseConfirmNumberAndRestart, MSGBOX_DEFAULT
release
end
-OldaleTown_PokemonCenter_2F_EventScript_2770B2:: @ 82770B2
+CableClub_EventScript_TradeCenter:: @ 82770B2
copyvar VAR_0x8007, VAR_LAST_TALKED
- call OldaleTown_PokemonCenter_2F_EventScript_277199
+ call CableClub_EventScript_CheckPartyTradeRequirements
compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ goto_if_eq CableClub_EventScript_AbortLink
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ goto_if_eq CableClub_EventScript_AbortLink
message gText_PleaseWaitForLink
waitmessage
- special sub_80B2E4C
+ special TryTradeLinkup
waitstate
compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_27713A
+ goto_if_eq CableClub_EventScript_EnterTradeCenter
compare VAR_RESULT, 2
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772D2
+ goto_if_eq CableClub_EventScript_AbortLinkSomeoneNotReady
compare VAR_RESULT, 3
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772DF
+ goto_if_eq CableClub_EventScript_AbortLinkDifferentSelections
compare VAR_RESULT, 4
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_27730E
+ goto_if_eq CableClub_EventScript_AbortLinkIncorrectNumberOfParticipants
compare VAR_RESULT, 5
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ goto_if_eq CableClub_EventScript_AbortLink
compare VAR_RESULT, 6
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772C5
+ goto_if_eq CableClub_EventScript_AbortLinkConnectionError
compare VAR_RESULT, 7
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772AB
+ goto_if_eq CableClub_EventScript_AbortLinkPlayerNotReady
compare VAR_RESULT, 9
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772B8
+ goto_if_eq CableClub_EventScript_AbortLinkOtherTrainerNotReady
end
-OldaleTown_PokemonCenter_2F_EventScript_27713A:: @ 827713A
- setvar VAR_0x8004, 3
+CableClub_EventScript_EnterTradeCenter:: @ 827713A
+ setvar VAR_0x8004, USING_TRADE_CENTER
copyvar VAR_CABLE_CLUB_STATE, VAR_0x8004
- messageautoscroll OldaleTown_PokemonCenter_2F_Text_278197
+ messageautoscroll CableClub_Text_PleaseEnter
waitmessage
- call OldaleTown_PokemonCenter_2F_EventScript_277BE4
+ call CableClub_EventScript_OpenDirectCornerBarrier
special DrawWholeMapView
playse SE_TK_KASYA
delay 60
- applymovement VAR_LAST_TALKED, OldaleTown_PokemonCenter_2F_Movement_27734D
+ applymovement VAR_LAST_TALKED, Movement_AttendantFaceLeft
waitmovement 0
closemessage
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_277356
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerApproachLinkRoomLeft
waitmovement 0
opendoor 9, 1
waitdooranim
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_27735A
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerEnterLinkRoom
waitmovement 0
hideobjectat EVENT_OBJ_ID_PLAYER, MAP_PETALBURG_CITY
closedoor 9, 1
@@ -564,31 +498,31 @@ OldaleTown_PokemonCenter_2F_EventScript_27713A:: @ 827713A
waitstate
end
-OldaleTown_PokemonCenter_2F_EventScript_277199:: @ 8277199
+CableClub_EventScript_CheckPartyTradeRequirements:: @ 8277199
specialvar VAR_RESULT, CalculatePlayerPartyCount
compare VAR_RESULT, 2
- goto_if_lt OldaleTown_PokemonCenter_2F_EventScript_2771BF
- specialvar VAR_RESULT, sub_80F9370
- compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2771CD
+ goto_if_lt CableClub_EventScript_NeedTwoMonsToTrade
+ specialvar VAR_RESULT, DoesPartyHaveEnigmaBerry
+ compare VAR_RESULT, TRUE
+ goto_if_eq CableClub_EventScript_CantTradeEnigmaBerry
setvar VAR_RESULT, 1
return
-OldaleTown_PokemonCenter_2F_EventScript_2771BF:: @ 82771BF
- msgbox OldaleTown_PokemonCenter_2F_Text_278027, MSGBOX_DEFAULT
+CableClub_EventScript_NeedTwoMonsToTrade:: @ 82771BF
+ msgbox CableClub_Text_NeedTwoMonsToTrade, MSGBOX_DEFAULT
setvar VAR_RESULT, 0
return
-OldaleTown_PokemonCenter_2F_EventScript_2771CD:: @ 82771CD
- msgbox OldaleTown_PokemonCenter_2F_Text_278061, MSGBOX_DEFAULT
+CableClub_EventScript_CantTradeEnigmaBerry:: @ 82771CD
+ msgbox CableClub_Text_CantTradeEnigmaBerry, MSGBOX_DEFAULT
setvar VAR_RESULT, 0
return
-OldaleTown_PokemonCenter_2F_EventScript_2771DB:: @ 82771DB
+CableClub_EventScript_RecordCorner:: @ 82771DB
copyvar VAR_0x8007, VAR_LAST_TALKED
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ goto_if_eq CableClub_EventScript_AbortLink
message gText_PleaseWaitForLink
waitmessage
special sub_80B2E74
@@ -596,38 +530,38 @@ OldaleTown_PokemonCenter_2F_EventScript_2771DB:: @ 82771DB
special sub_80B2EA8
waitstate
compare VAR_RESULT, 12
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277328
+ goto_if_eq CableClub_EventScript_AbortLinkForeignGame
compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_27724C
+ goto_if_eq CableClub_EventScript_EnterRecordCorner
compare VAR_RESULT, 2
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772D2
+ goto_if_eq CableClub_EventScript_AbortLinkSomeoneNotReady
compare VAR_RESULT, 3
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772DF
+ goto_if_eq CableClub_EventScript_AbortLinkDifferentSelections
compare VAR_RESULT, 4
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_27730E
+ goto_if_eq CableClub_EventScript_AbortLinkIncorrectNumberOfParticipants
compare VAR_RESULT, 5
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ goto_if_eq CableClub_EventScript_AbortLink
compare VAR_RESULT, 6
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772C5
+ goto_if_eq CableClub_EventScript_AbortLinkConnectionError
end
-OldaleTown_PokemonCenter_2F_EventScript_27724C:: @ 827724C
- setvar VAR_0x8004, 4
+CableClub_EventScript_EnterRecordCorner:: @ 827724C
+ setvar VAR_0x8004, USING_RECORD_CORNER
copyvar VAR_CABLE_CLUB_STATE, VAR_0x8004
- messageautoscroll OldaleTown_PokemonCenter_2F_Text_278197
+ messageautoscroll CableClub_Text_PleaseEnter
waitmessage
- call OldaleTown_PokemonCenter_2F_EventScript_277BE4
+ call CableClub_EventScript_OpenDirectCornerBarrier
special DrawWholeMapView
playse SE_TK_KASYA
delay 60
- applymovement VAR_LAST_TALKED, OldaleTown_PokemonCenter_2F_Movement_27734D
+ applymovement VAR_LAST_TALKED, Movement_AttendantFaceLeft
waitmovement 0
closemessage
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_277356
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerApproachLinkRoomLeft
waitmovement 0
opendoor 9, 1
waitdooranim
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_27735A
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerEnterLinkRoom
waitmovement 0
hideobjectat EVENT_OBJ_ID_PLAYER, MAP_PETALBURG_CITY
closedoor 9, 1
@@ -639,71 +573,70 @@ OldaleTown_PokemonCenter_2F_EventScript_27724C:: @ 827724C
waitstate
end
-OldaleTown_PokemonCenter_2F_EventScript_2772AB:: @ 82772AB
+CableClub_EventScript_AbortLinkPlayerNotReady:: @ 82772AB
special CloseLink
- msgbox OldaleTown_PokemonCenter_2F_Text_278565, MSGBOX_DEFAULT
+ msgbox CableClub_Text_NotSetUpForFarAwayRegion, MSGBOX_DEFAULT
release
end
-OldaleTown_PokemonCenter_2F_EventScript_2772B8:: @ 82772B8
+CableClub_EventScript_AbortLinkOtherTrainerNotReady:: @ 82772B8
special CloseLink
- msgbox OldaleTown_PokemonCenter_2F_Text_2785C9, MSGBOX_DEFAULT
+ msgbox CableClub_Text_OtherTrainerNotReady, MSGBOX_DEFAULT
release
end
-BattleFrontier_BattleTowerLobby_EventScript_2772C5:: @ 82772C5
-OldaleTown_PokemonCenter_2F_EventScript_2772C5:: @ 82772C5
+CableClub_EventScript_AbortLinkConnectionError:: @ 82772C5
special CloseLink
- msgbox OldaleTown_PokemonCenter_2F_Text_27821C, MSGBOX_DEFAULT
+ msgbox Text_LinkErrorPleaseReset, MSGBOX_DEFAULT
release
end
-BattleFrontier_BattleTowerLobby_EventScript_2772D2:: @ 82772D2
-OldaleTown_PokemonCenter_2F_EventScript_2772D2:: @ 82772D2
+CableClub_EventScript_AbortLinkSomeoneNotReady:: @ 82772D2
special CloseLink
- msgbox OldaleTown_PokemonCenter_2F_Text_2781C7, MSGBOX_DEFAULT
+ msgbox Text_SomeoneIsNotReadyToLink, MSGBOX_DEFAULT
release
end
-OldaleTown_PokemonCenter_2F_EventScript_2772DF:: @ 82772DF
+CableClub_EventScript_AbortLinkDifferentSelections:: @ 82772DF
special CloseLink
- msgbox OldaleTown_PokemonCenter_2F_Text_278255, MSGBOX_DEFAULT
+ msgbox Text_PlayersMadeDifferentSelections, MSGBOX_DEFAULT
release
end
-OldaleTown_PokemonCenter_2F_EventScript_2772EC:: @ 82772EC
+CableClub_EventScript_AbortLink:: @ 82772EC
special CloseLink
- msgbox OldaleTown_PokemonCenter_2F_Text_278291, MSGBOX_DEFAULT
+ msgbox CableClub_Text_PleaseVisitAgain, MSGBOX_DEFAULT
release
end
-MossdeepCity_GameCorner_1F_EventScript_2772F9:: @ 82772F9
+MossdeepCity_GameCorner_1F_EventScript_AbortMinigame:: @ 82772F9
special CloseLink
- msgbox MossdeepCity_GameCorner_1F_Text_278D51, MSGBOX_DEFAULT
+ msgbox MossdeepCity_GameCorner_1F_Text_ComeAgain, MSGBOX_DEFAULT
release
end
-OldaleTown_PokemonCenter_2F_EventScript_277306:: @ 8277306
+@ Unused
+CableClub_EventScript_CableClubWarp:: @ 8277306
special SetCableClubWarp
special sub_80AF948
waitstate
end
-OldaleTown_PokemonCenter_2F_EventScript_27730E:: @ 827730E
+CableClub_EventScript_AbortLinkIncorrectNumberOfParticipants:: @ 827730E
special CloseLink
- msgbox OldaleTown_PokemonCenter_2F_Text_2782A8, MSGBOX_DEFAULT
+ msgbox CableClub_Text_IncorrectNumberOfParticipants, MSGBOX_DEFAULT
release
end
-OldaleTown_PokemonCenter_2F_EventScript_27731B:: @ 827731B
+CableClub_EventScript_AbortLinkPlayerHasBadEgg:: @ 827731B
special CloseLink
- msgbox OldaleTown_PokemonCenter_2F_Text_2785E9, MSGBOX_DEFAULT
+ msgbox CableClub_Text_YouHaveAMonThatCantBeTaken, MSGBOX_DEFAULT
release
end
-OldaleTown_PokemonCenter_2F_EventScript_277328:: @ 8277328
+CableClub_EventScript_AbortLinkForeignGame:: @ 8277328
special CloseLink
- msgbox OldaleTown_PokemonCenter_2F_Text_278651, MSGBOX_DEFAULT
+ msgbox CableClub_Text_CantMixWithJapaneseGame, MSGBOX_DEFAULT
release
end
@@ -712,54 +645,56 @@ CableClub_EventScript_WirelessClubAdjustements:: @ 8277335
release
end
-OldaleTown_PokemonCenter_2F_EventScript_27733F:: @ 827733F
+CableClub_EventScript_NotReadyYet:: @ 827733F
msgbox gText_UndergoingAdjustments, MSGBOX_DEFAULT
releaseall
end
-OldaleTown_PokemonCenter_2F_Movement_277349: @ 8277349
+Movement_AttendantFaceDown: @ 8277349
face_down
step_end
-OldaleTown_PokemonCenter_2F_Movement_27734B: @ 827734B
+@ Unused
+Movement_AttendantFaceRight: @ 827734B
face_right
step_end
-MossdeepCity_GameCorner_1F_Movement_27734D: @ 827734D
-OldaleTown_PokemonCenter_2F_Movement_27734D: @ 827734D
+Movement_AttendantFaceLeft: @ 827734D
face_left
step_end
-OldaleTown_PokemonCenter_2F_Movement_27734F: @ 827734F
+Movement_PlayerExitLinkRoom: @ 827734F
walk_down
walk_down
step_end
-Movement_277352: @ 8277352
+@ Functionally unused
+Movement_PlayerApproachLinkRoomRight: @ 8277352
walk_right
walk_up
walk_up
step_end
-OldaleTown_PokemonCenter_2F_Movement_277356: @ 8277356
+Movement_PlayerApproachLinkRoomLeft: @ 8277356
walk_left
walk_up
walk_up
step_end
-OldaleTown_PokemonCenter_2F_Movement_27735A: @ 827735A
+Movement_PlayerEnterLinkRoom: @ 827735A
walk_up
step_end
-OldaleTown_PokemonCenter_2F_Movement_27735C: @ 827735C
+@ Unused
+Movement_PlayerFaceAttendantLeft: @ 827735C
face_left
step_end
-OldaleTown_PokemonCenter_2F_Movement_27735E: @ 827735E
+Movement_PlayerFaceAttendantRight: @ 827735E
face_right
step_end
-MossdeepCity_GameCorner_1F_Movement_277360: @ 8277360
+Movement_PlayerEnterMinigameRoom: @ 8277360
walk_left
walk_up
walk_up
@@ -894,62 +829,62 @@ EventScript_RecordCenter_Spot3:: @ 827745C
RecordCorner_EventScript_277471:: @ 8277471
bufferitemname 1, VAR_TEMP_1
- message RecordCorner_Text_27863C
+ message RecordCorner_Text_PlayerSentOverOneX
waitmessage
waitbuttonpress
releaseall
end
-gEventScript_TradeRoom_ReadTrainerCard_NoColor:: @ 827747E
- msgbox Text_278452, MSGBOX_DEFAULT
+CableClub_EventScript_ReadTrainerCard:: @ 827747E
+ msgbox CableClub_Text_GotToLookAtTrainerCard, MSGBOX_DEFAULT
fadescreen 1
- special sp02A_crash_sound
+ special Script_ShowLinkTrainerCard
waitstate
end
-gEventScript_TradeRoom_ReadTrainerCard_Normal:: @ 827748D
- msgbox Text_27847B, MSGBOX_DEFAULT
+CableClub_EventScript_ReadTrainerCardColored:: @ 827748D
+ msgbox CableClub_Text_GotToLookAtColoredTrainerCard, MSGBOX_DEFAULT
fadescreen 1
- special sp02A_crash_sound
+ special Script_ShowLinkTrainerCard
waitstate
end
-gEventScript_TradeRoom_TooBusyToNotice:: @ 827749C
- msgbox Text_27842E, MSGBOX_DEFAULT
+CableClub_EventScript_TooBusyToNotice:: @ 827749C
+ msgbox CableClub_Text_TooBusyToNotice, MSGBOX_DEFAULT
closemessage
end
-SingleBattleColosseum_EventScript_2774A6:: @ 82774A6
- special sub_8098574
- msgbox SingleBattleColosseum_Text_2784B4, MSGBOX_DEFAULT
- special sub_809859C
+SingleBattleColosseum_EventScript_Attendant:: @ 82774A6
+ special Script_FacePlayer
+ msgbox SingleBattleColosseum_Text_TakePlaceStartBattle, MSGBOX_DEFAULT
+ special Script_ClearHeldMovement
closemessage
end
-TradeCenter_EventScript_2774B6:: @ 82774B6
- special sub_8098574
- msgbox TradeCenter_Text_2784E2, MSGBOX_DEFAULT
- special sub_809859C
+TradeCenter_EventScript_Attendant:: @ 82774B6
+ special Script_FacePlayer
+ msgbox TradeCenter_Text_TakeSeatStartTrade, MSGBOX_DEFAULT
+ special Script_ClearHeldMovement
closemessage
end
RecordCorner_EventScript_2774C6:: @ 82774C6
compare VAR_TEMP_0, 0
- goto_if_ne RecordCorner_EventScript_2774E0
- special sub_8098574
- message RecordCorner_Text_27861C
+ goto_if_ne RecordCorner_EventScript_AlreadyMixed
+ special Script_FacePlayer
+ message RecordCorner_Text_TakeSeatAndWait
waitmessage
waitbuttonpress
- special sub_809859C
+ special Script_ClearHeldMovement
closemessage
end
-RecordCorner_EventScript_2774E0:: @ 82774E0
- special sub_8098574
- message RecordCorner_Text_27850E
+RecordCorner_EventScript_AlreadyMixed:: @ 82774E0
+ special Script_FacePlayer
+ message RecordCorner_Text_ThanksForComing
waitmessage
waitbuttonpress
- special sub_809859C
+ special Script_ClearHeldMovement
closemessage
end
@@ -969,70 +904,70 @@ EventScript_TerminateLink:: @ 8277509
EventScript_DoLinkRoomExit:: @ 8277513
special CleanupLinkRoomState
- special sub_80AF9F8
+ special ReturnFromLinkRoom
waitstate
end
-OldaleTown_PokemonCenter_2F_EventScript_27751B:: @ 827751B
+CableClub_EventScript_UnionRoomAttendant:: @ 827751B
lock
faceplayer
setvar VAR_FRONTIER_FACILITY, 8
goto_if_unset FLAG_SYS_POKEDEX_GET, CableClub_EventScript_WirelessClubAdjustements
specialvar VAR_RESULT, IsBadEggInParty
- compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_27731B
+ compare VAR_RESULT, TRUE
+ goto_if_eq CableClub_EventScript_AbortLinkPlayerHasBadEgg
copyvar VAR_0x8007, VAR_LAST_TALKED
specialvar VAR_RESULT, IsWirelessAdapterConnected
- compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277668
- message OldaleTown_PokemonCenter_2F_Text_27940D
+ compare VAR_RESULT, FALSE
+ goto_if_eq CableClub_EventScript_UnionRoomAdapterNotConnected
+ message CableClub_Text_WelcomeUnionRoomEnter
waitmessage
- goto OldaleTown_PokemonCenter_2F_EventScript_27755C
+ goto CableClub_EventScript_UnionRoomSelect
end
-OldaleTown_PokemonCenter_2F_EventScript_27755C:: @ 827755C
+CableClub_EventScript_UnionRoomSelect:: @ 827755C
multichoice 17, 6, MULTI_YESNOINFO, 0
switch VAR_RESULT
- case 0, OldaleTown_PokemonCenter_2F_EventScript_27759F
- case 1, OldaleTown_PokemonCenter_2F_EventScript_2772EC
- case 2, OldaleTown_PokemonCenter_2F_EventScript_277593
- case MULTI_B_PRESSED, OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ case 0, CableClub_EventScript_EnterUnionRoom
+ case 1, CableClub_EventScript_AbortLink
+ case 2, CableClub_EventScript_UnionRoomInfo
+ case MULTI_B_PRESSED, CableClub_EventScript_AbortLink
end
-OldaleTown_PokemonCenter_2F_EventScript_277593:: @ 8277593
- message OldaleTown_PokemonCenter_2F_Text_2794B8
+CableClub_EventScript_UnionRoomInfo:: @ 8277593
+ message CableClub_Text_UnionRoomInfo
waitmessage
- goto OldaleTown_PokemonCenter_2F_EventScript_27755C
+ goto CableClub_EventScript_UnionRoomSelect
end
-OldaleTown_PokemonCenter_2F_EventScript_27759F:: @ 827759F
- call OldaleTown_PokemonCenter_2F_EventScript_277626
+CableClub_EventScript_EnterUnionRoom:: @ 827759F
+ call CableClub_EventScript_CheckPartyUnionRoomRequirements
compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ goto_if_eq CableClub_EventScript_AbortLink
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
- msgbox OldaleTown_PokemonCenter_2F_Text_27961C, MSGBOX_DEFAULT
+ goto_if_eq CableClub_EventScript_AbortLink
+ msgbox CableClub_Text_EnjoyUnionRoom, MSGBOX_DEFAULT
closemessage
special HealPlayerParty
- setvar VAR_0x8004, 6
+ setvar VAR_0x8004, USING_UNION_ROOM
copyvar VAR_CABLE_CLUB_STATE, VAR_0x8004
- call OldaleTown_PokemonCenter_2F_EventScript_277BBE
+ call CableClub_EventScript_OpenUnionRoomBarrier
special DrawWholeMapView
playse SE_TK_KASYA
delay 60
- applymovement VAR_LAST_TALKED, OldaleTown_PokemonCenter_2F_Movement_27734D
+ applymovement VAR_LAST_TALKED, Movement_AttendantFaceLeft
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_277356
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerApproachLinkRoomLeft
waitmovement 0
opendoor 5, 1
waitdooranim
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_27735A
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerEnterLinkRoom
waitmovement 0
hideobjectat EVENT_OBJ_ID_PLAYER, MAP_PETALBURG_CITY
closedoor 5, 1
waitdooranim
- special sub_8018090
+ special Script_ResetUnionRoomTrade
special SetCableClubWarp
warpteleport2 MAP_UNION_ROOM, 255, 7, 11
waitstate
@@ -1040,329 +975,325 @@ OldaleTown_PokemonCenter_2F_EventScript_27759F:: @ 827759F
waitstate
end
-OldaleTown_PokemonCenter_2F_EventScript_277626:: @ 8277626
+CableClub_EventScript_CheckPartyUnionRoomRequirements:: @ 8277626
specialvar VAR_RESULT, CountPartyNonEggMons
compare VAR_RESULT, 2
- goto_if_lt OldaleTown_PokemonCenter_2F_EventScript_27764C
- specialvar VAR_RESULT, sub_80F9370
- compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_27765A
+ goto_if_lt CableClub_EventScript_NeedTwoMonsForUnionRoom
+ specialvar VAR_RESULT, DoesPartyHaveEnigmaBerry
+ compare VAR_RESULT, TRUE
+ goto_if_eq CableClub_EventScript_NoEnigmaBerryInUnionRoom
setvar VAR_RESULT, 1
return
-OldaleTown_PokemonCenter_2F_EventScript_27764C:: @ 827764C
- msgbox OldaleTown_PokemonCenter_2F_Text_27893E, MSGBOX_DEFAULT
+CableClub_EventScript_NeedTwoMonsForUnionRoom:: @ 827764C
+ msgbox CableClub_Text_NeedTwoMonsForUnionRoom, MSGBOX_DEFAULT
goto EventScript_CableClub_SetVarResult0
end
-OldaleTown_PokemonCenter_2F_EventScript_27765A:: @ 827765A
- msgbox OldaleTown_PokemonCenter_2F_Text_27897B, MSGBOX_DEFAULT
+CableClub_EventScript_NoEnigmaBerryInUnionRoom:: @ 827765A
+ msgbox CableClub_Text_NoEnigmaBerryInUnionRoom, MSGBOX_DEFAULT
goto EventScript_CableClub_SetVarResult0
end
-OldaleTown_PokemonCenter_2F_EventScript_277668:: @ 8277668
- msgbox OldaleTown_PokemonCenter_2F_Text_2789B5, MSGBOX_DEFAULT
+CableClub_EventScript_UnionRoomAdapterNotConnected:: @ 8277668
+ msgbox CableClub_Text_UnionRoomAdapterNotConnected, MSGBOX_DEFAULT
release
return
-OldaleTown_PokemonCenter_2F_EventScript_277672:: @ 8277672
+CableClub_EventScript_WirelessClubAttendant:: @ 8277672
lock
faceplayer
goto_if_unset FLAG_SYS_POKEDEX_GET, CableClub_EventScript_WirelessClubAdjustements
- msgbox OldaleTown_PokemonCenter_2F_Text_279937, MSGBOX_YESNO
+ msgbox CableClub_Text_AskAboutLinking, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_27769A
- msgbox OldaleTown_PokemonCenter_2F_Text_2799AA, MSGBOX_DEFAULT
+ goto_if_eq CableClub_EventScript_DontAskAboutLinking
+ msgbox CableClub_Text_ExplainWirelessClub, MSGBOX_DEFAULT
release
return
-OldaleTown_PokemonCenter_2F_EventScript_27769A:: @ 827769A
- msgbox OldaleTown_PokemonCenter_2F_Text_279C91, MSGBOX_DEFAULT
+CableClub_EventScript_DontAskAboutLinking:: @ 827769A
+ msgbox CableClub_Text_HopeYouEnjoyWirelessSystem, MSGBOX_DEFAULT
release
return
-OldaleTown_PokemonCenter_2F_EventScript_2776A4:: @ 82776A4
+CableClub_EventScript_DirectCornerAttendant:: @ 82776A4
lock
faceplayer
setvar VAR_FRONTIER_FACILITY, 9
goto_if_unset FLAG_SYS_POKEDEX_GET, CableClub_EventScript_WirelessClubAdjustements
specialvar VAR_RESULT, IsBadEggInParty
- compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_27731B
+ compare VAR_RESULT, TRUE
+ goto_if_eq CableClub_EventScript_AbortLinkPlayerHasBadEgg
specialvar VAR_RESULT, IsWirelessAdapterConnected
- compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_276E13
- message OldaleTown_PokemonCenter_2F_Text_279013
+ compare VAR_RESULT, FALSE
+ goto_if_eq CableClub_EventScript_WelcomeToCableClub
+ message CableClub_Text_WelcomeWhichDirectCornerRoom
waitmessage
delay 28
- goto OldaleTown_PokemonCenter_2F_EventScript_2776E3
+ goto CableClub_EventScript_DirectCornerSelectService
end
-OldaleTown_PokemonCenter_2F_EventScript_2776E3:: @ 82776E3
+CableClub_EventScript_DirectCornerSelectService:: @ 82776E3
checkitem ITEM_POWDER_JAR, 1
- compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_27778B
- goto_if_set FLAG_VISITED_MAUVILLE_CITY, OldaleTown_PokemonCenter_2F_EventScript_27773E
+ compare VAR_RESULT, FALSE
+ goto_if_eq CableClub_EventScript_DirectCornerNoBerry
+ goto_if_set FLAG_VISITED_MAUVILLE_CITY, CableClub_EventScript_DirectCornerSelectAllServices
multichoice 0, 0, MULTI_WIRELESS_NO_RECORD, 0
switch VAR_RESULT
- case 0, OldaleTown_PokemonCenter_2F_EventScript_27780D
- case 1, OldaleTown_PokemonCenter_2F_EventScript_27783B
- case 2, OldaleTown_PokemonCenter_2F_EventScript_2778F7
- case 3, OldaleTown_PokemonCenter_2F_EventScript_2772EC
- case MULTI_B_PRESSED, OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ case 0, CableClub_EventScript_WirelessTrade
+ case 1, CableClub_EventScript_WirelessBattleSelect
+ case 2, CableClub_EventScript_WirelessBerryCrush
+ case 3, CableClub_EventScript_AbortLink
+ case MULTI_B_PRESSED, CableClub_EventScript_AbortLink
end
-OldaleTown_PokemonCenter_2F_EventScript_27773E:: @ 827773E
+CableClub_EventScript_DirectCornerSelectAllServices:: @ 827773E
multichoice 0, 0, MULTI_WIRELESS_ALL_SERVICES, 0
switch VAR_RESULT
- case 0, OldaleTown_PokemonCenter_2F_EventScript_27780D
- case 1, OldaleTown_PokemonCenter_2F_EventScript_27783B
- case 2, OldaleTown_PokemonCenter_2F_EventScript_2778D9
- case 3, OldaleTown_PokemonCenter_2F_EventScript_2778F7
- case 4, OldaleTown_PokemonCenter_2F_EventScript_2772EC
- case MULTI_B_PRESSED, OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ case 0, CableClub_EventScript_WirelessTrade
+ case 1, CableClub_EventScript_WirelessBattleSelect
+ case 2, CableClub_EventScript_WirelessRecordMix
+ case 3, CableClub_EventScript_WirelessBerryCrush
+ case 4, CableClub_EventScript_AbortLink
+ case MULTI_B_PRESSED, CableClub_EventScript_AbortLink
end
-OldaleTown_PokemonCenter_2F_EventScript_27778B:: @ 827778B
- goto_if_set FLAG_VISITED_MAUVILLE_CITY, OldaleTown_PokemonCenter_2F_EventScript_2777CB
+CableClub_EventScript_DirectCornerNoBerry:: @ 827778B
+ goto_if_set FLAG_VISITED_MAUVILLE_CITY, CableClub_EventScript_DirectCornerHasRecordMix
multichoice 0, 0, MULTI_WIRELESS_NO_RECORD_BERRY, 0
switch VAR_RESULT
- case 0, OldaleTown_PokemonCenter_2F_EventScript_27780D
- case 1, OldaleTown_PokemonCenter_2F_EventScript_27783B
- case 2, OldaleTown_PokemonCenter_2F_EventScript_2772EC
- case MULTI_B_PRESSED, OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ case 0, CableClub_EventScript_WirelessTrade
+ case 1, CableClub_EventScript_WirelessBattleSelect
+ case 2, CableClub_EventScript_AbortLink
+ case MULTI_B_PRESSED, CableClub_EventScript_AbortLink
end
-OldaleTown_PokemonCenter_2F_EventScript_2777CB:: @ 82777CB
+CableClub_EventScript_DirectCornerHasRecordMix:: @ 82777CB
multichoice 0, 0, MULTI_WIRELESS_NO_BERRY, 0
switch VAR_RESULT
- case 0, OldaleTown_PokemonCenter_2F_EventScript_27780D
- case 1, OldaleTown_PokemonCenter_2F_EventScript_27783B
- case 2, OldaleTown_PokemonCenter_2F_EventScript_2778D9
- case 3, OldaleTown_PokemonCenter_2F_EventScript_2772EC
- case MULTI_B_PRESSED, OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ case 0, CableClub_EventScript_WirelessTrade
+ case 1, CableClub_EventScript_WirelessBattleSelect
+ case 2, CableClub_EventScript_WirelessRecordMix
+ case 3, CableClub_EventScript_AbortLink
+ case MULTI_B_PRESSED, CableClub_EventScript_AbortLink
end
-OldaleTown_PokemonCenter_2F_EventScript_27780D:: @ 827780D
- msgbox OldaleTown_PokemonCenter_2F_Text_27909D, MSGBOX_YESNO
+CableClub_EventScript_WirelessTrade:: @ 827780D
+ msgbox CableClub_Text_TradePokemon, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
- call OldaleTown_PokemonCenter_2F_EventScript_277199
+ goto_if_eq CableClub_EventScript_AbortLink
+ call CableClub_EventScript_CheckPartyTradeRequirements
compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ goto_if_eq CableClub_EventScript_AbortLink
setvar VAR_0x8004, 3
- goto OldaleTown_PokemonCenter_2F_EventScript_277931
+ goto CableClub_EventScript_SaveAndChooseLinkLeader
end
-OldaleTown_PokemonCenter_2F_EventScript_27783B:: @ 827783B
- message OldaleTown_PokemonCenter_2F_Text_2790BE
+CableClub_EventScript_WirelessBattleSelect:: @ 827783B
+ message CableClub_Text_WhichBattleMode
waitmessage
multichoice 0, 0, MULTI_BATTLE_MODE, 0
switch VAR_RESULT
- case 0, OldaleTown_PokemonCenter_2F_EventScript_27788E
- case 1, OldaleTown_PokemonCenter_2F_EventScript_277899
- case 2, OldaleTown_PokemonCenter_2F_EventScript_2778C0
- case 3, OldaleTown_PokemonCenter_2F_EventScript_2778CB
- case 4, OldaleTown_PokemonCenter_2F_EventScript_2772EC
- case MULTI_B_PRESSED, OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ case 0, CableClub_EventScript_WirelessSingleBattle
+ case 1, CableClub_EventScript_WirelessDoubleBattle
+ case 2, CableClub_EventScript_WirelessMultiBattle
+ case 3, CableClub_EventScript_WirelessBattleInfo
+ case 4, CableClub_EventScript_AbortLink
+ case MULTI_B_PRESSED, CableClub_EventScript_AbortLink
end
-OldaleTown_PokemonCenter_2F_EventScript_27788E:: @ 827788E
+CableClub_EventScript_WirelessSingleBattle:: @ 827788E
setvar VAR_0x8004, 0
- goto OldaleTown_PokemonCenter_2F_EventScript_277931
+ goto CableClub_EventScript_SaveAndChooseLinkLeader
end
-OldaleTown_PokemonCenter_2F_EventScript_277899:: @ 8277899
+CableClub_EventScript_WirelessDoubleBattle:: @ 8277899
special HasEnoughMonsForDoubleBattle
compare VAR_RESULT, PLAYER_HAS_TWO_USABLE_MONS
- goto_if_ne OldaleTown_PokemonCenter_2F_EventScript_2778B2
+ goto_if_ne CableClub_EventScript_TwoMonsNeededForWirelessDoubleBattle
setvar VAR_0x8004, 1
- goto OldaleTown_PokemonCenter_2F_EventScript_277931
+ goto CableClub_EventScript_SaveAndChooseLinkLeader
end
-OldaleTown_PokemonCenter_2F_EventScript_2778B2:: @ 82778B2
- msgbox OldaleTown_PokemonCenter_2F_Text_277FEE, MSGBOX_DEFAULT
- goto OldaleTown_PokemonCenter_2F_EventScript_27783B
+CableClub_EventScript_TwoMonsNeededForWirelessDoubleBattle:: @ 82778B2
+ msgbox CableClub_Text_NeedTwoMonsForDoubleBattle, MSGBOX_DEFAULT
+ goto CableClub_EventScript_WirelessBattleSelect
end
-OldaleTown_PokemonCenter_2F_EventScript_2778C0:: @ 82778C0
+CableClub_EventScript_WirelessMultiBattle:: @ 82778C0
setvar VAR_0x8004, 2
- goto OldaleTown_PokemonCenter_2F_EventScript_277931
+ goto CableClub_EventScript_SaveAndChooseLinkLeader
end
-OldaleTown_PokemonCenter_2F_EventScript_2778CB:: @ 82778CB
- msgbox OldaleTown_PokemonCenter_2F_Text_279142, MSGBOX_DEFAULT
- goto OldaleTown_PokemonCenter_2F_EventScript_27783B
+CableClub_EventScript_WirelessBattleInfo:: @ 82778CB
+ msgbox CableClub_Text_ExplainBattleModes, MSGBOX_DEFAULT
+ goto CableClub_EventScript_WirelessBattleSelect
end
-OldaleTown_PokemonCenter_2F_EventScript_2778D9:: @ 82778D9
- msgbox OldaleTown_PokemonCenter_2F_Text_2790E8, MSGBOX_YESNO
+CableClub_EventScript_WirelessRecordMix:: @ 82778D9
+ msgbox CableClub_Text_AccessRecordCorner, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ goto_if_eq CableClub_EventScript_AbortLink
setvar VAR_0x8004, 12
- goto OldaleTown_PokemonCenter_2F_EventScript_277931
+ goto CableClub_EventScript_SaveAndChooseLinkLeader
end
-OldaleTown_PokemonCenter_2F_EventScript_2778F7:: @ 82778F7
- msgbox OldaleTown_PokemonCenter_2F_Text_279114, MSGBOX_YESNO
+CableClub_EventScript_WirelessBerryCrush:: @ 82778F7
+ msgbox CableClub_Text_UseBerryCrush, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ goto_if_eq CableClub_EventScript_AbortLink
special HasAtLeastOneBerry
- compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277923
+ compare VAR_RESULT, FALSE
+ goto_if_eq CableClub_EventScript_NeedBerryForBerryCrush
setvar VAR_0x8004, 5
- goto OldaleTown_PokemonCenter_2F_EventScript_277931
+ goto CableClub_EventScript_SaveAndChooseLinkLeader
end
-OldaleTown_PokemonCenter_2F_EventScript_277923:: @ 8277923
- msgbox OldaleTown_PokemonCenter_2F_Text_2788FC, MSGBOX_DEFAULT
- goto OldaleTown_PokemonCenter_2F_EventScript_2776E3
+CableClub_EventScript_NeedBerryForBerryCrush:: @ 8277923
+ msgbox CableClub_Text_NeedBerryForBerryCrush, MSGBOX_DEFAULT
+ goto CableClub_EventScript_DirectCornerSelectService
end
-OldaleTown_PokemonCenter_2F_EventScript_277931:: @ 8277931
+CableClub_EventScript_SaveAndChooseLinkLeader:: @ 8277931
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ goto_if_eq CableClub_EventScript_AbortLink
switch VAR_0x8004
- case 3, OldaleTown_PokemonCenter_2F_EventScript_277989
- case 0, OldaleTown_PokemonCenter_2F_EventScript_277989
- case 1, OldaleTown_PokemonCenter_2F_EventScript_277989
- case 2, OldaleTown_PokemonCenter_2F_EventScript_277A16
- case 5, OldaleTown_PokemonCenter_2F_EventScript_277AA3
- case 12, OldaleTown_PokemonCenter_2F_EventScript_277AA3
+ case 3, CableClub_EventScript_ChooseLinkLeaderFrom2
+ case 0, CableClub_EventScript_ChooseLinkLeaderFrom2
+ case 1, CableClub_EventScript_ChooseLinkLeaderFrom2
+ case 2, CableClub_EventScript_ChooseLinkLeaderFrom4
+ case 5, CableClub_EventScript_ChooseLinkLeader
+ case 12, CableClub_EventScript_ChooseLinkLeader
end
-OldaleTown_PokemonCenter_2F_EventScript_277989:: @ 8277989
- message OldaleTown_PokemonCenter_2F_Text_2792CD
+CableClub_EventScript_ChooseLinkLeaderFrom2:: @ 8277989
+ message CableClub_Text_ChooseGroupLeaderOfTwo
waitmessage
multichoice 16, 6, MULTI_LINK_LEADER, 0
switch VAR_RESULT
- case 0, OldaleTown_PokemonCenter_2F_EventScript_2779EE
- case 1, OldaleTown_PokemonCenter_2F_EventScript_2779C6
- case 2, OldaleTown_PokemonCenter_2F_EventScript_2772EC
- case MULTI_B_PRESSED, OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ case 0, CableClub_EventScript_TryJoinGroup2Players
+ case 1, CableClub_EventScript_TryLeadGroup2Players
+ case 2, CableClub_EventScript_AbortLink
+ case MULTI_B_PRESSED, CableClub_EventScript_AbortLink
end
-OldaleTown_PokemonCenter_2F_EventScript_2779C6:: @ 82779C6
- call OldaleTown_PokemonCenter_2F_EventScript_277B30
+CableClub_EventScript_TryLeadGroup2Players:: @ 82779C6
+ call CableClub_EventScript_TryBecomeLinkLeader
compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277B3A
+ goto_if_eq CableClub_EventScript_EnterWirelessLinkRoom
compare VAR_RESULT, 5
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277989
+ goto_if_eq CableClub_EventScript_ChooseLinkLeaderFrom2
compare VAR_RESULT, 8
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2779C6
+ goto_if_eq CableClub_EventScript_TryLeadGroup2Players
release
return
-OldaleTown_PokemonCenter_2F_EventScript_2779EE:: @ 82779EE
- call OldaleTown_PokemonCenter_2F_EventScript_277B35
+CableClub_EventScript_TryJoinGroup2Players:: @ 82779EE
+ call CableClub_EventScript_TryJoinLinkGroup
compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277B3A
+ goto_if_eq CableClub_EventScript_EnterWirelessLinkRoom
compare VAR_RESULT, 5
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277989
+ goto_if_eq CableClub_EventScript_ChooseLinkLeaderFrom2
compare VAR_RESULT, 8
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_2779EE
+ goto_if_eq CableClub_EventScript_TryJoinGroup2Players
release
return
-OldaleTown_PokemonCenter_2F_EventScript_277A16:: @ 8277A16
- message OldaleTown_PokemonCenter_2F_Text_279334
+CableClub_EventScript_ChooseLinkLeaderFrom4:: @ 8277A16
+ message CableClub_Text_ChooseGroupLeaderOfFour
waitmessage
multichoice 16, 6, MULTI_LINK_LEADER, 0
switch VAR_RESULT
- case 0, OldaleTown_PokemonCenter_2F_EventScript_277A7B
- case 1, OldaleTown_PokemonCenter_2F_EventScript_277A53
- case 2, OldaleTown_PokemonCenter_2F_EventScript_2772EC
- case MULTI_B_PRESSED, OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ case 0, CableClub_EventScript_TryJoinGroup4Players
+ case 1, CableClub_EventScript_TryLeadGroup4Players
+ case 2, CableClub_EventScript_AbortLink
+ case MULTI_B_PRESSED, CableClub_EventScript_AbortLink
end
-OldaleTown_PokemonCenter_2F_EventScript_277A53:: @ 8277A53
- call OldaleTown_PokemonCenter_2F_EventScript_277B30
+CableClub_EventScript_TryLeadGroup4Players:: @ 8277A53
+ call CableClub_EventScript_TryBecomeLinkLeader
compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277B3A
+ goto_if_eq CableClub_EventScript_EnterWirelessLinkRoom
compare VAR_RESULT, 5
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277A16
+ goto_if_eq CableClub_EventScript_ChooseLinkLeaderFrom4
compare VAR_RESULT, 8
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277A53
+ goto_if_eq CableClub_EventScript_TryLeadGroup4Players
release
return
-OldaleTown_PokemonCenter_2F_EventScript_277A7B:: @ 8277A7B
- call OldaleTown_PokemonCenter_2F_EventScript_277B35
+CableClub_EventScript_TryJoinGroup4Players:: @ 8277A7B
+ call CableClub_EventScript_TryJoinLinkGroup
compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277B3A
+ goto_if_eq CableClub_EventScript_EnterWirelessLinkRoom
compare VAR_RESULT, 5
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277A16
+ goto_if_eq CableClub_EventScript_ChooseLinkLeaderFrom4
compare VAR_RESULT, 8
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277A7B
+ goto_if_eq CableClub_EventScript_TryJoinGroup4Players
release
return
-OldaleTown_PokemonCenter_2F_EventScript_277AA3:: @ 8277AA3
- message OldaleTown_PokemonCenter_2F_Text_2793A3
+CableClub_EventScript_ChooseLinkLeader:: @ 8277AA3
+ message CableClub_Text_ChooseGroupLeader
waitmessage
multichoice 16, 6, MULTI_LINK_LEADER, 0
switch VAR_RESULT
- case 0, OldaleTown_PokemonCenter_2F_EventScript_277B08
- case 1, OldaleTown_PokemonCenter_2F_EventScript_277AE0
- case 2, OldaleTown_PokemonCenter_2F_EventScript_2772EC
- case MULTI_B_PRESSED, OldaleTown_PokemonCenter_2F_EventScript_2772EC
+ case 0, CableClub_EventScript_TryJoinGroupXPlayers
+ case 1, CableClub_EventScript_TryLeadGroupXPlayers
+ case 2, CableClub_EventScript_AbortLink
+ case MULTI_B_PRESSED, CableClub_EventScript_AbortLink
end
-OldaleTown_PokemonCenter_2F_EventScript_277AE0:: @ 8277AE0
- call OldaleTown_PokemonCenter_2F_EventScript_277B30
+CableClub_EventScript_TryLeadGroupXPlayers:: @ 8277AE0
+ call CableClub_EventScript_TryBecomeLinkLeader
compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277B3A
+ goto_if_eq CableClub_EventScript_EnterWirelessLinkRoom
compare VAR_RESULT, 5
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277AA3
+ goto_if_eq CableClub_EventScript_ChooseLinkLeader
compare VAR_RESULT, 8
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277AE0
+ goto_if_eq CableClub_EventScript_TryLeadGroupXPlayers
release
return
-OldaleTown_PokemonCenter_2F_EventScript_277B08:: @ 8277B08
- call OldaleTown_PokemonCenter_2F_EventScript_277B35
+CableClub_EventScript_TryJoinGroupXPlayers:: @ 8277B08
+ call CableClub_EventScript_TryJoinLinkGroup
compare VAR_RESULT, 1
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277B3A
+ goto_if_eq CableClub_EventScript_EnterWirelessLinkRoom
compare VAR_RESULT, 5
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277AA3
+ goto_if_eq CableClub_EventScript_ChooseLinkLeader
compare VAR_RESULT, 8
- goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_277B08
+ goto_if_eq CableClub_EventScript_TryJoinGroupXPlayers
release
return
-BattleFrontier_BattleTowerLobby_EventScript_277B30:: @ 8277B30
-MossdeepCity_GameCorner_1F_EventScript_277B30:: @ 8277B30
-OldaleTown_PokemonCenter_2F_EventScript_277B30:: @ 8277B30
- special BerryBlenderLinkBecomeLeader
+CableClub_EventScript_TryBecomeLinkLeader:: @ 8277B30
+ special TryBecomeLinkLeader
waitstate
return
-BattleFrontier_BattleTowerLobby_EventScript_277B35:: @ 8277B35
-MossdeepCity_GameCorner_1F_EventScript_277B35:: @ 8277B35
-OldaleTown_PokemonCenter_2F_EventScript_277B35:: @ 8277B35
- special BerryBlenderLinkJoinGroup
+CableClub_EventScript_TryJoinLinkGroup:: @ 8277B35
+ special TryJoinLinkGroup
waitstate
return
-OldaleTown_PokemonCenter_2F_EventScript_277B3A:: @ 8277B3A
- messageautoscroll OldaleTown_PokemonCenter_2F_Text_2781A5
+CableClub_EventScript_EnterWirelessLinkRoom:: @ 8277B3A
+ messageautoscroll CableClub_Text_DirectYouToYourRoom
waitmessage
delay 60
closemessage
copyvar VAR_0x8007, VAR_LAST_TALKED
- call OldaleTown_PokemonCenter_2F_EventScript_277BE4
+ call CableClub_EventScript_OpenDirectCornerBarrier
special DrawWholeMapView
playse SE_TK_KASYA
delay 60
- applymovement VAR_LAST_TALKED, OldaleTown_PokemonCenter_2F_Movement_27734D
+ applymovement VAR_LAST_TALKED, Movement_AttendantFaceLeft
waitmovement 0
closemessage
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_277356
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerApproachLinkRoomLeft
waitmovement 0
opendoor 9, 1
waitdooranim
- applymovement EVENT_OBJ_ID_PLAYER, OldaleTown_PokemonCenter_2F_Movement_27735A
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerEnterLinkRoom
waitmovement 0
hideobjectat EVENT_OBJ_ID_PLAYER, MAP_PETALBURG_CITY
closedoor 9, 1
@@ -1373,730 +1304,229 @@ OldaleTown_PokemonCenter_2F_EventScript_277B3A:: @ 8277B3A
EventScript_WirelessBoxResults:: @ 8277B8A
lockall
- goto_if_unset FLAG_SYS_POKEDEX_GET, OldaleTown_PokemonCenter_2F_EventScript_27733F
+ goto_if_unset FLAG_SYS_POKEDEX_GET, CableClub_EventScript_NotReadyYet
specialvar VAR_RESULT, IsWirelessAdapterConnected
- compare VAR_RESULT, 0
- goto_if_eq EventScript_277BB4
+ compare VAR_RESULT, FALSE
+ goto_if_eq CableClub_EventScript_AdapterNotConnected
fadescreen 1
special sub_801A42C
waitstate
- msgbox OldaleTown_PokemonCenter_2F_Text_27874F, MSGBOX_DEFAULT
+ msgbox CableClub_Text_ParticipantsStepUpToCounter, MSGBOX_DEFAULT
releaseall
end
-EventScript_277BB4:: @ 8277BB4
- msgbox OldaleTown_PokemonCenter_2F_Text_27871F, MSGBOX_DEFAULT
+CableClub_EventScript_AdapterNotConnected:: @ 8277BB4
+ msgbox CableClub_Text_AdapterNotConnected, MSGBOX_DEFAULT
releaseall
end
-OldaleTown_PokemonCenter_2F_EventScript_277BBE:: @ 8277BBE
+CableClub_EventScript_OpenUnionRoomBarrier:: @ 8277BBE
setmetatile 5, 2, METATILE_PokemonCenter_Floor_ShadowTop_Alt, 0
setmetatile 5, 3, METATILE_PokemonCenter_Floor_Plain_Alt, 0
return
-OldaleTown_PokemonCenter_2F_EventScript_277BD1:: @ 8277BD1
+CableClub_EventScript_CloseUnionRoomBarrier:: @ 8277BD1
setmetatile 5, 2, METATILE_PokemonCenter_Floor_ShadowTop, 1
setmetatile 5, 3, METATILE_PokemonCenter_CounterBarrier, 1
return
-OldaleTown_PokemonCenter_2F_EventScript_277BE4:: @ 8277BE4
+CableClub_EventScript_OpenDirectCornerBarrier:: @ 8277BE4
setmetatile 9, 2, METATILE_PokemonCenter_Floor_ShadowTop_Alt, 0
setmetatile 9, 3, METATILE_PokemonCenter_Floor_Plain_Alt, 0
return
-OldaleTown_PokemonCenter_2F_EventScript_277BF7:: @ 8277BF7
+CableClub_EventScript_CloseDirectCornerBarrier:: @ 8277BF7
setmetatile 9, 2, METATILE_PokemonCenter_Floor_ShadowTop, 1
setmetatile 9, 3, METATILE_PokemonCenter_CounterBarrier, 1
return
-MossdeepCity_GameCorner_1F_EventScript_277C0A:: @ 8277C0A
-OldaleTown_PokemonCenter_2F_EventScript_277C0A:: @ 8277C0A
+EventScript_OpenMossdeepGameCornerBarrier:: @ 8277C0A
setmetatile 5, 2, METATILE_MossdeepGameCorner_CounterOpen_Top, 0
setmetatile 5, 3, METATILE_MossdeepGameCorner_CounterOpen_Bottom, 0
return
-OldaleTown_PokemonCenter_2F_EventScript_277C1D:: @ 8277C1D
+EventScript_CloseMossdeepGameCornerBarrier:: @ 8277C1D
setmetatile 5, 2, METATILE_MossdeepGameCorner_CounterClosed_Top, 1
setmetatile 5, 3, METATILE_MossdeepGameCorner_CounterClosed_Bottom, 1
return
-BattleFrontier_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-DewfordTown_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-EverGrandeCity_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-EverGrandeCity_PokemonLeague_1F_MapScript1_277C30: @ 8277C30
-FallarborTown_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-FortreeCity_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-LavaridgeTown_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-LilycoveCity_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-MauvilleCity_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-MossdeepCity_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-OldaleTown_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-PacifidlogTown_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-PetalburgCity_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-RustboroCity_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-SlateportCity_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-SootopolisCity_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
-VerdanturfTown_PokemonCenter_1F_MapScript1_277C30: @ 8277C30
- special sub_8016934
- end
-
-MossdeepCity_GameCorner_1F_EventScript_277C34:: @ 8277C34
+CableClub_OnResume: @ 8277C30
+ special InitUnionRoom
+ end
+
+MossdeepCity_GameCorner_1F_EventScript_InfoMan2:: @ 8277C34
lock
faceplayer
- message MossdeepCity_GameCorner_1F_Text_278A7D
+ message MossdeepCity_GameCorner_1F_Text_DescribeWhichGame
waitmessage
multichoice 0, 0, MULTI_WIRELESS_MINIGAME, 0
switch VAR_RESULT
- case 0, MossdeepCity_GameCorner_1F_EventScript_277C73
- case 1, MossdeepCity_GameCorner_1F_EventScript_277C7D
- case 2, MossdeepCity_GameCorner_1F_EventScript_277C87
- case MULTI_B_PRESSED, MossdeepCity_GameCorner_1F_EventScript_277C87
+ case 0, MossdeepCity_GameCorner_1F_EventScript_PokemonJumpInfo
+ case 1, MossdeepCity_GameCorner_1F_EventScript_DodrioBerryPickingInfo
+ case 2, MossdeepCity_GameCorner_1F_EventScript_MinigameInfoExit
+ case MULTI_B_PRESSED, MossdeepCity_GameCorner_1F_EventScript_MinigameInfoExit
end
-MossdeepCity_GameCorner_1F_EventScript_277C73:: @ 8277C73
- msgbox MossdeepCity_GameCorner_1F_Text_278ACB, MSGBOX_DEFAULT
+MossdeepCity_GameCorner_1F_EventScript_PokemonJumpInfo:: @ 8277C73
+ msgbox MossdeepCity_GameCorner_1F_Text_PokemonJumpInfo, MSGBOX_DEFAULT
release
end
-MossdeepCity_GameCorner_1F_EventScript_277C7D:: @ 8277C7D
- msgbox MossdeepCity_GameCorner_1F_Text_278BF1, MSGBOX_DEFAULT
+MossdeepCity_GameCorner_1F_EventScript_DodrioBerryPickingInfo:: @ 8277C7D
+ msgbox MossdeepCity_GameCorner_1F_Text_DodrioBerryPickingInfo, MSGBOX_DEFAULT
release
end
-MossdeepCity_GameCorner_1F_EventScript_277C87:: @ 8277C87
- msgbox MossdeepCity_GameCorner_1F_Text_278CAC, MSGBOX_DEFAULT
+MossdeepCity_GameCorner_1F_EventScript_MinigameInfoExit:: @ 8277C87
+ msgbox MossdeepCity_GameCorner_1F_Text_TalkToOldManToPlay, MSGBOX_DEFAULT
release
end
-MossdeepCity_GameCorner_1F_EventScript_277C91:: @ 8277C91
+MossdeepCity_GameCorner_1F_EventScript_OldMan2:: @ 8277C91
lock
faceplayer
- message MossdeepCity_GameCorner_1F_Text_278CEB
+ message MossdeepCity_GameCorner_1F_Text_WelcomeCanYouWait
waitmessage
specialvar VAR_RESULT, IsWirelessAdapterConnected
- compare VAR_RESULT, 0
- goto_if_eq MossdeepCity_GameCorner_1F_EventScript_277E48
+ compare VAR_RESULT, FALSE
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_AdapterNotConnected
delay 60
- message MossdeepCity_GameCorner_1F_Text_278DAD
+ message MossdeepCity_GameCorner_1F_Text_PlayWhichGame
waitmessage
multichoice 0, 0, MULTI_WIRELESS_MINIGAME, 0
switch VAR_RESULT
- case 0, MossdeepCity_GameCorner_1F_EventScript_277CE9
- case 1, MossdeepCity_GameCorner_1F_EventScript_277D35
- case 2, MossdeepCity_GameCorner_1F_EventScript_2772F9
- case MULTI_B_PRESSED, MossdeepCity_GameCorner_1F_EventScript_2772F9
+ case 0, MossdeepCity_GameCorner_1F_EventScript_PlayPokemonJump
+ case 1, MossdeepCity_GameCorner_1F_EventScript_PlayDodrioBerryPicking
+ case 2, MossdeepCity_GameCorner_1F_EventScript_AbortMinigame
+ case MULTI_B_PRESSED, MossdeepCity_GameCorner_1F_EventScript_AbortMinigame
end
-MossdeepCity_GameCorner_1F_EventScript_277CE9:: @ 8277CE9
+MossdeepCity_GameCorner_1F_EventScript_PlayPokemonJump:: @ 8277CE9
setvar VAR_0x8005, 0
- special sub_802C920
- compare VAR_RESULT, 0
- goto_if_eq MossdeepCity_GameCorner_1F_EventScript_277E55
- msgbox MossdeepCity_GameCorner_1F_Text_278DD9, MSGBOX_DEFAULT
+ special IsPokemonJumpSpeciesInParty
+ compare VAR_RESULT, FALSE
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_DontHaveRequiredMon
+ msgbox MossdeepCity_GameCorner_1F_Text_EnterWhichPokemon, MSGBOX_DEFAULT
fadescreen 1
setvar VAR_0x8005, 0
- special sub_81B8958
+ special ChooseMonForWirelessMinigame
waitstate
- compare VAR_0x8004, 6
- goto_if_ge MossdeepCity_GameCorner_1F_EventScript_2772F9
+ compare VAR_0x8004, PARTY_SIZE
+ goto_if_ge MossdeepCity_GameCorner_1F_EventScript_AbortMinigame
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq MossdeepCity_GameCorner_1F_EventScript_2772F9
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_AbortMinigame
setvar VAR_0x8004, 4
- goto MossdeepCity_GameCorner_1F_EventScript_277D81
+ goto MossdeepCity_GameCorner_1F_EventScript_ChooseLinkLeader
end
-MossdeepCity_GameCorner_1F_EventScript_277D35:: @ 8277D35
+MossdeepCity_GameCorner_1F_EventScript_PlayDodrioBerryPicking:: @ 8277D35
setvar VAR_0x8005, 1
- special sub_8027A5C
- compare VAR_RESULT, 0
- goto_if_eq MossdeepCity_GameCorner_1F_EventScript_277E55
- msgbox MossdeepCity_GameCorner_1F_Text_278DD9, MSGBOX_DEFAULT
+ special IsDodrioInParty
+ compare VAR_RESULT, FALSE
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_DontHaveRequiredMon
+ msgbox MossdeepCity_GameCorner_1F_Text_EnterWhichPokemon, MSGBOX_DEFAULT
fadescreen 1
setvar VAR_0x8005, 1
- special sub_81B8958
+ special ChooseMonForWirelessMinigame
waitstate
- compare VAR_0x8004, 6
- goto_if_ge MossdeepCity_GameCorner_1F_EventScript_2772F9
+ compare VAR_0x8004, PARTY_SIZE
+ goto_if_ge MossdeepCity_GameCorner_1F_EventScript_AbortMinigame
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq MossdeepCity_GameCorner_1F_EventScript_2772F9
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_AbortMinigame
setvar VAR_0x8004, 6
- goto MossdeepCity_GameCorner_1F_EventScript_277D81
+ goto MossdeepCity_GameCorner_1F_EventScript_ChooseLinkLeader
end
-MossdeepCity_GameCorner_1F_EventScript_277D81:: @ 8277D81
- message MossdeepCity_GameCorner_1F_Text_2793A3
+MossdeepCity_GameCorner_1F_EventScript_ChooseLinkLeader:: @ 8277D81
+ message CableClub_Text_ChooseGroupLeader
waitmessage
multichoice 16, 6, MULTI_LINK_LEADER, 0
switch VAR_RESULT
- case 0, MossdeepCity_GameCorner_1F_EventScript_277DE6
- case 1, MossdeepCity_GameCorner_1F_EventScript_277DBE
- case 2, MossdeepCity_GameCorner_1F_EventScript_2772F9
- case MULTI_B_PRESSED, MossdeepCity_GameCorner_1F_EventScript_2772F9
+ case 0, MossdeepCity_GameCorner_1F_EventScript_TryJoinLinkGroup
+ case 1, MossdeepCity_GameCorner_1F_EventScript_TryBecomeLinkLeader
+ case 2, MossdeepCity_GameCorner_1F_EventScript_AbortMinigame
+ case MULTI_B_PRESSED, MossdeepCity_GameCorner_1F_EventScript_AbortMinigame
end
-MossdeepCity_GameCorner_1F_EventScript_277DBE:: @ 8277DBE
- call MossdeepCity_GameCorner_1F_EventScript_277B30
+MossdeepCity_GameCorner_1F_EventScript_TryBecomeLinkLeader:: @ 8277DBE
+ call CableClub_EventScript_TryBecomeLinkLeader
compare VAR_RESULT, 1
- goto_if_eq MossdeepCity_GameCorner_1F_EventScript_277E0E
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_EnterMinigameRoom
compare VAR_RESULT, 5
- goto_if_eq MossdeepCity_GameCorner_1F_EventScript_277D81
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_ChooseLinkLeader
compare VAR_RESULT, 8
- goto_if_eq MossdeepCity_GameCorner_1F_EventScript_277DBE
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_TryBecomeLinkLeader
release
return
-MossdeepCity_GameCorner_1F_EventScript_277DE6:: @ 8277DE6
- call MossdeepCity_GameCorner_1F_EventScript_277B35
+MossdeepCity_GameCorner_1F_EventScript_TryJoinLinkGroup:: @ 8277DE6
+ call CableClub_EventScript_TryJoinLinkGroup
compare VAR_RESULT, 1
- goto_if_eq MossdeepCity_GameCorner_1F_EventScript_277E0E
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_EnterMinigameRoom
compare VAR_RESULT, 5
- goto_if_eq MossdeepCity_GameCorner_1F_EventScript_277D81
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_ChooseLinkLeader
compare VAR_RESULT, 8
- goto_if_eq MossdeepCity_GameCorner_1F_EventScript_277DE6
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_TryJoinLinkGroup
release
return
-MossdeepCity_GameCorner_1F_EventScript_277E0E:: @ 8277E0E
- messageautoscroll MossdeepCity_GameCorner_1F_Text_278E00
+MossdeepCity_GameCorner_1F_EventScript_EnterMinigameRoom:: @ 8277E0E
+ messageautoscroll MossdeepCity_GameCorner_1F_Text_AllGoodToGo
waitmessage
delay 60
closemessage
copyvar VAR_0x8007, VAR_LAST_TALKED
- call MossdeepCity_GameCorner_1F_EventScript_277C0A
+ call EventScript_OpenMossdeepGameCornerBarrier
special DrawWholeMapView
playse SE_TK_KASYA
delay 60
- applymovement VAR_LAST_TALKED, MossdeepCity_GameCorner_1F_Movement_27734D
+ applymovement VAR_LAST_TALKED, Movement_AttendantFaceLeft
waitmovement 0
closemessage
- applymovement EVENT_OBJ_ID_PLAYER, MossdeepCity_GameCorner_1F_Movement_277360
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_PlayerEnterMinigameRoom
waitmovement 0
hideobjectat EVENT_OBJ_ID_PLAYER, MAP_PETALBURG_CITY
release
waitstate
end
-MossdeepCity_GameCorner_1F_EventScript_277E48:: @ 8277E48
+MossdeepCity_GameCorner_1F_EventScript_AdapterNotConnected:: @ 8277E48
delay 60
- msgbox MossdeepCity_GameCorner_1F_Text_278D68, MSGBOX_DEFAULT
+ msgbox MossdeepCity_GameCorner_1F_Text_AdapterNotConnected, MSGBOX_DEFAULT
release
end
-MossdeepCity_GameCorner_1F_EventScript_277E55:: @ 8277E55
- msgbox MossdeepCity_GameCorner_1F_Text_278E60, MSGBOX_YESNO
+MossdeepCity_GameCorner_1F_EventScript_DontHaveRequiredMon:: @ 8277E55
+ msgbox MossdeepCity_GameCorner_1F_Text_ExplainRequiredMon, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq MossdeepCity_GameCorner_1F_EventScript_2772F9
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_AbortMinigame
compare VAR_0x8005, 0
- call_if_eq MossdeepCity_GameCorner_1F_EventScript_277E84
+ call_if_eq MossdeepCity_GameCorner_1F_EventScript_ExplainPokemonJumpRequirements
compare VAR_0x8005, 1
- call_if_eq MossdeepCity_GameCorner_1F_EventScript_277E8D
- goto MossdeepCity_GameCorner_1F_EventScript_2772F9
+ call_if_eq MossdeepCity_GameCorner_1F_EventScript_ExplainDodrioBerryPickingRequirements
+ goto MossdeepCity_GameCorner_1F_EventScript_AbortMinigame
end
-MossdeepCity_GameCorner_1F_EventScript_277E84:: @ 8277E84
- msgbox MossdeepCity_GameCorner_1F_Text_278EDC, MSGBOX_DEFAULT
+MossdeepCity_GameCorner_1F_EventScript_ExplainPokemonJumpRequirements:: @ 8277E84
+ msgbox MossdeepCity_GameCorner_1F_Text_ShortJumpingPokemonAllowed, MSGBOX_DEFAULT
return
-MossdeepCity_GameCorner_1F_EventScript_277E8D:: @ 8277E8D
- msgbox MossdeepCity_GameCorner_1F_Text_278FA4, MSGBOX_DEFAULT
+MossdeepCity_GameCorner_1F_EventScript_ExplainDodrioBerryPickingRequirements:: @ 8277E8D
+ msgbox MossdeepCity_GameCorner_1F_Text_OnlyDodrioAllowed, MSGBOX_DEFAULT
return
-MossdeepCity_GameCorner_1F_EventScript_277E96:: @ 8277E96
+MossdeepCity_GameCorner_1F_EventScript_PokemonJumpRecords:: @ 8277E96
lockall
- special sub_802E3C4
+ special ShowPokemonJumpRecords
waitstate
releaseall
end
-MossdeepCity_GameCorner_1F_EventScript_277E9D:: @ 8277E9D
+MossdeepCity_GameCorner_1F_EventScript_DodrioBerryPickingRecords:: @ 8277E9D
lockall
- special sub_8027AAC
+ special ShowDodrioBerryPickingRecords
waitstate
releaseall
end
-OldaleTown_PokemonCenter_2F_Text_277EA4: @ 8277EA4
- .string "Welcome to the POKéMON CABLE\n"
- .string "CLUB.\p"
- .string "Which of our services do you wish\n"
- .string "to use?$"
-
-OldaleTown_PokemonCenter_2F_Text_277EF1: @ 8277EF1
- .string "Which of our services do you wish\n"
- .string "to use?$"
-
-CableClub_Text_TradeUsingLinkCable:: @ 8277F1B
- .string "Trade POKéMON with another player\n"
- .string "using a GBA Game Link cable.$"
-
-CableClub_Text_BattleUsingLinkCable:: @ 8277F5A
- .string "You may battle another TRAINER\n"
- .string "using a GBA Game Link cable.$"
-
-CableClub_Text_RecordCornerUsingLinkCable:: @ 8277F96
- .string "You can use the RECORD CORNER with\n"
- .string "others using a GBA Game Link cable.$"
-
-OldaleTown_PokemonCenter_2F_Text_277FDD: @ 8277FDD
- .string "Close this menu.$"
-
-OldaleTown_PokemonCenter_2F_Text_277FEE: @ 8277FEE
- .string "For a DOUBLE BATTLE, you must\n"
- .string "have at least two POKéMON.$"
-
-OldaleTown_PokemonCenter_2F_Text_278027: @ 8278027
- .string "For trading, you must have at\n"
- .string "least two POKéMON with you.$"
-
-OldaleTown_PokemonCenter_2F_Text_278061: @ 8278061
- .string "A POKéMON holding the {STR_VAR_1}\n"
- .string "BERRY can't be traded.$"
-
-gText_PleaseWaitForLink:: @ 8278091
- .string "Please wait.\n"
- .string "… … B Button: Cancel$"
-
-gText_ConfirmLinkWhenPlayersReady:: @ 82780B3
- .string "When all players are ready…\n"
- .string "A Button: Confirm\l"
- .string "B Button: Cancel$"
-
-gText_ConfirmStartLinkWithXPlayers:: @ 82780F2
- .string "Start link with {STR_VAR_1} players.\n"
- .string "A Button: Confirm\l"
- .string "B Button: Cancel$"
-
-gText_AwaitingLinkup:: @ 8278131
- .string "Awaiting linkup…\n"
- .string "… … B Button: Cancel$"
-
-OldaleTown_PokemonCenter_2F_Text_278157:: @ 8278157
- .string "Your progress must be saved before\n"
- .string "linking. Is it okay to save?$"
-
-OldaleTown_PokemonCenter_2F_Text_278197: @ 8278197
- .string "Please enter.$"
-
-OldaleTown_PokemonCenter_2F_Text_2781A5: @ 82781A5
- .string "I'll direct you to your room now.$"
-
-LilycoveCity_ContestLobby_Text_2781C7: @ 82781C7
-OldaleTown_PokemonCenter_2F_Text_2781C7: @ 82781C7
- .string "Someone is not ready to link.\p"
- .string "Please come back after everyone\n"
- .string "has made preparations.$"
-
-LilycoveCity_ContestLobby_Text_27821C: @ 827821C
-OldaleTown_PokemonCenter_2F_Text_27821C: @ 827821C
- .string "Sorry, we have a link error…\n"
- .string "Please reset and try again.$"
-
-BattleFrontier_BattleTowerLobby_Text_278255: @ 8278255
-LilycoveCity_ContestLobby_Text_278255: @ 8278255
-OldaleTown_PokemonCenter_2F_Text_278255: @ 8278255
- .string "The link partners appear to have\n"
- .string "made different selections.$"
-
-OldaleTown_PokemonCenter_2F_Text_278291: @ 8278291
- .string "Please do visit again.$"
-
-BattleFrontier_BattleTowerLobby_Text_2782A8: @ 82782A8
-OldaleTown_PokemonCenter_2F_Text_2782A8: @ 82782A8
- .string "The number of participants is\n"
- .string "incorrect.$"
-
-OldaleTown_PokemonCenter_2F_Text_2782D1: @ 82782D1
- .string "The SINGLE BATTLE Mode can't be\n"
- .string "played by {STR_VAR_1} players.$"
-
-OldaleTown_PokemonCenter_2F_Text_278307: @ 8278307
- .string "The DOUBLE BATTLE Mode can't be\n"
- .string "played by {STR_VAR_1} players.$"
-
-OldaleTown_PokemonCenter_2F_Text_27833D: @ 827833D
- .string "There must be four players to play\n"
- .string "this Battle Mode.$"
-
-OldaleTown_PokemonCenter_2F_Text_278372: @ 8278372
- .string "Please confirm the number of\n"
- .string "players and start again.$"
-
-Text_TerminateLinkConfirmation: @ 82783A8
- .string "The link will be terminated if you\n"
- .string "leave the room. Is that okay?$"
-
-Text_TerminateLinkPleaseWait: @ 82783E9
- .string "Terminating link…\n"
- .string "You will be escorted out of\l"
- .string "the room. Please wait.$"
-
-Text_27842E: @ 827842E
- .string "This TRAINER is too busy to\n"
- .string "notice…$"
-
-Text_278452: @ 8278452
- .string "Score! Got to look at {STR_VAR_1}'s\n"
- .string "TRAINER CARD!$"
-
-Text_27847B: @ 827847B
- .string "Score! Got to look at {STR_VAR_1}'s\n"
- .string "TRAINER CARD!\p"
- .string "It's a {STR_VAR_2} card!$"
-
-SingleBattleColosseum_Text_2784B4: @ 82784B4
- .string "Please take your place and start\n"
- .string "your battle.$"
-
-TradeCenter_Text_2784E2: @ 82784E2
- .string "Please take your seat and start\n"
- .string "your trade.$"
-
-RecordCorner_Text_27850E: @ 827850E
- .string "Thanks for coming.$"
-
-OldaleTown_PokemonCenter_2F_Text_278521: @ 8278521
- .string "The TRAINER CARD data will\n"
- .string "be overwritten.$"
-
-OldaleTown_PokemonCenter_2F_Text_27854C: @ 827854C
- .string "I hope to see you again!$"
-
-OldaleTown_PokemonCenter_2F_Text_278565: @ 8278565
- .string "I'm awfully sorry.\p"
- .string "We're not set up to conduct trades\n"
- .string "with TRAINERS far away in another\l"
- .string "region yet…$"
-
-OldaleTown_PokemonCenter_2F_Text_2785C9: @ 82785C9
- .string "The other TRAINER is not ready.$"
-
-OldaleTown_PokemonCenter_2F_Text_2785E9: @ 82785E9
- .string "You have at least one POKéMON\n"
- .string "that can't be taken.$"
-
-RecordCorner_Text_27861C: @ 827861C
- .string "Please take your seat and wait.$"
-
-RecordCorner_Text_27863C: @ 827863C
- .string "{STR_VAR_1} sent over one\n"
- .string "{STR_VAR_2}.$"
-
-OldaleTown_PokemonCenter_2F_Text_278651: @ 8278651
- .string "Sorry, there is a transmission error.\p"
- .string "You may not mix records with \n"
- .string "Japanese Ruby or Sapphire games.\p"
- .string "Also, you can't mix records with\n"
- .string "Japanese Emerald and overseas Ruby\l"
- .string "or Sapphire games at the same time.$"
-
-OldaleTown_PokemonCenter_2F_Text_27871F: @ 827871F
- .string "The Wireless Adapter is not\n"
- .string "connected properly.$"
-
-OldaleTown_PokemonCenter_2F_Text_27874F: @ 827874F
- .string "Participants are asked to step up\n"
- .string "to the reception counter.$"
-
-OldaleTown_PokemonCenter_2F_Text_27878B: @ 827878B
- .string "Hello!$"
-
-OldaleTown_PokemonCenter_2F_Text_278792: @ 8278792
- .string "Please wait.$"
-
-CableClub_Text_YouMayTradeHere:: @ 827879F
- .string "You may trade your POKéMON here\n"
- .string "with another TRAINER.$"
-
-CableClub_Text_YouMayBattleHere:: @ 82787D5
- .string "You may battle with your friends\n"
- .string "here.$"
-
-CableClub_Text_CanMakeBerryPowder:: @ 82787FC
- .string "Two to five TRAINERS can make\n"
- .string "BERRY POWDER together.$"
-
-CableClub_Text_CanMixRecords:: @ 8278831
- .string "The records of two to four players\n"
- .string "can be mixed together.$"
-
-OldaleTown_PokemonCenter_2F_Text_27886B: @ 827886B
- .string "A guide to the WIRELESS CLUB's\n"
- .string "various services.$"
-
-CableClub_Text_CancelSelectedItem:: @ 827889C
- .string "Cancels the selected MENU item.$"
-
-OldaleTown_PokemonCenter_2F_Text_2788BC: @ 82788BC
- .string "Which battle mode would you like?$"
-
-OldaleTown_PokemonCenter_2F_Text_2788DE: @ 82788DE
- .string "Returns to the previous step.$"
-
-OldaleTown_PokemonCenter_2F_Text_2788FC: @ 82788FC
- .string "To use the BERRY CRUSH service,\n"
- .string "you must have at least one BERRY.$"
-
-OldaleTown_PokemonCenter_2F_Text_27893E: @ 827893E
- .string "To enter the UNION ROOM, you must\n"
- .string "have at least two POKéMON.$"
-
-OldaleTown_PokemonCenter_2F_Text_27897B: @ 827897B
- .string "No POKéMON holding the {STR_VAR_1}\n"
- .string "BERRY may enter the UNION ROOM.$"
-
-OldaleTown_PokemonCenter_2F_Text_2789B5: @ 82789B5
- .string "This is the POKéMON WIRELESS CLUB\n"
- .string "UNION ROOM.\p"
- .string "Unfortunately, your Wireless\n"
- .string "Adapter is not connected properly.\p"
- .string "Please do come again.$"
-
-OldaleTown_PokemonCenter_2F_Text_278A39: @ 8278A39
- .string "Oh…\n"
- .string "Excuse me!$"
-
-CableClub_Text_PlayerIsWaiting: @ 8278A48
- .string "It appears as if {STR_VAR_1} is playing\n"
- .string "right now.\l"
- .string "Go for it!$"
-
-MossdeepCity_GameCorner_1F_Text_278A7D: @ 8278A7D
- .string "I can explain game rules to you,\n"
- .string "if you'd like.\p"
- .string "Which game should I describe?$"
-
-MossdeepCity_GameCorner_1F_Text_278ACB: @ 8278ACB
- .string "“POKéMON JUMP”\p"
- .string "Make your POKéMON skip the VINE WHIP\n"
- .string "rope with the A Button.\p"
- .string "Only mini POKéMON around 28 inches\n"
- .string "or less may participate.\p"
- .string "POKéMON that only swim, burrow,\n"
- .string "or fly are not good at jumping.\p"
- .string "As a result, those POKéMON may not\n"
- .string "participate.\p"
- .string "Good things happen if everyone\n"
- .string "jumps in time.$"
-
-MossdeepCity_GameCorner_1F_Text_278BF1: @ 8278BF1
- .string "“DODRIO BERRY-PICKING”\p"
- .string "Command DODRIO's three heads to\n"
- .string "catch falling BERRIES.\p"
- .string "Press right, up, or left on the\n"
- .string "{PLUS} Control Pad to move the heads.\p"
- .string "To play this game, you must have\n"
- .string "a DODRIO.$"
-
-MossdeepCity_GameCorner_1F_Text_278CAC: @ 8278CAC
- .string "If you want to play a game,\n"
- .string "please tell the old man beside me.$"
-
-MossdeepCity_GameCorner_1F_Text_278CEB: @ 8278CEB
- .string "Hi, welcome!\n"
- .string "Are you here to play games using\l"
- .string "Wireless Communication?\p"
- .string "Can you wait just a little bit?$"
-
-MossdeepCity_GameCorner_1F_Text_278D51: @ 8278D51
- .string "All right, come again!$"
-
-MossdeepCity_GameCorner_1F_Text_278D68: @ 8278D68
- .string "The Wireless Adapter isn't connected.\n"
- .string "Come back when it's hooked up!$"
-
-MossdeepCity_GameCorner_1F_Text_278DAD: @ 8278DAD
- .string "All right, which game did you want\n"
- .string "to play?$"
-
-MossdeepCity_GameCorner_1F_Text_278DD9: @ 8278DD9
- .string "Which POKéMON would you like to\n"
- .string "enter?$"
-
-MossdeepCity_GameCorner_1F_Text_278E00: @ 8278E00
- .string "Okay, you're all good to go.\n"
- .string "Don't let the others beat you!$"
-
-MossdeepCity_GameCorner_1F_Text_278E3C: @ 8278E3C
- .string "Are you leaving now?\n"
- .string "Do come again!$"
-
-MossdeepCity_GameCorner_1F_Text_278E60: @ 8278E60
- .string "It doesn't look like you have any\n"
- .string "POKéMON that you can enter…\p"
- .string "Would you like me to explain what\n"
- .string "kinds of POKéMON can enter?$"
-
-MossdeepCity_GameCorner_1F_Text_278EDC: @ 8278EDC
- .string "“POKéMON JUMP” is open to POKéMON\n"
- .string "around 28 inches or less.\p"
- .string "What you can't enter are those\n"
- .string "POKéMON that can't jump.\p"
- .string "You know, like POKéMON that only\n"
- .string "swim, burrow, or fly.\p"
- .string "That's all you need to know.$"
-
-MossdeepCity_GameCorner_1F_Text_278FA4: @ 8278FA4
- .string "DODRIO BERRY-PICKING is a game that \n"
- .string "only DODRIO may enter.$"
-
-MossdeepCity_GameCorner_1F_Text_278FE0: @ 8278FE0
- .string "Could you retry this from the start\n"
- .string "again, please?$"
-
-OldaleTown_PokemonCenter_2F_Text_279013: @ 8279013
- .string "Welcome to the POKéMON WIRELESS\n"
- .string "CLUB DIRECT CORNER.\p"
- .string "You may interact directly with\n"
- .string "your friends here.\p"
- .string "Which room would you like to\n"
- .string "enter?$"
-
-OldaleTown_PokemonCenter_2F_Text_27909D: @ 827909D
- .string "Would you like to trade POKéMON?$"
-
-OldaleTown_PokemonCenter_2F_Text_2790BE: @ 82790BE
- .string "Which Battle Mode would you like\n"
- .string "to play?$"
-
-OldaleTown_PokemonCenter_2F_Text_2790E8: @ 82790E8
- .string "Would you like to access\n"
- .string "the RECORD CORNER?$"
-
-OldaleTown_PokemonCenter_2F_Text_279114: @ 8279114
- .string "Would you like to use the\n"
- .string "BERRY CRUSH System?$"
-
-OldaleTown_PokemonCenter_2F_Text_279142: @ 8279142
- .string "There are three Battle Modes.\p"
- .string "SINGLE BATTLE is for two TRAINERS\n"
- .string "with one or more POKéMON each.\p"
- .string "Each TRAINER can have one POKéMON\n"
- .string "in battle at a time.\p"
- .string "DOUBLE BATTLE is for two TRAINERS\n"
- .string "with two or more POKéMON each.\p"
- .string "Each TRAINER will send out two\n"
- .string "POKéMON in battle at a time.\p"
- .string "MULTI BATTLE is for four TRAINERS\n"
- .string "with one or more POKéMON each.\p"
- .string "Each TRAINER can have one POKéMON\n"
- .string "in battle at a time.$"
-
-BattleFrontier_BattleTowerLobby_Text_2792CD: @ 82792CD
-OldaleTown_PokemonCenter_2F_Text_2792CD: @ 82792CD
- .string "Please decide which of you two\n"
- .string "will become the LEADER.\p"
- .string "The other player must then choose\n"
- .string "“JOIN GROUP.”$"
-
-OldaleTown_PokemonCenter_2F_Text_279334: @ 8279334
- .string "Please decide which of you four\n"
- .string "will become the GROUP LEADER.\p"
- .string "The other players must then choose\n"
- .string "“JOIN GROUP.”$"
-
-MossdeepCity_GameCorner_1F_Text_2793A3: @ 82793A3
-OldaleTown_PokemonCenter_2F_Text_2793A3: @ 82793A3
- .string "Please decide which of you will\n"
- .string "become the GROUP LEADER.\p"
- .string "The other players must then choose\n"
- .string "“JOIN GROUP.”$"
-
-OldaleTown_PokemonCenter_2F_Text_27940D: @ 827940D
- .string "Welcome to the POKéMON WIRELESS\n"
- .string "CLUB UNION ROOM.\p"
- .string "You may interact directly with\n"
- .string "other TRAINERS here, some of\l"
- .string "whom you may not even know.\p"
- .string "Would you like to enter the ROOM?$"
-
-OldaleTown_PokemonCenter_2F_Text_2794B8: @ 82794B8
- .string "The TRAINERS in the UNION ROOM\n"
- .string "will be those players around you\l"
- .string "who have also entered the ROOM.\p"
- .string "You may do all sorts of things\n"
- .string "here, such as exchanging greetings.\p"
- .string "You may enter two POKéMON up to\n"
- .string "Lv. 30 for a one-on-one battle.\p"
- .string "You may take part in a chat with\n"
- .string "two to five people.\p"
- .string "Or, you may register a POKéMON for\n"
- .string "trade.\p"
- .string "Would you like to enter the ROOM?$"
-
-OldaleTown_PokemonCenter_2F_Text_27961C: @ 827961C
- .string "I hope you enjoy your time in\n"
- .string "the UNION ROOM.$"
-
-OldaleTown_PokemonCenter_2F_Text_27964A: @ 827964A
- .string "Hello!\n"
- .string "My name is TEALA.\p"
- .string "This must be your first time\n"
- .string "up here.\p"
- .string "I'll show you how the Wireless\n"
- .string "Communication System works.\p"
- .string "First, I need to show you this\n"
- .string "floor of our POKéMON CENTER.\p"
- .string "Right this way, please.$"
-
-OldaleTown_PokemonCenter_2F_Text_279718: @ 8279718
- .string "On the top floor, there are two\n"
- .string "rooms.\p"
- .string "First, the room on the left.\n"
- .string "It's the UNION ROOM.\p"
- .string "You may link up with TRAINERS\n"
- .string "around you who have also entered\l"
- .string "the UNION ROOM.\p"
- .string "With them, you may do things like\n"
- .string "chat, battle, and trade.\p"
- .string "Second, the room on the right is\n"
- .string "the DIRECT CORNER.\p"
- .string "You may trade or battle POKéMON\n"
- .string "with your friends in this room.\p"
- .string "If the Wireless Adapter isn't\n"
- .string "connected, you may still link up\l"
- .string "using a GBA Game Link cable.\p"
- .string "If that is the case, you must go\n"
- .string "to the DIRECT CORNER.\p"
- .string "I hope you enjoy the Wireless \n"
- .string "Communication System.$"
-
-OldaleTown_PokemonCenter_2F_Text_279937: @ 8279937
- .string "Hello, {PLAYER}!\p"
- .string "It's me, TEALA, the POKéMON\n"
- .string "CENTER 2F attendant.\p"
- .string "Is there something you needed to\n"
- .string "ask me about linking?$"
-
-OldaleTown_PokemonCenter_2F_Text_2799AA: @ 82799AA
- .string "Let me explain how the POKéMON\n"
- .string "WIRELESS CLUB works.\p"
- .string "On this, the top floor, there are\n"
- .string "two rooms.\p"
- .string "First, the room on the left.\n"
- .string "It's the UNION ROOM.\p"
- .string "You may link up with TRAINERS\n"
- .string "around you who have also entered\l"
- .string "the UNION ROOM.\p"
- .string "With them, you may do things like\n"
- .string "chat, battle, and trade.\p"
- .string "Second, the room on the right is\n"
- .string "the DIRECT CORNER.\p"
- .string "You may trade or battle POKéMON\n"
- .string "with your friends in this room.\p"
- .string "Sometimes, you may not be able to\n"
- .string "find your friends in the UNION ROOM\l"
- .string "or the DIRECT CORNER.\p"
- .string "In that case, please move closer\n"
- .string "to your friends.\p"
- .string "If the Wireless Adapter isn't\n"
- .string "connected, you may still link up\l"
- .string "using a GBA Game Link cable.\p"
- .string "If that is the case, you must go\n"
- .string "to the DIRECT CORNER.\p"
- .string "I hope you enjoy the Wireless \n"
- .string "Communication System.$"
-
-OldaleTown_PokemonCenter_2F_Text_279C91: @ 8279C91
- .string "I hope you enjoy the Wireless\n"
- .string "Communication System.$"
diff --git a/data/scripts/cave_hole.inc b/data/scripts/cave_hole.inc
index 86689fdb0..7f0dd5534 100644
--- a/data/scripts/cave_hole.inc
+++ b/data/scripts/cave_hole.inc
@@ -1,23 +1,15 @@
-GraniteCave_B1F_MapScript2_2A8327: @ 82A8327
-MirageTower_2F_MapScript2_2A8327: @ 82A8327
-MirageTower_3F_MapScript2_2A8327: @ 82A8327
-MtPyre_2F_MapScript2_2A8327: @ 82A8327
-SkyPillar_2F_MapScript2_2A8327: @ 82A8327
-SkyPillar_4F_MapScript2_2A8327: @ 82A8327
+CaveHole_CheckFallDownHole: @ 82A8327
map_script_2 VAR_ICE_STEP_COUNT, 0, EventScript_FallDownHole
.2byte 0
-GraniteCave_B1F_MapScript1_2A8331: @ 82A8331
-MirageTower_2F_MapScript1_2A8331: @ 82A8331
-MirageTower_3F_MapScript1_2A8331: @ 82A8331
-MtPyre_2F_MapScript1_2A8331: @ 82A8331
- copyvar VAR_ICE_STEP_COUNT, 0x1
+CaveHole_FixCrackedGround: @ 82A8331
+ copyvar VAR_ICE_STEP_COUNT, 1
end
EventScript_FallDownHole:: @ 82A8337
lockall
delay 20
- applymovement EVENT_OBJ_ID_PLAYER, GraniteCave_B1F_Movement_2A8369
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_SetInvisible
waitmovement 0
playse SE_RU_HYUU
delay 60
@@ -25,10 +17,10 @@ EventScript_FallDownHole:: @ 82A8337
waitstate
end
-gUnknown_082A8350:: @ 82A8350
+EventScript_FallDownHoleMtPyre:: @ 82A8350
lockall
delay 20
- applymovement EVENT_OBJ_ID_PLAYER, GraniteCave_B1F_Movement_2A8369
+ applymovement EVENT_OBJ_ID_PLAYER, Movement_SetInvisible
waitmovement 0
playse SE_RU_HYUU
delay 60
@@ -36,6 +28,6 @@ gUnknown_082A8350:: @ 82A8350
waitstate
end
-GraniteCave_B1F_Movement_2A8369: @ 82A8369
+Movement_SetInvisible: @ 82A8369
set_invisible
step_end
diff --git a/data/scripts/cave_of_origin.inc b/data/scripts/cave_of_origin.inc
index f534afaff..da4a97761 100644
--- a/data/scripts/cave_of_origin.inc
+++ b/data/scripts/cave_of_origin.inc
@@ -45,4 +45,4 @@ CaveOfOrigin_UnusedRubySapphireMap3_EventScript_2722C1:: @ 82722C1
setvar VAR_TEMP_3, 1
setvar VAR_TEMP_4, 1
setvar VAR_TEMP_5, 1
- return \ No newline at end of file
+ return
diff --git a/data/scripts/elite_four.inc b/data/scripts/elite_four.inc
index c6b8d5578..e7aada698 100644
--- a/data/scripts/elite_four.inc
+++ b/data/scripts/elite_four.inc
@@ -1,9 +1,5 @@
-EverGrandeCity_DrakesRoom_EventScript_2723F8:: @ 82723F8
-EverGrandeCity_GlaciasRoom_EventScript_2723F8:: @ 82723F8
-EverGrandeCity_PhoebesRoom_EventScript_2723F8:: @ 82723F8
-EverGrandeCity_SidneysRoom_EventScript_2723F8:: @ 82723F8
PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles:: @ 82723F8
- applymovement EVENT_OBJ_ID_PLAYER, EverGrandeCity_SidneysRoom_Movement_2725C6
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_Delay32
waitmovement 0
playse SE_DOOR
setmetatile 6, 1, METATILE_EliteFour_OpenDoor_Frame, 0
@@ -21,11 +17,8 @@ PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles:: @ 82723F8
special DrawWholeMapView
return
-EverGrandeCity_DrakesRoom_EventScript_272475:: @ 8272475
-EverGrandeCity_GlaciasRoom_EventScript_272475:: @ 8272475
-EverGrandeCity_PhoebesRoom_EventScript_272475:: @ 8272475
-EverGrandeCity_SidneysRoom_EventScript_272475:: @ 8272475
- applymovement EVENT_OBJ_ID_PLAYER, EverGrandeCity_SidneysRoom_Movement_2725BA
+PokemonLeague_EliteFour_EventScript_WalkInCloseDoor:: @ 8272475
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkUp6
waitmovement 0
playse SE_TRACK_DOOR
setmetatile 5, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
@@ -37,10 +30,8 @@ EverGrandeCity_SidneysRoom_EventScript_272475:: @ 8272475
special DrawWholeMapView
return
-EverGrandeCity_DrakesRoom_EventScript_2724BC:: @ 82724BC
-EverGrandeCity_GlaciasRoom_EventScript_2724BC:: @ 82724BC
-EverGrandeCity_PhoebesRoom_EventScript_2724BC:: @ 82724BC
-EverGrandeCity_SidneysRoom_EventScript_2724BC:: @ 82724BC
+@ Essentially unused, only necessary when re-entering an Elite Four room after defeating the member, which isnt normally possible
+PokemonLeague_EliteFour_EventScript_ResetAdvanceToNextRoom:: @ 82724BC
setmetatile 6, 1, METATILE_EliteFour_OpenDoor_Frame, 0
setmetatile 6, 2, METATILE_EliteFour_OpenDoor_Opening, 0
setmetatile 5, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
@@ -61,10 +52,7 @@ EverGrandeCity_SidneysRoom_EventScript_2724BC:: @ 82724BC
setmetatile 12, 2, METATILE_EliteFour_LeftSpotlightOff, 1
return
-EverGrandeCity_DrakesRoom_EventScript_27255F:: @ 827255F
-EverGrandeCity_GlaciasRoom_EventScript_27255F:: @ 827255F
-EverGrandeCity_PhoebesRoom_EventScript_27255F:: @ 827255F
-EverGrandeCity_SidneysRoom_EventScript_27255F:: @ 827255F
+PokemonLeague_EliteFour_EventScript_CloseDoor:: @ 827255F
setmetatile 5, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
setmetatile 6, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
setmetatile 7, 12, METATILE_EliteFour_EntryDoor_ClosedTop, 1
diff --git a/data/scripts/field_move_scripts.inc b/data/scripts/field_move_scripts.inc
index 71d4b725c..bd98a3676 100644
--- a/data/scripts/field_move_scripts.inc
+++ b/data/scripts/field_move_scripts.inc
@@ -3,7 +3,7 @@ EventScript_CutTree:: @ 82906BB
lockall
goto_if_unset FLAG_BADGE01_GET, EventScript_CheckTreeCantCut
checkpartymove MOVE_CUT
- compare VAR_RESULT, 6
+ compare VAR_RESULT, PARTY_SIZE
goto_if_eq EventScript_CheckTreeCantCut
setfieldeffectargument 0, VAR_RESULT
bufferpartymonnick 0, VAR_RESULT
@@ -62,7 +62,7 @@ EventScript_RockSmash:: @ 82907A6
lockall
goto_if_unset FLAG_BADGE03_GET, EventScript_CantSmashRock
checkpartymove MOVE_ROCK_SMASH
- compare VAR_RESULT, 6
+ compare VAR_RESULT, PARTY_SIZE
goto_if_eq EventScript_CantSmashRock
setfieldeffectargument 0, VAR_RESULT
bufferpartymonnick 0, VAR_RESULT
@@ -129,7 +129,7 @@ EventScript_StrengthBoulder:: @ 82908BA
goto_if_unset FLAG_BADGE04_GET, EventScript_CantStrength
goto_if_set FLAG_SYS_USE_STRENGTH, EventScript_CheckActivatedBoulder
checkpartymove MOVE_STRENGTH
- compare VAR_RESULT, 6
+ compare VAR_RESULT, PARTY_SIZE
goto_if_eq EventScript_CantStrength
setfieldeffectargument 0, VAR_RESULT
msgbox Text_WantToStrength, MSGBOX_YESNO
@@ -190,7 +190,7 @@ Text_StrengthActivated: @ 8290A16
EventScript_UseWaterfall:: @ 8290A49
lockall
checkpartymove MOVE_WATERFALL
- compare VAR_RESULT, 6
+ compare VAR_RESULT, PARTY_SIZE
goto_if_eq EventScript_CantWaterfall
bufferpartymonnick 0, VAR_RESULT
setfieldeffectargument 0, VAR_RESULT
@@ -225,7 +225,7 @@ Text_MonUsedWaterfall: @ 8290AFC
EventScript_UseDive:: @ 8290B0F
lockall
checkpartymove MOVE_DIVE
- compare VAR_RESULT, 6
+ compare VAR_RESULT, PARTY_SIZE
goto_if_eq EventScript_CantDive
bufferpartymonnick 0, VAR_RESULT
setfieldeffectargument 0, VAR_RESULT
@@ -250,7 +250,7 @@ EventScript_EndDive:: @ 8290B58
EventScript_UseDiveUnderwater:: @ 8290B5A
lockall
checkpartymove MOVE_DIVE
- compare VAR_RESULT, 6
+ compare VAR_RESULT, PARTY_SIZE
goto_if_eq EventScript_CantSurface
bufferpartymonnick 0, VAR_RESULT
setfieldeffectargument 0, VAR_RESULT
diff --git a/data/scripts/field_poison.inc b/data/scripts/field_poison.inc
index 9f8058e4e..2ca9c7b06 100644
--- a/data/scripts/field_poison.inc
+++ b/data/scripts/field_poison.inc
@@ -1,51 +1,51 @@
-EventScript_Poison:: @ 82736BC
+EventScript_FieldPoison:: @ 82736BC
lockall
- special ExecuteWhiteOut
+ special TryFieldPoisonWhiteOut
waitstate
- compare VAR_RESULT, 1
- goto_if_eq EventScript_2736D9
- compare VAR_RESULT, 2
- goto_if_eq EventScript_2736F8
+ compare VAR_RESULT, FLDPSN_WHITEOUT
+ goto_if_eq EventScript_FieldWhiteOut
+ compare VAR_RESULT, FLDPSN_FRONTIER_WHITEOUT
+ goto_if_eq EventScript_FrontierFieldWhiteOut
releaseall
end
-EventScript_2736D9:: @ 82736D9
+EventScript_FieldWhiteOut:: @ 82736D9
message gText_PlayerWhitedOut
waitmessage
waitbuttonpress
- special sub_80B05B4
+ special Script_FadeOutMapMusic
waitstate
fadescreen 1
- call_if_set FLAG_FLANNERY_GIVES_BADGE_INFO, EventScript_2736F4
- special sp0C8_whiteout_maybe
+ call_if_set FLAG_FLANNERY_GIVES_BADGE_INFO, EventScript_SetRespawnLavaridgePkmnCenter
+ special SetCB2WhiteOut
waitstate
end
-EventScript_2736F4:: @ 82736F4
+EventScript_SetRespawnLavaridgePkmnCenter:: @ 82736F4
setrespawn HEAL_LOCATION_LAVARIDGE_TOWN
return
-EventScript_2736F8:: @ 82736F8
+EventScript_FrontierFieldWhiteOut:: @ 82736F8
message gText_PlayerWhitedOut
waitmessage
waitbuttonpress
- setvar VAR_0x8004, 16
+ setvar VAR_0x8004, BATTLE_PIKE_FUNC_IS_IN
special CallBattlePikeFunction
compare VAR_RESULT, 1
- goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_2C4222
- setvar VAR_0x8004, 12
+ goto_if_eq BattleFrontier_BattlePike_EventScript_Retire
+ setvar VAR_0x8004, BATTLE_PYRAMID_FUNC_IS_IN
special CallBattlePyramidFunction
compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_252B42
compare VAR_RESULT, 2
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_252B42
- setvar VAR_0x8004, TRAINER_HILL_FUNC_10
+ setvar VAR_0x8004, TRAINER_HILL_FUNC_IS_IN
special CallTrainerHillFunction
compare VAR_RESULT, 1
- goto_if_eq TrainerHill_1F_EventScript_2C83C9
- special sub_80B05B4
+ goto_if_eq TrainerHill_1F_EventScript_Lost
+ special Script_FadeOutMapMusic
waitstate
fadescreen 1
- special sp0C8_whiteout_maybe
+ special SetCB2WhiteOut
waitstate
end
diff --git a/data/scripts/gabby_and_ty.inc b/data/scripts/gabby_and_ty.inc
index 31000539c..0f8d71f6b 100644
--- a/data/scripts/gabby_and_ty.inc
+++ b/data/scripts/gabby_and_ty.inc
@@ -214,11 +214,11 @@ Route120_EventScript_28CF36:: @ 828CF36
Route111_EventScript_28CF56:: @ 828CF56
special GabbyAndTyBeforeInterview
special GabbyAndTySetScriptVarsToEventObjectLocalIds
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq Route111_EventScript_28CF94
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq Route111_EventScript_28CF9F
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq Route111_EventScript_28CFB1
goto_if_set FLAG_TEMP_1, Route111_EventScript_28D0EE
msgbox Route111_Text_28B042, MSGBOX_YESNO
@@ -232,13 +232,13 @@ Route111_EventScript_28CF94:: @ 828CF94
Route111_EventScript_28CF9F:: @ 828CF9F
applymovement VAR_0x8004, Route111_Movement_28D04F
- applymovement VAR_0x8005, Common_Movement_WalkInPlaceUp
+ applymovement VAR_0x8005, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
return
Route111_EventScript_28CFB1:: @ 828CFB1
applymovement VAR_0x8004, Route111_Movement_28D051
- applymovement VAR_0x8005, Common_Movement_WalkInPlaceLeft
+ applymovement VAR_0x8005, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
@@ -247,11 +247,11 @@ Route118_EventScript_28CFC3:: @ 828CFC3
Route120_EventScript_28CFC3:: @ 828CFC3
special GabbyAndTyBeforeInterview
special GabbyAndTySetScriptVarsToEventObjectLocalIds
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq Route111_EventScript_28CF94
- compare VAR_FACING, 1
+ compare VAR_FACING, DIR_SOUTH
call_if_eq Route111_EventScript_28CF9F
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq Route111_EventScript_28CFB1
goto_if_set FLAG_TEMP_1, Route111_EventScript_28D0EE
specialvar VAR_RESULT, GabbyAndTyGetLastQuote
diff --git a/data/scripts/kecleon.inc b/data/scripts/kecleon.inc
index e4118d3e1..ac0931fd8 100644
--- a/data/scripts/kecleon.inc
+++ b/data/scripts/kecleon.inc
@@ -1,74 +1,73 @@
-Route120_EventScript_2722DB:: @ 82722DB
+Route120_EventScript_Kecleon1:: @ 82722DB
lock
faceplayer
setvar VAR_0x8009, 1
- goto Route120_EventScript_272336
+ goto EventScript_Kecleon
end
-Route120_EventScript_2722E8:: @ 82722E8
+Route120_EventScript_Kecleon2:: @ 82722E8
lock
faceplayer
setvar VAR_0x8009, 2
- goto Route120_EventScript_272336
+ goto EventScript_Kecleon
end
-Route120_EventScript_2722F5:: @ 82722F5
+Route120_EventScript_Kecleon3:: @ 82722F5
lock
faceplayer
setvar VAR_0x8009, 3
- goto Route120_EventScript_272336
+ goto EventScript_Kecleon
end
-Route120_EventScript_272302:: @ 8272302
+Route120_EventScript_Kecleon4:: @ 8272302
lock
faceplayer
setvar VAR_0x8009, 4
- goto Route120_EventScript_272336
+ goto EventScript_Kecleon
end
-Route120_EventScript_27230F:: @ 827230F
+Route120_EventScript_Kecleon5:: @ 827230F
lock
faceplayer
setvar VAR_0x8009, 5
- goto Route120_EventScript_272336
+ goto EventScript_Kecleon
end
-Route119_EventScript_27231C:: @ 827231C
+Route119_EventScript_Kecleon1:: @ 827231C
lock
faceplayer
setvar VAR_0x8009, 6
- goto Route119_EventScript_272336
+ goto EventScript_Kecleon
end
-Route119_EventScript_272329:: @ 8272329
+Route119_EventScript_Kecleon2:: @ 8272329
lock
faceplayer
setvar VAR_0x8009, 7
- goto Route119_EventScript_272336
+ goto EventScript_Kecleon
end
-Route119_EventScript_272336:: @ 8272336
-Route120_EventScript_272336:: @ 8272336
+EventScript_Kecleon:: @ 8272336
checkitem ITEM_DEVON_SCOPE, 1
compare VAR_RESULT, 1
- goto_if_eq Route119_EventScript_272350
- msgbox Route119_Text_1F5D00, MSGBOX_DEFAULT
+ goto_if_eq EventScript_AskUseDevonScope
+ msgbox Kecleon_Text_SomethingUnseeable, MSGBOX_DEFAULT
release
end
-Route119_EventScript_272350:: @ 8272350
- msgbox Route119_Text_1F5D23, MSGBOX_YESNO
+EventScript_AskUseDevonScope:: @ 8272350
+ msgbox Kecleon_Text_WantToUseDevonScope, MSGBOX_YESNO
compare VAR_RESULT, 1
- goto_if_eq Route119_EventScript_272365
+ goto_if_eq EventScript_BattleKecleon
release
end
-Route119_EventScript_272365:: @ 8272365
- msgbox Route119_Text_1F5D63, MSGBOX_DEFAULT
+EventScript_BattleKecleon:: @ 8272365
+ msgbox Kecleon_Text_UseDevonScopeMonAttacked, MSGBOX_DEFAULT
closemessage
applymovement VAR_LAST_TALKED, Common_Movement_FacePlayer
waitmovement 0
- applymovement VAR_LAST_TALKED, Route119_Movement_2723C7
+ applymovement VAR_LAST_TALKED, Movement_KecleonAppears
waitmovement 0
waitse
playmoncry SPECIES_KECLEON, 2
@@ -79,11 +78,11 @@ Route119_EventScript_272365:: @ 8272365
dowildbattle
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq EventScript_RemoveKecleon
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq EventScript_RemoveKecleon
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq EventScript_RemoveKecleon
release
end
@@ -92,9 +91,7 @@ EventScript_RemoveKecleon:: @ 82723C1
goto Common_EventScript_RemoveStaticPokemon
end
-FortreeCity_Movement_2723C7: @ 82723C7
-Route119_Movement_2723C7: @ 82723C7
-Route120_Movement_2723C7: @ 82723C7
+Movement_KecleonAppears: @ 82723C7
set_visible
delay_4
set_invisible
diff --git a/data/scripts/mevent.inc b/data/scripts/mevent.inc
index 29f9c47d5..88f44e002 100644
--- a/data/scripts/mevent.inc
+++ b/data/scripts/mevent.inc
@@ -1,27 +1,26 @@
-
EventScript_Questionnaire:: @ 827381B
lockall
- msgbox gText_FillOutQuestionnaire, MSGBOX_YESNO
+ msgbox Mevent_Text_FillOutQuestionnaire, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq EventScript_2738FD
+ goto_if_eq Mevent_EventScript_Release
setvar VAR_0x8004, EASY_CHAT_TYPE_QUESTIONNAIRE
call Common_ShowEasyChatScreen
lock
faceplayer
specialvar VAR_0x8008, GetMartEmployeeObjectEventId
compare VAR_0x8004, 1
- goto_if_eq EventScript_27386D
+ goto_if_eq Mevent_EventScript_PlayerInputMysteryEventPhrase
compare VAR_0x8004, 2
- goto_if_eq EventScript_2738B5
+ goto_if_eq Mevent_EventScript_PlayerInputMysteryGiftPhrase
compare VAR_RESULT, 0
- goto_if_eq EventScript_2738FD
+ goto_if_eq Mevent_EventScript_Release
compare VAR_RESULT, 1
- goto_if_eq EventScript_2738FF
+ goto_if_eq Mevent_EventScript_QuestionnaireThankYou
end
-EventScript_27386D:: @ 827386D
- goto_if_unset FLAG_SYS_POKEDEX_GET, EventScript_2738FF
- goto_if_set FLAG_SYS_MYSTERY_EVENT_ENABLE, EventScript_2738FF
+Mevent_EventScript_PlayerInputMysteryEventPhrase:: @ 827386D
+ goto_if_unset FLAG_SYS_POKEDEX_GET, Mevent_EventScript_QuestionnaireThankYou
+ goto_if_set FLAG_SYS_MYSTERY_EVENT_ENABLE, Mevent_EventScript_QuestionnaireThankYou
applymovement VAR_0x8008, Common_Movement_FaceDown
waitmovement 0
playse SE_PIN
@@ -29,15 +28,15 @@ EventScript_27386D:: @ 827386D
waitmovement 0
applymovement VAR_0x8008, Common_Movement_Delay48
waitmovement 0
- msgbox gUnknown_08273506, MSGBOX_DEFAULT
+ msgbox Mevent_Text_YouKnowThoseWordsEvent, MSGBOX_DEFAULT
setflag FLAG_SYS_MYSTERY_EVENT_ENABLE
- msgbox gUnknown_08273559, MSGBOX_DEFAULT
+ msgbox Mevent_Text_YouCanAccessMysteryEvent, MSGBOX_DEFAULT
releaseall
end
-EventScript_2738B5:: @ 82738B5
- goto_if_unset FLAG_SYS_POKEDEX_GET, EventScript_2738FF
- goto_if_set FLAG_SYS_MYSTERY_GIFT_ENABLE, EventScript_2738FF
+Mevent_EventScript_PlayerInputMysteryGiftPhrase:: @ 82738B5
+ goto_if_unset FLAG_SYS_POKEDEX_GET, Mevent_EventScript_QuestionnaireThankYou
+ goto_if_set FLAG_SYS_MYSTERY_GIFT_ENABLE, Mevent_EventScript_QuestionnaireThankYou
applymovement VAR_0x8008, Common_Movement_FaceDown
waitmovement 0
playse SE_PIN
@@ -45,19 +44,19 @@ EventScript_2738B5:: @ 82738B5
waitmovement 0
applymovement VAR_0x8008, Common_Movement_Delay48
waitmovement 0
- msgbox gUnknown_08273446, MSGBOX_DEFAULT
+ msgbox Mevent_Text_YouKnowThoseWordsGift, MSGBOX_DEFAULT
setflag FLAG_SYS_MYSTERY_GIFT_ENABLE
- msgbox gUnknown_082734CC, MSGBOX_DEFAULT
+ msgbox Mevent_Text_YouCanAccessMysteryGift, MSGBOX_DEFAULT
releaseall
end
-EventScript_2738FD:: @ 82738FD
+Mevent_EventScript_Release:: @ 82738FD
releaseall
end
-EventScript_2738FF:: @ 82738FF
+Mevent_EventScript_QuestionnaireThankYou:: @ 82738FF
applymovement VAR_0x8008, Common_Movement_FaceDown
waitmovement 0
- msgbox gText_ThankYouForTakingQuestionnaire, MSGBOX_DEFAULT
+ msgbox Mevent_Text_QuestionnaireThankYou, MSGBOX_DEFAULT
releaseall
end
diff --git a/data/scripts/move_tutors.inc b/data/scripts/move_tutors.inc
index 8780b9994..b6ba75e0d 100644
--- a/data/scripts/move_tutors.inc
+++ b/data/scripts/move_tutors.inc
@@ -1,309 +1,300 @@
-SlateportCity_PokemonFanClub_EventScript_2C7F16:: @ 82C7F16
+SlateportCity_PokemonFanClub_EventScript_SwaggerTutor:: @ 82C7F16
lock
faceplayer
- goto_if_set FLAG_MOVE_TUTOR_TAUGHT_SWAGGER, SlateportCity_PokemonFanClub_EventScript_2C7F74
- msgbox SlateportCity_PokemonFanClub_Text_2C6E37, MSGBOX_YESNO
+ goto_if_set FLAG_MOVE_TUTOR_TAUGHT_SWAGGER, MoveTutor_EventScript_SwaggerTaught
+ msgbox MoveTutor_Text_SwaggerTeach, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq SlateportCity_PokemonFanClub_EventScript_2C7F6A
- call SlateportCity_PokemonFanClub_EventScript_2C832D
+ goto_if_eq MoveTutor_EventScript_SwaggerDeclined
+ call MoveTutor_EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, 0
- goto_if_eq SlateportCity_PokemonFanClub_EventScript_2C7F6A
- msgbox SlateportCity_PokemonFanClub_Text_2C6F66, MSGBOX_DEFAULT
- setvar VAR_0x8005, 23
- call EventScript_ShowPartyMenu
+ goto_if_eq MoveTutor_EventScript_SwaggerDeclined
+ msgbox MoveTutor_Text_SwaggerWhichMon, MSGBOX_DEFAULT
+ setvar VAR_0x8005, TUTOR_MOVE_SWAGGER
+ call MoveTutor_EventScript_OpenPartyMenu
compare VAR_RESULT, 0
- goto_if_eq SlateportCity_PokemonFanClub_EventScript_2C7F6A
+ goto_if_eq MoveTutor_EventScript_SwaggerDeclined
setflag FLAG_MOVE_TUTOR_TAUGHT_SWAGGER
- goto SlateportCity_PokemonFanClub_EventScript_2C7F74
+ goto MoveTutor_EventScript_SwaggerTaught
end
-SlateportCity_PokemonFanClub_EventScript_2C7F6A:: @ 82C7F6A
- msgbox SlateportCity_PokemonFanClub_Text_2C6F33, MSGBOX_DEFAULT
+MoveTutor_EventScript_SwaggerDeclined:: @ 82C7F6A
+ msgbox MoveTutor_Text_SwaggerDeclined, MSGBOX_DEFAULT
release
end
-SlateportCity_PokemonFanClub_EventScript_2C7F74:: @ 82C7F74
- msgbox SlateportCity_PokemonFanClub_Text_2C6F9E, MSGBOX_DEFAULT
+MoveTutor_EventScript_SwaggerTaught:: @ 82C7F74
+ msgbox MoveTutor_Text_SwaggerTaught, MSGBOX_DEFAULT
release
end
-MauvilleCity_EventScript_2C7F7E:: @ 82C7F7E
+MauvilleCity_EventScript_RolloutTutor:: @ 82C7F7E
lock
faceplayer
- goto_if_set FLAG_MOVE_TUTOR_TAUGHT_ROLLOUT, MauvilleCity_EventScript_2C7FDC
- msgbox MauvilleCity_Text_2C6FDB, MSGBOX_YESNO
+ goto_if_set FLAG_MOVE_TUTOR_TAUGHT_ROLLOUT, MoveTutor_EventScript_RolloutTaught
+ msgbox MoveTutor_Text_RolloutTeach, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_EventScript_2C7FD2
- call MauvilleCity_EventScript_2C832D
+ goto_if_eq MoveTutor_EventScript_RolloutDeclined
+ call MoveTutor_EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_EventScript_2C7FD2
- msgbox MauvilleCity_Text_2C70F3, MSGBOX_DEFAULT
- setvar VAR_0x8005, 16
- call EventScript_ShowPartyMenu
+ goto_if_eq MoveTutor_EventScript_RolloutDeclined
+ msgbox MoveTutor_Text_RolloutWhichMon, MSGBOX_DEFAULT
+ setvar VAR_0x8005, TUTOR_MOVE_ROLLOUT
+ call MoveTutor_EventScript_OpenPartyMenu
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_EventScript_2C7FD2
+ goto_if_eq MoveTutor_EventScript_RolloutDeclined
setflag FLAG_MOVE_TUTOR_TAUGHT_ROLLOUT
- goto MauvilleCity_EventScript_2C7FDC
+ goto MoveTutor_EventScript_RolloutTaught
end
-MauvilleCity_EventScript_2C7FD2:: @ 82C7FD2
- msgbox MauvilleCity_Text_2C70C4, MSGBOX_DEFAULT
+MoveTutor_EventScript_RolloutDeclined:: @ 82C7FD2
+ msgbox MoveTutor_Text_RolloutDeclined, MSGBOX_DEFAULT
release
end
-MauvilleCity_EventScript_2C7FDC:: @ 82C7FDC
- msgbox MauvilleCity_Text_2C7133, MSGBOX_DEFAULT
+MoveTutor_EventScript_RolloutTaught:: @ 82C7FDC
+ msgbox MoveTutor_Text_RolloutTaught, MSGBOX_DEFAULT
release
end
-VerdanturfTown_PokemonCenter_1F_EventScript_2C7FE6:: @ 82C7FE6
+VerdanturfTown_PokemonCenter_1F_EventScript_FuryCutterTutor:: @ 82C7FE6
lock
faceplayer
- goto_if_set FLAG_MOVE_TUTOR_TAUGHT_FURY_CUTTER, VerdanturfTown_PokemonCenter_1F_EventScript_2C8044
- msgbox VerdanturfTown_PokemonCenter_1F_Text_2C7174, MSGBOX_YESNO
+ goto_if_set FLAG_MOVE_TUTOR_TAUGHT_FURY_CUTTER, MoveTutor_EventScript_FuryCutterTaught
+ msgbox MoveTutor_Text_FuryCutterTeach, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq VerdanturfTown_PokemonCenter_1F_EventScript_2C803A
- call VerdanturfTown_PokemonCenter_1F_EventScript_2C832D
+ goto_if_eq MoveTutor_EventScript_FuryCutterDeclined
+ call MoveTutor_EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, 0
- goto_if_eq VerdanturfTown_PokemonCenter_1F_EventScript_2C803A
- msgbox VerdanturfTown_PokemonCenter_1F_Text_2C7243, MSGBOX_DEFAULT
- setvar VAR_0x8005, 29
- call EventScript_ShowPartyMenu
+ goto_if_eq MoveTutor_EventScript_FuryCutterDeclined
+ msgbox MoveTutor_Text_FuryCutterWhichMon, MSGBOX_DEFAULT
+ setvar VAR_0x8005, TUTOR_MOVE_FURY_CUTTER
+ call MoveTutor_EventScript_OpenPartyMenu
compare VAR_RESULT, 0
- goto_if_eq VerdanturfTown_PokemonCenter_1F_EventScript_2C803A
+ goto_if_eq MoveTutor_EventScript_FuryCutterDeclined
setflag FLAG_MOVE_TUTOR_TAUGHT_FURY_CUTTER
- goto VerdanturfTown_PokemonCenter_1F_EventScript_2C8044
+ goto MoveTutor_EventScript_FuryCutterTaught
end
-VerdanturfTown_PokemonCenter_1F_EventScript_2C803A:: @ 82C803A
- msgbox VerdanturfTown_PokemonCenter_1F_Text_2C7221, MSGBOX_DEFAULT
+MoveTutor_EventScript_FuryCutterDeclined:: @ 82C803A
+ msgbox MoveTutor_Text_FuryCutterDeclined, MSGBOX_DEFAULT
release
end
-VerdanturfTown_PokemonCenter_1F_EventScript_2C8044:: @ 82C8044
- msgbox VerdanturfTown_PokemonCenter_1F_Text_2C726E, MSGBOX_DEFAULT
+MoveTutor_EventScript_FuryCutterTaught:: @ 82C8044
+ msgbox MoveTutor_Text_FuryCutterTaught, MSGBOX_DEFAULT
release
end
-LavaridgeTown_House_EventScript_2C804E:: @ 82C804E
+LavaridgeTown_House_EventScript_MimicTutor:: @ 82C804E
lock
faceplayer
- goto_if_set FLAG_MOVE_TUTOR_TAUGHT_MIMIC, LavaridgeTown_House_EventScript_2C80AC
- msgbox LavaridgeTown_House_Text_2C72B6, MSGBOX_YESNO
+ goto_if_set FLAG_MOVE_TUTOR_TAUGHT_MIMIC, MoveTutor_EventScript_MimicTaught
+ msgbox MoveTutor_MimicTeach, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq LavaridgeTown_House_EventScript_2C80A2
- call LavaridgeTown_House_EventScript_2C832D
+ goto_if_eq MoveTutor_EventScript_MimicDeclined
+ call MoveTutor_EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, 0
- goto_if_eq LavaridgeTown_House_EventScript_2C80A2
- msgbox LavaridgeTown_House_Text_2C73B1, MSGBOX_DEFAULT
- setvar VAR_0x8005, 7
- call EventScript_ShowPartyMenu
+ goto_if_eq MoveTutor_EventScript_MimicDeclined
+ msgbox MoveTutor_Text_MimicWhichMon, MSGBOX_DEFAULT
+ setvar VAR_0x8005, TUTOR_MOVE_MIMIC
+ call MoveTutor_EventScript_OpenPartyMenu
compare VAR_RESULT, 0
- goto_if_eq LavaridgeTown_House_EventScript_2C80A2
+ goto_if_eq MoveTutor_EventScript_MimicDeclined
setflag FLAG_MOVE_TUTOR_TAUGHT_MIMIC
- goto LavaridgeTown_House_EventScript_2C80AC
+ goto MoveTutor_EventScript_MimicTaught
end
-LavaridgeTown_House_EventScript_2C80A2:: @ 82C80A2
- msgbox LavaridgeTown_House_Text_2C737F, MSGBOX_DEFAULT
+MoveTutor_EventScript_MimicDeclined:: @ 82C80A2
+ msgbox MoveTutor_MimicDeclined, MSGBOX_DEFAULT
release
end
-LavaridgeTown_House_EventScript_2C80AC:: @ 82C80AC
- msgbox LavaridgeTown_House_Text_2C73F6, MSGBOX_DEFAULT
+MoveTutor_EventScript_MimicTaught:: @ 82C80AC
+ msgbox MoveTutor_Text_MimicTaught, MSGBOX_DEFAULT
release
end
-FallarborTown_Mart_EventScript_2C80B6:: @ 82C80B6
+FallarborTown_Mart_EventScript_MetronomeTutor:: @ 82C80B6
lock
faceplayer
- goto_if_set FLAG_MOVE_TUTOR_TAUGHT_METRONOME, FallarborTown_Mart_EventScript_2C8114
- msgbox FallarborTown_Mart_Text_2C7449, MSGBOX_YESNO
+ goto_if_set FLAG_MOVE_TUTOR_TAUGHT_METRONOME, MoveTutor_EventScript_MetronomeTaught
+ msgbox MoveTutor_Text_MetronomeTeach, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq FallarborTown_Mart_EventScript_2C810A
- call FallarborTown_Mart_EventScript_2C832D
+ goto_if_eq MoveTutor_EventScript_MetronomeDeclined
+ call MoveTutor_EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, 0
- goto_if_eq FallarborTown_Mart_EventScript_2C810A
- msgbox FallarborTown_Mart_Text_2C7582, MSGBOX_DEFAULT
- setvar VAR_0x8005, 8
- call EventScript_ShowPartyMenu
+ goto_if_eq MoveTutor_EventScript_MetronomeDeclined
+ msgbox MoveTutor_Text_MetronomeWhichMon, MSGBOX_DEFAULT
+ setvar VAR_0x8005, TUTOR_MOVE_METRONOME
+ call MoveTutor_EventScript_OpenPartyMenu
compare VAR_RESULT, 0
- goto_if_eq FallarborTown_Mart_EventScript_2C810A
+ goto_if_eq MoveTutor_EventScript_MetronomeDeclined
setflag FLAG_MOVE_TUTOR_TAUGHT_METRONOME
- goto FallarborTown_Mart_EventScript_2C8114
+ goto MoveTutor_EventScript_MetronomeTaught
end
-FallarborTown_Mart_EventScript_2C810A:: @ 82C810A
- msgbox FallarborTown_Mart_Text_2C7556, MSGBOX_DEFAULT
+MoveTutor_EventScript_MetronomeDeclined:: @ 82C810A
+ msgbox MoveTutor_Text_MetronomeDeclined, MSGBOX_DEFAULT
release
end
-FallarborTown_Mart_EventScript_2C8114:: @ 82C8114
- msgbox FallarborTown_Mart_Text_2C75B5, MSGBOX_DEFAULT
+MoveTutor_EventScript_MetronomeTaught:: @ 82C8114
+ msgbox MoveTutor_Text_MetronomeTaught, MSGBOX_DEFAULT
release
end
-FortreeCity_House2_EventScript_2C811E:: @ 82C811E
+FortreeCity_House2_EventScript_SleepTalkTutor:: @ 82C811E
lock
faceplayer
- goto_if_set FLAG_MOVE_TUTOR_TAUGHT_SLEEP_TALK, FortreeCity_House2_EventScript_2C817C
- msgbox FortreeCity_House2_Text_2C7637, MSGBOX_YESNO
+ goto_if_set FLAG_MOVE_TUTOR_TAUGHT_SLEEP_TALK, MoveTutor_EventScript_SleepTalkTaught
+ msgbox MoveTutor_Text_SleepTalkTeach, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq FortreeCity_House2_EventScript_2C8172
- call FortreeCity_House2_EventScript_2C832D
+ goto_if_eq MoveTutor_EventScript_SleepTalkDeclined
+ call MoveTutor_EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, 0
- goto_if_eq FortreeCity_House2_EventScript_2C8172
- msgbox FortreeCity_House2_Text_2C7721, MSGBOX_DEFAULT
- setvar VAR_0x8005, 24
- call EventScript_ShowPartyMenu
+ goto_if_eq MoveTutor_EventScript_SleepTalkDeclined
+ msgbox MoveTutor_Text_SleepTalkWhichMon, MSGBOX_DEFAULT
+ setvar VAR_0x8005, TUTOR_MOVE_SLEEP_TALK
+ call MoveTutor_EventScript_OpenPartyMenu
compare VAR_RESULT, 0
- goto_if_eq FortreeCity_House2_EventScript_2C8172
+ goto_if_eq MoveTutor_EventScript_SleepTalkDeclined
setflag FLAG_MOVE_TUTOR_TAUGHT_SLEEP_TALK
- goto FortreeCity_House2_EventScript_2C817C
+ goto MoveTutor_EventScript_SleepTalkTaught
end
-FortreeCity_House2_EventScript_2C8172:: @ 82C8172
- msgbox FortreeCity_House2_Text_2C76E2, MSGBOX_DEFAULT
+MoveTutor_EventScript_SleepTalkDeclined:: @ 82C8172
+ msgbox MoveTutor_Text_SleepTalkDeclined, MSGBOX_DEFAULT
release
end
-FortreeCity_House2_EventScript_2C817C:: @ 82C817C
- msgbox FortreeCity_House2_Text_2C775A, MSGBOX_DEFAULT
+MoveTutor_EventScript_SleepTalkTaught:: @ 82C817C
+ msgbox MoveTutor_Text_SleepTalkTaught, MSGBOX_DEFAULT
release
end
-LilycoveCity_DepartmentStoreRooftop_EventScript_2C8186:: @ 82C8186
+LilycoveCity_DepartmentStoreRooftop_EventScript_SubstituteTutor:: @ 82C8186
lock
faceplayer
- goto_if_set FLAG_MOVE_TUTOR_TAUGHT_SUBSTITUTE, LilycoveCity_DepartmentStoreRooftop_EventScript_2C81E4
- msgbox LilycoveCity_DepartmentStoreRooftop_Text_2C77C6, MSGBOX_YESNO
+ goto_if_set FLAG_MOVE_TUTOR_TAUGHT_SUBSTITUTE, MoveTutor_EventScript_SubstituteTaught
+ msgbox MoveTutor_Text_SubstituteTeach, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_2C81DA
- call LilycoveCity_DepartmentStoreRooftop_EventScript_2C832D
+ goto_if_eq MoveTutor_EventScript_SubstituteDeclined
+ call MoveTutor_EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_2C81DA
- msgbox LilycoveCity_DepartmentStoreRooftop_Text_2C7911, MSGBOX_DEFAULT
- setvar VAR_0x8005, 14
- call EventScript_ShowPartyMenu
+ goto_if_eq MoveTutor_EventScript_SubstituteDeclined
+ msgbox MoveTutor_Text_SubstituteWhichMon, MSGBOX_DEFAULT
+ setvar VAR_0x8005, TUTOR_MOVE_SUBSTITUTE
+ call MoveTutor_EventScript_OpenPartyMenu
compare VAR_RESULT, 0
- goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_2C81DA
+ goto_if_eq MoveTutor_EventScript_SubstituteDeclined
setflag FLAG_MOVE_TUTOR_TAUGHT_SUBSTITUTE
- goto LilycoveCity_DepartmentStoreRooftop_EventScript_2C81E4
+ goto MoveTutor_EventScript_SubstituteTaught
end
-LilycoveCity_DepartmentStoreRooftop_EventScript_2C81DA:: @ 82C81DA
- msgbox LilycoveCity_DepartmentStoreRooftop_Text_2C78D1, MSGBOX_DEFAULT
+MoveTutor_EventScript_SubstituteDeclined:: @ 82C81DA
+ msgbox MoveTutor_Text_SubstituteDeclined, MSGBOX_DEFAULT
release
end
-LilycoveCity_DepartmentStoreRooftop_EventScript_2C81E4:: @ 82C81E4
- msgbox LilycoveCity_DepartmentStoreRooftop_Text_2C794B, MSGBOX_DEFAULT
+MoveTutor_EventScript_SubstituteTaught:: @ 82C81E4
+ msgbox MoveTutor_Text_SubstituteTaught, MSGBOX_DEFAULT
release
end
-MossdeepCity_EventScript_2C81EE:: @ 82C81EE
+MossdeepCity_EventScript_DynamicPunchTutor:: @ 82C81EE
lock
faceplayer
- goto_if_set FLAG_MOVE_TUTOR_TAUGHT_DYNAMICPUNCH, MossdeepCity_EventScript_2C824C
- msgbox MossdeepCity_Text_2C79A6, MSGBOX_YESNO
+ goto_if_set FLAG_MOVE_TUTOR_TAUGHT_DYNAMICPUNCH, MoveTutor_EventScript_DynamicPunchTaught
+ msgbox MoveTutor_Text_DynamicPunchTeach, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq MossdeepCity_EventScript_2C8242
- call MossdeepCity_EventScript_2C832D
+ goto_if_eq MoveTutor_EventScript_DynamicPunchDeclined
+ call MoveTutor_EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, 0
- goto_if_eq MossdeepCity_EventScript_2C8242
- msgbox MossdeepCity_Text_2C7B0D, MSGBOX_DEFAULT
- setvar VAR_0x8005, 15
- call EventScript_ShowPartyMenu
+ goto_if_eq MoveTutor_EventScript_DynamicPunchDeclined
+ msgbox MoveTutor_Text_DynamicPunchWhichMon, MSGBOX_DEFAULT
+ setvar VAR_0x8005, TUTOR_MOVE_DYNAMIC_PUNCH
+ call MoveTutor_EventScript_OpenPartyMenu
compare VAR_RESULT, 0
- goto_if_eq MossdeepCity_EventScript_2C8242
+ goto_if_eq MoveTutor_EventScript_DynamicPunchDeclined
setflag FLAG_MOVE_TUTOR_TAUGHT_DYNAMICPUNCH
- goto MossdeepCity_EventScript_2C824C
+ goto MoveTutor_EventScript_DynamicPunchTaught
end
-MossdeepCity_EventScript_2C8242:: @ 82C8242
- msgbox MossdeepCity_Text_2C7AD4, MSGBOX_DEFAULT
+MoveTutor_EventScript_DynamicPunchDeclined:: @ 82C8242
+ msgbox MoveTutor_Text_DynamicPunchDeclined, MSGBOX_DEFAULT
release
end
-MossdeepCity_EventScript_2C824C:: @ 82C824C
- msgbox MossdeepCity_Text_2C7B4F, MSGBOX_DEFAULT
+MoveTutor_EventScript_DynamicPunchTaught:: @ 82C824C
+ msgbox MoveTutor_Text_DynamicPunchTaught, MSGBOX_DEFAULT
release
end
-SootopolisCity_PokemonCenter_1F_EventScript_2C8256:: @ 82C8256
+SootopolisCity_PokemonCenter_1F_EventScript_DoubleEdgeTutor:: @ 82C8256
lock
faceplayer
- goto_if_set FLAG_MOVE_TUTOR_TAUGHT_DOUBLE_EDGE, SootopolisCity_PokemonCenter_1F_EventScript_2C82B4
- msgbox SootopolisCity_PokemonCenter_1F_Text_2C7B8E, MSGBOX_YESNO
+ goto_if_set FLAG_MOVE_TUTOR_TAUGHT_DOUBLE_EDGE, MoveTutor_EventScript_DoubleEdgeTaught
+ msgbox MoveTutor_Text_DoubleEdgeTeach, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq SootopolisCity_PokemonCenter_1F_EventScript_2C82AA
- call SootopolisCity_PokemonCenter_1F_EventScript_2C832D
+ goto_if_eq MoveTutor_EventScript_DoubleEdgeDeclined
+ call MoveTutor_EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, 0
- goto_if_eq SootopolisCity_PokemonCenter_1F_EventScript_2C82AA
- msgbox SootopolisCity_PokemonCenter_1F_Text_2C7C98, MSGBOX_DEFAULT
- setvar VAR_0x8005, 4
- call EventScript_ShowPartyMenu
+ goto_if_eq MoveTutor_EventScript_DoubleEdgeDeclined
+ msgbox MoveTutor_Text_DoubleEdgeWhichMon, MSGBOX_DEFAULT
+ setvar VAR_0x8005, TUTOR_MOVE_DOUBLE_EDGE
+ call MoveTutor_EventScript_OpenPartyMenu
compare VAR_RESULT, 0
- goto_if_eq SootopolisCity_PokemonCenter_1F_EventScript_2C82AA
+ goto_if_eq MoveTutor_EventScript_DoubleEdgeDeclined
setflag FLAG_MOVE_TUTOR_TAUGHT_DOUBLE_EDGE
- goto SootopolisCity_PokemonCenter_1F_EventScript_2C82B4
+ goto MoveTutor_EventScript_DoubleEdgeTaught
end
-SootopolisCity_PokemonCenter_1F_EventScript_2C82AA:: @ 82C82AA
- msgbox SootopolisCity_PokemonCenter_1F_Text_2C7C7E, MSGBOX_DEFAULT
+MoveTutor_EventScript_DoubleEdgeDeclined:: @ 82C82AA
+ msgbox MoveTutor_Text_DoubleEdgeDeclined, MSGBOX_DEFAULT
release
end
-SootopolisCity_PokemonCenter_1F_EventScript_2C82B4:: @ 82C82B4
- msgbox SootopolisCity_PokemonCenter_1F_Text_2C7CC8, MSGBOX_DEFAULT
+MoveTutor_EventScript_DoubleEdgeTaught:: @ 82C82B4
+ msgbox MoveTutor_Text_DoubleEdgeTaught, MSGBOX_DEFAULT
release
end
-PacifidlogTown_PokemonCenter_1F_EventScript_2C82BE:: @ 82C82BE
+PacifidlogTown_PokemonCenter_1F_EventScript_ExplosionTutor:: @ 82C82BE
lock
faceplayer
- goto_if_set FLAG_MOVE_TUTOR_TAUGHT_EXPLOSION, PacifidlogTown_PokemonCenter_1F_EventScript_2C831C
- msgbox PacifidlogTown_PokemonCenter_1F_Text_2C7CFA, MSGBOX_YESNO
+ goto_if_set FLAG_MOVE_TUTOR_TAUGHT_EXPLOSION, MoveTutor_EventScript_ExplosionTaught
+ msgbox MoveTutor_Text_ExplosionTeach, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq PacifidlogTown_PokemonCenter_1F_EventScript_2C8312
- call PacifidlogTown_PokemonCenter_1F_EventScript_2C832D
+ goto_if_eq MoveTutor_EventScript_ExplosionDeclined
+ call MoveTutor_EventScript_CanOnlyBeLearnedOnce
compare VAR_RESULT, 0
- goto_if_eq PacifidlogTown_PokemonCenter_1F_EventScript_2C8312
- msgbox PacifidlogTown_PokemonCenter_1F_Text_2C7E40, MSGBOX_DEFAULT
- setvar VAR_0x8005, 12
- call EventScript_ShowPartyMenu
+ goto_if_eq MoveTutor_EventScript_ExplosionDeclined
+ msgbox MoveTutor_Text_ExplosionWhichMon, MSGBOX_DEFAULT
+ setvar VAR_0x8005, TUTOR_MOVE_EXPLOSION
+ call MoveTutor_EventScript_OpenPartyMenu
compare VAR_RESULT, 0
- goto_if_eq PacifidlogTown_PokemonCenter_1F_EventScript_2C8312
+ goto_if_eq MoveTutor_EventScript_ExplosionDeclined
setflag FLAG_MOVE_TUTOR_TAUGHT_EXPLOSION
- goto PacifidlogTown_PokemonCenter_1F_EventScript_2C831C
+ goto MoveTutor_EventScript_ExplosionTaught
end
-PacifidlogTown_PokemonCenter_1F_EventScript_2C8312:: @ 82C8312
- msgbox PacifidlogTown_PokemonCenter_1F_Text_2C7E04, MSGBOX_DEFAULT
+MoveTutor_EventScript_ExplosionDeclined:: @ 82C8312
+ msgbox MoveTutor_Text_ExplosionDeclined, MSGBOX_DEFAULT
release
end
-PacifidlogTown_PokemonCenter_1F_EventScript_2C831C:: @ 82C831C
- msgbox PacifidlogTown_PokemonCenter_1F_Text_2C7E7A, MSGBOX_DEFAULT
+MoveTutor_EventScript_ExplosionTaught:: @ 82C831C
+ msgbox MoveTutor_Text_ExplosionTaught, MSGBOX_DEFAULT
release
end
-EventScript_ShowPartyMenu:: @ 82C8326
- special sub_81B892C
+MoveTutor_EventScript_OpenPartyMenu:: @ 82C8326
+ special OpenPartyMenuForMoveTutor
waitstate
lock
faceplayer
return
-FallarborTown_Mart_EventScript_2C832D:: @ 82C832D
-FortreeCity_House2_EventScript_2C832D:: @ 82C832D
-LavaridgeTown_House_EventScript_2C832D:: @ 82C832D
-LilycoveCity_DepartmentStoreRooftop_EventScript_2C832D:: @ 82C832D
-MauvilleCity_EventScript_2C832D:: @ 82C832D
-MossdeepCity_EventScript_2C832D:: @ 82C832D
-PacifidlogTown_PokemonCenter_1F_EventScript_2C832D:: @ 82C832D
-SlateportCity_PokemonFanClub_EventScript_2C832D:: @ 82C832D
-SootopolisCity_PokemonCenter_1F_EventScript_2C832D:: @ 82C832D
-VerdanturfTown_PokemonCenter_1F_EventScript_2C832D:: @ 82C832D
- msgbox MauvilleCity_Text_2C6E05, MSGBOX_YESNO
+MoveTutor_EventScript_CanOnlyBeLearnedOnce:: @ 82C832D
+ msgbox MoveTutor_Text_ThisMoveCanOnlyBeLearnedOnce, MSGBOX_YESNO
return
diff --git a/data/scripts/movement.inc b/data/scripts/movement.inc
index b7abceae4..3dd1a8144 100644
--- a/data/scripts/movement.inc
+++ b/data/scripts/movement.inc
@@ -1,4 +1,4 @@
-SlateportCity_Movement_272596: @ 8272596
+Common_Movement_QuestionMark: @ 8272596
emote_question_mark
step_end
@@ -24,27 +24,27 @@ Common_Movement_FaceOriginalDirection: @ 82725A2
face_original_direction
step_end
-Common_Movement_WalkInPlaceLeft: @ 82725A4
+Common_Movement_WalkInPlaceFastestLeft: @ 82725A4
walk_in_place_fastest_left
step_end
-Common_Movement_WalkInPlaceUp: @ 82725A6
+Common_Movement_WalkInPlaceFastestUp: @ 82725A6
walk_in_place_fastest_up
step_end
-Common_Movement_WalkInPlaceRight: @ 82725A8
+Common_Movement_WalkInPlaceFastestRight: @ 82725A8
walk_in_place_fastest_right
step_end
-Common_Movement_WalkInPlaceDown: @ 82725AA
+Common_Movement_WalkInPlaceFastestDown: @ 82725AA
walk_in_place_fastest_down
step_end
-RustboroCity_Movement_2725AC: @ 82725AC
+Common_Movement_FaceRight: @ 82725AC
face_right
step_end
-RustboroCity_Movement_2725AE: @ 82725AE
+Common_Movement_FaceLeft: @ 82725AE
face_left
step_end
@@ -56,21 +56,19 @@ Common_Movement_FaceUp: @ 82725B2
face_up
step_end
-BattleFrontier_BattleDomeBattleRoom_Movement_2725B4: @ 82725B4
-MeteorFalls_1F_1R_Movement_2725B4: @ 82725B4
+Common_Movement_WalkInPlaceDown: @ 82725B4
walk_in_place_down
step_end
-BattleFrontier_BattlePalaceBattleRoom_Movement_2725B6: @ 82725B6
-BattleFrontier_BattleTowerBattleRoom_Movement_2725B6: @ 82725B6
+Common_Movement_WalkInPlaceLeft: @ 82725B6
walk_in_place_left
step_end
-Route121_Movement_2725B8: @ 82725B8
+Common_Movement_WalkInPlaceRight: @ 82725B8
walk_in_place_right
step_end
-EverGrandeCity_SidneysRoom_Movement_2725BA: @ 82725BA
+Common_Movement_WalkUp6: @ 82725BA
walk_up
walk_up
walk_up
@@ -79,23 +77,24 @@ EverGrandeCity_SidneysRoom_Movement_2725BA: @ 82725BA
walk_up
step_end
-EverGrandeCity_ChampionsRoom_Movement_2725C1: @ 82725C1
+Common_Movement_WalkUp4: @ 82725C1
walk_up
walk_up
walk_up
walk_up
step_end
-EverGrandeCity_SidneysRoom_Movement_2725C6: @ 82725C6
+Common_Movement_Delay32: @ 82725C6
delay_16
delay_16
step_end
-Route110_TrickHouseEntrance_Movement_2725C9: @ 82725C9
+Common_Movement_WalkUp: @ 82725C9
walk_up
step_end
-Movement_2725CB:: @ 82725CB
+@ Unused
+Common_Movement_WalkUp2:: @ 82725CB
walk_up
walk_up
step_end
diff --git a/data/scripts/pc.inc b/data/scripts/pc.inc
index d5e51e412..b3602ee6f 100644
--- a/data/scripts/pc.inc
+++ b/data/scripts/pc.inc
@@ -4,63 +4,63 @@ EventScript_PC:: @ 8271D92
special DoPCTurnOnEffect
playse SE_PC_ON
msgbox Text_BootUpPC, MSGBOX_DEFAULT
- goto EventScript_271DAC
+ goto EventScript_PCMainMenu
end
-EventScript_271DAC:: @ 8271DAC
+EventScript_PCMainMenu:: @ 8271DAC
message gText_WhichPCShouldBeAccessed
waitmessage
special ScriptMenu_CreatePCMultichoice
waitstate
- goto EventScript_271DBC
+ goto EventScript_AccessPC
end
-EventScript_271DBC:: @ 8271DBC
+EventScript_AccessPC:: @ 8271DBC
switch VAR_RESULT
- case 0, EventScript_271E0E
- case 1, EventScript_271DF9
- case 2, EventScript_271E54
- case 3, EventScript_271E47
- case MULTI_B_PRESSED, EventScript_271E47
+ case 0, EventScript_AccessPokemonStorage
+ case 1, EventScript_AccessPlayersPC
+ case 2, EventScript_AccessHallOfFame
+ case 3, EventScript_TurnOffPC
+ case MULTI_B_PRESSED, EventScript_TurnOffPC
end
-EventScript_271DF9:: @ 8271DF9
+EventScript_AccessPlayersPC:: @ 8271DF9
playse SE_PC_LOGIN
msgbox gText_AccessedPlayersPC, MSGBOX_DEFAULT
special PlayerPC
waitstate
- goto EventScript_271DAC
+ goto EventScript_PCMainMenu
end
-EventScript_271E0E:: @ 8271E0E
+EventScript_AccessPokemonStorage:: @ 8271E0E
playse SE_PC_LOGIN
- call_if_unset FLAG_SYS_PC_LANETTE, EventScript_271E35
- call_if_set FLAG_SYS_PC_LANETTE, EventScript_271E3E
+ call_if_unset FLAG_SYS_PC_LANETTE, EventScript_AccessSomeonesPC
+ call_if_set FLAG_SYS_PC_LANETTE, EventScript_AccessLanettesPC
msgbox gText_StorageSystemOpened, MSGBOX_DEFAULT
special ShowPokemonStorageSystemPC
waitstate
- goto EventScript_271DAC
+ goto EventScript_PCMainMenu
end
-EventScript_271E35:: @ 8271E35
+EventScript_AccessSomeonesPC:: @ 8271E35
msgbox gText_AccessedSomeonesPC, MSGBOX_DEFAULT
return
-EventScript_271E3E:: @ 8271E3E
+EventScript_AccessLanettesPC:: @ 8271E3E
msgbox gText_AccessedLanettesPC, MSGBOX_DEFAULT
return
-EventScript_271E47:: @ 8271E47
+EventScript_TurnOffPC:: @ 8271E47
setvar VAR_0x8004, 0
playse SE_PC_OFF
special DoPCTurnOffEffect
releaseall
end
-EventScript_271E54:: @ 8271E54
- goto_if_unset FLAG_SYS_GAME_CLEAR, EventScript_271E47
+EventScript_AccessHallOfFame:: @ 8271E54
+ goto_if_unset FLAG_SYS_GAME_CLEAR, EventScript_TurnOffPC
playse SE_PC_LOGIN
special AccessHallOfFamePC
waitstate
- goto EventScript_271DBC
+ goto EventScript_AccessPC
end
diff --git a/data/scripts/pkmn_center_nurse.inc b/data/scripts/pkmn_center_nurse.inc
index bfeba79e3..0d4be2c0d 100644
--- a/data/scripts/pkmn_center_nurse.inc
+++ b/data/scripts/pkmn_center_nurse.inc
@@ -38,11 +38,11 @@ EventScript_PkmnCenterNurse_IllTakeYourPkmn2:: @ 827198D
return
EventScript_PkmnCenterNurse_TakeAndHealPkmn:: @ 8271993
- applymovement VAR_0x800B, Common_Movement_WalkInPlaceLeft
+ applymovement VAR_0x800B, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
dofieldeffect FLDEFF_POKECENTER_HEAL
waitfieldeffect FLDEFF_POKECENTER_HEAL
- applymovement VAR_0x800B, Common_Movement_WalkInPlaceDown
+ applymovement VAR_0x800B, Common_Movement_WalkInPlaceFastestDown
waitmovement 0
special HealPlayerParty
return
diff --git a/data/scripts/players_house.inc b/data/scripts/players_house.inc
index 741b7f41e..f88d3af6c 100644
--- a/data/scripts/players_house.inc
+++ b/data/scripts/players_house.inc
@@ -16,18 +16,18 @@ LittlerootTown_MaysHouse_1F_EventScript_292704:: @ 8292704
closemessage
setvar VAR_LITTLEROOT_INTRO_STATE, 4
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292763
- applymovement VAR_0x8004, Common_Movement_WalkInPlaceUp
+ applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
releaseall
end
LittlerootTown_BrendansHouse_1F_EventScript_29274D:: @ 829274D
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292758:: @ 8292758
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
@@ -39,7 +39,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_292765:: @ 8292765
LittlerootTown_MaysHouse_1F_EventScript_292765:: @ 8292765
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7B24, MSGBOX_DEFAULT
closemessage
- applymovement VAR_0x8004, Common_Movement_WalkInPlaceUp
+ applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestUp
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292AF0
waitmovement 0
releaseall
@@ -82,7 +82,7 @@ LittlerootTown_BrendansHouse_2F_EventScript_2927DF:: @ 82927DF
addobject VAR_0x8008
applymovement VAR_0x8008, LittlerootTown_BrendansHouse_2F_Movement_292850
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox LittlerootTown_BrendansHouse_2F_Text_1F869A, MSGBOX_DEFAULT
closemessage
@@ -95,7 +95,7 @@ LittlerootTown_BrendansHouse_2F_EventScript_29280F:: @ 829280F
addobject VAR_0x8008
applymovement VAR_0x8008, LittlerootTown_BrendansHouse_2F_Movement_29285B
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox LittlerootTown_BrendansHouse_2F_Text_1F869A, MSGBOX_DEFAULT
closemessage
@@ -154,7 +154,7 @@ LittlerootTown_MaysHouse_1F_EventScript_292866:: @ 8292866
end
LittlerootTown_BrendansHouse_1F_EventScript_29286D:: @ 829286D
- applymovement VAR_0x8005, Common_Movement_WalkInPlaceRight
+ applymovement VAR_0x8005, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
call LittlerootTown_BrendansHouse_1F_EventScript_29294B
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292AE0
@@ -167,7 +167,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_29286D:: @ 829286D
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292AE6
waitmovement 0
call LittlerootTown_BrendansHouse_1F_EventScript_29296C
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7BF1, MSGBOX_DEFAULT
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7C35, MSGBOX_DEFAULT
@@ -179,7 +179,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_29286D:: @ 829286D
end
LittlerootTown_MaysHouse_1F_EventScript_2928DC:: @ 82928DC
- applymovement VAR_0x8005, Common_Movement_WalkInPlaceLeft
+ applymovement VAR_0x8005, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
call LittlerootTown_MaysHouse_1F_EventScript_29294B
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_292AE8
@@ -192,7 +192,7 @@ LittlerootTown_MaysHouse_1F_EventScript_2928DC:: @ 82928DC
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_MaysHouse_1F_Movement_292AEE
waitmovement 0
call LittlerootTown_MaysHouse_1F_EventScript_29296C
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
msgbox LittlerootTown_MaysHouse_1F_Text_1F7BF1, MSGBOX_DEFAULT
msgbox LittlerootTown_MaysHouse_1F_Text_1F7C35, MSGBOX_DEFAULT
@@ -216,7 +216,7 @@ LittlerootTown_MaysHouse_1F_EventScript_29294B:: @ 829294B
LittlerootTown_BrendansHouse_1F_EventScript_29296C:: @ 829296C
LittlerootTown_MaysHouse_1F_EventScript_29296C:: @ 829296C
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceUp
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox LittlerootTown_BrendansHouse_1F_Text_1F7EC6, MSGBOX_DEFAULT
fadedefaultbgm
@@ -586,28 +586,28 @@ LittlerootTown_BrendansHouse_1F_EventScript_292D13:: @ 8292D13
LittlerootTown_BrendansHouse_1F_EventScript_292D1E:: @ 8292D1E
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292DD7
waitmovement 0
- applymovement VAR_0x800A, Common_Movement_WalkInPlaceLeft
+ applymovement VAR_0x800A, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D33:: @ 8292D33
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_BrendansHouse_1F_Movement_292DDE
waitmovement 0
- applymovement VAR_0x800A, Common_Movement_WalkInPlaceRight
+ applymovement VAR_0x800A, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D48:: @ 8292D48
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_292999
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D5D:: @ 8292D5D
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_29299B
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
@@ -624,14 +624,14 @@ LittlerootTown_BrendansHouse_1F_EventScript_292D7D:: @ 8292D7D
LittlerootTown_BrendansHouse_1F_EventScript_292D88:: @ 8292D88
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_2929AF
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceRight
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
waitmovement 0
return
LittlerootTown_BrendansHouse_1F_EventScript_292D9D:: @ 8292D9D
applymovement VAR_0x800A, LittlerootTown_BrendansHouse_1F_Movement_2929B3
waitmovement 0
- applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceLeft
+ applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
waitmovement 0
return
diff --git a/data/scripts/pokeblocks.inc b/data/scripts/pokeblocks.inc
index 10ced77c4..9590f3140 100644
--- a/data/scripts/pokeblocks.inc
+++ b/data/scripts/pokeblocks.inc
@@ -667,13 +667,13 @@ EventScript_PblocLink_NoPokeblock: @ 829416C
EventScript_PblocLink_SomeoneNotReady: @ 8294176
special CloseLink
- msgbox LilycoveCity_ContestLobby_Text_2781C7, MSGBOX_DEFAULT
+ msgbox Text_SomeoneIsNotReadyToLink, MSGBOX_DEFAULT
releaseall
end
EventScript_PblocLink_DifferentSelections: @ 8294183
special CloseLink
- msgbox LilycoveCity_ContestLobby_Text_278255, MSGBOX_DEFAULT
+ msgbox Text_PlayersMadeDifferentSelections, MSGBOX_DEFAULT
releaseall
end
@@ -685,7 +685,7 @@ EventScript_PblocLink_CloseLink: @ 8294190
EventScript_PblocLink_LinkError: @ 829419D
special CloseLink
- msgbox LilycoveCity_ContestLobby_Text_27821C, MSGBOX_DEFAULT
+ msgbox Text_LinkErrorPleaseReset, MSGBOX_DEFAULT
releaseall
end
@@ -745,12 +745,12 @@ EventScript_PblocLink_TryJoinGroup: @ 829425D
end
EventScript_PblocLink_BecomeLeader: @ 8294285
- special BerryBlenderLinkBecomeLeader
+ special TryBecomeLinkLeader
waitstate
return
EventScript_PblocLink_JoinGroup: @ 829428A
- special BerryBlenderLinkJoinGroup
+ special TryJoinLinkGroup
waitstate
return
diff --git a/data/scripts/prof_birch.inc b/data/scripts/prof_birch.inc
index 249f45376..50284d590 100644
--- a/data/scripts/prof_birch.inc
+++ b/data/scripts/prof_birch.inc
@@ -1,94 +1,89 @@
-LittlerootTown_ProfessorBirchsLab_EventScript_2720AD:: @ 82720AD
-Route101_EventScript_2720AD:: @ 82720AD
-Route103_EventScript_2720AD:: @ 82720AD
+ProfBirch_EventScript_UpdateLocation:: @ 82720AD
compare VAR_PETALBURG_GYM_STATE, 0
goto_if_eq Common_EventScript_NopReturn
- goto_if_set FLAG_SYS_GAME_CLEAR, Route101_EventScript_27211A
+ goto_if_set FLAG_SYS_GAME_CLEAR, ProfBirch_EventScript_MoveToLab
compare VAR_BIRCH_STATE, 0
- call_if_eq Route101_EventScript_27211A
+ call_if_eq ProfBirch_EventScript_MoveToLab
compare VAR_BIRCH_STATE, 1
- call_if_eq Route101_EventScript_27211A
+ call_if_eq ProfBirch_EventScript_MoveToLab
compare VAR_BIRCH_STATE, 2
- call_if_eq Route101_EventScript_272127
+ call_if_eq ProfBirch_EventScript_MoveToRoute101
compare VAR_BIRCH_STATE, 3
- call_if_eq Route101_EventScript_272127
+ call_if_eq ProfBirch_EventScript_MoveToRoute101
compare VAR_BIRCH_STATE, 4
- call_if_eq Route101_EventScript_272134
+ call_if_eq ProfBirch_EventScript_MoveToRoute103
compare VAR_BIRCH_STATE, 5
- call_if_eq Route101_EventScript_272134
+ call_if_eq ProfBirch_EventScript_MoveToRoute103
compare VAR_BIRCH_STATE, 6
- call_if_eq Route101_EventScript_27211A
+ call_if_eq ProfBirch_EventScript_MoveToLab
compare VAR_BIRCH_STATE, 7
- call_if_eq Route101_EventScript_27211A
+ call_if_eq ProfBirch_EventScript_MoveToLab
return
-Route101_EventScript_27211A:: @ 827211A
+ProfBirch_EventScript_MoveToLab:: @ 827211A
clearflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_BIRCH
clearflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_UNKNOWN_0x380
setflag FLAG_HIDE_ROUTE_101_BIRCH
setflag FLAG_HIDE_ROUTE_103_BIRCH
return
-Route101_EventScript_272127:: @ 8272127
+ProfBirch_EventScript_MoveToRoute101:: @ 8272127
clearflag FLAG_HIDE_ROUTE_101_BIRCH
setflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_BIRCH
setflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_UNKNOWN_0x380
setflag FLAG_HIDE_ROUTE_103_BIRCH
return
-Route101_EventScript_272134:: @ 8272134
+ProfBirch_EventScript_MoveToRoute103:: @ 8272134
clearflag FLAG_HIDE_ROUTE_103_BIRCH
setflag FLAG_HIDE_ROUTE_101_BIRCH
setflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_BIRCH
setflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_UNKNOWN_0x380
return
-LittlerootTown_ProfessorBirchsLab_EventScript_272141:: @ 8272141
-Route101_EventScript_272141:: @ 8272141
-Route103_EventScript_272141:: @ 8272141
+ProfBirch_EventScript_RatePokedexOrRegister:: @ 8272141
lock
faceplayer
- goto_if_unset FLAG_HAS_MATCH_CALL, Route101_EventScript_272155
- goto_if_unset FLAG_ENABLE_PROF_BIRCH_MATCH_CALL, Route101_EventScript_1FA2D2
+ goto_if_unset FLAG_HAS_MATCH_CALL, ProfBirch_EventScript_AskRatePokedex
+ goto_if_unset FLAG_ENABLE_PROF_BIRCH_MATCH_CALL, EventScript_RegisterProfBirch
-Route101_EventScript_272155:: @ 8272155
+ProfBirch_EventScript_AskRatePokedex:: @ 8272155
msgbox gBirchDexRatingText_AreYouCurious, MSGBOX_YESNO
compare VAR_RESULT, 0
- goto_if_eq Route101_EventScript_27216F
- call Route101_EventScript_272184
+ goto_if_eq ProfBirch_EventScript_DeclineRating
+ call ProfBirch_EventScript_RatePokedex
release
end
-Route101_EventScript_27216F:: @ 827216F
+ProfBirch_EventScript_DeclineRating:: @ 827216F
msgbox gBirchDexRatingText_Cancel, MSGBOX_DEFAULT
release
end
-Route101_EventScript_272179:: @ 8272179
+ProfBirch_EventScript_ShowRatingMessage:: @ 8272179
copyvar VAR_0x8004, VAR_0x8009
special ShowPokedexRatingMessage
waitmessage
waitbuttonpress
return
-EverGrandeCity_ChampionsRoom_EventScript_272184:: @ 8272184
-Route101_EventScript_272184:: @ 8272184
+ProfBirch_EventScript_RatePokedex:: @ 8272184
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
+ buffernumberstring 0, VAR_0x8008 @ Num Hoenn seen
+ buffernumberstring 1, VAR_0x8009 @ Num Hoenn caught
msgbox gBirchDexRatingText_SoYouveSeenAndCaught, MSGBOX_DEFAULT
- call Route101_EventScript_272179
+ call ProfBirch_EventScript_ShowRatingMessage
compare VAR_0x800A, 0
- goto_if_eq Common_EventScript_NopReturn
+ goto_if_eq Common_EventScript_NopReturn @ National dex not enabled
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
+ buffernumberstring 0, VAR_0x8008 @ Num National seen
+ buffernumberstring 1, VAR_0x8009 @ Num National caught
msgbox gBirchDexRatingText_OnANationwideBasis, MSGBOX_DEFAULT
return
diff --git a/data/scripts/roulette.inc b/data/scripts/roulette.inc
index 1dda5e17b..791069088 100644
--- a/data/scripts/roulette.inc
+++ b/data/scripts/roulette.inc
@@ -1,70 +1,71 @@
-MauvilleCity_GameCorner_EventScript_2A5AB1:: @ 82A5AB1
+Roulette_EventScript_Table1:: @ 82A5AB1
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 0
- getpricereduction 2
+ getpricereduction POKENEWS_GAME_CORNER
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_2A5B0D
+ goto_if_eq Roulette_EventScript_Play
addvar VAR_0x8004, 128
- goto MauvilleCity_GameCorner_EventScript_2A5B0D
+ goto Roulette_EventScript_Play
end
-MauvilleCity_GameCorner_EventScript_2A5ADF:: @ 82A5ADF
+Roulette_EventScript_Table2:: @ 82A5ADF
checkitem ITEM_COIN_CASE, 1
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_210456
+ goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 1
- getpricereduction 2
+ getpricereduction POKENEWS_GAME_CORNER
compare VAR_RESULT, 0
- goto_if_eq MauvilleCity_GameCorner_EventScript_2A5B0D
+ goto_if_eq Roulette_EventScript_Play
addvar VAR_0x8004, 128
- goto MauvilleCity_GameCorner_EventScript_2A5B0D
+ goto Roulette_EventScript_Play
end
-MauvilleCity_GameCorner_EventScript_2A5B0D:: @ 82A5B0D
+Roulette_EventScript_Play:: @ 82A5B0D
special PlayRoulette
waitstate
end
-gUnknown_082A5B12:: @ 82A5B12
+Roulette_Text_PlayMinimumWagerIsX:: @ 82A5B12
.string "The minimum wager at this table\n"
.string "is {STR_VAR_1}. Do you want to play?$"
-gUnknown_082A5B4E:: @ 82A5B4E
+Roulette_Text_NotEnoughCoins:: @ 82A5B4E
.string "You don't have enough COINS.$"
-gUnknown_082A5B6B:: @ 82A5B6B
+Roulette_Text_SpecialRateTable:: @ 82A5B6B
.string "Special rate table right now!$"
-gUnknown_082A5B89:: @ 82A5B89
+Roulette_Text_ControlsInstruction:: @ 82A5B89
.string "Place your wager with the + Control\n"
.string "Pad, then press the A Button.$"
-gUnknown_082A5BCB:: @ 82A5BCB
+Roulette_Text_ItsAHit:: @ 82A5BCB
.string "It's a hit!$"
-gUnknown_082A5BD7:: @ 82A5BD7
+Roulette_Text_Jackpot:: @ 82A5BD7
.string "Jackpot!$"
-gUnknown_082A5BE0:: @ 82A5BE0
+Roulette_Text_NothingDoing:: @ 82A5BE0
.string "Nothing doing!$"
-gUnknown_082A5BEF:: @ 82A5BEF
+Roulette_Text_YouveWonXCoins:: @ 82A5BEF
.string "You've won {STR_VAR_1} COINS!$"
-gUnknown_082A5C04:: @ 82A5C04
+Roulette_Text_NoCoinsLeft:: @ 82A5C04
.string "No COINS left…$"
-gUnknown_082A5C13:: @ 82A5C13
+Roulette_Text_KeepPlaying:: @ 82A5C13
.string "Keep playing?$"
-gUnknown_082A5C21:: @ 82A5C21
+Roulette_Text_BoardWillBeCleared:: @ 82A5C21
.string "The ROULETTE board will be cleared.$"
-gUnknown_082A5C45:: @ 82A5C45
+@ Unused
+Roulette_Text_YouDontHaveACoinCase:: @ 82A5C45
.string "You don't have a COIN CASE.$"
-gUnknown_082A5C61:: @ 82A5C61
+Roulette_Text_CoinCaseIsFull:: @ 82A5C61
.string "Your COIN CASE is full!\n"
.string "Coins can be exchanged for prizes.$"
diff --git a/data/scripts/secret_power_tm.inc b/data/scripts/secret_power_tm.inc
index 647064829..51a327142 100644
--- a/data/scripts/secret_power_tm.inc
+++ b/data/scripts/secret_power_tm.inc
@@ -51,11 +51,11 @@ Route111_EventScript_27661E:: @ 827661E
closemessage
setflag FLAG_RECEIVED_SECRET_POWER
clearflag FLAG_HIDE_SLATEPORT_CITY_TM_SALESMAN
- compare VAR_FACING, 3
+ compare VAR_FACING, DIR_WEST
call_if_eq Route111_EventScript_27666A
- compare VAR_FACING, 4
+ compare VAR_FACING, DIR_EAST
call_if_eq Route111_EventScript_27666A
- compare VAR_FACING, 2
+ compare VAR_FACING, DIR_NORTH
call_if_eq Route111_EventScript_276675
removeobject VAR_LAST_TALKED
release
diff --git a/data/scripts/trainer_hill.inc b/data/scripts/trainer_hill.inc
index 5b43118d1..7d898a93d 100644
--- a/data/scripts/trainer_hill.inc
+++ b/data/scripts/trainer_hill.inc
@@ -10,11 +10,11 @@ TrainerHill_Roof_MapScript1_2C8336: @ 82C8336
setvar VAR_0x8005, 5
special CallFrontierUtilFunc
compare VAR_RESULT, B_OUTCOME_LOST
- goto_if_eq TrainerHill_1F_EventScript_2C83C9
+ goto_if_eq TrainerHill_1F_EventScript_Lost
compare VAR_RESULT, B_OUTCOME_DREW
- goto_if_eq TrainerHill_1F_EventScript_2C83C9
+ goto_if_eq TrainerHill_1F_EventScript_Lost
compare VAR_RESULT, B_OUTCOME_FORFEITED
- goto_if_eq TrainerHill_1F_EventScript_2C83C9
+ goto_if_eq TrainerHill_1F_EventScript_Lost
end
TrainerHill_1F_MapScript2_2C8372: @ 82C8372
@@ -56,7 +56,7 @@ TrainerHill_1F_EventScript_2C83BF:: @ 82C83BF
waitstate
end
-TrainerHill_1F_EventScript_2C83C9:: @ 82C83C9
+TrainerHill_1F_EventScript_Lost:: @ 82C83C9
setvar VAR_0x8004, TRAINER_HILL_FUNC_12
special CallTrainerHillFunction
setvar VAR_0x8004, TRAINER_HILL_FUNC_SET_LOST
diff --git a/data/scripts/unusual_weather.inc b/data/scripts/unusual_weather.inc
index e9eae89c2..ad6985ac8 100644
--- a/data/scripts/unusual_weather.inc
+++ b/data/scripts/unusual_weather.inc
@@ -158,14 +158,7 @@ UnusualWeather_EventScript_PlaceTilesRoute129East:: @ 8273CA6
setmetatile 43, 22, METATILE_General_RoughWater, 0
return
-Route105_EventScript_273D13:: @ 8273D13
-Route114_EventScript_273D13:: @ 8273D13
-Route115_EventScript_273D13:: @ 8273D13
-Route116_EventScript_273D13:: @ 8273D13
-Route118_EventScript_273D13:: @ 8273D13
-Route125_EventScript_273D13:: @ 8273D13
-Route127_EventScript_273D13:: @ 8273D13
-Route129_EventScript_273D13:: @ 8273D13
+UnusualWeather_EventScript_HideMapNamePopup:: @ 8273D13
setflag FLAG_HIDE_MAP_NAME_POPUP
return
diff --git a/data/specials.inc b/data/specials.inc
index 4298d58c5..fe5d4bf0b 100644
--- a/data/specials.inc
+++ b/data/specials.inc
@@ -11,7 +11,7 @@ gSpecials:: @ 81DBA64
def_special HealPlayerParty
def_special SetCableClubWarp
def_special sub_80AF948
- def_special sub_80AF9F8
+ def_special ReturnFromLinkRoom
def_special CleanupLinkRoomState
def_special ExitLinkRoom
def_special SetPlayerSecretBase
@@ -36,8 +36,8 @@ gSpecials:: @ 81DBA64
def_special SetBattledOwnerFromResult
def_special DoSecretBasePCTurnOffEffect
def_special RecordMixingPlayerSpotTriggered
- def_special sub_80B2DA4
- def_special sub_80B2E4C
+ def_special TryBattleLinkup
+ def_special TryTradeLinkup
def_special sub_80B2E74
def_special sub_80B2EA8
def_special CloseLink
@@ -51,7 +51,7 @@ gSpecials:: @ 81DBA64
def_special SavePlayerParty
def_special LoadPlayerParty
def_special ChooseHalfPartyForBattle
- def_special sp02A_crash_sound
+ def_special Script_ShowLinkTrainerCard
def_special EventObjectInteractionGetBerryTreeData
def_special EventObjectInteractionGetBerryName
def_special EventObjectInteractionGetBerryCountString
@@ -150,12 +150,12 @@ gSpecials:: @ 81DBA64
def_special sub_80F8864
def_special CountPlayerContestPaintings
def_special ShowContestWinner
- def_special MauvilleGymSpecial2
- def_special MauvilleGymSpecial1
+ def_special MauvilleGymSetDefaultBarriers
+ def_special MauvilleGymPressSwitch
def_special ShowFieldMessageStringVar4
def_special DrawWholeMapView
def_special StorePlayerCoordsInVars
- def_special MauvilleGymSpecial3
+ def_special MauvilleGymDeactivatePuzzle
def_special PetalburgGymSlideOpenRoomDoors
def_special PetalburgGymUnlockRoomDoors
def_special GetPlayerTrainerIdOnesDigit
@@ -210,8 +210,8 @@ gSpecials:: @ 81DBA64
def_special ShowLinkBattleRecords
def_special IsEnoughForCostInVar0x8005
def_special SubtractMoneyFromVar0x8005
- def_special ExecuteWhiteOut
- def_special sp0C8_whiteout_maybe
+ def_special TryFieldPoisonWhiteOut
+ def_special SetCB2WhiteOut
def_special RotatingGate_InitPuzzle
def_special RotatingGate_InitPuzzleAndGraphics
def_special SetSSTidalFlag
@@ -305,8 +305,8 @@ gSpecials:: @ 81DBA64
def_special LeadMonHasEffortRibbon
def_special GiveLeadMonEffortRibbon
def_special Special_AreLeadMonEVsMaxedOut
- def_special sub_8098574
- def_special sub_809859C
+ def_special Script_FacePlayer
+ def_special Script_ClearHeldMovement
def_special InitRoamer
def_special TryUpdateRusturfTunnelState
def_special IsGrassTypeInParty
@@ -342,14 +342,14 @@ gSpecials:: @ 81DBA64
def_special TryInitBattleTowerAwardManEventObject
def_special MoveOutOfSecretBaseFromOutside
def_special LoadPlayerBag
- def_special sub_80B05B4
+ def_special Script_FadeOutMapMusic
def_special SetPacifidlogTMReceivedDay
def_special GetDaysUntilPacifidlogTMAvailable
def_special HasAllHoennMons
def_special MonOTNameMatchesPlayer
def_special BufferLottoTicketNumber
def_special sub_81653CC
- def_special sub_80F9370
+ def_special DoesPartyHaveEnigmaBerry
def_special ScriptRandom
def_special sub_81AFDD0
def_special sub_80EDCE8
@@ -424,22 +424,22 @@ gSpecials:: @ 81DBA64
def_special StartPlayerDescendMirageTower
def_special BufferTMHMMoveName
def_special IsWirelessAdapterConnected
- def_special BerryBlenderLinkBecomeLeader
- def_special BerryBlenderLinkJoinGroup
+ def_special TryBecomeLinkLeader
+ def_special TryJoinLinkGroup
def_special UnionRoomSpecial
def_special sub_801A42C
- def_special sub_8016934
+ def_special InitUnionRoom
def_special BufferUnionRoomPlayerName
def_special sub_801DC20
- def_special sub_81B8958
- def_special sub_8018090
+ def_special ChooseMonForWirelessMinigame
+ def_special Script_ResetUnionRoomTrade
def_special IsBadEggInParty
def_special ValidateReceivedWonderCard
def_special HasAtLeastOneBerry
- def_special sub_802C920
- def_special sub_802E3C4
- def_special sub_8027A5C
- def_special sub_8027AAC
+ def_special IsPokemonJumpSpeciesInParty
+ def_special ShowPokemonJumpRecords
+ def_special IsDodrioInParty
+ def_special ShowDodrioBerryPickingRecords
def_special OffsetCameraForBattle
def_special GetDeptStoreDefaultFloorChoice
def_special BufferVarsForIVRater
@@ -485,7 +485,7 @@ gSpecials:: @ 81DBA64
def_special BufferBattleFrontierTutorMoveName
def_special CloseBattleFrontierTutorWindow
def_special sub_813ADD4
- def_special sub_81B892C
+ def_special OpenPartyMenuForMoveTutor
def_special GetBattleFrontierTutorMoveIndex
def_special sub_813AF48
def_special DoDeoxysRockInteraction
@@ -512,7 +512,7 @@ gSpecials:: @ 81DBA64
def_special GetLilycoveSSTidalSelection
def_special TurnOnTVScreen
def_special sub_81D4A90
- def_special sub_813B514
+ def_special ShouldDistributeEonTicket
def_special sub_813B568
def_special sub_813B534
def_special CallTrainerHillFunction
diff --git a/data/text/cable_club.inc b/data/text/cable_club.inc
index e69de29bb..85e0e4edb 100644
--- a/data/text/cable_club.inc
+++ b/data/text/cable_club.inc
@@ -0,0 +1,485 @@
+CableClub_Text_WelcomeWhichCableClubService: @ 8277EA4
+ .string "Welcome to the POKéMON CABLE\n"
+ .string "CLUB.\p"
+ .string "Which of our services do you wish\n"
+ .string "to use?$"
+
+CableClub_Text_WhichService: @ 8277EF1
+ .string "Which of our services do you wish\n"
+ .string "to use?$"
+
+CableClub_Text_TradeUsingLinkCable:: @ 8277F1B
+ .string "Trade POKéMON with another player\n"
+ .string "using a GBA Game Link cable.$"
+
+CableClub_Text_BattleUsingLinkCable:: @ 8277F5A
+ .string "You may battle another TRAINER\n"
+ .string "using a GBA Game Link cable.$"
+
+CableClub_Text_RecordCornerUsingLinkCable:: @ 8277F96
+ .string "You can use the RECORD CORNER with\n"
+ .string "others using a GBA Game Link cable.$"
+
+@ Unused
+CableClub_Text_CloseThisMenu: @ 8277FDD
+ .string "Close this menu.$"
+
+CableClub_Text_NeedTwoMonsForDoubleBattle: @ 8277FEE
+ .string "For a DOUBLE BATTLE, you must\n"
+ .string "have at least two POKéMON.$"
+
+CableClub_Text_NeedTwoMonsToTrade: @ 8278027
+ .string "For trading, you must have at\n"
+ .string "least two POKéMON with you.$"
+
+CableClub_Text_CantTradeEnigmaBerry: @ 8278061
+ .string "A POKéMON holding the {STR_VAR_1}\n"
+ .string "BERRY can't be traded.$"
+
+gText_PleaseWaitForLink:: @ 8278091
+ .string "Please wait.\n"
+ .string "… … B Button: Cancel$"
+
+gText_ConfirmLinkWhenPlayersReady:: @ 82780B3
+ .string "When all players are ready…\n"
+ .string "A Button: Confirm\l"
+ .string "B Button: Cancel$"
+
+gText_ConfirmStartLinkWithXPlayers:: @ 82780F2
+ .string "Start link with {STR_VAR_1} players.\n"
+ .string "A Button: Confirm\l"
+ .string "B Button: Cancel$"
+
+gText_AwaitingLinkup:: @ 8278131
+ .string "Awaiting linkup…\n"
+ .string "… … B Button: Cancel$"
+
+@ Unused
+CableClub_Text_OkayToSaveProgress:: @ 8278157
+ .string "Your progress must be saved before\n"
+ .string "linking. Is it okay to save?$"
+
+CableClub_Text_PleaseEnter: @ 8278197
+ .string "Please enter.$"
+
+CableClub_Text_DirectYouToYourRoom: @ 82781A5
+ .string "I'll direct you to your room now.$"
+
+Text_SomeoneIsNotReadyToLink: @ 82781C7
+ .string "Someone is not ready to link.\p"
+ .string "Please come back after everyone\n"
+ .string "has made preparations.$"
+
+Text_LinkErrorPleaseReset: @ 827821C
+ .string "Sorry, we have a link error…\n"
+ .string "Please reset and try again.$"
+
+Text_PlayersMadeDifferentSelections: @ 8278255
+ .string "The link partners appear to have\n"
+ .string "made different selections.$"
+
+CableClub_Text_PleaseVisitAgain: @ 8278291
+ .string "Please do visit again.$"
+
+CableClub_Text_IncorrectNumberOfParticipants: @ 82782A8
+ .string "The number of participants is\n"
+ .string "incorrect.$"
+
+CableClub_Text_CantSingleBattleWithXPlayers: @ 82782D1
+ .string "The SINGLE BATTLE Mode can't be\n"
+ .string "played by {STR_VAR_1} players.$"
+
+CableClub_Text_CantDoubleBattleWithXPlayers: @ 8278307
+ .string "The DOUBLE BATTLE Mode can't be\n"
+ .string "played by {STR_VAR_1} players.$"
+
+CableClub_Text_NeedFourPlayers: @ 827833D
+ .string "There must be four players to play\n"
+ .string "this Battle Mode.$"
+
+CableClub_Text_PleaseConfirmNumberAndRestart: @ 8278372
+ .string "Please confirm the number of\n"
+ .string "players and start again.$"
+
+Text_TerminateLinkConfirmation: @ 82783A8
+ .string "The link will be terminated if you\n"
+ .string "leave the room. Is that okay?$"
+
+Text_TerminateLinkPleaseWait: @ 82783E9
+ .string "Terminating link…\n"
+ .string "You will be escorted out of\l"
+ .string "the room. Please wait.$"
+
+CableClub_Text_TooBusyToNotice: @ 827842E
+ .string "This TRAINER is too busy to\n"
+ .string "notice…$"
+
+CableClub_Text_GotToLookAtTrainerCard: @ 8278452
+ .string "Score! Got to look at {STR_VAR_1}'s\n"
+ .string "TRAINER CARD!$"
+
+CableClub_Text_GotToLookAtColoredTrainerCard: @ 827847B
+ .string "Score! Got to look at {STR_VAR_1}'s\n"
+ .string "TRAINER CARD!\p"
+ .string "It's a {STR_VAR_2} card!$"
+
+SingleBattleColosseum_Text_TakePlaceStartBattle: @ 82784B4
+ .string "Please take your place and start\n"
+ .string "your battle.$"
+
+TradeCenter_Text_TakeSeatStartTrade: @ 82784E2
+ .string "Please take your seat and start\n"
+ .string "your trade.$"
+
+RecordCorner_Text_ThanksForComing: @ 827850E
+ .string "Thanks for coming.$"
+
+CableClub_Text_TrainerCardDataOverwritten: @ 8278521
+ .string "The TRAINER CARD data will\n"
+ .string "be overwritten.$"
+
+CableClub_Text_HopeToSeeYouAgain: @ 827854C
+ .string "I hope to see you again!$"
+
+CableClub_Text_NotSetUpForFarAwayRegion: @ 8278565
+ .string "I'm awfully sorry.\p"
+ .string "We're not set up to conduct trades\n"
+ .string "with TRAINERS far away in another\l"
+ .string "region yet…$"
+
+CableClub_Text_OtherTrainerNotReady: @ 82785C9
+ .string "The other TRAINER is not ready.$"
+
+CableClub_Text_YouHaveAMonThatCantBeTaken: @ 82785E9
+ .string "You have at least one POKéMON\n"
+ .string "that can't be taken.$"
+
+RecordCorner_Text_TakeSeatAndWait: @ 827861C
+ .string "Please take your seat and wait.$"
+
+RecordCorner_Text_PlayerSentOverOneX: @ 827863C
+ .string "{STR_VAR_1} sent over one\n"
+ .string "{STR_VAR_2}.$"
+
+CableClub_Text_CantMixWithJapaneseGame: @ 8278651
+ .string "Sorry, there is a transmission error.\p"
+ .string "You may not mix records with \n"
+ .string "Japanese Ruby or Sapphire games.\p"
+ .string "Also, you can't mix records with\n"
+ .string "Japanese Emerald and overseas Ruby\l"
+ .string "or Sapphire games at the same time.$"
+
+CableClub_Text_AdapterNotConnected: @ 827871F
+ .string "The Wireless Adapter is not\n"
+ .string "connected properly.$"
+
+CableClub_Text_ParticipantsStepUpToCounter: @ 827874F
+ .string "Participants are asked to step up\n"
+ .string "to the reception counter.$"
+
+@ Unused
+CableClub_Text_Hello: @ 827878B
+ .string "Hello!$"
+
+@ Unused
+CableClub_Text_PleaseWait: @ 8278792
+ .string "Please wait.$"
+
+CableClub_Text_YouMayTradeHere:: @ 827879F
+ .string "You may trade your POKéMON here\n"
+ .string "with another TRAINER.$"
+
+CableClub_Text_YouMayBattleHere:: @ 82787D5
+ .string "You may battle with your friends\n"
+ .string "here.$"
+
+CableClub_Text_CanMakeBerryPowder:: @ 82787FC
+ .string "Two to five TRAINERS can make\n"
+ .string "BERRY POWDER together.$"
+
+CableClub_Text_CanMixRecords:: @ 8278831
+ .string "The records of two to four players\n"
+ .string "can be mixed together.$"
+
+OldaleTown_PokemonCenter_2F_Text_27886B: @ 827886B
+ .string "A guide to the WIRELESS CLUB's\n"
+ .string "various services.$"
+
+CableClub_Text_CancelSelectedItem:: @ 827889C
+ .string "Cancels the selected MENU item.$"
+
+OldaleTown_PokemonCenter_2F_Text_2788BC: @ 82788BC
+ .string "Which battle mode would you like?$"
+
+@ Unused
+CableClub_Text_ReturnsToPreviousStep: @ 82788DE
+ .string "Returns to the previous step.$"
+
+CableClub_Text_NeedBerryForBerryCrush: @ 82788FC
+ .string "To use the BERRY CRUSH service,\n"
+ .string "you must have at least one BERRY.$"
+
+CableClub_Text_NeedTwoMonsForUnionRoom: @ 827893E
+ .string "To enter the UNION ROOM, you must\n"
+ .string "have at least two POKéMON.$"
+
+CableClub_Text_NoEnigmaBerryInUnionRoom: @ 827897B
+ .string "No POKéMON holding the {STR_VAR_1}\n"
+ .string "BERRY may enter the UNION ROOM.$"
+
+CableClub_Text_UnionRoomAdapterNotConnected: @ 82789B5
+ .string "This is the POKéMON WIRELESS CLUB\n"
+ .string "UNION ROOM.\p"
+ .string "Unfortunately, your Wireless\n"
+ .string "Adapter is not connected properly.\p"
+ .string "Please do come again.$"
+
+@ Unused
+CableClub_Text_OhExcuseMe: @ 8278A39
+ .string "Oh…\n"
+ .string "Excuse me!$"
+
+CableClub_Text_PlayerIsWaiting: @ 8278A48
+ .string "It appears as if {STR_VAR_1} is playing\n"
+ .string "right now.\l"
+ .string "Go for it!$"
+
+MossdeepCity_GameCorner_1F_Text_DescribeWhichGame: @ 8278A7D
+ .string "I can explain game rules to you,\n"
+ .string "if you'd like.\p"
+ .string "Which game should I describe?$"
+
+MossdeepCity_GameCorner_1F_Text_PokemonJumpInfo: @ 8278ACB
+ .string "“POKéMON JUMP”\p"
+ .string "Make your POKéMON skip the VINE WHIP\n"
+ .string "rope with the A Button.\p"
+ .string "Only mini POKéMON around 28 inches\n"
+ .string "or less may participate.\p"
+ .string "POKéMON that only swim, burrow,\n"
+ .string "or fly are not good at jumping.\p"
+ .string "As a result, those POKéMON may not\n"
+ .string "participate.\p"
+ .string "Good things happen if everyone\n"
+ .string "jumps in time.$"
+
+MossdeepCity_GameCorner_1F_Text_DodrioBerryPickingInfo: @ 8278BF1
+ .string "“DODRIO BERRY-PICKING”\p"
+ .string "Command DODRIO's three heads to\n"
+ .string "catch falling BERRIES.\p"
+ .string "Press right, up, or left on the\n"
+ .string "{PLUS} Control Pad to move the heads.\p"
+ .string "To play this game, you must have\n"
+ .string "a DODRIO.$"
+
+MossdeepCity_GameCorner_1F_Text_TalkToOldManToPlay: @ 8278CAC
+ .string "If you want to play a game,\n"
+ .string "please tell the old man beside me.$"
+
+MossdeepCity_GameCorner_1F_Text_WelcomeCanYouWait: @ 8278CEB
+ .string "Hi, welcome!\n"
+ .string "Are you here to play games using\l"
+ .string "Wireless Communication?\p"
+ .string "Can you wait just a little bit?$"
+
+MossdeepCity_GameCorner_1F_Text_ComeAgain: @ 8278D51
+ .string "All right, come again!$"
+
+MossdeepCity_GameCorner_1F_Text_AdapterNotConnected: @ 8278D68
+ .string "The Wireless Adapter isn't connected.\n"
+ .string "Come back when it's hooked up!$"
+
+MossdeepCity_GameCorner_1F_Text_PlayWhichGame: @ 8278DAD
+ .string "All right, which game did you want\n"
+ .string "to play?$"
+
+MossdeepCity_GameCorner_1F_Text_EnterWhichPokemon: @ 8278DD9
+ .string "Which POKéMON would you like to\n"
+ .string "enter?$"
+
+MossdeepCity_GameCorner_1F_Text_AllGoodToGo: @ 8278E00
+ .string "Okay, you're all good to go.\n"
+ .string "Don't let the others beat you!$"
+
+@ Unused
+MossdeepCity_GameCorner_1F_Text_LeavingDoComeAgain: @ 8278E3C
+ .string "Are you leaving now?\n"
+ .string "Do come again!$"
+
+MossdeepCity_GameCorner_1F_Text_ExplainRequiredMon: @ 8278E60
+ .string "It doesn't look like you have any\n"
+ .string "POKéMON that you can enter…\p"
+ .string "Would you like me to explain what\n"
+ .string "kinds of POKéMON can enter?$"
+
+MossdeepCity_GameCorner_1F_Text_ShortJumpingPokemonAllowed: @ 8278EDC
+ .string "“POKéMON JUMP” is open to POKéMON\n"
+ .string "around 28 inches or less.\p"
+ .string "What you can't enter are those\n"
+ .string "POKéMON that can't jump.\p"
+ .string "You know, like POKéMON that only\n"
+ .string "swim, burrow, or fly.\p"
+ .string "That's all you need to know.$"
+
+MossdeepCity_GameCorner_1F_Text_OnlyDodrioAllowed: @ 8278FA4
+ .string "DODRIO BERRY-PICKING is a game that \n"
+ .string "only DODRIO may enter.$"
+
+@ Unused
+MossdeepCity_GameCorner_1F_Text_RetryPlease: @ 8278FE0
+ .string "Could you retry this from the start\n"
+ .string "again, please?$"
+
+CableClub_Text_WelcomeWhichDirectCornerRoom: @ 8279013
+ .string "Welcome to the POKéMON WIRELESS\n"
+ .string "CLUB DIRECT CORNER.\p"
+ .string "You may interact directly with\n"
+ .string "your friends here.\p"
+ .string "Which room would you like to\n"
+ .string "enter?$"
+
+CableClub_Text_TradePokemon: @ 827909D
+ .string "Would you like to trade POKéMON?$"
+
+CableClub_Text_WhichBattleMode: @ 82790BE
+ .string "Which Battle Mode would you like\n"
+ .string "to play?$"
+
+CableClub_Text_AccessRecordCorner: @ 82790E8
+ .string "Would you like to access\n"
+ .string "the RECORD CORNER?$"
+
+CableClub_Text_UseBerryCrush: @ 8279114
+ .string "Would you like to use the\n"
+ .string "BERRY CRUSH System?$"
+
+CableClub_Text_ExplainBattleModes: @ 8279142
+ .string "There are three Battle Modes.\p"
+ .string "SINGLE BATTLE is for two TRAINERS\n"
+ .string "with one or more POKéMON each.\p"
+ .string "Each TRAINER can have one POKéMON\n"
+ .string "in battle at a time.\p"
+ .string "DOUBLE BATTLE is for two TRAINERS\n"
+ .string "with two or more POKéMON each.\p"
+ .string "Each TRAINER will send out two\n"
+ .string "POKéMON in battle at a time.\p"
+ .string "MULTI BATTLE is for four TRAINERS\n"
+ .string "with one or more POKéMON each.\p"
+ .string "Each TRAINER can have one POKéMON\n"
+ .string "in battle at a time.$"
+
+CableClub_Text_ChooseGroupLeaderOfTwo: @ 82792CD
+ .string "Please decide which of you two\n"
+ .string "will become the LEADER.\p"
+ .string "The other player must then choose\n"
+ .string "“JOIN GROUP.”$"
+
+CableClub_Text_ChooseGroupLeaderOfFour: @ 8279334
+ .string "Please decide which of you four\n"
+ .string "will become the GROUP LEADER.\p"
+ .string "The other players must then choose\n"
+ .string "“JOIN GROUP.”$"
+
+CableClub_Text_ChooseGroupLeader: @ 82793A3
+ .string "Please decide which of you will\n"
+ .string "become the GROUP LEADER.\p"
+ .string "The other players must then choose\n"
+ .string "“JOIN GROUP.”$"
+
+CableClub_Text_WelcomeUnionRoomEnter: @ 827940D
+ .string "Welcome to the POKéMON WIRELESS\n"
+ .string "CLUB UNION ROOM.\p"
+ .string "You may interact directly with\n"
+ .string "other TRAINERS here, some of\l"
+ .string "whom you may not even know.\p"
+ .string "Would you like to enter the ROOM?$"
+
+CableClub_Text_UnionRoomInfo: @ 82794B8
+ .string "The TRAINERS in the UNION ROOM\n"
+ .string "will be those players around you\l"
+ .string "who have also entered the ROOM.\p"
+ .string "You may do all sorts of things\n"
+ .string "here, such as exchanging greetings.\p"
+ .string "You may enter two POKéMON up to\n"
+ .string "Lv. 30 for a one-on-one battle.\p"
+ .string "You may take part in a chat with\n"
+ .string "two to five people.\p"
+ .string "Or, you may register a POKéMON for\n"
+ .string "trade.\p"
+ .string "Would you like to enter the ROOM?$"
+
+CableClub_Text_EnjoyUnionRoom: @ 827961C
+ .string "I hope you enjoy your time in\n"
+ .string "the UNION ROOM.$"
+
+CableClub_Text_FirstTimeRightThisWay: @ 827964A
+ .string "Hello!\n"
+ .string "My name is TEALA.\p"
+ .string "This must be your first time\n"
+ .string "up here.\p"
+ .string "I'll show you how the Wireless\n"
+ .string "Communication System works.\p"
+ .string "First, I need to show you this\n"
+ .string "floor of our POKéMON CENTER.\p"
+ .string "Right this way, please.$"
+
+CableClub_Text_ExplainWirelessClubFirstTime: @ 8279718
+ .string "On the top floor, there are two\n"
+ .string "rooms.\p"
+ .string "First, the room on the left.\n"
+ .string "It's the UNION ROOM.\p"
+ .string "You may link up with TRAINERS\n"
+ .string "around you who have also entered\l"
+ .string "the UNION ROOM.\p"
+ .string "With them, you may do things like\n"
+ .string "chat, battle, and trade.\p"
+ .string "Second, the room on the right is\n"
+ .string "the DIRECT CORNER.\p"
+ .string "You may trade or battle POKéMON\n"
+ .string "with your friends in this room.\p"
+ .string "If the Wireless Adapter isn't\n"
+ .string "connected, you may still link up\l"
+ .string "using a GBA Game Link cable.\p"
+ .string "If that is the case, you must go\n"
+ .string "to the DIRECT CORNER.\p"
+ .string "I hope you enjoy the Wireless \n"
+ .string "Communication System.$"
+
+CableClub_Text_AskAboutLinking: @ 8279937
+ .string "Hello, {PLAYER}!\p"
+ .string "It's me, TEALA, the POKéMON\n"
+ .string "CENTER 2F attendant.\p"
+ .string "Is there something you needed to\n"
+ .string "ask me about linking?$"
+
+CableClub_Text_ExplainWirelessClub: @ 82799AA
+ .string "Let me explain how the POKéMON\n"
+ .string "WIRELESS CLUB works.\p"
+ .string "On this, the top floor, there are\n"
+ .string "two rooms.\p"
+ .string "First, the room on the left.\n"
+ .string "It's the UNION ROOM.\p"
+ .string "You may link up with TRAINERS\n"
+ .string "around you who have also entered\l"
+ .string "the UNION ROOM.\p"
+ .string "With them, you may do things like\n"
+ .string "chat, battle, and trade.\p"
+ .string "Second, the room on the right is\n"
+ .string "the DIRECT CORNER.\p"
+ .string "You may trade or battle POKéMON\n"
+ .string "with your friends in this room.\p"
+ .string "Sometimes, you may not be able to\n"
+ .string "find your friends in the UNION ROOM\l"
+ .string "or the DIRECT CORNER.\p"
+ .string "In that case, please move closer\n"
+ .string "to your friends.\p"
+ .string "If the Wireless Adapter isn't\n"
+ .string "connected, you may still link up\l"
+ .string "using a GBA Game Link cable.\p"
+ .string "If that is the case, you must go\n"
+ .string "to the DIRECT CORNER.\p"
+ .string "I hope you enjoy the Wireless \n"
+ .string "Communication System.$"
+
+CableClub_Text_HopeYouEnjoyWirelessSystem: @ 8279C91
+ .string "I hope you enjoy the Wireless\n"
+ .string "Communication System.$"
diff --git a/data/text/mevent.inc b/data/text/mevent.inc
index 44c456f1c..ae4032eb4 100644
--- a/data/text/mevent.inc
+++ b/data/text/mevent.inc
@@ -1,14 +1,14 @@
-gText_FillOutQuestionnaire:: @ 827339F
+Mevent_Text_FillOutQuestionnaire:: @ 827339F
.string "There is a questionnaire.\n"
.string "Would you like to fill it out?$"
-gText_ThankYouForTakingQuestionnaire:: @ 82733D8
+Mevent_Text_QuestionnaireThankYou:: @ 82733D8
.string "Thank you for taking the time to\n"
.string "fill out our questionnaire.\p"
.string "Your feedback will be used for\n"
.string "future reference.$"
-gUnknown_08273446:: @ 8273446
+Mevent_Text_YouKnowThoseWordsGift:: @ 8273446
.string "Oh, hello!\n"
.string "You know those words?\p"
.string "That means you must know about\n"
@@ -16,27 +16,27 @@ gUnknown_08273446:: @ 8273446
.string "From now on, you should be\n"
.string "receiving MYSTERY GIFTS!$"
-gUnknown_082734CC:: @ 82734CC
+Mevent_Text_YouCanAccessMysteryGift:: @ 82734CC
.string "Once you save your game, you can\n"
.string "access the MYSTERY GIFT.$"
-gUnknown_08273506:: @ 8273506
+Mevent_Text_YouKnowThoseWordsEvent:: @ 8273506
.string "Oh, hello!\n"
.string "You know those words?\p"
.string "That means you must know about\n"
.string "the MYSTERY EVENT.$"
-gUnknown_08273559:: @ 8273559
+Mevent_Text_YouCanAccessMysteryEvent:: @ 8273559
.string "Once you save your game, you can\n"
.string "access the MYSTERY EVENT.$"
-gUnknown_08273594:: @ 8273594
+Mevent_Text_TheresATicketForYou:: @ 8273594
.string "Thank you for using the MYSTERY\n"
.string "EVENT System.\p"
.string "You must be {PLAYER}.\n"
.string "There is a ticket here for you.$"
-gUnknown_082735F2:: @ 82735F2
+Mevent_Text_TryUsingItAtLilycovePort:: @ 82735F2
.string "It appears to be for use at\n"
.string "the LILYCOVE CITY port.\p"
.string "Why not give it a try and see what\n"
diff --git a/data/text/move_tutors.inc b/data/text/move_tutors.inc
index 6f3910b80..baadad73d 100644
--- a/data/text/move_tutors.inc
+++ b/data/text/move_tutors.inc
@@ -1,8 +1,8 @@
-MauvilleCity_Text_2C6E05: @ 82C6E05
+MoveTutor_Text_ThisMoveCanOnlyBeLearnedOnce: @ 82C6E05
.string "This move can be learned only\n"
.string "once. Is that okay?$"
-SlateportCity_PokemonFanClub_Text_2C6E37: @ 82C6E37
+MoveTutor_Text_SwaggerTeach: @ 82C6E37
.string "Heh! My POKéMON totally rules!\n"
.string "It's cooler than any POKéMON!\p"
.string "I was lipping off with a swagger in\n"
@@ -12,19 +12,19 @@ SlateportCity_PokemonFanClub_Text_2C6E37: @ 82C6E37
.string "If you'd like, I'll teach the move\n"
.string "SWAGGER to a POKéMON of yours.$"
-SlateportCity_PokemonFanClub_Text_2C6F33: @ 82C6F33
+MoveTutor_Text_SwaggerDeclined: @ 82C6F33
.string "What, no? Can't you get into\n"
.string "the spirit of things?$"
-SlateportCity_PokemonFanClub_Text_2C6F66: @ 82C6F66
+MoveTutor_Text_SwaggerWhichMon: @ 82C6F66
.string "All right, which POKéMON wants to\n"
.string "learn how to SWAGGER?$"
-SlateportCity_PokemonFanClub_Text_2C6F9E: @ 82C6F9E
+MoveTutor_Text_SwaggerTaught: @ 82C6F9E
.string "I'll just praise my POKéMON from now\n"
.string "on without the swagger.$"
-MauvilleCity_Text_2C6FDB: @ 82C6FDB
+MoveTutor_Text_RolloutTeach: @ 82C6FDB
.string "Did you know that you can go from\n"
.string "here a long way in that direction\l"
.string "without changing direction?\p"
@@ -35,19 +35,19 @@ MauvilleCity_Text_2C6FDB: @ 82C6FDB
.string "I can teach one the move ROLLOUT\n"
.string "if you'd like.$"
-MauvilleCity_Text_2C70C4: @ 82C70C4
+MoveTutor_Text_RolloutDeclined: @ 82C70C4
.string "You don't need to be shy about it.\n"
.string "Let's roll!$"
-MauvilleCity_Text_2C70F3: @ 82C70F3
+MoveTutor_Text_RolloutWhichMon: @ 82C70F3
.string "Ehehe, sure thing! It'd be great if\n"
.string "the POKéMON looked like me.$"
-MauvilleCity_Text_2C7133: @ 82C7133
+MoveTutor_Text_RolloutTaught: @ 82C7133
.string "Rolling around in the grass makes me\n"
.string "happy. Come on, let's roll!$"
-VerdanturfTown_PokemonCenter_1F_Text_2C7174: @ 82C7174
+MoveTutor_Text_FuryCutterTeach: @ 82C7174
.string "There's a move that gets stronger\n"
.string "when you keep using it in a row.\p"
.string "It's a BUG-type move, and it is\n"
@@ -55,18 +55,18 @@ VerdanturfTown_PokemonCenter_1F_Text_2C7174: @ 82C7174
.string "It's called FURY CUTTER.\n"
.string "Want me to teach it to a POKéMON?$"
-VerdanturfTown_PokemonCenter_1F_Text_2C7221: @ 82C7221
+MoveTutor_Text_FuryCutterDeclined: @ 82C7221
.string "We're not on the same wavelength.$"
-VerdanturfTown_PokemonCenter_1F_Text_2C7243: @ 82C7243
+MoveTutor_Text_FuryCutterWhichMon: @ 82C7243
.string "Yay!\n"
.string "Show me which POKéMON I should teach.$"
-VerdanturfTown_PokemonCenter_1F_Text_2C726E: @ 82C726E
+MoveTutor_Text_FuryCutterTaught: @ 82C726E
.string "I get a thrill watching to see if\n"
.string "the move keeps hitting in succession!$"
-LavaridgeTown_House_Text_2C72B6: @ 82C72B6
+MoveTutor_MimicTeach: @ 82C72B6
.string "Ah, young one!\p"
.string "I am also a young one, but I mimic\n"
.string "the styles and speech of the elderly\l"
@@ -75,21 +75,21 @@ LavaridgeTown_House_Text_2C72B6: @ 82C72B6
.string "Would you agree to it if I were to\l"
.string "offer to teach the move MIMIC?$"
-LavaridgeTown_House_Text_2C737F: @ 82C737F
+MoveTutor_MimicDeclined: @ 82C737F
.string "Oh, boo! I wanted to teach MIMIC\n"
.string "to your POKéMON!$"
-LavaridgeTown_House_Text_2C73B1: @ 82C73B1
+MoveTutor_Text_MimicWhichMon: @ 82C73B1
.string "Fwofwo! And so I shall!\n"
.string "Let me see the POKéMON\l"
.string "you wish me to teach.$"
-LavaridgeTown_House_Text_2C73F6: @ 82C73F6
+MoveTutor_Text_MimicTaught: @ 82C73F6
.string "MIMIC is a move of great depth.\p"
.string "Could you execute it to perfection\n"
.string "as well as me…?$"
-FallarborTown_Mart_Text_2C7449: @ 82C7449
+MoveTutor_Text_MetronomeTeach: @ 82C7449
.string "I want all sorts of things!\n"
.string "But I used up my allowance…\p"
.string "Wouldn't it be nice if there were\n"
@@ -100,22 +100,22 @@ FallarborTown_Mart_Text_2C7449: @ 82C7449
.string "Money won't appear, but your POKéMON\n"
.string "will waggle a finger. Yes?$"
-FallarborTown_Mart_Text_2C7556: @ 82C7556
+MoveTutor_Text_MetronomeDeclined: @ 82C7556
.string "Okay. I'll be here if you change\n"
.string "your mind.$"
-FallarborTown_Mart_Text_2C7582: @ 82C7582
+MoveTutor_Text_MetronomeWhichMon: @ 82C7582
.string "Okay! I'll teach it!\n"
.string "Which POKéMON should I teach?$"
-FallarborTown_Mart_Text_2C75B5: @ 82C75B5
+MoveTutor_Text_MetronomeTaught: @ 82C75B5
.string "When a POKéMON waggles its finger\n"
.string "like a METRONOME, all sorts of nice\l"
.string "things happen.\p"
.string "Wouldn't it be nice if we could\n"
.string "use it, too?$"
-FortreeCity_House2_Text_2C7637: @ 82C7637
+MoveTutor_Text_SleepTalkTeach: @ 82C7637
.string "Humph! My wife relies on HIDDEN\n"
.string "POWER to stay awake.\p"
.string "She should just take a nap like I do,\n"
@@ -123,21 +123,21 @@ FortreeCity_House2_Text_2C7637: @ 82C7637
.string "I can teach your POKéMON how to\n"
.string "SLEEP TALK instead. Interested?$"
-FortreeCity_House2_Text_2C76E2: @ 82C76E2
+MoveTutor_Text_SleepTalkDeclined: @ 82C76E2
.string "Oh, fine, fine. You want to stay awake\n"
.string "with HIDDEN POWER, too…$"
-FortreeCity_House2_Text_2C7721: @ 82C7721
+MoveTutor_Text_SleepTalkWhichMon: @ 82C7721
.string "Ah, an appreciative child!\n"
.string "Which POKéMON should I teach?$"
-FortreeCity_House2_Text_2C775A: @ 82C775A
+MoveTutor_Text_SleepTalkTaught: @ 82C775A
.string "I've never once gotten my wife's\n"
.string "coin trick right.\p"
.string "I would be happy if I got it right\n"
.string "even as I SLEEP TALK…$"
-LilycoveCity_DepartmentStoreRooftop_Text_2C77C6: @ 82C77C6
+MoveTutor_Text_SubstituteTeach: @ 82C77C6
.string "When I see the wide world from up\n"
.string "here on the roof…\p"
.string "I think about how nice it would be\n"
@@ -148,22 +148,22 @@ LilycoveCity_DepartmentStoreRooftop_Text_2C77C6: @ 82C77C6
.string "I know! Would you be interested in\n"
.string "having a POKéMON learn SUBSTITUTE?$"
-LilycoveCity_DepartmentStoreRooftop_Text_2C78D1: @ 82C78D1
+MoveTutor_Text_SubstituteDeclined: @ 82C78D1
.string "Oh, no?\p"
.string "A POKéMON can make a copy of\n"
.string "itself using it, you know.$"
-LilycoveCity_DepartmentStoreRooftop_Text_2C7911: @ 82C7911
+MoveTutor_Text_SubstituteWhichMon: @ 82C7911
.string "Giggle…\n"
.string "Which POKéMON do you want me to\l"
.string "teach SUBSTITUTE?$"
-LilycoveCity_DepartmentStoreRooftop_Text_2C794B: @ 82C794B
+MoveTutor_Text_SubstituteTaught: @ 82C794B
.string "We human beings should enjoy our\n"
.string "own lives to the utmost!\p"
.string "I hope you'll get that way, too!$"
-MossdeepCity_Text_2C79A6: @ 82C79A6
+MoveTutor_Text_DynamicPunchTeach: @ 82C79A6
.string "I can't do this anymore!\p"
.string "It's utterly hopeless!\p"
.string "I'm a FIGHTING-type TRAINER,\n"
@@ -176,19 +176,19 @@ MossdeepCity_Text_2C79A6: @ 82C79A6
.string "Or do you want me to teach your\n"
.string "POKéMON DYNAMICPUNCH?$"
-MossdeepCity_Text_2C7AD4: @ 82C7AD4
+MoveTutor_Text_DynamicPunchDeclined: @ 82C7AD4
.string "Darn! You're even making fun of me?\n"
.string "Punch! Punch! Punch!$"
-MossdeepCity_Text_2C7B0D: @ 82C7B0D
+MoveTutor_Text_DynamicPunchWhichMon: @ 82C7B0D
.string "What? You do? You're a good person!\n"
.string "Which POKéMON should I teach?$"
-MossdeepCity_Text_2C7B4F: @ 82C7B4F
+MoveTutor_Text_DynamicPunchTaught: @ 82C7B4F
.string "I want you to win at the MOSSDEEP GYM\n"
.string "using that DYNAMICPUNCH!$"
-SootopolisCity_PokemonCenter_1F_Text_2C7B8E: @ 82C7B8E
+MoveTutor_Text_DoubleEdgeTeach: @ 82C7B8E
.string "Sigh…\p"
.string "SOOTOPOLIS's GYM LEADER is really\n"
.string "lovably admirable.\p"
@@ -199,19 +199,19 @@ SootopolisCity_PokemonCenter_1F_Text_2C7B8E: @ 82C7B8E
.string "Please, let me teach your POKéMON\n"
.string "the move DOUBLE-EDGE!$"
-SootopolisCity_PokemonCenter_1F_Text_2C7C7E: @ 82C7C7E
+MoveTutor_Text_DoubleEdgeDeclined: @ 82C7C7E
.string "Oh…\n"
.string "Even you rejected me…$"
-SootopolisCity_PokemonCenter_1F_Text_2C7C98: @ 82C7C98
+MoveTutor_Text_DoubleEdgeWhichMon: @ 82C7C98
.string "Okay, which POKéMON should I teach\n"
.string "DOUBLE-EDGE?$"
-SootopolisCity_PokemonCenter_1F_Text_2C7CC8: @ 82C7CC8
+MoveTutor_Text_DoubleEdgeTaught: @ 82C7CC8
.string "I won't live for love anymore!\n"
.string "I'll become tough!$"
-PacifidlogTown_PokemonCenter_1F_Text_2C7CFA: @ 82C7CFA
+MoveTutor_Text_ExplosionTeach: @ 82C7CFA
.string "I don't intend to be going nowhere\n"
.string "fast in the sticks like this forever.\p"
.string "You watch me, I'll get out to the city\n"
@@ -221,15 +221,15 @@ PacifidlogTown_PokemonCenter_1F_Text_2C7CFA: @ 82C7CFA
.string "If you overheard that, I'll happily\n"
.string "teach EXPLOSION to your POKéMON!$"
-PacifidlogTown_PokemonCenter_1F_Text_2C7E04: @ 82C7E04
+MoveTutor_Text_ExplosionDeclined: @ 82C7E04
.string "Gaah! You're turning me down because\n"
.string "I live in the country?$"
-PacifidlogTown_PokemonCenter_1F_Text_2C7E40: @ 82C7E40
+MoveTutor_Text_ExplosionWhichMon: @ 82C7E40
.string "Fine! An EXPLOSION it is!\n"
.string "Which POKéMON wants to blow up?$"
-PacifidlogTown_PokemonCenter_1F_Text_2C7E7A: @ 82C7E7A
+MoveTutor_Text_ExplosionTaught: @ 82C7E7A
.string "For a long time, I've taught POKéMON\n"
.string "how to use EXPLOSION, but I've yet\l"
.string "to ignite my own EXPLOSION…\p"