98 lines
2.8 KiB
PHP
98 lines
2.8 KiB
PHP
.set LOCALID_ATTENDANT, 1
|
|
|
|
MtChimney_CableCarStation_MapScripts::
|
|
map_script MAP_SCRIPT_ON_TRANSITION, MtChimney_CableCarStation_OnTransition
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, MtChimney_CableCarStation_OnFrame
|
|
.byte 0
|
|
|
|
MtChimney_CableCarStation_OnTransition:
|
|
call_if_eq VAR_CABLE_CAR_STATION_STATE, 1, MtChimney_CableCarStation_EventScript_MoveAttendantAside
|
|
end
|
|
|
|
MtChimney_CableCarStation_EventScript_MoveAttendantAside::
|
|
setobjectxyperm LOCALID_ATTENDANT, 5, 4
|
|
setobjectmovementtype LOCALID_ATTENDANT, MOVEMENT_TYPE_FACE_RIGHT
|
|
return
|
|
|
|
MtChimney_CableCarStation_OnFrame:
|
|
map_script_2 VAR_CABLE_CAR_STATION_STATE, 1, MtChimney_CableCarStation_EventScript_ExitCableCar
|
|
.2byte 0
|
|
|
|
MtChimney_CableCarStation_EventScript_ExitCableCar::
|
|
lockall
|
|
applymovement OBJ_EVENT_ID_PLAYER, MtChimney_CableCarStation_Movement_ExitCableCar
|
|
applymovement LOCALID_ATTENDANT, MtChimney_CableCarStation_Movement_FollowPlayerOutFromCableCar
|
|
waitmovement 0
|
|
setvar VAR_CABLE_CAR_STATION_STATE, 0
|
|
setobjectxyperm LOCALID_ATTENDANT, 6, 7
|
|
setobjectmovementtype LOCALID_ATTENDANT, MOVEMENT_TYPE_FACE_DOWN
|
|
releaseall
|
|
end
|
|
|
|
MtChimney_CableCarStation_EventScript_Attendant::
|
|
lock
|
|
faceplayer
|
|
msgbox MtChimney_CableCarStation_Text_CableCarReadyGetOn, MSGBOX_YESNO
|
|
goto_if_eq VAR_RESULT, YES, MtChimney_CableCarStation_EventScript_RideCableCar
|
|
goto_if_eq VAR_RESULT, NO, MtChimney_CableCarStation_EventScript_DeclineRide
|
|
end
|
|
|
|
MtChimney_CableCarStation_EventScript_RideCableCar::
|
|
msgbox MtChimney_CableCarStation_Text_StepThisWay, MSGBOX_DEFAULT
|
|
closemessage
|
|
applymovement LOCALID_ATTENDANT, MtChimney_CableCarStation_Movement_LeadPlayerToCableCar
|
|
applymovement OBJ_EVENT_ID_PLAYER, MtChimney_CableCarStation_Movement_BoardCableCar
|
|
waitmovement 0
|
|
setvar VAR_0x8004, TRUE @ Going down
|
|
setvar VAR_CABLE_CAR_STATION_STATE, 2
|
|
incrementgamestat GAME_STAT_RODE_CABLE_CAR
|
|
special CableCarWarp
|
|
special CableCar
|
|
waitstate
|
|
release
|
|
end
|
|
|
|
MtChimney_CableCarStation_EventScript_DeclineRide::
|
|
msgbox MtChimney_CableCarStation_Text_RideAnotherTime, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
MtChimney_CableCarStation_Movement_LeadPlayerToCableCar:
|
|
walk_up
|
|
walk_up
|
|
walk_left
|
|
walk_in_place_faster_right
|
|
step_end
|
|
|
|
MtChimney_CableCarStation_Movement_FollowPlayerOutFromCableCar:
|
|
delay_16
|
|
walk_right
|
|
walk_down
|
|
walk_down
|
|
step_end
|
|
|
|
MtChimney_CableCarStation_Movement_BoardCableCar:
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
delay_16
|
|
step_end
|
|
|
|
MtChimney_CableCarStation_Movement_ExitCableCar:
|
|
walk_down
|
|
walk_down
|
|
walk_down
|
|
delay_16
|
|
step_end
|
|
|
|
MtChimney_CableCarStation_Text_CableCarReadyGetOn:
|
|
.string "The CABLE CAR is ready to go down.\n"
|
|
.string "Would you like to be on it?$"
|
|
|
|
MtChimney_CableCarStation_Text_StepThisWay:
|
|
.string "Please step this way.$"
|
|
|
|
MtChimney_CableCarStation_Text_RideAnotherTime:
|
|
.string "Please ride with us another time.$"
|
|
|