Add local object event ids for referenced objects
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user