2020-06-21 07:56:57 +02:00
|
|
|
.set LOCALID_ATTENDANT, 1
|
|
|
|
|
2017-11-10 02:21:31 +01:00
|
|
|
MtChimney_CableCarStation_MapScripts:: @ 822ABFA
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, MtChimney_CableCarStation_OnTransition
|
2019-11-06 20:21:17 +01:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, MtChimney_CableCarStation_OnFrame
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2019-04-22 22:31:51 +02:00
|
|
|
MtChimney_CableCarStation_OnTransition: @ 822AC05
|
2019-02-22 10:18:43 +01:00
|
|
|
compare VAR_CABLE_CAR_STATION_STATE, 1
|
2019-11-06 20:21:17 +01:00
|
|
|
call_if_eq MtChimney_CableCarStation_EventScript_MoveAttendantAside
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-06 20:21:17 +01:00
|
|
|
MtChimney_CableCarStation_EventScript_MoveAttendantAside:: @ 822AC11
|
2020-06-21 07:56:57 +02:00
|
|
|
setobjectxyperm LOCALID_ATTENDANT, 5, 4
|
|
|
|
setobjectmovementtype LOCALID_ATTENDANT, MOVEMENT_TYPE_FACE_RIGHT
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-11-06 20:21:17 +01:00
|
|
|
MtChimney_CableCarStation_OnFrame: @ 822AC1D
|
|
|
|
map_script_2 VAR_CABLE_CAR_STATION_STATE, 1, MtChimney_CableCarStation_EventScript_ExitCableCar
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2019-11-06 20:21:17 +01:00
|
|
|
MtChimney_CableCarStation_EventScript_ExitCableCar:: @ 822AC27
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, MtChimney_CableCarStation_Movement_ExitCableCar
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ATTENDANT, MtChimney_CableCarStation_Movement_FollowPlayerOutFromCableCar
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_CABLE_CAR_STATION_STATE, 0
|
2020-06-21 07:56:57 +02:00
|
|
|
setobjectxyperm LOCALID_ATTENDANT, 6, 7
|
|
|
|
setobjectmovementtype LOCALID_ATTENDANT, MOVEMENT_TYPE_FACE_DOWN
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2019-11-06 20:21:17 +01:00
|
|
|
MtChimney_CableCarStation_EventScript_Attendant:: @ 822AC4B
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2019-11-06 20:21:17 +01:00
|
|
|
msgbox MtChimney_CableCarStation_Text_CableCarReadyGetOn, MSGBOX_YESNO
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, YES
|
2019-11-06 20:21:17 +01:00
|
|
|
goto_if_eq MtChimney_CableCarStation_EventScript_RideCableCar
|
2019-11-02 17:34:53 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-06 20:21:17 +01:00
|
|
|
goto_if_eq MtChimney_CableCarStation_EventScript_DeclineRide
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-06 20:21:17 +01:00
|
|
|
MtChimney_CableCarStation_EventScript_RideCableCar:: @ 822AC6C
|
|
|
|
msgbox MtChimney_CableCarStation_Text_StepThisWay, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ATTENDANT, MtChimney_CableCarStation_Movement_LeadPlayerToCableCar
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, MtChimney_CableCarStation_Movement_BoardCableCar
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
setvar VAR_0x8004, 1
|
2019-02-22 10:18:43 +01:00
|
|
|
setvar VAR_CABLE_CAR_STATION_STATE, 2
|
2019-09-05 20:56:34 +02:00
|
|
|
incrementgamestat GAME_STAT_RODE_CABLE_CAR
|
2017-12-28 09:09:11 +01:00
|
|
|
special CableCarWarp
|
2018-12-09 20:41:52 +01:00
|
|
|
special CableCar
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-11-06 20:21:17 +01:00
|
|
|
MtChimney_CableCarStation_EventScript_DeclineRide:: @ 822AC9B
|
|
|
|
msgbox MtChimney_CableCarStation_Text_RideAnotherTime, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-11-06 20:21:17 +01:00
|
|
|
MtChimney_CableCarStation_Movement_LeadPlayerToCableCar: @ 822ACA5
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_left
|
|
|
|
walk_in_place_fastest_right
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-06 20:21:17 +01:00
|
|
|
MtChimney_CableCarStation_Movement_FollowPlayerOutFromCableCar: @ 822ACAA
|
2018-06-14 01:19:19 +02:00
|
|
|
delay_16
|
|
|
|
walk_right
|
|
|
|
walk_down
|
|
|
|
walk_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-06 20:21:17 +01:00
|
|
|
MtChimney_CableCarStation_Movement_BoardCableCar: @ 822ACAF
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
delay_16
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-06 20:21:17 +01:00
|
|
|
MtChimney_CableCarStation_Movement_ExitCableCar: @ 822ACB4
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
delay_16
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-11-06 20:21:17 +01:00
|
|
|
MtChimney_CableCarStation_Text_CableCarReadyGetOn: @ 822ACB9
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "The CABLE CAR is ready to go down.\n"
|
|
|
|
.string "Would you like to be on it?$"
|
|
|
|
|
2019-11-06 20:21:17 +01:00
|
|
|
MtChimney_CableCarStation_Text_StepThisWay: @ 822ACF8
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Please step this way.$"
|
|
|
|
|
2019-11-06 20:21:17 +01:00
|
|
|
MtChimney_CableCarStation_Text_RideAnotherTime: @ 822AD0E
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Please ride with us another time.$"
|
|
|
|
|