pokeemerald/data/maps/Route110_SeasideCyclingRoadSouthEntrance/scripts.inc

70 lines
2.2 KiB
PHP
Raw Normal View History

2018-06-21 00:42:01 +02:00
Route110_SeasideCyclingRoadSouthEntrance_MapScripts:: @ 826EBA1
map_script 3, Route110_SeasideCyclingRoadSouthEntrance_MapScript1_26EBA7
.byte 0
Route110_SeasideCyclingRoadSouthEntrance_MapScript1_26EBA7: @ 826EBA7
compare VAR_CYCLING_CHALLENGE_STATE, 3
2018-06-21 00:42:01 +02:00
call_if 1, Route110_SeasideCyclingRoadSouthEntrance_EventScript_26EBBE
compare VAR_CYCLING_CHALLENGE_STATE, 2
2018-06-21 00:42:01 +02:00
call_if 1, Route110_SeasideCyclingRoadSouthEntrance_EventScript_26EBBE
end
Route110_SeasideCyclingRoadSouthEntrance_EventScript_26EBBE:: @ 826EBBE
setvar VAR_CYCLING_CHALLENGE_STATE, 1
2018-06-21 00:42:01 +02:00
return
Route110_SeasideCyclingRoadSouthEntrance_EventScript_26EBC4:: @ 826EBC4
lock
faceplayer
msgbox Route110_SeasideCyclingRoadSouthEntrance_Text_26EC23, MSGBOX_DEFAULT
2018-06-21 00:42:01 +02:00
release
end
Route110_SeasideCyclingRoadSouthEntrance_EventScript_26EBD0:: @ 826EBD0
lockall
specialvar VAR_RESULT, GetPlayerAvatarBike
compare VAR_RESULT, 2
call_if 1, Route110_SeasideCyclingRoadSouthEntrance_EventScript_26EBF6
compare VAR_RESULT, 0
goto_eq Route110_SeasideCyclingRoadSouthEntrance_EventScript_26EBFC
setflag FLAG_SYS_CYCLING_ROAD
setvar VAR_TEMP_1, 1
releaseall
end
Route110_SeasideCyclingRoadSouthEntrance_EventScript_26EBF6:: @ 826EBF6
setvar VAR_CYCLING_CHALLENGE_STATE, 1
2018-06-21 00:42:01 +02:00
return
Route110_SeasideCyclingRoadSouthEntrance_EventScript_26EBFC:: @ 826EBFC
msgbox Route110_SeasideCyclingRoadSouthEntrance_Text_26ECAA, MSGBOX_DEFAULT
2018-06-21 00:42:01 +02:00
closemessage
applymovement 255, Route110_SeasideCyclingRoadSouthEntrance_Movement_26EC11
waitmovement 0
releaseall
end
Route110_SeasideCyclingRoadSouthEntrance_Movement_26EC11: @ 826EC11
walk_left
step_end
Route110_SeasideCyclingRoadSouthEntrance_EventScript_26EC13:: @ 826EC13
lockall
setvar VAR_CYCLING_CHALLENGE_STATE, 0
2018-06-21 00:42:01 +02:00
clearflag FLAG_SYS_CYCLING_ROAD
setvar VAR_TEMP_1, 0
releaseall
end
Route110_SeasideCyclingRoadSouthEntrance_Text_26EC23: @ 826EC23
.string "On CYCLING ROAD, you can go all out\n"
2018-12-07 16:41:08 +01:00
.string "and cycle as fast as you'd like.\p"
2018-06-21 00:42:01 +02:00
.string "It feels great to go that fast, but try\n"
.string "not to crash into anyone!$"
Route110_SeasideCyclingRoadSouthEntrance_Text_26ECAA: @ 826ECAA
2018-12-07 16:41:08 +01:00
.string "Sorry, you can't walk on CYCLING\n"
.string "ROAD. It's too dangerous.\p"
2018-06-21 00:42:01 +02:00
.string "Please come back with a BIKE.$"