summaryrefslogtreecommitdiff
path: root/data/maps/FarawayIsland_Interior/scripts.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/FarawayIsland_Interior/scripts.inc')
-rw-r--r--data/maps/FarawayIsland_Interior/scripts.inc72
1 files changed, 36 insertions, 36 deletions
diff --git a/data/maps/FarawayIsland_Interior/scripts.inc b/data/maps/FarawayIsland_Interior/scripts.inc
index 108bc12e6..bd2b479f7 100644
--- a/data/maps/FarawayIsland_Interior/scripts.inc
+++ b/data/maps/FarawayIsland_Interior/scripts.inc
@@ -1,17 +1,17 @@
-.set LOCALID_MEW, 1
+@ Note: LOCALID_FARAWAY_ISLAND_MEW is a local id for this map used elsewhere. It's defined in event_objects.h
-FarawayIsland_Interior_MapScripts:: @ 8267CFA
+FarawayIsland_Interior_MapScripts::
map_script MAP_SCRIPT_ON_RESUME, FarawayIsland_Interior_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, FarawayIsland_Interior_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, FarawayIsland_Interior_OnFrame
map_script MAP_SCRIPT_ON_RETURN_TO_FIELD, FarawayIsland_Interior_OnReturnToField
.byte 0
-FarawayIsland_Interior_OnReturnToField: @ 8267D0F
+FarawayIsland_Interior_OnReturnToField:
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, FarawayIsland_Interior_EventScript_TrySetMewAboveGrass
end
-FarawayIsland_Interior_EventScript_TrySetMewAboveGrass:: @ 8267D19
+FarawayIsland_Interior_EventScript_TrySetMewAboveGrass::
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq FarawayIsland_Interior_EventScript_SetMewAboveGrass
@@ -23,53 +23,53 @@ FarawayIsland_Interior_EventScript_TrySetMewAboveGrass:: @ 8267D19
goto_if_eq FarawayIsland_Interior_EventScript_SetMewAboveGrass
return
-FarawayIsland_Interior_EventScript_SetMewAboveGrass:: @ 8267D4B
+FarawayIsland_Interior_EventScript_SetMewAboveGrass::
setvar VAR_0x8004, 1
special SetMewAboveGrass
return
-FarawayIsland_Interior_OnResume: @ 8267D54
+FarawayIsland_Interior_OnResume:
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, FarawayIsland_Interior_EventScript_TryRemoveMew
end
-FarawayIsland_Interior_EventScript_TryRemoveMew:: @ 8267D5E
+FarawayIsland_Interior_EventScript_TryRemoveMew::
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject VAR_LAST_TALKED
return
-FarawayIsland_Interior_OnTransition: @ 8267D72
+FarawayIsland_Interior_OnTransition:
setvar VAR_FARAWAY_ISLAND_STEP_COUNTER, 0
setvar VAR_TEMP_1, 1
call_if_unset FLAG_CAUGHT_MEW, FarawayIsland_Interior_EventScript_TryShowMew
end
-FarawayIsland_Interior_EventScript_TryShowMew:: @ 8267D86
+FarawayIsland_Interior_EventScript_TryShowMew::
goto_if_set FLAG_DEFEATED_MEW, Common_EventScript_NopReturn
clearflag FLAG_HIDE_MEW
setvar VAR_TEMP_1, 0
return
-FarawayIsland_Interior_OnFrame: @ 8267D98
+FarawayIsland_Interior_OnFrame:
map_script_2 VAR_TEMP_1, 0, FarawayIsland_Interior_EventScript_FindMew
.2byte 0
-FarawayIsland_Interior_EventScript_FindMew:: @ 8267DA2
+FarawayIsland_Interior_EventScript_FindMew::
lockall
playse SE_PIN
- applymovement LOCALID_MEW, Common_Movement_ExclamationMark
+ applymovement LOCALID_FARAWAY_ISLAND_MEW, Common_Movement_ExclamationMark
waitmovement 0
- applymovement LOCALID_MEW, Common_Movement_Delay48
+ applymovement LOCALID_FARAWAY_ISLAND_MEW, Common_Movement_Delay48
waitmovement 0
- applymovement LOCALID_MEW, FarawayIsland_Interior_Movement_MewMoveAndHide
+ applymovement LOCALID_FARAWAY_ISLAND_MEW, FarawayIsland_Interior_Movement_MewMoveAndHide
waitmovement 0
- copyobjectxytoperm LOCALID_MEW
+ copyobjectxytoperm LOCALID_FARAWAY_ISLAND_MEW
setvar VAR_TEMP_1, 1
releaseall
end
-FarawayIsland_Interior_Movement_MewMoveAndHide: @ 8267DCE
+FarawayIsland_Interior_Movement_MewMoveAndHide:
walk_up
walk_up
walk_up
@@ -77,11 +77,11 @@ FarawayIsland_Interior_Movement_MewMoveAndHide: @ 8267DCE
set_invisible
step_end
-FarawayIsland_Interior_Movement_MewAppear: @ 8267DD4
+FarawayIsland_Interior_Movement_MewAppear:
set_visible
step_end
-FarawayIsland_Interior_Movement_MewFloatUpNorth: @ 8267DD6
+FarawayIsland_Interior_Movement_MewFloatUpNorth:
lock_facing_direction
walk_fast_up
walk_fast_up
@@ -90,7 +90,7 @@ FarawayIsland_Interior_Movement_MewFloatUpNorth: @ 8267DD6
walk_in_place_down
step_end
-FarawayIsland_Interior_Movement_MewFloatUpSouth: @ 8267DDD
+FarawayIsland_Interior_Movement_MewFloatUpSouth:
lock_facing_direction
walk_fast_up
walk_fast_up
@@ -99,7 +99,7 @@ FarawayIsland_Interior_Movement_MewFloatUpSouth: @ 8267DDD
walk_in_place_up
step_end
-FarawayIsland_Interior_Movement_MewFloatUpWest: @ 8267DE4
+FarawayIsland_Interior_Movement_MewFloatUpWest:
lock_facing_direction
walk_fast_up
walk_fast_up
@@ -108,7 +108,7 @@ FarawayIsland_Interior_Movement_MewFloatUpWest: @ 8267DE4
walk_in_place_right
step_end
-FarawayIsland_Interior_Movement_MewFloatUpEast: @ 8267DEB
+FarawayIsland_Interior_Movement_MewFloatUpEast:
lock_facing_direction
walk_fast_up
walk_fast_up
@@ -117,10 +117,10 @@ FarawayIsland_Interior_Movement_MewFloatUpEast: @ 8267DEB
walk_in_place_left
step_end
-FarawayIsland_Interior_EventScript_Mew:: @ 8267DF2
+FarawayIsland_Interior_EventScript_Mew::
lock
faceplayer
- applymovement LOCALID_MEW, FarawayIsland_Interior_Movement_MewAppear
+ applymovement LOCALID_FARAWAY_ISLAND_MEW, FarawayIsland_Interior_Movement_MewAppear
waitmovement 0
setvar VAR_0x8004, 0
special SetMewAboveGrass
@@ -159,47 +159,47 @@ FarawayIsland_Interior_EventScript_Mew:: @ 8267DF2
release
end
-FarawayIsland_Interior_EventScript_MewDefeated:: @ 8267E96
+FarawayIsland_Interior_EventScript_MewDefeated::
setflag FLAG_DEFEATED_MEW
setvar VAR_0x8004, SPECIES_MEW
goto Common_EventScript_LegendaryFlewAway
end
-FarawayIsland_Interior_EventScript_PlayerOrMewRan:: @ 8267EA4
+FarawayIsland_Interior_EventScript_PlayerOrMewRan::
setvar VAR_0x8004, SPECIES_MEW
goto Common_EventScript_LegendaryFlewAway
end
-FarawayIsland_Interior_EventScript_FoundMewNorth:: @ 8267EAF
- applymovement LOCALID_MEW, FarawayIsland_Interior_Movement_MewFloatUpNorth
+FarawayIsland_Interior_EventScript_FoundMewNorth::
+ applymovement LOCALID_FARAWAY_ISLAND_MEW, FarawayIsland_Interior_Movement_MewFloatUpNorth
waitmovement 0
return
-FarawayIsland_Interior_EventScript_FoundMewSouth:: @ 8267EBA
- applymovement LOCALID_MEW, FarawayIsland_Interior_Movement_MewFloatUpSouth
+FarawayIsland_Interior_EventScript_FoundMewSouth::
+ applymovement LOCALID_FARAWAY_ISLAND_MEW, FarawayIsland_Interior_Movement_MewFloatUpSouth
waitmovement 0
return
-FarawayIsland_Interior_EventScript_FoundMewWest:: @ 8267EC5
- applymovement LOCALID_MEW, FarawayIsland_Interior_Movement_MewFloatUpWest
+FarawayIsland_Interior_EventScript_FoundMewWest::
+ applymovement LOCALID_FARAWAY_ISLAND_MEW, FarawayIsland_Interior_Movement_MewFloatUpWest
waitmovement 0
return
-FarawayIsland_Interior_EventScript_FoundMewEast:: @ 8267ED0
- applymovement LOCALID_MEW, FarawayIsland_Interior_Movement_MewFloatUpEast
+FarawayIsland_Interior_EventScript_FoundMewEast::
+ applymovement LOCALID_FARAWAY_ISLAND_MEW, FarawayIsland_Interior_Movement_MewFloatUpEast
waitmovement 0
return
-FarawayIsland_Interior_EventScript_HideMewWhenGrassCut:: @ 8267EDB
+FarawayIsland_Interior_EventScript_HideMewWhenGrassCut::
lockall
fadescreenswapbuffers FADE_TO_BLACK
setflag FLAG_HIDE_MEW
- removeobject LOCALID_MEW
+ removeobject LOCALID_FARAWAY_ISLAND_MEW
fadescreenswapbuffers FADE_FROM_BLACK
msgbox FarawayIsland_Interior_Text_TheFeelingOfBeingWatchedFaded, MSGBOX_DEFAULT
closemessage
releaseall
end
-FarawayIsland_Interior_Text_TheFeelingOfBeingWatchedFaded: @ 8267EF1
+FarawayIsland_Interior_Text_TheFeelingOfBeingWatchedFaded:
.string "The feeling of being watched faded…$"