mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 03:57:38 +01:00
c557ac61ae
* adds some constants for standard script names and messagebox types * replaces some callstd calls with msgbox calls where equivalent * replaces msgbox and callstd calls using raw digits with versions that use the constants
99 lines
2.4 KiB
PHP
99 lines
2.4 KiB
PHP
MtChimney_CableCarStation_MapScripts:: @ 822ABFA
|
|
map_script 3, MtChimney_CableCarStation_MapScript1_22AC05
|
|
map_script 2, MtChimney_CableCarStation_MapScript2_22AC1D
|
|
.byte 0
|
|
|
|
MtChimney_CableCarStation_MapScript1_22AC05: @ 822AC05
|
|
compare VAR_0x40A3, 1
|
|
call_if 1, MtChimney_CableCarStation_EventScript_22AC11
|
|
end
|
|
|
|
MtChimney_CableCarStation_EventScript_22AC11:: @ 822AC11
|
|
setobjectxyperm 1, 5, 4
|
|
setobjectmovementtype 1, 10
|
|
return
|
|
|
|
MtChimney_CableCarStation_MapScript2_22AC1D: @ 822AC1D
|
|
map_script_2 VAR_0x40A3, 1, MtChimney_CableCarStation_EventScript_22AC27
|
|
.2byte 0
|
|
|
|
MtChimney_CableCarStation_EventScript_22AC27:: @ 822AC27
|
|
lockall
|
|
applymovement 255, MtChimney_CableCarStation_Movement_22ACB4
|
|
applymovement 1, MtChimney_CableCarStation_Movement_22ACAA
|
|
waitmovement 0
|
|
setvar VAR_0x40A3, 0
|
|
setobjectxyperm 1, 6, 7
|
|
setobjectmovementtype 1, 8
|
|
releaseall
|
|
end
|
|
|
|
MtChimney_CableCarStation_EventScript_22AC4B:: @ 822AC4B
|
|
lock
|
|
faceplayer
|
|
msgbox MtChimney_CableCarStation_Text_22ACB9, MSGBOX_YESNO
|
|
compare VAR_RESULT, 1
|
|
goto_eq MtChimney_CableCarStation_EventScript_22AC6C
|
|
compare VAR_RESULT, 0
|
|
goto_eq MtChimney_CableCarStation_EventScript_22AC9B
|
|
end
|
|
|
|
MtChimney_CableCarStation_EventScript_22AC6C:: @ 822AC6C
|
|
msgbox MtChimney_CableCarStation_Text_22ACF8, MSGBOX_DEFAULT
|
|
closemessage
|
|
applymovement 1, MtChimney_CableCarStation_Movement_22ACA5
|
|
applymovement 255, MtChimney_CableCarStation_Movement_22ACAF
|
|
waitmovement 0
|
|
setvar VAR_0x8004, 1
|
|
setvar VAR_0x40A3, 2
|
|
incrementgamestat 48
|
|
special CableCarWarp
|
|
special sub_814FC9C
|
|
waitstate
|
|
release
|
|
end
|
|
|
|
MtChimney_CableCarStation_EventScript_22AC9B:: @ 822AC9B
|
|
msgbox MtChimney_CableCarStation_Text_22AD0E, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
MtChimney_CableCarStation_Movement_22ACA5: @ 822ACA5
|
|
walk_up
|
|
walk_up
|
|
walk_left
|
|
walk_in_place_fastest_right
|
|
step_end
|
|
|
|
MtChimney_CableCarStation_Movement_22ACAA: @ 822ACAA
|
|
delay_16
|
|
walk_right
|
|
walk_down
|
|
walk_down
|
|
step_end
|
|
|
|
MtChimney_CableCarStation_Movement_22ACAF: @ 822ACAF
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
delay_16
|
|
step_end
|
|
|
|
MtChimney_CableCarStation_Movement_22ACB4: @ 822ACB4
|
|
walk_down
|
|
walk_down
|
|
walk_down
|
|
delay_16
|
|
step_end
|
|
|
|
MtChimney_CableCarStation_Text_22ACB9: @ 822ACB9
|
|
.string "The CABLE CAR is ready to go down.\n"
|
|
.string "Would you like to be on it?$"
|
|
|
|
MtChimney_CableCarStation_Text_22ACF8: @ 822ACF8
|
|
.string "Please step this way.$"
|
|
|
|
MtChimney_CableCarStation_Text_22AD0E: @ 822AD0E
|
|
.string "Please ride with us another time.$"
|
|
|