summaryrefslogtreecommitdiff
path: root/data/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'data/scripts')
-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
22 files changed, 1003 insertions, 1618 deletions
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