pokeemerald/data/maps/Route112_CableCarStation/scripts.inc

102 lines
2.8 KiB
PHP
Raw Normal View History

.set LOCALID_ATTENDANT, 1
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, Route112_CableCarStation_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route112_CableCarStation_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_OnTransition:
setescapewarp MAP_ROUTE112, 255, 28, 28
2019-02-22 10:18:43 +01:00
compare VAR_CABLE_CAR_STATION_STATE, 2
call_if_eq Route112_CableCarStation_EventScript_MoveAttendantAside
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_EventScript_MoveAttendantAside::
setobjectxyperm LOCALID_ATTENDANT, 7, 4
setobjectmovementtype LOCALID_ATTENDANT, MOVEMENT_TYPE_FACE_LEFT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_OnFrame:
map_script_2 VAR_CABLE_CAR_STATION_STATE, 2, Route112_CableCarStation_EventScript_ExitCableCar
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_EventScript_ExitCableCar::
2017-11-10 02:21:31 +01:00
lockall
applymovement OBJ_EVENT_ID_PLAYER, Route112_CableCarStation_Movement_ExitCableCar
applymovement LOCALID_ATTENDANT, Route112_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
setobjectxyperm LOCALID_ATTENDANT, 6, 7
setobjectmovementtype LOCALID_ATTENDANT, MOVEMENT_TYPE_FACE_DOWN
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_EventScript_Attendant::
2017-11-10 02:21:31 +01:00
lock
faceplayer
msgbox Route112_CableCarStation_Text_CableCarReadyGetOn, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, YES
goto_if_eq Route112_CableCarStation_EventScript_RideCableCar
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
goto_if_eq Route112_CableCarStation_EventScript_DeclineRide
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_EventScript_RideCableCar::
msgbox Route112_CableCarStation_Text_StepThisWay, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_ATTENDANT, Route112_CableCarStation_Movement_LeadPlayerToCableCar
applymovement OBJ_EVENT_ID_PLAYER, Route112_CableCarStation_Movement_BoardCableCar
2017-11-10 02:21:31 +01:00
waitmovement 0
2020-08-28 09:49:15 +02:00
setvar VAR_0x8004, FALSE @ Going up
2019-02-22 10:18:43 +01:00
setvar VAR_CABLE_CAR_STATION_STATE, 1
incrementgamestat GAME_STAT_RODE_CABLE_CAR
special CableCarWarp
2018-12-09 20:41:52 +01:00
special CableCar
2017-11-10 02:21:31 +01:00
waitstate
release
end
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_EventScript_DeclineRide::
msgbox Route112_CableCarStation_Text_RideAnotherTime, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_Movement_LeadPlayerToCableCar:
walk_up
walk_up
walk_right
walk_in_place_fastest_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_Movement_FollowPlayerOutFromCableCar:
delay_16
walk_left
walk_down
walk_down
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_Movement_BoardCableCar:
walk_up
walk_up
walk_up
delay_16
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_Movement_ExitCableCar:
walk_down
walk_down
walk_down
delay_16
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_Text_CableCarReadyGetOn:
2017-11-10 02:21:31 +01:00
.string "The CABLE CAR is ready to go up.\n"
.string "Would you like to be on it?$"
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_Text_StepThisWay:
2017-11-10 02:21:31 +01:00
.string "Please step this way.$"
2021-07-20 21:18:31 +02:00
Route112_CableCarStation_Text_RideAnotherTime:
2017-11-10 02:21:31 +01:00
.string "Please ride with us another time.$"