pokeemerald/data/maps/TrainerHill_Elevator/scripts.inc

92 lines
2.3 KiB
PHP
Raw Normal View History

.set LOCALID_ATTENDANT, 1
2017-11-10 02:21:31 +01:00
TrainerHill_Elevator_MapScripts:: @ 826934F
2019-11-13 22:10:05 +01:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerHill_Elevator_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
2019-11-13 22:10:05 +01:00
TrainerHill_Elevator_OnFrame: @ 8269355
map_script_2 VAR_TEMP_4, 0, TrainerHill_Elevator_EventScript_EnterElevator
2017-11-10 02:21:31 +01:00
.2byte 0
2019-11-13 22:10:05 +01:00
TrainerHill_Elevator_EventScript_Attendant:: @ 826935F
2017-11-10 02:21:31 +01:00
end
2019-11-13 22:10:05 +01:00
TrainerHill_Elevator_EventScript_ExitToRoof:: @ 8269360
applymovement OBJ_EVENT_ID_PLAYER, TrainerHill_Elevator_Movement_PlayerExitElevatorToRoof
2017-11-10 02:21:31 +01:00
waitmovement 0
releaseall
warp MAP_TRAINER_HILL_ROOF, 255, 15, 5
2017-11-10 02:21:31 +01:00
waitstate
end
2019-11-13 22:10:05 +01:00
TrainerHill_Elevator_EventScript_EnterElevator:: @ 8269375
applymovement OBJ_EVENT_ID_PLAYER, TrainerHill_Elevator_Movement_PlayerApproachAttendant
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_ATTENDANT, TrainerHill_Elevator_Movement_AttendantFacePlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
lockall
2019-11-13 22:10:05 +01:00
msgbox TrainerHill_Elevator_Text_ReturnToReception, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2019-11-13 22:10:05 +01:00
goto_if_eq TrainerHill_Elevator_EventScript_ExitToRoof
2017-11-10 02:21:31 +01:00
releaseall
applymovement LOCALID_ATTENDANT, TrainerHill_Elevator_Movement_AttendantFaceDown
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, TrainerHill_Elevator_Movement_PlayerMoveToCenterOfElevator
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-13 22:10:05 +01:00
call TrainerHill_Elevator_EventScript_MoveElevator
2017-11-10 02:21:31 +01:00
delay 25
applymovement OBJ_EVENT_ID_PLAYER, TrainerHill_Elevator_Movement_PlayerExitElevator
2017-11-10 02:21:31 +01:00
waitmovement 0
warp MAP_TRAINER_HILL_ENTRANCE, 255, 17, 8
2017-11-10 02:21:31 +01:00
waitstate
end
2019-09-14 02:22:09 +02:00
@ Unused
2019-11-13 22:10:05 +01:00
TrainerHill_Elevator_EventScript_ExitFloorSelect:: @ 82693CE
goto TrainerHill_Elevator_EventScript_CloseFloorSelect
end
2019-09-14 02:22:09 +02:00
@ Functionally unused
2019-11-13 22:10:05 +01:00
TrainerHill_Elevator_EventScript_CloseFloorSelect:: @ 82693D4
2019-09-14 02:22:09 +02:00
special CloseDeptStoreElevatorWindow
releaseall
end
2017-11-10 02:21:31 +01:00
2019-11-13 22:10:05 +01:00
TrainerHill_Elevator_EventScript_MoveElevator:: @ 82693D9
2017-11-10 02:21:31 +01:00
waitse
2019-09-14 02:22:09 +02:00
special MoveElevator
2017-11-10 02:21:31 +01:00
waitstate
return
2019-11-13 22:10:05 +01:00
TrainerHill_Elevator_Movement_PlayerMoveToCenterOfElevator: @ 82693DF
walk_up
walk_up
walk_right
face_down
2017-11-10 02:21:31 +01:00
step_end
2019-11-13 22:10:05 +01:00
TrainerHill_Elevator_Movement_PlayerApproachAttendant: @ 82693E4
delay_16
walk_left
2017-11-10 02:21:31 +01:00
step_end
2019-11-13 22:10:05 +01:00
TrainerHill_Elevator_Movement_PlayerExitElevator: @ 82693E7
delay_16
walk_down
walk_down
2017-11-10 02:21:31 +01:00
step_end
2019-11-13 22:10:05 +01:00
TrainerHill_Elevator_Movement_PlayerExitElevatorToRoof: @ 82693EB
face_down
delay_16
2017-11-10 02:21:31 +01:00
step_end
2019-11-13 22:10:05 +01:00
TrainerHill_Elevator_Movement_AttendantFacePlayer: @ 82693EE
face_right
2017-11-10 02:21:31 +01:00
step_end
2019-11-13 22:10:05 +01:00
TrainerHill_Elevator_Movement_AttendantFaceDown: @ 82693F0
face_down
2017-11-10 02:21:31 +01:00
step_end