mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 12:07:38 +01:00
100 lines
2.4 KiB
PHP
100 lines
2.4 KiB
PHP
|
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 ROUTE_112, 255, 28, 28
|
||
|
compare_var_to_value VAR_0x40A3, 2
|
||
|
call_if 1, Route112_CableCarStation_EventScript_22AADD
|
||
|
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 255, Route112_CableCarStation_Movement_22AB80
|
||
|
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, 5
|
||
|
compare_var_to_value VAR_RESULT, 1
|
||
|
goto_eq Route112_CableCarStation_EventScript_22AB38
|
||
|
compare_var_to_value VAR_RESULT, 0
|
||
|
goto_eq Route112_CableCarStation_EventScript_22AB67
|
||
|
end
|
||
|
|
||
|
Route112_CableCarStation_EventScript_22AB38:: @ 822AB38
|
||
|
msgbox Route112_CableCarStation_Text_22ABC2, 4
|
||
|
closemessage
|
||
|
applymovement 1, Route112_CableCarStation_Movement_22AB71
|
||
|
applymovement 255, Route112_CableCarStation_Movement_22AB7B
|
||
|
waitmovement 0
|
||
|
setvar VAR_0x8004, 0
|
||
|
setvar VAR_0x40A3, 1
|
||
|
incrementgamestat 48
|
||
|
special sub_8138B8C
|
||
|
special sub_814FC9C
|
||
|
waitstate
|
||
|
release
|
||
|
end
|
||
|
|
||
|
Route112_CableCarStation_EventScript_22AB67:: @ 822AB67
|
||
|
msgbox Route112_CableCarStation_Text_22ABD8, 4
|
||
|
release
|
||
|
end
|
||
|
|
||
|
Route112_CableCarStation_Movement_22AB71: @ 822AB71
|
||
|
step_up
|
||
|
step_up
|
||
|
step_right
|
||
|
step_27
|
||
|
step_end
|
||
|
|
||
|
Route112_CableCarStation_Movement_22AB76: @ 822AB76
|
||
|
step_14
|
||
|
step_left
|
||
|
step_down
|
||
|
step_down
|
||
|
step_end
|
||
|
|
||
|
Route112_CableCarStation_Movement_22AB7B: @ 822AB7B
|
||
|
step_up
|
||
|
step_up
|
||
|
step_up
|
||
|
step_14
|
||
|
step_end
|
||
|
|
||
|
Route112_CableCarStation_Movement_22AB80: @ 822AB80
|
||
|
step_down
|
||
|
step_down
|
||
|
step_down
|
||
|
step_14
|
||
|
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.$"
|
||
|
|