summaryrefslogtreecommitdiff
path: root/data/maps/SkyPillar_Top/scripts.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/SkyPillar_Top/scripts.inc')
-rw-r--r--data/maps/SkyPillar_Top/scripts.inc12
1 files changed, 7 insertions, 5 deletions
diff --git a/data/maps/SkyPillar_Top/scripts.inc b/data/maps/SkyPillar_Top/scripts.inc
index 422ec2d1a..b8173bc69 100644
--- a/data/maps/SkyPillar_Top/scripts.inc
+++ b/data/maps/SkyPillar_Top/scripts.inc
@@ -1,3 +1,5 @@
+.set LOCALID_RAYQUAZA_SLEEPING, 1
+
SkyPillar_Top_MapScripts:: @ 82396B8
map_script MAP_SCRIPT_ON_RESUME, SkyPillar_Top_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, SkyPillar_Top_OnTransition
@@ -24,7 +26,7 @@ SkyPillar_Top_OnTransition: @ 82396E6
SkyPillar_Top_EventScript_SetCleanLayout:: @ 82396FD
setmaplayoutindex LAYOUT_SKY_PILLAR_TOP_CLEAN
- setobjectmovementtype 1, MOVEMENT_TYPE_FACE_DOWN
+ setobjectmovementtype LOCALID_RAYQUAZA_SLEEPING, MOVEMENT_TYPE_FACE_DOWN
return
SkyPillar_Top_EventScript_TryShowRayquaza:: @ 8239705
@@ -40,7 +42,7 @@ SkyPillar_Top_OnWarp: @ 8239713
.2byte 0
SkyPillar_Top_EventScript_RayquazaFaceDown:: @ 823971D
- turnobject 1, DIR_SOUTH
+ turnobject LOCALID_RAYQUAZA_SLEEPING, DIR_SOUTH
end
SkyPillar_Top_EventScript_Rayquaza:: @ 8239722
@@ -100,7 +102,7 @@ SkyPillar_Top_EventScript_AwakenRayquaza:: @ 823979A
applymovement OBJ_EVENT_ID_CAMERA, SkyPillar_Top_Movement_CameraPanUp
waitmovement 0
special RemoveCameraObject
- applymovement 1, SkyPillar_Top_Movement_RayquazaStir
+ applymovement LOCALID_RAYQUAZA_SLEEPING, SkyPillar_Top_Movement_RayquazaStir
waitmovement 0
waitse
playmoncry SPECIES_RAYQUAZA, 2
@@ -119,9 +121,9 @@ SkyPillar_Top_EventScript_AwakenRayquaza:: @ 823979A
special ShakeCamera
waitstate
waitmoncry
- applymovement 1, SkyPillar_Top_Movement_RayquazaFlyOff
+ applymovement LOCALID_RAYQUAZA_SLEEPING, SkyPillar_Top_Movement_RayquazaFlyOff
waitmovement 0
- removeobject 1
+ removeobject LOCALID_RAYQUAZA_SLEEPING
msgbox SkyPillar_Top_Text_RayquazaFlewOff, MSGBOX_DEFAULT
closemessage
delay 20