pokeemerald/data/maps/Route112_CableCarStation/scripts.inc

100 lines
2.5 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
Route112_CableCarStation_MapScripts:: @ 822AABE
map_script 3, Route112_CableCarStation_MapScript1_22AAC9
map_script 2, Route112_CableCarStation_MapScript2_22AAE9
.byte 0
Route112_CableCarStation_MapScript1_22AAC9: @ 822AAC9
setescapewarp MAP_ROUTE112, 255, 28, 28
compare VAR_0x40A3, 2
2018-12-22 03:32:45 +01:00
call_if_eq Route112_CableCarStation_EventScript_22AADD
2017-11-10 02:21:31 +01:00
end
Route112_CableCarStation_EventScript_22AADD:: @ 822AADD
setobjectxyperm 1, 7, 4
setobjectmovementtype 1, 9
return
Route112_CableCarStation_MapScript2_22AAE9: @ 822AAE9
map_script_2 VAR_0x40A3, 2, Route112_CableCarStation_EventScript_22AAF3
.2byte 0
Route112_CableCarStation_EventScript_22AAF3:: @ 822AAF3
lockall
applymovement EVENT_OBJ_ID_PLAYER, Route112_CableCarStation_Movement_22AB80
2017-11-10 02:21:31 +01:00
applymovement 1, Route112_CableCarStation_Movement_22AB76
waitmovement 0
setvar VAR_0x40A3, 0
setobjectxyperm 1, 6, 7
setobjectmovementtype 1, 8
releaseall
end
Route112_CableCarStation_EventScript_22AB17:: @ 822AB17
lock
faceplayer
msgbox Route112_CableCarStation_Text_22AB85, MSGBOX_YESNO
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq Route112_CableCarStation_EventScript_22AB38
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq Route112_CableCarStation_EventScript_22AB67
2017-11-10 02:21:31 +01:00
end
Route112_CableCarStation_EventScript_22AB38:: @ 822AB38
msgbox Route112_CableCarStation_Text_22ABC2, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement 1, Route112_CableCarStation_Movement_22AB71
applymovement EVENT_OBJ_ID_PLAYER, Route112_CableCarStation_Movement_22AB7B
2017-11-10 02:21:31 +01:00
waitmovement 0
setvar VAR_0x8004, 0
setvar VAR_0x40A3, 1
incrementgamestat 48
special CableCarWarp
2018-12-09 20:41:52 +01:00
special CableCar
2017-11-10 02:21:31 +01:00
waitstate
release
end
Route112_CableCarStation_EventScript_22AB67:: @ 822AB67
msgbox Route112_CableCarStation_Text_22ABD8, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
Route112_CableCarStation_Movement_22AB71: @ 822AB71
walk_up
walk_up
walk_right
walk_in_place_fastest_left
2017-11-10 02:21:31 +01:00
step_end
Route112_CableCarStation_Movement_22AB76: @ 822AB76
delay_16
walk_left
walk_down
walk_down
2017-11-10 02:21:31 +01:00
step_end
Route112_CableCarStation_Movement_22AB7B: @ 822AB7B
walk_up
walk_up
walk_up
delay_16
2017-11-10 02:21:31 +01:00
step_end
Route112_CableCarStation_Movement_22AB80: @ 822AB80
walk_down
walk_down
walk_down
delay_16
2017-11-10 02:21:31 +01:00
step_end
Route112_CableCarStation_Text_22AB85: @ 822AB85
.string "The CABLE CAR is ready to go up.\n"
.string "Would you like to be on it?$"
Route112_CableCarStation_Text_22ABC2: @ 822ABC2
.string "Please step this way.$"
Route112_CableCarStation_Text_22ABD8: @ 822ABD8
.string "Please ride with us another time.$"