#include "macros/scrcmd.inc"
#include "res/text/bank/route_206.h"


    ScriptEntry _0016
    ScriptEntry _001C
    ScriptEntry _00A4
    ScriptEntry _00B7
    ScriptEntry _00CE
    ScriptEntryEnd

_0016:
    SetFlag FLAG_UNK_0x09E6
    End

_001C:
    CallIfSet FLAG_ON_CYCLING_ROAD, _009F
    GetPreviousMapID VAR_MAP_LOCAL_0
    GoToIfEq VAR_MAP_LOCAL_0, MAP_HEADER_ROUTE_206_CYCLING_ROAD_NORTH_GATE, _0047
    GoToIfEq VAR_MAP_LOCAL_0, MAP_HEADER_ROUTE_206_CYCLING_ROAD_SOUTH_GATE, _0047
    End

_0047:
    GoToIfSet FLAG_UNK_0x0003, _009D
    GetPlayerMapPos VAR_MAP_LOCAL_0, VAR_MAP_LOCAL_1
    GoToIfLt VAR_MAP_LOCAL_0, 0x12B, _009D
    GoToIfGt VAR_MAP_LOCAL_0, 0x132, _009D
    GoToIfEq VAR_MAP_LOCAL_1, 0x240, _008E
    GoToIfEq VAR_MAP_LOCAL_1, 0x2A9, _008E
    End

_008E:
    SetFlag FLAG_UNK_0x0003
    SetFlag FLAG_ON_CYCLING_ROAD
    ScrCmd_2BF
    ScrCmd_0C9 1
    End

_009D:
    End

_009F:
    ScrCmd_0C9 1
    Return

_00A4:
    PlayFanfare SEQ_SE_CONFIRM
    LockAll
    FacePlayer
    Message 0
    WaitABXPadPress
    CloseMessage
    ReleaseAll
    End

_00B7:
    ShowArrowSign 1
    End

_00CE:
    ShowArrowSign 2
    End

    .balign 4, 0
