mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
91 lines
2.2 KiB
PHP
91 lines
2.2 KiB
PHP
.set LOCALID_ATTENDANT, 1
|
|
|
|
TrainerHill_Elevator_MapScripts::
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerHill_Elevator_OnFrame
|
|
.byte 0
|
|
|
|
TrainerHill_Elevator_OnFrame:
|
|
map_script_2 VAR_TEMP_4, 0, TrainerHill_Elevator_EventScript_EnterElevator
|
|
.2byte 0
|
|
|
|
TrainerHill_Elevator_EventScript_Attendant::
|
|
end
|
|
|
|
TrainerHill_Elevator_EventScript_ExitToRoof::
|
|
applymovement OBJ_EVENT_ID_PLAYER, TrainerHill_Elevator_Movement_PlayerExitElevatorToRoof
|
|
waitmovement 0
|
|
releaseall
|
|
warp MAP_TRAINER_HILL_ROOF, 15, 5
|
|
waitstate
|
|
end
|
|
|
|
TrainerHill_Elevator_EventScript_EnterElevator::
|
|
applymovement OBJ_EVENT_ID_PLAYER, TrainerHill_Elevator_Movement_PlayerApproachAttendant
|
|
waitmovement 0
|
|
applymovement LOCALID_ATTENDANT, TrainerHill_Elevator_Movement_AttendantFacePlayer
|
|
waitmovement 0
|
|
lockall
|
|
msgbox TrainerHill_Elevator_Text_ReturnToReception, MSGBOX_YESNO
|
|
goto_if_eq VAR_RESULT, NO, TrainerHill_Elevator_EventScript_ExitToRoof
|
|
releaseall
|
|
applymovement LOCALID_ATTENDANT, TrainerHill_Elevator_Movement_AttendantFaceDown
|
|
waitmovement 0
|
|
applymovement OBJ_EVENT_ID_PLAYER, TrainerHill_Elevator_Movement_PlayerMoveToCenterOfElevator
|
|
waitmovement 0
|
|
call TrainerHill_Elevator_EventScript_MoveElevator
|
|
delay 25
|
|
applymovement OBJ_EVENT_ID_PLAYER, TrainerHill_Elevator_Movement_PlayerExitElevator
|
|
waitmovement 0
|
|
warp MAP_TRAINER_HILL_ENTRANCE, 17, 8
|
|
waitstate
|
|
end
|
|
|
|
@ Unused
|
|
TrainerHill_Elevator_EventScript_ExitFloorSelect::
|
|
goto TrainerHill_Elevator_EventScript_CloseFloorSelect
|
|
end
|
|
|
|
@ Functionally unused
|
|
TrainerHill_Elevator_EventScript_CloseFloorSelect::
|
|
special CloseDeptStoreElevatorWindow
|
|
releaseall
|
|
end
|
|
|
|
TrainerHill_Elevator_EventScript_MoveElevator::
|
|
waitse
|
|
special MoveElevator
|
|
waitstate
|
|
return
|
|
|
|
TrainerHill_Elevator_Movement_PlayerMoveToCenterOfElevator:
|
|
walk_up
|
|
walk_up
|
|
walk_right
|
|
face_down
|
|
step_end
|
|
|
|
TrainerHill_Elevator_Movement_PlayerApproachAttendant:
|
|
delay_16
|
|
walk_left
|
|
step_end
|
|
|
|
TrainerHill_Elevator_Movement_PlayerExitElevator:
|
|
delay_16
|
|
walk_down
|
|
walk_down
|
|
step_end
|
|
|
|
TrainerHill_Elevator_Movement_PlayerExitElevatorToRoof:
|
|
face_down
|
|
delay_16
|
|
step_end
|
|
|
|
TrainerHill_Elevator_Movement_AttendantFacePlayer:
|
|
face_right
|
|
step_end
|
|
|
|
TrainerHill_Elevator_Movement_AttendantFaceDown:
|
|
face_down
|
|
step_end
|
|
|