summaryrefslogtreecommitdiff
path: root/data/maps/FiveIsland_RocketWarehouse/scripts.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/FiveIsland_RocketWarehouse/scripts.inc')
-rw-r--r--data/maps/FiveIsland_RocketWarehouse/scripts.inc173
1 files changed, 91 insertions, 82 deletions
diff --git a/data/maps/FiveIsland_RocketWarehouse/scripts.inc b/data/maps/FiveIsland_RocketWarehouse/scripts.inc
index 8382d4a72..dfcb6e43f 100644
--- a/data/maps/FiveIsland_RocketWarehouse/scripts.inc
+++ b/data/maps/FiveIsland_RocketWarehouse/scripts.inc
@@ -1,3 +1,12 @@
+.equ LOCALID_GRUNT1, 5
+.equ LOCALID_GRUNT2, 1
+.equ LOCALID_GRUNT3, 2
+.equ LOCALID_ADMIN1, 3
+.equ LOCALID_ADMIN2, 4
+
+.equ PLAYER_X_POS, VAR_0x8004
+.equ PLAYER_Y_POS, VAR_0x8005
+
FiveIsland_RocketWarehouse_MapScripts:: @ 8163F2E
map_script MAP_SCRIPT_ON_LOAD, FiveIsland_RocketWarehouse_OnLoad
map_script MAP_SCRIPT_ON_TRANSITION, FiveIsland_RocketWarehouse_OnTransition
@@ -8,82 +17,82 @@ FiveIsland_RocketWarehouse_OnTransition:: @ 8163F39
end
FiveIsland_RocketWarehouse_OnLoad:: @ 8163F3D
- call_if_defeated TRAINER_TEAM_ROCKET_ADMIN, EventScript_163F47
+ call_if_defeated TRAINER_TEAM_ROCKET_ADMIN, FiveIsland_RocketWarehouse_EventScript_SetArrowsForReEntry
end
-EventScript_163F47:: @ 8163F47
- setmetatile 26, 20, 672, 0
- setmetatile 27, 20, 672, 0
+FiveIsland_RocketWarehouse_EventScript_SetArrowsForReEntry:: @ 8163F47
+ setmetatile 26, 20, METATILE_Hideout_Arrow_Up, 0
+ setmetatile 27, 20, METATILE_Hideout_Arrow_Up, 0
return
-FiveIsland_RocketWarehouse_EventScript_163F5A:: @ 8163F5A
+FiveIsland_RocketWarehouse_EventScript_Cage:: @ 8163F5A
lockall
- goto_if_set FLAG_DEFEATED_ROCKETS_IN_WAREHOUSE, EventScript_163F6E
- msgbox gUnknown_817B4E3
+ goto_if_set FLAG_DEFEATED_ROCKETS_IN_WAREHOUSE, FiveIsland_RocketWarehouse_EventScript_CageUnlocked
+ msgbox FiveIsland_RocketWarehouse_Text_ManyMonsLockedInPen
releaseall
end
-EventScript_163F6E:: @ 8163F6E
- msgbox gUnknown_817B512
+FiveIsland_RocketWarehouse_EventScript_CageUnlocked:: @ 8163F6E
+ msgbox FiveIsland_RocketWarehouse_Text_PenUnlockedMonsFled
releaseall
end
-FiveIsland_RocketWarehouse_EventScript_163F78:: @ 8163F78
- msgbox gUnknown_817BB15, MSGBOX_SIGN
+FiveIsland_RocketWarehouse_EventScript_Computer:: @ 8163F78
+ msgbox FiveIsland_RocketWarehouse_Text_ReportWithGraphsAndText, MSGBOX_SIGN
end
-FiveIsland_RocketWarehouse_EventScript_163F81:: @ 8163F81
+FiveIsland_RocketWarehouse_EventScript_Admin2Trigger:: @ 8163F81
lockall
- applymovement 4, Movement_WalkInPlaceFastestLeft
+ applymovement LOCALID_ADMIN2, Movement_WalkInPlaceFastestLeft
waitmovement 0
setvar VAR_MAP_SCENE_ROCKET_WAREHOUSE, 1
releaseall
end
-FiveIsland_RocketWarehouse_EventScript_163F93:: @ 8163F93
- trainerbattle_single TRAINER_SCIENTIST_GIDEON, Text_17BBAF, Text_17BC55, EventScript_163FCD
- goto_if_set FLAG_SYS_CAN_LINK_WITH_RS, EventScript_163FB7
- msgbox gUnknown_817BCA3, MSGBOX_AUTOCLOSE
+FiveIsland_RocketWarehouse_EventScript_Gideon:: @ 8163F93
+ trainerbattle_single TRAINER_SCIENTIST_GIDEON, FiveIsland_RocketWarehouse_Text_GideonIntro, FiveIsland_RocketWarehouse_Text_GideonDefeat, FiveIsland_RocketWarehouse_EventScript_DefeatedGideon
+ goto_if_set FLAG_SYS_CAN_LINK_WITH_RS, FiveIsland_RocketWarehouse_EventScript_MentionGiovannisKid
+ msgbox FiveIsland_RocketWarehouse_Text_GetLostLeaveMeBe, MSGBOX_AUTOCLOSE
end
-EventScript_163FB7:: @ 8163FB7
+FiveIsland_RocketWarehouse_EventScript_MentionGiovannisKid:: @ 8163FB7
famechecker FAMECHECKER_GIOVANNI, 5
- msgbox gUnknown_817BCD7, MSGBOX_AUTOCLOSE
+ msgbox FiveIsland_RocketWarehouse_Text_GiovannisKidHasRedHair, MSGBOX_AUTOCLOSE
end
-EventScript_163FCD:: @ 8163FCD
- msgbox gUnknown_817BC6C
+FiveIsland_RocketWarehouse_EventScript_DefeatedGideon:: @ 8163FCD
+ msgbox FiveIsland_RocketWarehouse_Text_GideonPostBattle
setflag FLAG_RECOVERED_SAPPHIRE
giveitem ITEM_SAPPHIRE
release
end
-FiveIsland_RocketWarehouse_EventScript_163FE6:: @ 8163FE6
- trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_47, Text_17B54D, Text_17B585
- msgbox gUnknown_817B5A6, MSGBOX_AUTOCLOSE
+FiveIsland_RocketWarehouse_EventScript_Grunt2:: @ 8163FE6
+ trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_47, FiveIsland_RocketWarehouse_Text_Grunt2Intro, FiveIsland_RocketWarehouse_Text_Grunt2Defeat
+ msgbox FiveIsland_RocketWarehouse_Text_Grunt2PostBattle, MSGBOX_AUTOCLOSE
end
-FiveIsland_RocketWarehouse_EventScript_163FFD:: @ 8163FFD
- trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_48, Text_17B677, Text_17B6D9
- msgbox gUnknown_817B6EF, MSGBOX_AUTOCLOSE
+FiveIsland_RocketWarehouse_EventScript_Grunt3:: @ 8163FFD
+ trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_48, FiveIsland_RocketWarehouse_Text_Grunt3Intro, FiveIsland_RocketWarehouse_Text_Grunt3Defeat
+ msgbox FiveIsland_RocketWarehouse_Text_Grunt3PostBattle, MSGBOX_AUTOCLOSE
end
-FiveIsland_RocketWarehouse_EventScript_164014:: @ 8164014
- trainerbattle_single TRAINER_TEAM_ROCKET_ADMIN_2, Text_17B8DA, Text_17B9FB, EventScript_16402F
- msgbox gUnknown_817BA64, MSGBOX_AUTOCLOSE
+FiveIsland_RocketWarehouse_EventScript_Admin2:: @ 8164014
+ trainerbattle_single TRAINER_TEAM_ROCKET_ADMIN_2, FiveIsland_RocketWarehouse_Text_Admin2Intro, FiveIsland_RocketWarehouse_Text_Admin2Defeat, FiveIsland_RocketWarehouse_EventScript_DefeatedAdmin2
+ msgbox FiveIsland_RocketWarehouse_Text_Admin2PostBattle, MSGBOX_AUTOCLOSE
end
-EventScript_16402F:: @ 816402F
- getplayerxy VAR_0x8004, VAR_0x8005
- compare VAR_0x8004, 24
- call_if_le EventScript_164065
- msgbox gUnknown_817BA64
+FiveIsland_RocketWarehouse_EventScript_DefeatedAdmin2:: @ 816402F
+ getplayerxy PLAYER_X_POS, PLAYER_Y_POS
+ compare PLAYER_X_POS, 24
+ call_if_le FiveIsland_RocketWarehouse_EventScript_PlayerFaceAdmin2
+ msgbox FiveIsland_RocketWarehouse_Text_Admin2PostBattle
closemessage
fadescreen FADE_TO_BLACK
- removeobject 1
- removeobject 2
- removeobject 4
- removeobject 3
+ removeobject LOCALID_GRUNT2
+ removeobject LOCALID_GRUNT3
+ removeobject LOCALID_ADMIN2
+ removeobject LOCALID_ADMIN1
setflag FLAG_HIDE_FIVE_ISLAND_ROCKETS
fadescreen FADE_FROM_BLACK
setvar VAR_MAP_SCENE_ROCKET_WAREHOUSE, 1
@@ -91,91 +100,91 @@ EventScript_16402F:: @ 816402F
release
end
-EventScript_164065:: @ 8164065
+FiveIsland_RocketWarehouse_EventScript_PlayerFaceAdmin2:: @ 8164065
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
waitmovement 0
return
-FiveIsland_RocketWarehouse_EventScript_164070:: @ 8164070
- trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_42, Text_17B5D6, Text_17B62F
- msgbox gUnknown_817B642, MSGBOX_AUTOCLOSE
+FiveIsland_RocketWarehouse_EventScript_Grunt1:: @ 8164070
+ trainerbattle_single TRAINER_TEAM_ROCKET_GRUNT_42, FiveIsland_RocketWarehouse_Text_Grunt1Intro, FiveIsland_RocketWarehouse_Text_Grunt1Defeat
+ msgbox FiveIsland_RocketWarehouse_Text_Grunt1PostBattle, MSGBOX_AUTOCLOSE
end
-FiveIsland_RocketWarehouse_EventScript_164087:: @ 8164087
- trainerbattle_single TRAINER_TEAM_ROCKET_ADMIN, Text_17B72D, Text_17B79C, EventScript_1640A2
- msgbox gUnknown_817B7FA, MSGBOX_AUTOCLOSE
+FiveIsland_RocketWarehouse_EventScript_Admin1:: @ 8164087
+ trainerbattle_single TRAINER_TEAM_ROCKET_ADMIN, FiveIsland_RocketWarehouse_Text_Admin1Intro, FiveIsland_RocketWarehouse_Text_Admin1Defeat, FiveIsland_RocketWarehouse_EventScript_DefeatedAdmin1
+ msgbox FiveIsland_RocketWarehouse_Text_MadeItSoYouCanComeBackThrough, MSGBOX_AUTOCLOSE
end
-EventScript_1640A2:: @ 81640A2
- getplayerxy VAR_0x8004, VAR_0x8005
+FiveIsland_RocketWarehouse_EventScript_DefeatedAdmin1:: @ 81640A2
+ getplayerxy PLAYER_X_POS, PLAYER_Y_POS
specialvar VAR_RESULT, GetPlayerFacingDirection
compare VAR_RESULT, DIR_NORTH
- call_if_eq EventScript_16412E
- msgbox gUnknown_817B7AE
+ call_if_eq FiveIsland_RocketWarehouse_EventScript_PlayerFaceAdmin1
+ msgbox FiveIsland_RocketWarehouse_Text_Admin1PostBattle
closemessage
- compare VAR_0x8004, 24
- call_if_le EventScript_164144
- compare VAR_0x8004, 25
- call_if_eq EventScript_16414F
- compare VAR_0x8004, 26
- call_if_eq EventScript_16415A
- compare VAR_0x8004, 27
- call_if_eq EventScript_16415A
+ compare PLAYER_X_POS, 24
+ call_if_le FiveIsland_RocketWarehouse_EventScript_AdminWalkToSwitchFar
+ compare PLAYER_X_POS, 25
+ call_if_eq FiveIsland_RocketWarehouse_EventScript_AdminWalkToSwitch
+ compare PLAYER_X_POS, 26
+ call_if_eq FiveIsland_RocketWarehouse_EventScript_AdminFaceSwitch
+ compare PLAYER_X_POS, 27
+ call_if_eq FiveIsland_RocketWarehouse_EventScript_AdminFaceSwitch
playse SE_PIN
- call EventScript_163F47
+ call FiveIsland_RocketWarehouse_EventScript_SetArrowsForReEntry
special DrawWholeMapView
waitse
- compare VAR_0x8004, 24
- call_if_le EventScript_164165
- compare VAR_0x8004, 25
- call_if_eq EventScript_164165
- compare VAR_0x8004, 26
- call_if_eq EventScript_164165
- compare VAR_0x8004, 27
- call_if_eq EventScript_164170
- msgbox gUnknown_817B7FA
+ compare PLAYER_X_POS, 24
+ call_if_le FiveIsland_RocketWarehouse_EventScript_AdminFacePlayerLeft
+ compare PLAYER_X_POS, 25
+ call_if_eq FiveIsland_RocketWarehouse_EventScript_AdminFacePlayerLeft
+ compare PLAYER_X_POS, 26
+ call_if_eq FiveIsland_RocketWarehouse_EventScript_AdminFacePlayerLeft
+ compare PLAYER_X_POS, 27
+ call_if_eq FiveIsland_RocketWarehouse_EventScript_AdminFacePlayerDown
+ msgbox FiveIsland_RocketWarehouse_Text_MadeItSoYouCanComeBackThrough
release
end
-EventScript_16412E:: @ 816412E
- compare VAR_0x8004, 27
+FiveIsland_RocketWarehouse_EventScript_PlayerFaceAdmin1:: @ 816412E
+ compare PLAYER_X_POS, 27
goto_if_eq EventScript_Return
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
waitmovement 0
return
-EventScript_164144:: @ 8164144
- applymovement 3, Movement_16417B
+FiveIsland_RocketWarehouse_EventScript_AdminWalkToSwitchFar:: @ 8164144
+ applymovement LOCALID_ADMIN1, FiveIsland_RocketWarehouse_Movement_AdminWalkToSwitchFar
waitmovement 0
return
-EventScript_16414F:: @ 816414F
- applymovement 3, Movement_16417F
+FiveIsland_RocketWarehouse_EventScript_AdminWalkToSwitch:: @ 816414F
+ applymovement LOCALID_ADMIN1, FiveIsland_RocketWarehouse_Movement_AdminWalkToSwitch
waitmovement 0
return
-EventScript_16415A:: @ 816415A
- applymovement 3, Movement_WalkInPlaceFastestUp
+FiveIsland_RocketWarehouse_EventScript_AdminFaceSwitch:: @ 816415A
+ applymovement LOCALID_ADMIN1, Movement_WalkInPlaceFastestUp
waitmovement 0
return
-EventScript_164165:: @ 8164165
- applymovement 3, Movement_WalkInPlaceFastestLeft
+FiveIsland_RocketWarehouse_EventScript_AdminFacePlayerLeft:: @ 8164165
+ applymovement LOCALID_ADMIN1, Movement_WalkInPlaceFastestLeft
waitmovement 0
return
-EventScript_164170:: @ 8164170
- applymovement 3, Movement_WalkInPlaceFastestDown
+FiveIsland_RocketWarehouse_EventScript_AdminFacePlayerDown:: @ 8164170
+ applymovement LOCALID_ADMIN1, Movement_WalkInPlaceFastestDown
waitmovement 0
return
-Movement_16417B:: @ 816417B
+FiveIsland_RocketWarehouse_Movement_AdminWalkToSwitchFar:: @ 816417B
walk_right
walk_right
walk_in_place_fastest_up
step_end
-Movement_16417F:: @ 816417F
+FiveIsland_RocketWarehouse_Movement_AdminWalkToSwitch:: @ 816417F
walk_right
walk_in_place_fastest_up
step_end