2020-06-21 01:56:57 -04:00
|
|
|
.set LOCALID_ATTENDANT, 1
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_MapScripts::
|
2019-11-13 16:10:05 -05:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerHill_Elevator_OnFrame
|
2017-11-09 19:21:31 -06:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_OnFrame:
|
2019-11-13 16:10:05 -05:00
|
|
|
map_script_2 VAR_TEMP_4, 0, TrainerHill_Elevator_EventScript_EnterElevator
|
2017-11-09 19:21:31 -06:00
|
|
|
.2byte 0
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_EventScript_Attendant::
|
2017-11-09 19:21:31 -06:00
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_EventScript_ExitToRoof::
|
2019-11-20 23:12:51 -05:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, TrainerHill_Elevator_Movement_PlayerExitElevatorToRoof
|
2017-11-09 19:21:31 -06:00
|
|
|
waitmovement 0
|
|
|
|
releaseall
|
2021-11-15 12:04:54 -05:00
|
|
|
warp MAP_TRAINER_HILL_ROOF, 15, 5
|
2017-11-09 19:21:31 -06:00
|
|
|
waitstate
|
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_EventScript_EnterElevator::
|
2019-11-20 23:12:51 -05:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, TrainerHill_Elevator_Movement_PlayerApproachAttendant
|
2017-11-09 19:21:31 -06:00
|
|
|
waitmovement 0
|
2020-06-21 01:56:57 -04:00
|
|
|
applymovement LOCALID_ATTENDANT, TrainerHill_Elevator_Movement_AttendantFacePlayer
|
2017-11-09 19:21:31 -06:00
|
|
|
waitmovement 0
|
|
|
|
lockall
|
2019-11-13 16:10:05 -05:00
|
|
|
msgbox TrainerHill_Elevator_Text_ReturnToReception, MSGBOX_YESNO
|
2021-11-18 23:06:30 -05:00
|
|
|
goto_if_eq VAR_RESULT, NO, TrainerHill_Elevator_EventScript_ExitToRoof
|
2017-11-09 19:21:31 -06:00
|
|
|
releaseall
|
2020-06-21 01:56:57 -04:00
|
|
|
applymovement LOCALID_ATTENDANT, TrainerHill_Elevator_Movement_AttendantFaceDown
|
2017-11-09 19:21:31 -06:00
|
|
|
waitmovement 0
|
2019-11-20 23:12:51 -05:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, TrainerHill_Elevator_Movement_PlayerMoveToCenterOfElevator
|
2017-11-09 19:21:31 -06:00
|
|
|
waitmovement 0
|
2019-11-13 16:10:05 -05:00
|
|
|
call TrainerHill_Elevator_EventScript_MoveElevator
|
2017-11-09 19:21:31 -06:00
|
|
|
delay 25
|
2019-11-20 23:12:51 -05:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, TrainerHill_Elevator_Movement_PlayerExitElevator
|
2017-11-09 19:21:31 -06:00
|
|
|
waitmovement 0
|
2021-11-15 12:04:54 -05:00
|
|
|
warp MAP_TRAINER_HILL_ENTRANCE, 17, 8
|
2017-11-09 19:21:31 -06:00
|
|
|
waitstate
|
|
|
|
end
|
|
|
|
|
2019-09-13 20:22:09 -04:00
|
|
|
@ Unused
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_EventScript_ExitFloorSelect::
|
2019-11-13 16:10:05 -05:00
|
|
|
goto TrainerHill_Elevator_EventScript_CloseFloorSelect
|
2017-11-10 01:36:41 -06:00
|
|
|
end
|
|
|
|
|
2019-09-13 20:22:09 -04:00
|
|
|
@ Functionally unused
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_EventScript_CloseFloorSelect::
|
2019-09-13 20:22:09 -04:00
|
|
|
special CloseDeptStoreElevatorWindow
|
2017-11-10 01:36:41 -06:00
|
|
|
releaseall
|
|
|
|
end
|
2017-11-09 19:21:31 -06:00
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_EventScript_MoveElevator::
|
2017-11-09 19:21:31 -06:00
|
|
|
waitse
|
2019-09-13 20:22:09 -04:00
|
|
|
special MoveElevator
|
2017-11-09 19:21:31 -06:00
|
|
|
waitstate
|
|
|
|
return
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_Movement_PlayerMoveToCenterOfElevator:
|
2018-06-13 18:19:19 -05:00
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_right
|
|
|
|
face_down
|
2017-11-09 19:21:31 -06:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_Movement_PlayerApproachAttendant:
|
2018-06-13 18:19:19 -05:00
|
|
|
delay_16
|
|
|
|
walk_left
|
2017-11-09 19:21:31 -06:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_Movement_PlayerExitElevator:
|
2018-06-13 18:19:19 -05:00
|
|
|
delay_16
|
|
|
|
walk_down
|
|
|
|
walk_down
|
2017-11-09 19:21:31 -06:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_Movement_PlayerExitElevatorToRoof:
|
2018-06-13 18:19:19 -05:00
|
|
|
face_down
|
|
|
|
delay_16
|
2017-11-09 19:21:31 -06:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_Movement_AttendantFacePlayer:
|
2018-06-13 18:19:19 -05:00
|
|
|
face_right
|
2017-11-09 19:21:31 -06:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
TrainerHill_Elevator_Movement_AttendantFaceDown:
|
2018-06-13 18:19:19 -05:00
|
|
|
face_down
|
2017-11-09 19:21:31 -06:00
|
|
|
step_end
|
|
|
|
|