2021-07-20 21:18:31 +02:00
|
|
|
Route110_SeasideCyclingRoadSouthEntrance_MapScripts::
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, Route110_SeasideCyclingRoadSouthEntrance_OnTransition
|
2018-06-21 00:42:01 +02:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route110_SeasideCyclingRoadSouthEntrance_OnTransition:
|
2018-08-08 10:37:12 +02:00
|
|
|
compare VAR_CYCLING_CHALLENGE_STATE, 3
|
2019-11-06 18:49:14 +01:00
|
|
|
call_if_eq Route110_SeasideCyclingRoadSouthEntrance_EventScript_RestartChallenge
|
2018-08-08 10:37:12 +02:00
|
|
|
compare VAR_CYCLING_CHALLENGE_STATE, 2
|
2019-11-06 18:49:14 +01:00
|
|
|
call_if_eq Route110_SeasideCyclingRoadSouthEntrance_EventScript_RestartChallenge
|
2018-06-21 00:42:01 +02:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route110_SeasideCyclingRoadSouthEntrance_EventScript_RestartChallenge::
|
2018-08-08 10:37:12 +02:00
|
|
|
setvar VAR_CYCLING_CHALLENGE_STATE, 1
|
2018-06-21 00:42:01 +02:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route110_SeasideCyclingRoadSouthEntrance_EventScript_Clerk::
|
2018-06-21 00:42:01 +02:00
|
|
|
lock
|
|
|
|
faceplayer
|
2019-11-06 18:49:14 +01:00
|
|
|
msgbox Route110_SeasideCyclingRoadSouthEntrance_Text_GoAllOutOnCyclingRoad, MSGBOX_DEFAULT
|
2018-06-21 00:42:01 +02:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route110_SeasideCyclingRoadSouthEntrance_EventScript_BikeCheck::
|
2018-06-21 00:42:01 +02:00
|
|
|
lockall
|
|
|
|
specialvar VAR_RESULT, GetPlayerAvatarBike
|
|
|
|
compare VAR_RESULT, 2
|
2019-11-06 18:49:14 +01:00
|
|
|
call_if_eq Route110_SeasideCyclingRoadSouthEntrance_EventScript_OnMachBike
|
2018-06-21 00:42:01 +02:00
|
|
|
compare VAR_RESULT, 0
|
2019-11-06 18:49:14 +01:00
|
|
|
goto_if_eq Route110_SeasideCyclingRoadSouthEntrance_EventScript_NoBike
|
2018-06-21 00:42:01 +02:00
|
|
|
setflag FLAG_SYS_CYCLING_ROAD
|
|
|
|
setvar VAR_TEMP_1, 1
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route110_SeasideCyclingRoadSouthEntrance_EventScript_OnMachBike::
|
2018-08-08 10:37:12 +02:00
|
|
|
setvar VAR_CYCLING_CHALLENGE_STATE, 1
|
2018-06-21 00:42:01 +02:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route110_SeasideCyclingRoadSouthEntrance_EventScript_NoBike::
|
2019-11-06 18:49:14 +01:00
|
|
|
msgbox Route110_SeasideCyclingRoadSouthEntrance_Text_TooDangerousToWalk, MSGBOX_DEFAULT
|
2018-06-21 00:42:01 +02:00
|
|
|
closemessage
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, Route110_SeasideCyclingRoadSouthEntrance_Movement_PushPlayerBackFromCounter
|
2018-06-21 00:42:01 +02:00
|
|
|
waitmovement 0
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route110_SeasideCyclingRoadSouthEntrance_Movement_PushPlayerBackFromCounter:
|
2018-06-21 00:42:01 +02:00
|
|
|
walk_left
|
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route110_SeasideCyclingRoadSouthEntrance_EventScript_ClearCyclingRoad::
|
2018-06-21 00:42:01 +02:00
|
|
|
lockall
|
2018-08-08 10:37:12 +02:00
|
|
|
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
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route110_SeasideCyclingRoadSouthEntrance_Text_GoAllOutOnCyclingRoad:
|
2018-06-21 00:42:01 +02:00
|
|
|
.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!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route110_SeasideCyclingRoadSouthEntrance_Text_TooDangerousToWalk:
|
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.$"
|
|
|
|
|