﻿from ScenarioHelper import *

def main():
    CreateScenaFile(
        "r2030.bin",                # FileName
        "r2030",                    # MapName
        "r2030",                    # Location
        0x0062,                     # MapIndex
        "ed7202",
        0x00000000,                 # Flags
        ("r2030", "r0000_1", "", "", "", ""),   # include
        0x04,                       # PlaceNameNumber
        0x13,                       # PreInitFunctionIndex
        b'\x00\xff\x03',            # Unknown_51

        # Information
        [0, 0, -1000, 0, 0, 0, 24000, 500, 30, 45, 0, 360, 0, 0, 0, 0, 0, 1, 98, 0, 4, 0, 5],
    )

    BuildStringList((
        "r2030",                  # 0
        "猪笼草",                 # 1
        "猪笼草",                 # 2
        "钢铁土龙",               # 3
        "钢铁土龙",               # 4
        "蜂鸟鳄鱼",               # 5
        "巴士",                   # 6
        "白衣男人",               # 7
        "少年",                   # 8
        "警备队员",               # 9
        "警备队员",               # 10
        "警备队员",               # 11
        "警备队员",               # 12
        "警备队员",               # 13
        "警备队员",               # 14
        "警备队员",               # 15
        "猎兵",                   # 16
        "猎兵",                   # 17
        "猎兵",                   # 18
        "猎兵",                   # 19
        "猎兵",                   # 20
        "谢莉",                   # 21
        "军用魔兽",               # 22
        "军用魔兽",               # 23
        "军用魔兽",               # 24
        "军用魔兽",               # 25
        "军用魔兽",               # 26
        "车",                     # 27
        "新型装甲车",             # 28
        "梅尔卡瓦九号机",         # 29
        "梅尔卡瓦光学迷彩",       # 30
        "梅尔卡瓦影子",           # 31
        "SE控制",                 # 32
        "br2000",                 # 33
        "br2000",                 # 34
        "br2000",                 # 35
        "br2000",                 # 36
        "br2000",                 # 37
        "br2000",                 # 38
        "br2000",                 # 39
        "br2000",                 # 40
        "br2000",                 # 41
        "克洛斯贝尔市方向",       # 42
        "人偶工房方向",           # 43
        "矿山镇玛因兹方向",       # 44
    ))

    ATBonus("ATBonus_90C", 100, 5, 1, 5, 1, 5, 1, 5, 5, 0, 0, 0, 1, 0, 0, 0)
    ATBonus("ATBonus_92C", 100, 5, 0, 5, 0, 5, 0, 2, 5, 0, 0, 0, 2, 0, 0, 0)

    Sepith("Sepith_A623", 0,   7,   2,   0,   1,   0,   4)
    Sepith("Sepith_A633", 5,   2,   0,   3,   0,   3,   2)
    Sepith("Sepith_A61B", 3,   0,   1,   5,   3,   2,   0)
    Sepith("Sepith_A62B", 6,   0,   8,   0,   1,   0,   6)
    Sepith("Sepith_A613", 6,   0,   0,   3,   2,   4,   0)

    MonsterBattlePostion("MonsterBattlePostion_94C", 7, 9, 180)
    MonsterBattlePostion("MonsterBattlePostion_950", 11, 10, 180)
    MonsterBattlePostion("MonsterBattlePostion_954", 10, 13, 180)
    MonsterBattlePostion("MonsterBattlePostion_958", 5, 11, 180)
    MonsterBattlePostion("MonsterBattlePostion_95C", 12, 12, 180)
    MonsterBattlePostion("MonsterBattlePostion_960", 4, 14, 180)
    MonsterBattlePostion("MonsterBattlePostion_964", 14, 14, 180)
    MonsterBattlePostion("MonsterBattlePostion_968", 2, 13, 180)
    MonsterBattlePostion("MonsterBattlePostion_9CC", 7, 4, 0)
    MonsterBattlePostion("MonsterBattlePostion_9D0", 10, 11, 225)
    MonsterBattlePostion("MonsterBattlePostion_9D4", 4, 7, 90)
    MonsterBattlePostion("MonsterBattlePostion_9D8", 12, 7, 270)
    MonsterBattlePostion("MonsterBattlePostion_9DC", 4, 11, 135)
    MonsterBattlePostion("MonsterBattlePostion_9E0", 11, 4, 315)
    MonsterBattlePostion("MonsterBattlePostion_9E4", 7, 12, 180)
    MonsterBattlePostion("MonsterBattlePostion_9E8", 5, 5, 45)
    MonsterBattlePostion("MonsterBattlePostion_96C", 8, 8, 180)
    MonsterBattlePostion("MonsterBattlePostion_970", 5, 9, 180)
    MonsterBattlePostion("MonsterBattlePostion_974", 11, 10, 180)
    MonsterBattlePostion("MonsterBattlePostion_978", 6, 12, 180)
    MonsterBattlePostion("MonsterBattlePostion_97C", 10, 12, 180)
    MonsterBattlePostion("MonsterBattlePostion_980", 13, 13, 180)
    MonsterBattlePostion("MonsterBattlePostion_984", 4, 14, 180)
    MonsterBattlePostion("MonsterBattlePostion_988", 8, 14, 180)

    # monster count: 7

    BattleInfo(
        "BattleInfo_AB4", 0x0000, 52, 6, 45, 10, 1, 25, 0, "br2000", "Sepith_A623", 40, 30, 20, 0,
        (
            ("ms65900.dat", "ms65900.dat", 0, 0, 0, 0, 0, 0, "MonsterBattlePostion_94C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms65900.dat", "ms65900.dat", "ms65900.dat", 0, 0, 0, 0, 0, "MonsterBattlePostion_96C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms65900.dat", "ms65900.dat", "ms65900.dat", "ms65900.dat", "ms65900.dat", "ms65900.dat", 0, 0, "MonsterBattlePostion_94C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            (),
        )
    )

    BattleInfo(
        "BattleInfo_C18", 0x0010, 52, 6, 90, 0, 1, 5, 0, "br2000", "Sepith_A633", 30, 40, 20, 10,
        (
            ("ms77400.dat", 0, 0, 0, 0, 0, "ms77400.dat", 0, "MonsterBattlePostion_96C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms77400.dat", "ms77400.dat", 0, 0, 0, 0, "ms77400.dat", 0, "MonsterBattlePostion_94C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms77400.dat", "ms77400.dat", "ms62500.dat", 0, 0, 0, "ms77400.dat", 0, "MonsterBattlePostion_96C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms77400.dat", "ms77400.dat", "ms77400.dat", "ms62500.dat", 0, 0, "ms77400.dat", 0, "MonsterBattlePostion_94C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
        )
    )

    BattleInfo(
        "BattleInfo_B50", 0x0000, 52, 6, 45, 10, 1, 40, 0, "br2000", "Sepith_A61B", 30, 40, 20, 10,
        (
            ("ms65500.dat", 0, 0, 0, 0, 0, 0, 0, "MonsterBattlePostion_96C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms65500.dat", "ms65500.dat", 0, 0, 0, 0, 0, 0, "MonsterBattlePostion_94C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms65500.dat", "ms62500.dat", "ms65500.dat", 0, 0, 0, 0, 0, "MonsterBattlePostion_96C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms65500.dat", "ms65500.dat", "ms69400.dat", "ms65500.dat", 0, 0, 0, 0, "MonsterBattlePostion_94C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
        )
    )

    BattleInfo(
        "BattleInfo_CE0", 0x0000, 52, 6, 45, 10, 1, 25, 0, "br2000", "Sepith_A62B", 30, 40, 20, 10,
        (
            ("ms69400.dat", 0, 0, 0, 0, 0, 0, 0, "MonsterBattlePostion_96C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms69400.dat", "ms69400.dat", 0, 0, 0, 0, 0, 0, "MonsterBattlePostion_96C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms69400.dat", "ms69400.dat", "ms69400.dat", 0, 0, 0, 0, 0, "MonsterBattlePostion_96C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms69400.dat", "ms69400.dat", "ms69400.dat", "ms69400.dat", 0, 0, 0, 0, "MonsterBattlePostion_96C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
        )
    )

    BattleInfo(
        "BattleInfo_9EC", 0x0000, 52, 6, 45, 10, 1, 30, 0, "br2000", "Sepith_A613", 30, 40, 20, 10,
        (
            ("ms62500.dat", 0, 0, 0, 0, 0, 0, 0, "MonsterBattlePostion_96C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms62500.dat", "ms62500.dat", 0, 0, 0, 0, 0, 0, "MonsterBattlePostion_94C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms62500.dat", "ms65900.dat", "ms62500.dat", 0, 0, 0, 0, 0, "MonsterBattlePostion_96C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
            ("ms62500.dat", "ms62500.dat", "ms65500.dat", "ms62500.dat", 0, 0, 0, 0, "MonsterBattlePostion_94C", "MonsterBattlePostion_9CC", "ed7450", "ed7453", "ATBonus_90C"),
        )
    )

    # event battle count: 6

    BattleInfo(
        "BattleInfo_E74", 0x0000, 50, 6, 45, 0, 1, 0, 0, "br2000", 0x00000000, 100, 0, 0, 0,
        (
            ("ms65500.dat", "ms65500.dat", "ms65500.dat", "ms65500.dat", "ms65500.dat", "ms65500.dat", "ms65500.dat", "ms65500.dat", "MonsterBattlePostion_94C", "MonsterBattlePostion_9CC", "ed7451", "ed7453", "ATBonus_90C"),
            (),
            (),
            (),
        )
    )

    BattleInfo(
        "BattleInfo_DA8", 0x0C10, 255, 6, 0, 0, 3, 0, 0, "br2000", 0x00000000, 100, 0, 0, 0,
        (
            ("ms77400.dat", "ms77400.dat", "ms77400.dat", "ms77400.dat", "ms77400.dat", "ms77400.dat", 0, 0, "MonsterBattlePostion_94C", "MonsterBattlePostion_9CC", "ed7453", "ed7453", "ATBonus_90C"),
            (),
            (),
            (),
        )
    )

    BattleInfo(
        "BattleInfo_DEC", 0x0C00, 255, 6, 0, 0, 3, 0, 0, "br2000", 0x00000000, 100, 0, 0, 0,
        (
            ("ms76001.dat", "ms76001.dat", "ms76001.dat", "ms76001.dat", "ms76001.dat", "ms76001.dat", 0, 0, "MonsterBattlePostion_96C", "MonsterBattlePostion_9CC", "ed7453", "ed7453", "ATBonus_90C"),
            (),
            (),
            (),
        )
    )

    BattleInfo(
        "BattleInfo_E30", 0x0042, 3, 6, 45, 3, 3, 30, 0, "br2000", 0x00000000, 100, 0, 0, 0,
        (
            ("ms82001.dat", "ms82001.dat", "ms82001.dat", "ms82001.dat", "ms82001.dat", 0, 0, 0, "MonsterBattlePostion_94C", "MonsterBattlePostion_9CC", "ed7453", "ed7453", "ATBonus_92C"),
            (),
            (),
            (),
        )
    )

    AddCharChip((
        "chr/ch00000.itc",                   # 00
        "chr/ch00000.itc",                   # 01
        "chr/ch00000.itc",                   # 02
        "chr/ch00000.itc",                   # 03
        "chr/ch00000.itc",                   # 04
        "chr/ch00000.itc",                   # 05
        "chr/ch00000.itc",                   # 06
        "chr/ch00000.itc",                   # 07
        "chr/ch00000.itc",                   # 08
        "chr/ch00000.itc",                   # 09
        "chr/ch00000.itc",                   # 0A
        "chr/ch00000.itc",                   # 0B
        "chr/ch00000.itc",                   # 0C
        "chr/ch00000.itc",                   # 0D
        "chr/ch00000.itc",                   # 0E
        "chr/ch00000.itc",                   # 0F
        "monster/ch62550.itc",               # 10
        "monster/ch62551.itc",               # 11
        "monster/ch65950.itc",               # 12
        "monster/ch65951.itc",               # 13
        "monster/ch65550.itc",               # 14
        "monster/ch65551.itc",               # 15
        "monster/ch77450.itc",               # 16
        "monster/ch77450.itc",               # 17
        "monster/ch69450.itc",               # 18
        "monster/ch69450.itc",               # 19
        "monster/ch76050.itc",               # 1A
        "monster/ch76051.itc",               # 1B
    ))

    DeclNpc(-36279,  9,       57580,   270,  484,  0x0, 0,   22,  0,   0,   0,   255, 255, 255,  0)
    DeclNpc(-74209,  0,       149949,  270,  484,  0x0, 0,   22,  0,   0,   0,   255, 255, 255,  0)
    DeclNpc(-36279,  1009,    57580,   270,  484,  0x0, 0,   26,  0,   0,   1,   255, 255, 255,  0)
    DeclNpc(-74209,  1000,    149949,  270,  484,  0x0, 0,   26,  0,   0,   1,   255, 255, 255,  0)
    DeclNpc(-50000,  6500,    69500,   0,    484,  0x0, 0,   20,  0,   0,   2,   255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    197,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    453,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    197,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    197,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    197,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    197,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    197,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)
    DeclNpc(0,       0,       0,       0,    197,  0x0, 0,   0,   0,   255, 255, 255, 255, 255,  0)

    DeclMonster(-7080,   38670,   1500,    0x1010000,    "BattleInfo_AB4", 0,   18,  0xFFFF, 2,  3)
    DeclMonster(-51440,  65480,   6000,    0x1010000,    "BattleInfo_C18", 0,   22,  0xFFFF, 6,  7)
    DeclMonster(-34210,  55840,   0,       0x1010000,    "BattleInfo_B50", 0,   20,  0xFFFF, 4,  5)
    DeclMonster(-37000,  96550,   600,     0x1010000,    "BattleInfo_CE0", 0,   24,  0xFFFF, 8,  9)
    DeclMonster(-35010,  114720,  0,       0x1010000,    "BattleInfo_CE0", 0,   24,  0xFFFF, 8,  9)
    DeclMonster(2700,    112600,  3810,    0x1010000,    "BattleInfo_9EC", 0,   16,  0xFFFF, 0,  1)
    DeclMonster(-73010,  151070,  0,       0x1010000,    "BattleInfo_AB4", 0,   18,  0xFFFF, 2,  3)

    DeclEvent(0x0000, 0, 25,  -29.84000015258789,    82.05000305175781,     -1.0,                  2500.0,                [0.05000000074505806,  -0.0,                  0.0,                   0.0,                   -0.0,                  0.20000000298023224,   -0.0,                  0.0,                   0.0,                   -0.0,                  0.20000000298023224,   0.0,                   1.4919999837875366,    -16.410001754760742,   0.20000000298023224,   1.0])
    DeclEvent(0x0000, 0, 41,  -15.0,                 110.0,                 -1.0,                  1406.25,               [0.20000000298023224,  -0.0,                  0.0,                   0.0,                   -0.0,                  0.06666666269302368,   -0.0,                  0.0,                   0.0,                   -0.0,                  0.20000000298023224,   0.0,                   3.0,                   -7.3333330154418945,   0.20000000298023224,   1.0])
    DeclEvent(0x0000, 0, 73,  -15.0,                 110.0,                 -1.0,                  1406.25,               [0.20000000298023224,  -0.0,                  0.0,                   0.0,                   -0.0,                  0.06666666269302368,   -0.0,                  0.0,                   0.0,                   -0.0,                  0.20000000298023224,   0.0,                   3.0,                   -7.3333330154418945,   0.20000000298023224,   1.0])
    DeclEvent(0x0000, 0, 80,  -43.689998626708984,   125.19000244140625,    -1.0,                  625.0,                 [0.14142131805419922,  0.07071070373058319,   -0.0,                  0.0,                   -0.14142140746116638,  0.07071065902709961,   -0.0,                  0.0,                   0.0,                   -0.0,                  0.20000000298023224,   0.0,                   23.883243560791016,    -5.7629170417785645,   0.20000000298023224,   1.0])
    DeclEvent(0x0000, 0, 81,  -14.199999809265137,   31.329999923706055,    -1.0,                  1406.25,               [-4.265052311325235e-08, 0.20000000298023224,   0.0,                   0.0,                   -0.06666666269302368,  -1.2795156578704336e-07, 0.0,                   0.0,                   0.0,                   -0.0,                  0.20000000298023224,   0.0,                   2.0886659622192383,    2.8400039672851562,    0.20000000298023224,   1.0])

    DeclActor(-26000,  0,       116600,  1500,    -26000,  1500,    116600,  0x007C, 0,  18, 0x0000)
    DeclActor(-50000,  6000,    69500,   1200,    -50000,  7000,    69500,   0x007C, 0,  6,  0x0000)
    DeclActor(-36280,  10,      57580,   1200,    -36280,  10,      57580,   0x007C, 0,  7,  0x0000)
    DeclActor(-74210,  0,       149950,  1200,    -74210,  0,       149950,  0x007C, 0,  8,  0x0000)
    DeclActor(-25000,  0,       94440,   1500,    -25000,  2000,    94440,   0x007C, 0,  9,  0x0000)
    DeclActor(-24050,  0,       93390,   1200,    -24050,  2000,    93390,   0x007C, 0,  9,  0x0000)
    DeclActor(-59360,  0,       145870,  1200,    -49430,  -3000,   154830,  0x007C, 0,  19, 0x0000)
    DeclActor(-58150,  6000,    65950,   1800,    -58800,  6500,    65600,   0x007C, 0,  17, 0x0000)
    DeclActor(-1810,   0,       23520,   1500,    -1810,   2000,    23520,   0x007C, 0,  9,  0x0000)
    DeclActor(-38630,  0,       101340,  1500,    -38630,  1700,    101340,  0x007C, 0,  82, 0x0000)

    PlaceName(-1.0, 0.0, -15.0, 0x0000, 0x0000, "克洛斯贝尔市方向")
    PlaceName(38.25, 0.0, 116.25, 0x0000, 0x0000, "人偶工房方向")
    PlaceName(-86.0, 0.0, 235.0, 0x0000, 0x0000, "矿山镇玛因兹方向")
    PlaceName(-26.0, 0.0, 116.5999984741211, 0x0000, 0x0055, "")

    ChipFrameInfo(1000, 0, [0, 1, 2, 3, 4, 3, 2, 1])             # 0
    ChipFrameInfo(1000, 0, [0, 1, 2, 3, 4])                      # 1
    ChipFrameInfo(1000, 0, [0, 1, 2, 3, 4, 3, 2, 1])             # 2
    ChipFrameInfo(2000, 0, [0, 1, 2, 1, 0, 3, 4, 3])             # 3
    ChipFrameInfo(1500, 0, [0, 1, 2, 3, 4, 3, 2, 1])             # 4
    ChipFrameInfo(2000, 0, [0, 1, 2, 3, 4, 3, 2, 1])             # 5
    ChipFrameInfo(1000, 0, [0, 1, 2, 3, 4, 3, 2, 1])             # 6
    ChipFrameInfo(2000, 0, [0, 1, 2, 3, 4, 3, 2, 1])             # 7
    ChipFrameInfo(500, 0, [0, 1, 2, 3, 4, 5])                    # 8
    ChipFrameInfo(1000, 0, [0, 1, 2, 3, 4, 5])                   # 9

    ScpFunction((
        "Function_0_107C",         # 00, 0
        "Function_1_109B",         # 01, 1
        "Function_2_10BA",         # 02, 2
        "Function_3_10D9",         # 03, 3
        "Function_4_11BD",         # 04, 4
        "Function_5_17D8",         # 05, 5
        "Function_6_1DC6",         # 06, 6
        "Function_7_1FC4",         # 07, 7
        "Function_8_22EE",         # 08, 8
        "Function_9_2618",         # 09, 9
        "Function_10_2945",        # 0A, 10
        "Function_11_2949",        # 0B, 11
        "Function_12_2B0F",        # 0C, 12
        "Function_13_2C42",        # 0D, 13
        "Function_14_2D55",        # 0E, 14
        "Function_15_2D8B",        # 0F, 15
        "Function_16_2DDC",        # 10, 16
        "Function_17_2E70",        # 11, 17
        "Function_18_2F0F",        # 12, 18
        "Function_19_2F49",        # 13, 19
        "Function_20_3011",        # 14, 20
        "Function_21_38ED",        # 15, 21
        "Function_22_394F",        # 16, 22
        "Function_23_39BF",        # 17, 23
        "Function_24_39DB",        # 18, 24
        "Function_25_3A21",        # 19, 25
        "Function_26_3EBC",        # 1A, 26
        "Function_27_3ECC",        # 1B, 27
        "Function_28_3EDF",        # 1C, 28
        "Function_29_3EF2",        # 1D, 29
        "Function_30_3F05",        # 1E, 30
        "Function_31_4494",        # 1F, 31
        "Function_32_4541",        # 20, 32
        "Function_33_457F",        # 21, 33
        "Function_34_45C0",        # 22, 34
        "Function_35_4601",        # 23, 35
        "Function_36_4674",        # 24, 36
        "Function_37_4693",        # 25, 37
        "Function_38_4CAE",        # 26, 38
        "Function_39_4D72",        # 27, 39
        "Function_40_4DD4",        # 28, 40
        "Function_41_4DE4",        # 29, 41
        "Function_42_5BEB",        # 2A, 42
        "Function_43_617F",        # 2B, 43
        "Function_44_61B3",        # 2C, 44
        "Function_45_6203",        # 2D, 45
        "Function_46_6253",        # 2E, 46
        "Function_47_626D",        # 2F, 47
        "Function_48_78BA",        # 30, 48
        "Function_49_790A",        # 31, 49
        "Function_50_7923",        # 32, 50
        "Function_51_793C",        # 33, 51
        "Function_52_79C0",        # 34, 52
        "Function_53_7A33",        # 35, 53
        "Function_54_7AB7",        # 36, 54
        "Function_55_7B2A",        # 37, 55
        "Function_56_7B9D",        # 38, 56
        "Function_57_7C07",        # 39, 57
        "Function_58_7C17",        # 3A, 58
        "Function_59_7F10",        # 3B, 59
        "Function_60_7F35",        # 3C, 60
        "Function_61_7F5A",        # 3D, 61
        "Function_62_7F7F",        # 3E, 62
        "Function_63_7FA4",        # 3F, 63
        "Function_64_7FC9",        # 40, 64
        "Function_65_83E9",        # 41, 65
        "Function_66_83F9",        # 42, 66
        "Function_67_8729",        # 43, 67
        "Function_68_88E8",        # 44, 68
        "Function_69_9354",        # 45, 69
        "Function_70_9399",        # 46, 70
        "Function_71_93ED",        # 47, 71
        "Function_72_9452",        # 48, 72
        "Function_73_946D",        # 49, 73
        "Function_74_9AA7",        # 4A, 74
        "Function_75_9AD5",        # 4B, 75
        "Function_76_9B03",        # 4C, 76
        "Function_77_9B1D",        # 4D, 77
        "Function_78_A411",        # 4E, 78
        "Function_79_A434",        # 4F, 79
        "Function_80_A44E",        # 50, 80
        "Function_81_A51B",        # 51, 81
        "Function_82_A575",        # 52, 82
    ))


    def Function_0_107C(): pass

    label("Function_0_107C")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_109A")
    OP_A1(0xFE, 0x3E8, 0x8, 0x0, 0x1, 0x2, 0x3, 0x4, 0x3, 0x2, 0x1)
    Jump("Function_0_107C")

    label("loc_109A")

    Return()

    # Function_0_107C end

    def Function_1_109B(): pass

    label("Function_1_109B")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_10B9")
    OP_A1(0xFE, 0x3E8, 0x8, 0x0, 0x1, 0x2, 0x3, 0x4, 0x3, 0x2, 0x1)
    Jump("Function_1_109B")

    label("loc_10B9")

    Return()

    # Function_1_109B end

    def Function_2_10BA(): pass

    label("Function_2_10BA")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_10D8")
    OP_A1(0xFE, 0x5DC, 0x8, 0x0, 0x1, 0x2, 0x3, 0x4, 0x3, 0x2, 0x1)
    Jump("Function_2_10BA")

    label("loc_10D8")

    Return()

    # Function_2_10BA end

    def Function_3_10D9(): pass

    label("Function_3_10D9")

    SetMapObjFlags(0x4, 0x2000000)
    SetMapObjFlags(0xF, 0x2000000)
    SetMapObjFlags(0x13, 0x2000000)
    SetMapObjFlags(0x14, 0x2000000)
    SetMapObjFlags(0x15, 0x2000000)
    SetMapObjFlags(0x16, 0x2000000)
    SetMapObjFlags(0x17, 0x2000000)
    SetMapObjFlags(0x18, 0x2000000)
    SetMapObjFlags(0x19, 0x2000000)
    SetMapObjFlags(0x1D, 0x2000000)
    SetMapObjFlags(0x1A, 0x2000000)
    SetMapObjFlags(0x1B, 0x2000000)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A2, 0)), scpexpr(EXPR_END)), "loc_112F")
    Jump("loc_11BC")

    label("loc_112F")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A1, 7)), scpexpr(EXPR_END)), "loc_1167")
    SetMapObjFlags(0x1, 0x2000000)
    SetMapObjFlags(0x2, 0x2000000)
    ClearMapObjFlags(0x18, 0x2000000)
    ClearMapObjFlags(0x19, 0x2000000)
    ClearMapObjFlags(0x1D, 0x2000000)
    ClearMapObjFlags(0x1A, 0x2000000)
    ClearMapObjFlags(0x1B, 0x2000000)
    Jump("loc_11BC")

    label("loc_1167")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x180, 0)), scpexpr(EXPR_END)), "loc_1175")
    Jump("loc_11BC")

    label("loc_1175")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x165, 5)), scpexpr(EXPR_END)), "loc_11A7")
    ClearMapObjFlags(0xF, 0x2000000)
    ClearMapObjFlags(0x13, 0x2000000)
    ClearMapObjFlags(0x14, 0x2000000)
    ClearMapObjFlags(0x15, 0x2000000)
    ClearMapObjFlags(0x16, 0x2000000)
    ClearMapObjFlags(0x17, 0x2000000)
    Jump("loc_11BC")

    label("loc_11A7")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x165, 4)), scpexpr(EXPR_END)), "loc_11BC")
    ClearMapObjFlags(0x4, 0x2000000)
    ClearMapObjFlags(0xF, 0x2000000)

    label("loc_11BC")

    Return()

    # Function_3_10D9 end

    def Function_4_11BD(): pass

    label("Function_4_11BD")

    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x0), scpexpr(EXPR_PUSH_LONG, 0x63), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1661")
    ClearScenarioFlags(0x38, 0)
    ClearScenarioFlags(0x38, 1)
    ClearScenarioFlags(0x38, 2)
    ClearScenarioFlags(0x38, 3)
    ClearScenarioFlags(0x38, 4)
    ClearScenarioFlags(0x38, 5)
    ClearScenarioFlags(0x38, 6)
    ClearScenarioFlags(0x38, 7)
    ClearScenarioFlags(0x39, 0)
    ClearScenarioFlags(0x39, 1)
    ClearScenarioFlags(0x39, 2)
    ClearScenarioFlags(0x39, 3)
    ClearScenarioFlags(0x39, 4)
    ClearScenarioFlags(0x39, 5)
    ClearScenarioFlags(0x39, 6)
    ClearScenarioFlags(0x39, 7)
    ClearScenarioFlags(0x3A, 0)
    ClearScenarioFlags(0x3A, 1)
    ClearScenarioFlags(0x3A, 2)
    ClearScenarioFlags(0x3A, 3)
    ClearScenarioFlags(0x3A, 4)
    ClearScenarioFlags(0x3A, 5)
    ClearScenarioFlags(0x3A, 6)
    ClearScenarioFlags(0x3A, 7)
    ClearScenarioFlags(0x3B, 0)
    ClearScenarioFlags(0x3B, 1)
    ClearScenarioFlags(0x3B, 2)
    ClearScenarioFlags(0x3B, 3)
    ClearScenarioFlags(0x3B, 4)
    ClearScenarioFlags(0x3B, 5)
    ClearScenarioFlags(0x3B, 6)
    ClearScenarioFlags(0x3B, 7)
    ClearScenarioFlags(0x3D, 5)
    ClearScenarioFlags(0x3D, 6)
    ClearScenarioFlags(0x3D, 7)
    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_124A")
    SetScenarioFlags(0x38, 0)

    label("loc_124A")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1260")
    SetScenarioFlags(0x38, 1)

    label("loc_1260")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1276")
    SetScenarioFlags(0x38, 2)

    label("loc_1276")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_128C")
    SetScenarioFlags(0x38, 3)

    label("loc_128C")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_12A2")
    SetScenarioFlags(0x38, 4)

    label("loc_12A2")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_12B8")
    SetScenarioFlags(0x38, 5)

    label("loc_12B8")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_12CE")
    SetScenarioFlags(0x38, 6)

    label("loc_12CE")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_12E4")
    SetScenarioFlags(0x38, 7)

    label("loc_12E4")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_12FA")
    SetScenarioFlags(0x39, 0)

    label("loc_12FA")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1310")
    SetScenarioFlags(0x39, 1)

    label("loc_1310")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1326")
    SetScenarioFlags(0x39, 2)

    label("loc_1326")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_133C")
    SetScenarioFlags(0x39, 3)

    label("loc_133C")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1352")
    SetScenarioFlags(0x39, 4)

    label("loc_1352")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1368")
    SetScenarioFlags(0x39, 5)

    label("loc_1368")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_137E")
    SetScenarioFlags(0x39, 6)

    label("loc_137E")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1394")
    SetScenarioFlags(0x39, 7)

    label("loc_1394")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_13AA")
    SetScenarioFlags(0x3A, 0)

    label("loc_13AA")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_13C0")
    SetScenarioFlags(0x3A, 1)

    label("loc_13C0")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_13D6")
    SetScenarioFlags(0x3A, 2)

    label("loc_13D6")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_13EC")
    SetScenarioFlags(0x3A, 3)

    label("loc_13EC")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1402")
    SetScenarioFlags(0x3A, 4)

    label("loc_1402")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1418")
    SetScenarioFlags(0x3A, 5)

    label("loc_1418")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_142E")
    SetScenarioFlags(0x3A, 6)

    label("loc_142E")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1444")
    SetScenarioFlags(0x3A, 7)

    label("loc_1444")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_145A")
    SetScenarioFlags(0x3B, 0)

    label("loc_145A")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1470")
    SetScenarioFlags(0x3B, 1)

    label("loc_1470")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1486")
    SetScenarioFlags(0x3B, 2)

    label("loc_1486")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_149C")
    SetScenarioFlags(0x3B, 3)

    label("loc_149C")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_14B2")
    SetScenarioFlags(0x3B, 4)

    label("loc_14B2")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_14C8")
    SetScenarioFlags(0x3B, 5)

    label("loc_14C8")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_14DE")
    SetScenarioFlags(0x3B, 6)

    label("loc_14DE")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_14F4")
    SetScenarioFlags(0x3B, 7)

    label("loc_14F4")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0xA), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_150A")
    SetScenarioFlags(0x3D, 5)

    label("loc_150A")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x14), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1520")
    SetScenarioFlags(0x3D, 6)

    label("loc_1520")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x64), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1536")
    SetScenarioFlags(0x3D, 7)

    label("loc_1536")

    ClearScenarioFlags(0x3C, 0)
    ClearScenarioFlags(0x3C, 1)
    ClearScenarioFlags(0x3C, 2)
    ClearScenarioFlags(0x3C, 3)
    ClearScenarioFlags(0x3C, 4)
    ClearScenarioFlags(0x3C, 5)
    ClearScenarioFlags(0x3C, 6)
    ClearScenarioFlags(0x3C, 7)
    RunExpression(0x1, (scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jc((scpexpr(EXPR_GET_RESULT, 0x1), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1571")
    SetScenarioFlags(0x3C, 0)
    Jump("loc_1661")

    label("loc_1571")

    RunExpression(0x1, (scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jc((scpexpr(EXPR_GET_RESULT, 0x1), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1594")
    SetScenarioFlags(0x3C, 1)
    Jump("loc_1661")

    label("loc_1594")

    RunExpression(0x1, (scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jc((scpexpr(EXPR_GET_RESULT, 0x1), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_15B7")
    SetScenarioFlags(0x3C, 2)
    Jump("loc_1661")

    label("loc_15B7")

    RunExpression(0x1, (scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jc((scpexpr(EXPR_GET_RESULT, 0x1), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_15DA")
    SetScenarioFlags(0x3C, 3)
    Jump("loc_1661")

    label("loc_15DA")

    RunExpression(0x1, (scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jc((scpexpr(EXPR_GET_RESULT, 0x1), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_15FD")
    SetScenarioFlags(0x3C, 4)
    Jump("loc_1661")

    label("loc_15FD")

    RunExpression(0x1, (scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jc((scpexpr(EXPR_GET_RESULT, 0x1), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1620")
    SetScenarioFlags(0x3C, 5)
    Jump("loc_1661")

    label("loc_1620")

    RunExpression(0x1, (scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jc((scpexpr(EXPR_GET_RESULT, 0x1), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1643")
    SetScenarioFlags(0x3C, 6)
    Jump("loc_1661")

    label("loc_1643")

    RunExpression(0x1, (scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jc((scpexpr(EXPR_GET_RESULT, 0x1), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1661")
    SetScenarioFlags(0x3C, 7)

    label("loc_1661")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x20, 5)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x37, 1)), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_1677")
    OP_50(0x1E, (scpexpr(EXPR_PUSH_LONG, 0x13), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))

    label("loc_1677")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x180, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x166, 4)), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_16BC")
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x20, 5)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_16B7")
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x0), scpexpr(EXPR_PUSH_LONG, 0x63), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_16B7")
    SetChrPos(0x0, -3510, 0, 21800, 225)
    OP_31(0x1)
    OP_69(0xFF, 0x0)
    Event(0, 16)

    label("loc_16B7")

    Jump("loc_1721")

    label("loc_16BC")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x20, 5)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_16EE")
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x0), scpexpr(EXPR_PUSH_LONG, 0x63), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_16EE")
    SetChrPos(0x0, -25760, 0, 94640, 270)
    OP_31(0x1)
    OP_69(0xFF, 0x0)
    Event(0, 16)

    label("loc_16EE")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x20, 5)), scpexpr(EXPR_END)), "loc_1721")
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x0), scpexpr(EXPR_PUSH_LONG, 0x63), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1721")
    SetChrPos(0x0, -24050, 0, 93390, 270)
    OP_31(0x1)
    OP_69(0xFF, 0x0)
    ClearMapFlags(0x8000000)

    label("loc_1721")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x3E, 0)), scpexpr(EXPR_END)), "loc_1730")
    ClearScenarioFlags(0x3E, 0)
    Event(0, 15)

    label("loc_1730")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x22, 0)), scpexpr(EXPR_END)), "loc_1744")
    ClearScenarioFlags(0x22, 0)
    Event(0, 20)
    Jump("loc_1795")

    label("loc_1744")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x22, 1)), scpexpr(EXPR_END)), "loc_1758")
    ClearScenarioFlags(0x22, 1)
    Event(0, 30)
    Jump("loc_1795")

    label("loc_1758")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x22, 2)), scpexpr(EXPR_END)), "loc_176C")
    ClearScenarioFlags(0x22, 2)
    Event(0, 37)
    Jump("loc_1795")

    label("loc_176C")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x22, 3)), scpexpr(EXPR_END)), "loc_1783")
    ClearScenarioFlags(0x22, 3)
    SetScenarioFlags(0x0, 0)
    Event(0, 42)
    Jump("loc_1795")

    label("loc_1783")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x22, 4)), scpexpr(EXPR_END)), "loc_1795")
    ClearScenarioFlags(0x22, 4)
    SetScenarioFlags(0x0, 0)
    Event(0, 47)

    label("loc_1795")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x166, 2)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x166, 4)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_17C6")
    SetMapFlags(0x10000000)
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x0), scpexpr(EXPR_PUSH_LONG, 0x63), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_17BE")
    Event(0, 64)
    Jump("loc_17C1")

    label("loc_17BE")

    Event(0, 58)

    label("loc_17C1")

    Jump("loc_17D7")

    label("loc_17C6")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A1, 7)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A2, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_17D7")
    Event(0, 68)

    label("loc_17D7")

    Return()

    # Function_4_11BD end

    def Function_5_17D8(): pass

    label("Function_5_17D8")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x183, 4)), scpexpr(EXPR_END)), "loc_17EA")
    OP_50(0x1, (scpexpr(EXPR_PUSH_LONG, 0xFB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))

    label("loc_17EA")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 0)), scpexpr(EXPR_END)), "loc_17FE")
    OP_24(0x7A)
    ClearScenarioFlags(0x0, 0)
    Jump("loc_1827")

    label("loc_17FE")

    SoundDistance(0x7A, 0xFFFF2C20, 0x0, 0x3087C, 0x2710, 0x13880, 0x64, 0x0)
    OP_E3(0xFFFFADBC, 0x0, 0x20E54)

    label("loc_1827")

    OP_52(0x8, 0xC, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0x14, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0xD, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0x15, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0xE, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0x16, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0xF, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0x17, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0x10, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0x18, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0x11, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0x19, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0x12, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0x1A, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0x13, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x8, 0x1B, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0xC, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0x14, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0xD, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0x15, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0xE, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0x16, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0xF, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0x17, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0x10, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0x18, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0x11, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0x19, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0x12, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0x1A, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0x13, (scpexpr(EXPR_PUSH_LONG, 0x80), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0x9, 0x1B, (scpexpr(EXPR_PUSH_LONG, 0xEF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x164, 0)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x165, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_1A13")
    LoadEffect(0x9, "map/mprain00.eff")
    PlayEffect(0x9, 0x7, 0xFF, 0x0, 0, 0, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 1000)
    SetMapObjFrame(0xFF, "model11_shade", 0x0, 0x1)
    OP_7D(0xB4, 0xB4, 0xB4, 0x0, 0x0)
    OP_11(0x7B, 0xB4, 0xD5, 0xD, 0x78, 0x0)
    Sound(128, 1, 100, 0)

    label("loc_1A13")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x183, 4)), scpexpr(EXPR_END)), "loc_1A85")
    SetMapObjFrame(0xFF, "model11_shade", 0x0, 0x1)
    OP_7D(0xDC, 0xEB, 0xFF, 0x0, 0x0)
    OP_11(0x7B, 0xB4, 0xD5, 0xD, 0x78, 0x0)
    ClearMapObjFlags(0x6, 0x4)
    ClearMapObjFlags(0x7, 0x4)
    ClearMapObjFlags(0x8, 0x4)
    ClearMapObjFlags(0x9, 0x4)
    ClearMapObjFlags(0xA, 0x4)
    ClearMapObjFlags(0xB, 0x4)
    ClearMapObjFlags(0xC, 0x4)
    ClearMapObjFlags(0xD, 0x4)
    ClearMapObjFlags(0xE, 0x4)
    Jump("loc_1ABB")

    label("loc_1A85")

    SetMapObjFlags(0x6, 0x4)
    SetMapObjFlags(0x7, 0x4)
    SetMapObjFlags(0x8, 0x4)
    SetMapObjFlags(0x9, 0x4)
    SetMapObjFlags(0xA, 0x4)
    SetMapObjFlags(0xB, 0x4)
    SetMapObjFlags(0xC, 0x4)
    SetMapObjFlags(0xD, 0x4)
    SetMapObjFlags(0xE, 0x4)

    label("loc_1ABB")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x165, 5)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x180, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_1B21")
    ClearMapObjFlags(0xF, 0x4)
    ClearMapObjFlags(0x13, 0x4)
    ClearMapObjFlags(0x14, 0x4)
    ClearMapObjFlags(0x15, 0x4)
    ClearMapObjFlags(0x16, 0x4)
    ClearMapObjFlags(0x17, 0x4)
    SetMapObjFrame(0x13, "light", 0x0, 0x1)
    SetMapObjFrame(0x14, "light", 0x0, 0x1)
    SetMapObjFrame(0x15, "light", 0x0, 0x1)
    SetMapObjFrame(0x16, "light", 0x0, 0x1)

    label("loc_1B21")

    OP_65(0x8, 0x1)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x180, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x166, 4)), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_1B95")
    OP_65(0x4, 0x1)
    OP_65(0x5, 0x1)
    SetMapObjFlags(0x2, 0x4)
    SetMapObjFlags(0x3, 0x4)
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x1E), scpexpr(EXPR_PUSH_LONG, 0x13), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_1B90")
    OP_66(0x8, 0x1)
    ClearChrFlags(0x22, 0x80)
    OP_78(0x2, 0x22)
    ClearMapObjFlags(0x2, 0x4)
    ClearMapObjFlags(0x2, 0x1000)
    OP_74(0x2, 0x1E)
    SetMapObjFrame(0x2, "light", 0x0, 0x1)
    SetChrPos(0x22, -1810, 0, 23520, 330)

    label("loc_1B90")

    Jump("loc_1BB7")

    label("loc_1B95")

    MiniGame(0x2F, 0x4, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)

    label("loc_1BB7")

    ModifyEventFlags(0, 0, 0x80)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x128, 7)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x129, 1)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x129, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x129, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x129, 5)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x129, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x129, 7)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_1BE8")
    ModifyEventFlags(1, 0, 0x80)

    label("loc_1BE8")

    ModifyEventFlags(0, 1, 0x80)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x162, 4)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x162, 5)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_1C00")
    ModifyEventFlags(1, 1, 0x80)

    label("loc_1C00")

    ModifyEventFlags(0, 2, 0x80)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A2, 2)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A2, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_1C18")
    ModifyEventFlags(1, 2, 0x80)

    label("loc_1C18")

    ModifyEventFlags(0, 3, 0x80)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x162, 5)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x164, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_1C30")
    ModifyEventFlags(1, 3, 0x80)

    label("loc_1C30")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A2, 0)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A2, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_1C43")
    ModifyEventFlags(1, 3, 0x80)

    label("loc_1C43")

    ModifyEventFlags(0, 4, 0x80)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x166, 2)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x180, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_1C5B")
    ModifyEventFlags(1, 4, 0x80)

    label("loc_1C5B")

    SetMapObjFlags(0x5, 0x4)
    SetMapObjFlags(0x1C, 0x4)
    OP_65(0x7, 0x1)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x165, 5)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A1, 7)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_1C83")
    ClearMapObjFlags(0x5, 0x4)
    OP_66(0x7, 0x1)

    label("loc_1C83")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A1, 7)), scpexpr(EXPR_END)), "loc_1C96")
    ClearMapObjFlags(0x1C, 0x4)
    OP_66(0x7, 0x1)

    label("loc_1C96")

    LoadEffect(0xF, "eff\\mgm03_02.eff")
    PlayEffect(0xF, 0x8, 0xFF, 0x0, -49430, -3000, 154830, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1E6, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_1CF3")
    OP_70(0x0, 0x0)
    Jump("loc_1CF7")

    label("loc_1CF3")

    OP_70(0x0, 0x1E)

    label("loc_1CF7")

    LoadEffect(0x10, "event\\eva00_00.eff")
    OP_65(0x2, 0x1)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x38, 5)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x3A, 5)), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_1D58")
    PlayEffect(0x10, 0x9, 0xFF, 0x0, -36280, 10, 57580, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    OP_66(0x2, 0x1)

    label("loc_1D58")

    OP_65(0x3, 0x1)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x38, 6)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x3A, 6)), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_1DA4")
    PlayEffect(0x10, 0xA, 0xFF, 0x0, -74210, 0, 149950, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    OP_66(0x3, 0x1)

    label("loc_1DA4")

    OP_1C(0x0, 0x10, 0x0, 0x32, 0x0, 0xA, 0x0, 0x0)
    OP_1C(0x0, 0x11, 0x0, 0x32, 0x0, 0xA, 0x0, 0x0)
    OP_1C(0x0, 0x12, 0x0, 0x32, 0x0, 0xA, 0x0, 0x0)
    Return()

    # Function_5_17D8 end

    def Function_6_1DC6(): pass

    label("Function_6_1DC6")

    SetMapFlags(0x8000000)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1E6, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_1F86")
    Sound(14, 0, 100, 0)
    OP_74(0x0, 0x1E)
    OP_71(0x0, 0x0, 0x1E, 0x0, 0x0)
    Sleep(500)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x21B, 1)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_1EC3")
    OP_A7(0xC, 0xFF, 0xFF, 0xFF, 0x0, 0x0)
    TurnDirection(0xC, 0x0, 0)
    OP_98(0xC, 0x0, 0x3E8, 0x0, 0x0, 0x0)

    def lambda_1E23():
        OP_98(0xFE, 0x0, 0xFFFFFC18, 0x0, 0x3E8, 0x0)
        ExitThread()

    QueueWorkItem(0xC, 1, lambda_1E23)

    def lambda_1E3D():
        OP_A7(0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x3E8)
        ExitThread()

    QueueWorkItem(0xC, 2, lambda_1E3D)
    ClearChrFlags(0xC, 0x80)
    SetChrFlags(0xC, 0x8000)

    #A0001
    AnonymousTalk(
        0x3E7,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "出现了魔兽！\x07\x00\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    WaitChrThread(0xC, 1)
    Battle("BattleInfo_E74", 0x0, 0x0, 0x0, 0xB, 0xFF)
    SetChrFlags(0xC, 0x80)
    ClearChrFlags(0xC, 0x8000)
    Switch(
        (scpexpr(EXPR_PUSH_VALUE_INDEX, 0x3), scpexpr(EXPR_END)),
        (0, "loc_1EA4"),
        (2, "loc_1EB3"),
        (1, "loc_1EC0"),
        (SWITCH_DEFAULT, "loc_1EC3"),
    )


    label("loc_1EA4")

    SetScenarioFlags(0x21B, 1)
    OP_70(0x0, 0x1E)
    Sleep(500)
    Jump("loc_1EC3")

    label("loc_1EB3")

    OP_70(0x0, 0x0)
    TalkEnd(0xFF)
    ClearMapFlags(0x8000000)
    Return()

    label("loc_1EC0")

    OP_B9(0x0)
    Return()

    label("loc_1EC3")

    Jc((scpexpr(EXPR_EXEC_OP, "AddItemNumber(0x6D, 1)"), scpexpr(EXPR_END)), "loc_1F1A")
    FadeToDark(300, 0, 100)
    Sound(17, 0, 100, 0)
    SetMessageWindowPos(-1, -1, -1, -1)

    #A0002
    AnonymousTalk(
        0x3E7,
        (
            scpstr(SCPSTR_CODE_ITEM, 0x6D),
            scpstr(SCPSTR_CODE_COLOR, 0x0),
            "获得了。\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    SetMessageWindowPos(14, 280, 60, 3)
    FadeToBright(300, 0)
    SetScenarioFlags(0x1E6, 6)
    OP_E0(0x5, 0x0)
    Jump("loc_1F81")

    label("loc_1F1A")

    FadeToDark(300, 0, 100)

    #A0003
    AnonymousTalk(
        0x3E7,
        (
            "宝箱里装有",
            scpstr(SCPSTR_CODE_ITEM, 0x6D),
            scpstr(SCPSTR_CODE_COLOR, 0x0),
            "。\x01",
            "不过现有的数量太多,",
            scpstr(SCPSTR_CODE_ITEM, 0x6D),
            scpstr(SCPSTR_CODE_COLOR, 0x0),
            "不能再拿更多了。\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    FadeToBright(300, 0)
    Sound(15, 0, 100, 0)
    OP_71(0x0, 0x1E, 0x0, 0x0, 0x0)

    label("loc_1F81")

    Jump("loc_1FB8")

    label("loc_1F86")

    FadeToDark(300, 0, 100)

    #A0004
    AnonymousTalk(
        0x3E7,
        (
            scpstr(0x6),
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "宝箱里什么都没有。\x07\x00\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    FadeToBright(300, 0)

    label("loc_1FB8")

    Sleep(30)
    TalkEnd(0xFF)
    ClearMapFlags(0x8000000)
    Return()

    # Function_6_1DC6 end

    def Function_7_1FC4(): pass

    label("Function_7_1FC4")

    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x4), scpexpr(EXPR_PUSH_LONG, 0x7), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_2162")
    TalkBegin(0xFF)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x3A, 5)), scpexpr(EXPR_END)), "loc_2143")
    LoadEffect(0x7, "event\\eva07_00.eff")

    #A0005
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            scpstr(0x6),
            scpstr(0x18),
            "似乎埋藏着什么。\x01",
            "要挖掘吗？\x07\x00\x02",
        )
    )


    Menu(
        0,
        -1,
        -1,
        1,
        (
            "是\x01",      # 0
            "否\x01",      # 1
        )
    )

    MenuEnd(0x0)
    OP_60(0x0)
    OP_57(0x0)
    OP_5A()
    Jc((scpexpr(EXPR_GET_RESULT, 0x0), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_213E")
    ClearScenarioFlags(0x3A, 5)
    OP_65(0x2, 0x1)
    StopEffect(0x9, 0x2)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x38, 5)), scpexpr(EXPR_END)), "loc_213B")
    ClearScenarioFlags(0x38, 5)
    OP_A7(0x8, 0xFF, 0xFF, 0xFF, 0x0, 0x0)

    def lambda_2066():
        OP_A7(0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x3E8)
        ExitThread()

    QueueWorkItem(0x8, 2, lambda_2066)
    TurnDirection(0x8, 0x0, 0)
    ClearChrFlags(0x8, 0x80)
    SetChrFlags(0x8, 0x8000)
    PlayEffect(0x7, 0x1, 0x8, 0x1, 0, 0, 0, 0, 0, 0, 300, 300, 300, 0xFF, 0, 0, 0, 0)
    Sound(601, 0, 100, 0)
    SetChrName("")

    #A0006
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "出现了魔兽！\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    Battle("BattleInfo_DA8", 0x0, 0x0, 0x0, 0x0, 0xFF)
    SetChrFlags(0x8, 0x80)
    ClearChrFlags(0x8, 0x8000)
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x3), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_2136")
    RunExpression(0x0, (scpexpr(EXPR_RAND), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x4), scpexpr(EXPR_PUSH_LONG, 0x7), scpexpr(EXPR_GE), scpexpr(EXPR_END)), "loc_211D")
    Call(1, 5)
    Jump("loc_2136")

    label("loc_211D")

    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x4), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_GE), scpexpr(EXPR_END)), "loc_2133")
    Call(1, 4)
    Jump("loc_2136")

    label("loc_2133")

    Call(1, 3)

    label("loc_2136")

    Jump("loc_213E")

    label("loc_213B")

    Call(1, 1)

    label("loc_213E")

    Jump("loc_2159")

    label("loc_2143")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x38, 5)), scpexpr(EXPR_END)), "loc_2159")
    ClearScenarioFlags(0x38, 5)
    OP_65(0x2, 0x1)
    StopEffect(0x9, 0x2)
    Call(1, 0)

    label("loc_2159")

    TalkEnd(0xFF)
    Return()

    label("loc_2162")

    TalkBegin(0xFF)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x3A, 5)), scpexpr(EXPR_END)), "loc_22D3")
    LoadEffect(0x7, "event\\eva07_00.eff")

    #A0007
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            scpstr(0x6),
            scpstr(0x18),
            "似乎埋藏着什么。\x01",
            "要挖掘吗？\x07\x00\x02",
        )
    )


    Menu(
        0,
        -1,
        -1,
        1,
        (
            "是\x01",      # 0
            "否\x01",      # 1
        )
    )

    MenuEnd(0x0)
    OP_60(0x0)
    OP_57(0x0)
    OP_5A()
    Jc((scpexpr(EXPR_GET_RESULT, 0x0), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_22CE")
    ClearScenarioFlags(0x3A, 5)
    OP_65(0x2, 0x1)
    StopEffect(0x9, 0x2)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x38, 5)), scpexpr(EXPR_END)), "loc_22CB")
    ClearScenarioFlags(0x38, 5)
    OP_A7(0xA, 0xFF, 0xFF, 0xFF, 0x0, 0x0)

    def lambda_21F6():
        OP_A7(0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x3E8)
        ExitThread()

    QueueWorkItem(0xA, 2, lambda_21F6)
    TurnDirection(0xA, 0x0, 0)
    ClearChrFlags(0xA, 0x80)
    SetChrFlags(0xA, 0x8000)
    PlayEffect(0x7, 0x1, 0xA, 0x1, 0, 0, 0, 0, 0, 0, 300, 300, 300, 0xFF, 0, 0, 0, 0)
    Sound(601, 0, 100, 0)
    SetChrName("")

    #A0008
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "出现了魔兽！\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    Battle("BattleInfo_DEC", 0x0, 0x0, 0x0, 0x0, 0xFF)
    SetChrFlags(0xA, 0x80)
    ClearChrFlags(0xA, 0x8000)
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x3), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_22C6")
    RunExpression(0x0, (scpexpr(EXPR_RAND), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x4), scpexpr(EXPR_PUSH_LONG, 0x7), scpexpr(EXPR_GE), scpexpr(EXPR_END)), "loc_22AD")
    Call(1, 5)
    Jump("loc_22C6")

    label("loc_22AD")

    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x4), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_GE), scpexpr(EXPR_END)), "loc_22C3")
    Call(1, 4)
    Jump("loc_22C6")

    label("loc_22C3")

    Call(1, 3)

    label("loc_22C6")

    Jump("loc_22CE")

    label("loc_22CB")

    Call(1, 1)

    label("loc_22CE")

    Jump("loc_22E9")

    label("loc_22D3")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x38, 5)), scpexpr(EXPR_END)), "loc_22E9")
    ClearScenarioFlags(0x38, 5)
    OP_65(0x2, 0x1)
    StopEffect(0x9, 0x2)
    Call(1, 0)

    label("loc_22E9")

    TalkEnd(0xFF)
    Return()

    # Function_7_1FC4 end

    def Function_8_22EE(): pass

    label("Function_8_22EE")

    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x4), scpexpr(EXPR_PUSH_LONG, 0x7), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_248C")
    TalkBegin(0xFF)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x3A, 6)), scpexpr(EXPR_END)), "loc_246D")
    LoadEffect(0x7, "event\\eva07_00.eff")

    #A0009
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            scpstr(0x6),
            scpstr(0x18),
            "似乎埋藏着什么。\x01",
            "要挖掘吗？\x07\x00\x02",
        )
    )


    Menu(
        0,
        -1,
        -1,
        1,
        (
            "是\x01",      # 0
            "否\x01",      # 1
        )
    )

    MenuEnd(0x0)
    OP_60(0x0)
    OP_57(0x0)
    OP_5A()
    Jc((scpexpr(EXPR_GET_RESULT, 0x0), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_2468")
    ClearScenarioFlags(0x3A, 6)
    OP_65(0x3, 0x1)
    StopEffect(0xA, 0x2)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x38, 6)), scpexpr(EXPR_END)), "loc_2465")
    ClearScenarioFlags(0x38, 6)
    OP_A7(0x9, 0xFF, 0xFF, 0xFF, 0x0, 0x0)

    def lambda_2390():
        OP_A7(0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x3E8)
        ExitThread()

    QueueWorkItem(0x9, 2, lambda_2390)
    TurnDirection(0x9, 0x0, 0)
    ClearChrFlags(0x9, 0x80)
    SetChrFlags(0x9, 0x8000)
    PlayEffect(0x7, 0x1, 0x9, 0x1, 0, 0, 0, 0, 0, 0, 300, 300, 300, 0xFF, 0, 0, 0, 0)
    Sound(601, 0, 100, 0)
    SetChrName("")

    #A0010
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "出现了魔兽！\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    Battle("BattleInfo_DA8", 0x0, 0x0, 0x0, 0x0, 0xFF)
    SetChrFlags(0x9, 0x80)
    ClearChrFlags(0x9, 0x8000)
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x3), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_2460")
    RunExpression(0x0, (scpexpr(EXPR_RAND), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x4), scpexpr(EXPR_PUSH_LONG, 0x7), scpexpr(EXPR_GE), scpexpr(EXPR_END)), "loc_2447")
    Call(1, 5)
    Jump("loc_2460")

    label("loc_2447")

    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x4), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_GE), scpexpr(EXPR_END)), "loc_245D")
    Call(1, 4)
    Jump("loc_2460")

    label("loc_245D")

    Call(1, 3)

    label("loc_2460")

    Jump("loc_2468")

    label("loc_2465")

    Call(1, 1)

    label("loc_2468")

    Jump("loc_2483")

    label("loc_246D")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x38, 6)), scpexpr(EXPR_END)), "loc_2483")
    ClearScenarioFlags(0x38, 6)
    OP_65(0x3, 0x1)
    StopEffect(0xA, 0x2)
    Call(1, 0)

    label("loc_2483")

    TalkEnd(0xFF)
    Return()

    label("loc_248C")

    TalkBegin(0xFF)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x3A, 6)), scpexpr(EXPR_END)), "loc_25FD")
    LoadEffect(0x7, "event\\eva07_00.eff")

    #A0011
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            scpstr(0x6),
            scpstr(0x18),
            "似乎埋藏着什么。\x01",
            "要挖掘吗？\x07\x00\x02",
        )
    )


    Menu(
        0,
        -1,
        -1,
        1,
        (
            "是\x01",      # 0
            "否\x01",      # 1
        )
    )

    MenuEnd(0x0)
    OP_60(0x0)
    OP_57(0x0)
    OP_5A()
    Jc((scpexpr(EXPR_GET_RESULT, 0x0), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_25F8")
    ClearScenarioFlags(0x3A, 6)
    OP_65(0x3, 0x1)
    StopEffect(0xA, 0x2)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x38, 6)), scpexpr(EXPR_END)), "loc_25F5")
    ClearScenarioFlags(0x38, 6)
    OP_A7(0xB, 0xFF, 0xFF, 0xFF, 0x0, 0x0)

    def lambda_2520():
        OP_A7(0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x3E8)
        ExitThread()

    QueueWorkItem(0xB, 2, lambda_2520)
    TurnDirection(0xB, 0x0, 0)
    ClearChrFlags(0xB, 0x80)
    SetChrFlags(0xB, 0x8000)
    PlayEffect(0x7, 0x1, 0xB, 0x1, 0, 0, 0, 0, 0, 0, 300, 300, 300, 0xFF, 0, 0, 0, 0)
    Sound(601, 0, 100, 0)
    SetChrName("")

    #A0012
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "出现了魔兽！\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    Battle("BattleInfo_DEC", 0x0, 0x0, 0x0, 0x0, 0xFF)
    SetChrFlags(0xB, 0x80)
    ClearChrFlags(0xB, 0x8000)
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x3), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_25F0")
    RunExpression(0x0, (scpexpr(EXPR_RAND), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x4), scpexpr(EXPR_PUSH_LONG, 0x7), scpexpr(EXPR_GE), scpexpr(EXPR_END)), "loc_25D7")
    Call(1, 5)
    Jump("loc_25F0")

    label("loc_25D7")

    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x4), scpexpr(EXPR_PUSH_LONG, 0x4), scpexpr(EXPR_GE), scpexpr(EXPR_END)), "loc_25ED")
    Call(1, 4)
    Jump("loc_25F0")

    label("loc_25ED")

    Call(1, 3)

    label("loc_25F0")

    Jump("loc_25F8")

    label("loc_25F5")

    Call(1, 1)

    label("loc_25F8")

    Jump("loc_2613")

    label("loc_25FD")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x38, 6)), scpexpr(EXPR_END)), "loc_2613")
    ClearScenarioFlags(0x38, 6)
    OP_65(0x3, 0x1)
    StopEffect(0xA, 0x2)
    Call(1, 0)

    label("loc_2613")

    TalkEnd(0xFF)
    Return()

    # Function_8_22EE end

    def Function_9_2618(): pass

    label("Function_9_2618")

    SetMapFlags(0x80)
    SetMapFlags(0x8000000)
    RunExpression(0x0, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    ClearScenarioFlags(0x31, 2)
    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x64), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x32), scpexpr(EXPR_LSS), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x182, 1)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_264A")
    SetScenarioFlags(0x31, 2)

    label("loc_264A")

    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x4), scpexpr(EXPR_PUSH_LONG, 0x7), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_2690")
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x31, 2)), scpexpr(EXPR_END)), "loc_268A")
    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x64), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x32), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_267F")
    Sound(2499, 255, 100, 0)    #voice#Noel
    Jump("loc_2685")

    label("loc_267F")

    Sound(3537, 255, 100, 0)    #voice#Noel

    label("loc_2685")

    Jump("loc_2690")

    label("loc_268A")

    Sound(3344, 255, 100, 0)    #voice#Lloyd

    label("loc_2690")

    Jc((scpexpr(EXPR_GET_RESULT, 0x0), scpexpr(EXPR_PUSH_LONG, 0xFF), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_2937")
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x20, 5)), scpexpr(EXPR_END)), "loc_2701")
    MenuCmd(0, 0)
    MenuCmd(1, 0, "登上梅尔卡瓦")
    MenuCmd(1, 0, "放弃")
    MenuCmd(2, 0, -1, -1, 1)
    MenuEnd(0x0)
    OP_60(0x0)
    Switch(
        (scpexpr(EXPR_GET_RESULT, 0x0), scpexpr(EXPR_END)),
        (0, "loc_26E1"),
        (SWITCH_DEFAULT, "loc_26F2"),
    )


    label("loc_26E1")

    SetScenarioFlags(0x22, 0)
    NewScene("e3020", 0, 0, 0)
    IdleLoop()
    Jump("loc_26FC")

    label("loc_26F2")

    RunExpression(0x0, (scpexpr(EXPR_PUSH_LONG, 0xFF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))

    label("loc_26FC")

    Jump("loc_2932")

    label("loc_2701")

    MenuCmd(0, 0)
    MenuCmd(1, 0, "驾驶导力车移动")
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x30, 6)), scpexpr(EXPR_END)), "loc_2731")
    MenuCmd(1, 0, "在导力车中休息")

    label("loc_2731")

    MenuCmd(2, 0, -1, -1, 1)
    MenuEnd(0x0)
    OP_60(0x0)
    Switch(
        (scpexpr(EXPR_GET_RESULT, 0x0), scpexpr(EXPR_END)),
        (0, "loc_275B"),
        (1, "loc_285F"),
        (2, "loc_28F0"),
        (SWITCH_DEFAULT, "loc_2928"),
    )


    label("loc_275B")

    SetMapObjFrame(0x2, "light", 0x0, 0x1)
    OP_74(0x2, 0x1E)
    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_278C")
    OP_70(0x2, 0x12C)
    OP_71(0x2, 0x12C, 0x14A, 0x0, 0x0)
    Jump("loc_279C")

    label("loc_278C")

    OP_70(0x2, 0xF0)
    OP_71(0x2, 0xF0, 0x10E, 0x0, 0x0)

    label("loc_279C")

    Sound(462, 0, 100, 0)
    SoundLoad(2500)
    SoundLoad(3538)
    SoundLoad(3345)
    Sleep(700)
    FadeToDark(300, 0, -1)
    OP_0D()
    Jc((scpexpr(EXPR_EXEC_OP, "MiniGame(0x2E, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)"), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_27F2")
    RunExpression(0x0, (scpexpr(EXPR_PUSH_LONG, 0xFF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))

    label("loc_27F2")

    FadeToDark(0, 0, -1)
    FadeToBright(300, 0)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1D4, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_2815")
    Sound(461, 0, 100, 0)

    label("loc_2815")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_2835")
    OP_70(0x2, 0x14A)
    OP_71(0x2, 0x14A, 0x12C, 0x0, 0x0)
    Jump("loc_2845")

    label("loc_2835")

    OP_70(0x2, 0x10E)
    OP_71(0x2, 0x10E, 0xF0, 0x0, 0x0)

    label("loc_2845")

    Sleep(1000)
    OP_0D()
    SetMapObjFrame(0x2, "light", 0x1, 0x1)
    OP_70(0x2, 0x0)
    Jump("loc_2690")

    label("loc_285F")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x30, 6)), scpexpr(EXPR_END)), "loc_28D1")
    OP_57(0x0)
    StopBGM(0xBB8)
    FadeToDark(1000, 0, -1)
    OP_0D()
    OP_5A()
    Sound(13, 0, 100, 0)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x31, 0)), scpexpr(EXPR_END)), "loc_2894")
    OP_32(0xFF, 0xFF, 0x0)
    Jump("loc_28AC")

    label("loc_2894")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x30, 7)), scpexpr(EXPR_END)), "loc_28A7")
    OP_32(0xFF, 0xFE, 0x0)
    Jump("loc_28AC")

    label("loc_28A7")

    OP_32(0xFF, 0xFA, 0x0)

    label("loc_28AC")

    OP_6A(0x0, 0x0)
    Sleep(3500)
    OP_1F()
    FadeToBright(1000, 0)
    OP_57(0x0)
    RunExpression(0x0, (scpexpr(EXPR_PUSH_LONG, 0xFF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jump("loc_28EB")

    label("loc_28D1")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x30, 7)), scpexpr(EXPR_END)), "loc_28E1")
    OP_AF(0xFB)
    Jump("loc_28EB")

    label("loc_28E1")

    RunExpression(0x0, (scpexpr(EXPR_PUSH_LONG, 0xFF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))

    label("loc_28EB")

    Jump("loc_2932")

    label("loc_28F0")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x30, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_2909")
    RunExpression(0x0, (scpexpr(EXPR_PUSH_LONG, 0xFF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    Jump("loc_2923")

    label("loc_2909")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x30, 7)), scpexpr(EXPR_END)), "loc_2919")
    OP_AF(0xFB)
    Jump("loc_2923")

    label("loc_2919")

    RunExpression(0x0, (scpexpr(EXPR_PUSH_LONG, 0xFF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))

    label("loc_2923")

    Jump("loc_2932")

    label("loc_2928")

    RunExpression(0x0, (scpexpr(EXPR_PUSH_LONG, 0xFF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))

    label("loc_2932")

    Jump("loc_2690")

    label("loc_2937")

    ClearMapFlags(0x8000000)
    OP_60(0x0)
    OP_57(0x0)
    TalkEnd(0xFF)
    Return()

    # Function_9_2618 end

    def Function_10_2945(): pass

    label("Function_10_2945")

    Call(1, 6)
    Return()

    # Function_10_2945 end

    def Function_11_2949(): pass

    label("Function_11_2949")

    EventBegin(0x2)
    SetMapFlags(0x8000000)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x128, 1)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x140, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x12D, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_2A08")
    Sound(814, 0, 100, 0)
    FadeToDark(300, 0, 100)
    SetMessageWindowPos(-1, -1, -1, -1)
    SetChrName("")

    #A0013
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "调查停靠站的告示板，\x01",
            "即可搭乘导力巴士。\x07\x00\x02",
        )
    )

    CloseMessageWindow()

    #A0014
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "与驾驶导力车一样，乘坐巴士\x01",
            "也可移动至各地，请多加活用。\x07\x00\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    FadeToBright(300, 0)
    OP_5A()
    SetMessageWindowPos(14, 280, 60, 3)
    SetScenarioFlags(0x12D, 6)

    label("loc_2A08")


    #A0015
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            scpstr(0x6),
            scpstr(0x18),
            "#1K有一个巴士车站。\x01",
            "要乘坐巴士吗？\x02",
        )
    )


    Menu(
        0,
        -1,
        -1,
        1,
        (
            "克洛斯贝尔市北出口\x01",      # 0
            "矿山镇玛因兹\x01",            # 1
            "放弃\x01",                    # 2
        )
    )

    MenuEnd(0x0)
    OP_60(0x0)
    OP_57(0x0)
    OP_5A()
    Jc((scpexpr(EXPR_GET_RESULT, 0x0), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_2A8F")
    Call(0, 12)
    ClearMapFlags(0x8000000)
    NewScene("r2000", 0, 0, 0)
    IdleLoop()
    Jump("loc_2B07")

    label("loc_2A8F")

    Jc((scpexpr(EXPR_GET_RESULT, 0x0), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_2B07")
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x162, 5)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x164, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_2AF6")

    #C0016
    ChrTalk(
        0x101,
        (
            "#00001F现在不需要往矿山镇方向走，\x01",
            "还是专心追查事故的线索吧。\x02",
        )
    )

    CloseMessageWindow()
    ClearMapFlags(0x8000000)
    EventEnd(0x3)
    Return()

    label("loc_2AF6")

    Call(0, 13)
    ClearMapFlags(0x8000000)
    NewScene("t0500", 0, 0, 0)
    IdleLoop()

    label("loc_2B07")

    ClearMapFlags(0x8000000)
    EventEnd(0x3)
    Return()

    # Function_11_2949 end

    def Function_12_2B0F(): pass

    label("Function_12_2B0F")

    ClearMapFlags(0x1)
    SetEventSkip(0x0, "loc_2C3E")
    Fade(500)
    OP_68(-31260, 600, 114980, 0)
    MoveCamera(26, 35, 0, 0)
    OP_6E(570, 0)
    SetCameraDistance(23500, 0)
    OP_E2(0x1)
    SetChrPos(0x0, -24980, 0, 115700, 225)
    SetChrPos(0x1, -24420, 0, 115080, 225)
    SetChrPos(0x2, -23880, 0, 114510, 225)
    SetChrPos(0x3, -23300, 0, 113860, 225)
    ClearChrFlags(0xD, 0x80)
    ClearMapObjFlags(0x1, 0x4)
    ClearMapObjFlags(0x1, 0x2)
    OP_78(0x1, 0xD)
    SetMapObjFrame(0x1, "light", 0x0, 0x1)
    OP_49()
    SetChrPos(0xD, -40720, 0, 120460, 45)
    OP_D5(0xD, 0x0, 0xAFC8, 0x0, 0x0)
    SetMapObjFlags(0x1, 0x1000)
    OP_74(0x1, 0x1E)
    OP_71(0x1, 0x79, 0xB4, 0x0, 0x20)

    def lambda_2BF5():
        OP_95(0xFE, -31020, 0, 111190, 4000, 0x0)
        ExitThread()

    QueueWorkItem(0xD, 1, lambda_2BF5)
    OP_0D()
    Sound(466, 0, 100, 0)
    Sound(467, 0, 100, 0)
    WaitChrThread(0xD, 1)
    OP_71(0x1, 0x5B, 0x78, 0x0, 0x0)
    OP_79(0x1)
    Sleep(300)
    FadeToDark(500, 0, -1)
    OP_0D()
    SetEventSkip(0x1, 0x0)

    label("loc_2C3E")

    SetScenarioFlags(0x3E, 0)
    Return()

    # Function_12_2B0F end

    def Function_13_2C42(): pass

    label("Function_13_2C42")

    ClearMapFlags(0x1)
    SetEventSkip(0x0, "loc_2D51")
    Fade(500)
    OP_68(-27890, 600, 110180, 0)
    MoveCamera(45, 29, 0, 0)
    OP_6E(590, 0)
    SetCameraDistance(23500, 0)
    OP_E2(0x1)
    SetChrPos(0x0, -24980, 0, 115700, 225)
    SetChrPos(0x1, -24420, 0, 115080, 225)
    SetChrPos(0x2, -23880, 0, 114510, 225)
    SetChrPos(0x3, -23300, 0, 113860, 225)
    ClearChrFlags(0xD, 0x80)
    ClearMapObjFlags(0x1, 0x4)
    ClearMapObjFlags(0x1, 0x2)
    OP_78(0x1, 0xD)
    SetMapObjFrame(0x1, "light", 0x0, 0x1)
    OP_49()
    SetChrPos(0xD, -28790, 0, 98130, 0)
    OP_D5(0xD, 0x0, 0x0, 0x0, 0x0)
    SetMapObjFlags(0x1, 0x1000)
    OP_74(0x1, 0x1E)
    OP_71(0x1, 0x79, 0xB4, 0x0, 0x20)
    BeginChrThread(0xD, 1, 0, 14)
    OP_0D()
    Sound(466, 0, 100, 0)
    Sound(467, 0, 100, 0)
    WaitChrThread(0xD, 1)
    OP_79(0x1)
    Sleep(300)
    FadeToDark(500, 0, -1)
    OP_0D()
    SetEventSkip(0x1, 0x0)

    label("loc_2D51")

    SetScenarioFlags(0x3E, 0)
    Return()

    # Function_13_2C42 end

    def Function_14_2D55(): pass

    label("Function_14_2D55")

    OP_95(0xD, -28360, 0, 100110, 4000, 0x0)
    OP_9E(0xD, 0xFFFF67A8, 0x19064, 0xFFFF15A0, 0xFA0, 0x1)
    OP_71(0x1, 0x5B, 0x78, 0x0, 0x0)
    Return()

    # Function_14_2D55 end

    def Function_15_2D8B(): pass

    label("Function_15_2D8B")

    EventBegin(0x1)
    FadeToDark(0, 0, -1)
    OP_0D()
    SetChrPos(0x0, -24980, 0, 115700, 225)
    OP_31(0x1)
    OP_68(-24980, 600, 115700, 0)
    MoveCamera(45, 21, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(23500, 0)
    EventEnd(0x5)
    Return()

    # Function_15_2D8B end

    def Function_16_2DDC(): pass

    label("Function_16_2DDC")

    EventBegin(0x1)
    SetMapFlags(0x8000000)
    FadeToDark(0, 0, -1)
    Sleep(100)
    Sound(459, 0, 100, 0)
    Sleep(2000)
    StopSound(459, 1000, 100)
    Sound(492, 0, 70, 0)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x31, 2)), scpexpr(EXPR_END)), "loc_2E37")
    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x64), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x32), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_2E2C")
    Sound(2502, 255, 100, 0)    #voice#Noel
    Jump("loc_2E32")

    label("loc_2E2C")

    Sound(2503, 255, 100, 0)    #voice#Noel

    label("loc_2E32")

    Jump("loc_2E5B")

    label("loc_2E37")

    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x64), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x32), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_2E55")
    Sound(3347, 255, 100, 0)    #voice#Lloyd
    Jump("loc_2E5B")

    label("loc_2E55")

    Sound(3348, 255, 100, 0)    #voice#Lloyd

    label("loc_2E5B")

    Sleep(500)
    FadeToBright(500, 0)
    OP_0D()
    ClearMapFlags(0x8000000)
    EventEnd(0x5)
    Return()

    # Function_16_2DDC end

    def Function_17_2E70(): pass

    label("Function_17_2E70")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x166, 5)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_2E7E")
    Call(0, 66)
    Return()

    label("loc_2E7E")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A1, 7)), scpexpr(EXPR_END)), "loc_2E8B")
    Call(0, 67)
    Return()

    label("loc_2E8B")

    EventBegin(0x2)
    SetMapFlags(0x8000000)
    FadeToDark(300, 0, 100)
    OP_0D()

    Menu(
        0,
        -1,
        -1,
        0,
        (
            "顺着绳索下去\x01",      # 0
            "离开此处\x01",          # 1
        )
    )

    MenuEnd(0x0)
    OP_60(0x0)
    FadeToBright(300, 0)
    OP_0D()
    Switch(
        (scpexpr(EXPR_GET_RESULT, 0x0), scpexpr(EXPR_END)),
        (0, "loc_2EE2"),
        (1, "loc_2F02"),
        (SWITCH_DEFAULT, "loc_2F0E"),
    )


    label("loc_2EE2")

    FadeToDark(1000, 0, -1)
    OP_0D()
    ClearMapFlags(0x8000000)
    EventEnd(0x3)
    NewScene("m4150", 100, 0, 0)
    IdleLoop()
    Jump("loc_2F0E")

    label("loc_2F02")

    ClearMapFlags(0x8000000)
    EventEnd(0x3)
    Jump("loc_2F0E")

    label("loc_2F0E")

    Return()

    # Function_17_2E70 end

    def Function_18_2F0F(): pass

    label("Function_18_2F0F")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A0, 0)), scpexpr(EXPR_END)), "loc_2F45")
    EventBegin(0x2)
    ClearMapFlags(0x20)
    SetChrName("")

    #A0017
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "导力巴士已经停运了。\x07\x00\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    EventEnd(0x3)
    Return()

    label("loc_2F45")

    Call(0, 11)
    Return()

    # Function_18_2F0F end

    def Function_19_2F49(): pass

    label("Function_19_2F49")

    EventBegin(0x1)
    #Sound(2094, 255, 100, 0)    #voice#Lloyd

    #C0018
    ChrTalk(
        0x101,
        "#0000F在这里似乎可以钓到鱼呢。\x02",
    )

    CloseMessageWindow()
    OP_68(-58780, 3500, 148420, 1500)
    MoveCamera(72, 40, 0, 1500)
    OP_6E(510, 1500)
    SetCameraDistance(24000, 1500)
    Sleep(1000)
    SetChrName("")

    #A0019
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "要钓鱼吗？\x07\x00\x02",
        )
    )


    Menu(
        0,
        -1,
        -1,
        1,
        (
            "钓鱼\x01",      # 0
            "放弃\x01",      # 1
        )
    )

    MenuEnd(0x0)
    OP_60(0x0)
    OP_57(0x0)
    OP_5A()
    OP_6F(0x1)
    Jc((scpexpr(EXPR_GET_RESULT, 0x0), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_300C")
    OP_E2(0x2)
    MiniGame(0x6, 0xA, 0xFFFF1820, 0x0, 0x239CE, 0x0, 0xFFFF3EEA, 0xFFFFF448, 0x25CCE)

    label("loc_300C")

    OP_E2(0x2)
    EventEnd(0x5)
    Return()

    # Function_19_2F49 end

    def Function_20_3011(): pass

    label("Function_20_3011")

    EventBegin(0x0)
    FadeToDark(0, 0, -1)
    LoadChrToIndex("chr/ch13400.itc", 0x1E)
    LoadChrToIndex("chr/ch03600.itc", 0x1F)
    LoadChrToIndex("apl/ch51113.itc", 0x20)
    LoadChrToIndex("apl/ch51117.itc", 0x21)
    LoadEffect(0x2, "event/ev10001.eff")
    LoadEffect(0x9, "map/mprain00.eff")
    SoundLoad(3704)
    SoundLoad(3705)
    CreatePortrait(0, 234, 0, 490, 256, 0, 0, 256, 256, 0, 0, 256, 256, 0xFFFFFF, 0x0, "bu04801.itp")
    CreatePortrait(1, 234, 0, 490, 256, 0, 0, 256, 256, 0, 0, 256, 256, 0xFFFFFF, 0x0, "bu04700.itp")
    OP_E2(0x1)
    ClearChrFlags(0xE, 0x80)
    SetChrFlags(0xE, 0x8000)
    SetChrChipByIndex(0xE, 0x1E)
    ClearChrFlags(0xF, 0x80)
    SetChrFlags(0xF, 0x8000)
    SetChrChipByIndex(0xF, 0x1F)
    OP_68(-68410, 3720, 152490, 0)
    MoveCamera(23, 12, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(36650, 0)
    OP_68(-52830, 3720, 134400, 7600)
    MoveCamera(25, 16, 0, 7600)
    OP_6E(510, 7600)
    SetCameraDistance(46660, 7600)
    ClearChrFlags(0x22, 0x80)
    OP_78(0x2, 0x22)
    OP_49()
    SetChrPos(0x22, -71290, 220, 191970, 145)
    OP_D5(0x22, 0x0, 0x23668, 0x0, 0x0)
    ClearMapObjFlags(0x2, 0x4)
    SetMapObjFlags(0x2, 0x1000)
    SetMapObjFrame(0x2, "light", 0x0, 0x1)
    OP_74(0x2, 0x1E)
    OP_71(0x2, 0x79, 0xB4, 0x0, 0x20)
    OP_93(0x22, 0x91, 0x0)
    BeginChrThread(0x22, 3, 0, 21)
    BeginChrThread(0x27, 1, 0, 23)
    PlayEffect(0x9, 0x7, 0xFF, 0x0, 0, 0, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 1000)
    SetMapObjFrame(0xFF, "model11_shade", 0x0, 0x1)
    OP_7D(0xB4, 0xB4, 0xB4, 0x0, 0x0)
    OP_11(0x7B, 0xB4, 0xD5, 0xD, 0x78, 0x0)
    Sound(128, 1, 100, 0)
    FadeToBright(1000, 0)
    OP_0D()
    Sound(965, 0, 100, 0)
    BeginChrThread(0x27, 2, 0, 24)
    StopBGM(0x1B58)
    OP_50(0x4C, (scpexpr(EXPR_PUSH_LONG, 0xFFFF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_6F(0x79)
    OP_68(-45210, 6120, 66710, 0)
    MoveCamera(53, 16, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(41940, 0)
    OP_68(-33170, 6120, 57750, 6500)
    MoveCamera(63, 28, 0, 6500)
    OP_6E(510, 6500)
    SetCameraDistance(34640, 6500)
    EndChrThread(0x22, 0x3)
    BeginChrThread(0x22, 3, 0, 22)
    SetChrPos(0xE, -33230, 4680, 58630, 180)
    SetChrPos(0xF, -31910, 4480, 57850, 180)
    Fade(500)
    OP_0D()
    WaitBGM()
    Sleep(10)
    PlayBGM("ed7580", 0)
    VolumeBGM(0x28, 0x64)
    Sleep(100)
    VolumeBGM(0x64, 0x1770)
    OP_6F(0x79)
    BlurSwitch(0x1, 0xBBFFFFFF, 0x0, 0x0, 0x0)
    SetCameraDistance(19000, 3500)
    OP_6F(0x79)
    CancelBlur(0)
    Sleep(500)
    OP_CB(0x1, 0x3, 0xFFFFFFFF, 0x1F4, 0x0, 0x0)
    OP_CB(0x1, 0x0, 0xFFFFD8F0, 0x0, 0x1F4, 0x0)
    OP_CC(0x0, 0x1, 0x3)
    OP_CC(0x0, 0x1, 0x0)
    SetMessageWindowPos(14, 280, 35, 3)
    Sleep(500)

    #A0020
    AnonymousTalk(
        0xE,
        (
            "呵呵，事情已经办完，\x01",
            "差不多也该回去了。\x02\x03",

            "啊，对了，在那之前，\x01",
            "还是顺便去一趟旧矿山好了。\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    SetMessageWindowPos(14, 280, 60, 3)
    OP_CB(0x1, 0x3, 0xFFFFFF, 0x1F4, 0x0, 0x0)
    OP_CB(0x1, 0x0, 0x0, 0x0, 0x1F4, 0x0)
    OP_CC(0x0, 0x1, 0x3)
    OP_CC(0x0, 0x1, 0x0)
    OP_93(0xF, 0x10E, 0x1F4)
    Sleep(100)

    #C0021
    ChrTalk(
        0xF,
        (
            "#04804F#11P呵呵，请小心一点哦。\x02\x03",

            "#04802F我要开始执行任务，\x01",
            "就不同行了。\x02",
        )
    )

    CloseMessageWindow()
    OP_93(0xE, 0x5A, 0x1F4)
    Sleep(150)

    #C0022
    ChrTalk(
        0xE,
        (
            "#04704F#6P哈哈，加油吧。\x02\x03",

            "#04700F说起来，在此次计划中，\x01",
            "我们已经有了明确分工。\x02\x03",

            "这边的事情\x01",
            "由我和第七柱来负责。\x02",
        )
    )

    CloseMessageWindow()

    #C0023
    ChrTalk(
        0xF,
        (
            "#04805F#11P啊，那个人也会来吗？\x02\x03",

            "#04804F也是，毕竟我们这次要面对\x01",
            "不少棘手的家伙。\x02\x03",

            "#04800F这似乎是个明智的判断。\x02",
        )
    )

    CloseMessageWindow()

    #C0024
    ChrTalk(
        0xE,
        (
            "#04704F#6P呵呵，正是如此。\x02\x03",

            "#04702F『星辰代码』的\x01",
            "试用报告就拜托你了。\x02\x03",

            "在低级网络环境中，\x01",
            "它究竟能发挥多少价值呢？\x01",
            "真是让我兴趣十足啊。\x02",
        )
    )

    CloseMessageWindow()

    #C0025
    ChrTalk(
        0xF,
        (
            "#04806F#11P知道啦，\x01",
            "有空时一定整理好。\x02\x03",

            "#04800F那么──\x01",
            "为了伟大的『盟主』。\x02",
        )
    )

    CloseMessageWindow()

    #C0026
    ChrTalk(
        0xE,
        "#04704F#6P为了伟大的『盟主』。\x02",
    )

    CloseMessageWindow()
    SetChrChipByIndex(0xE, 0x20)
    SetChrSubChip(0xE, 0x0)
    SetChrFlags(0xE, 0x20)
    Sound(802, 0, 100, 0)
    Sleep(500)
    SetChrSubChip(0xE, 0x1)
    Sound(901, 0, 80, 0)
    Sleep(500)
    Sound(900, 2, 70, 0)
    BlurSwitch(0xBB8, 0xBBFFFFFF, 0x0, 0x0, 0x0)
    OP_68(-33220, 6120, 58130, 1500)
    MoveCamera(59, 28, 0, 1500)
    OP_6E(510, 1500)
    OP_93(0xE, 0xE1, 0x15E)
    OP_6F(0x79)
    Sleep(300)
    SetCameraDistance(17000, 1000)
    PlayEffect(0x2, 0xFF, 0xE, 0x0, 0, 750, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    Sound(223, 0, 100, 0)
    StopSound(900, 2000, 40)
    Sleep(1500)
    Sound(936, 0, 100, 0)
    SetCameraDistance(19500, 800)
    OP_A7(0xE, 0xFF, 0xFF, 0xFF, 0x0, 0x1F4)
    SetChrFlags(0xE, 0x80)
    OP_6F(0x79)
    CancelBlur(0)
    Sleep(1000)

    #C0027
    ChrTalk(
        0xF,
        (
            "#04804F#11P……呵呵，\x01",
            "虽然没有任何人在看，\x01",
            "但登场不能忽略。\x02",
        )
    )

    CloseMessageWindow()
    BlurSwitch(0x7D0, 0xBBFFFFFF, 0x0, 0x0, 0x0)
    OP_68(-31880, 5820, 57380, 2000)
    MoveCamera(74, 27, 0, 2000)
    OP_6E(510, 2000)
    SetCameraDistance(16770, 2000)
    Sleep(500)
    OP_93(0xF, 0xE1, 0x1F4)
    OP_6F(0x79)
    CancelBlur(0)
    Sleep(300)
    Fade(250)
    SetChrChipByIndex(0xF, 0x21)
    SetChrFlags(0xF, 0x2)
    SetChrFlags(0xF, 0x1000)
    SetChrSubChip(0xF, 0x2)
    OP_0D()
    Sleep(500)
    Sound(898, 0, 100, 0)
    SetChrSubChip(0xF, 0x1)
    Sleep(150)
    SetChrSubChip(0xF, 0x0)
    Sleep(300)
    OP_CB(0x0, 0x3, 0xFFFFFFFF, 0x1F4, 0x0, 0x0)
    OP_CB(0x0, 0x0, 0xFFFFD8F0, 0x0, 0x1F4, 0x0)
    OP_CC(0x0, 0x0, 0x3)
    OP_CC(0x0, 0x0, 0x0)
    SetMessageWindowPos(14, 280, 35, 3)
    Sleep(500)
    OP_C9(0x0, 0x80000000)

    #A0028
    AnonymousTalk(
        0xF,
        (
            "#3704V#30W执行者Ｎｏ．０，\x01",
            "『小丑』肯帕雷拉──\x02\x03",

            "#3705V由此刻开始，将以盟主代理的身份，\x01",
            "见证『幻焰计划』的进行。\x02",
        )
    )

    CloseMessageWindow()
    OP_24(0xE79)
    OP_57(0x0)
    OP_5A()
    SetMessageWindowPos(14, 280, 60, 3)
    OP_CB(0x0, 0x3, 0xFFFFFF, 0x1F4, 0x0, 0x0)
    OP_CB(0x0, 0x0, 0x0, 0x0, 0x1F4, 0x0)
    OP_C9(0x1, 0x80000000)
    Sound(966, 0, 50, 0)
    SetCameraDistance(17520, 1500)
    FadeToDark(1500, 0, -1)
    OP_0D()
    Sound(965, 0, 100, 0)
    StopSound(128, 1000, 90)
    OP_CC(0x1, 0xFF, 0x0)
    StopBGM(0x1770)
    WaitBGM()
    ReplaceBGM(-1, -1)
    OP_50(0x4C, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    SetScenarioFlags(0x22, 2)
    NewScene("c0400", 0, 0, 0)
    IdleLoop()
    Return()

    # Function_20_3011 end

    def Function_21_38ED(): pass

    label("Function_21_38ED")

    OP_9F(0x0, 0xFE)
    OP_9F(0x1, -68150, 320, 183420)
    OP_9F(0x1, -68100, 320, 164160)
    OP_9F(0x1, -65680, 320, 151380)
    OP_9F(0x1, -58980, 320, 141230)
    OP_9F(0x1, -44990, 320, 127010)
    OP_9F(0x1, -36840, 120, 117770)
    OP_9F(0x2, 0xFE, 11000, 0x6)
    Return()

    # Function_21_38ED end

    def Function_22_394F(): pass

    label("Function_22_394F")

    OP_9F(0x0, 0xFE)
    OP_9F(0x1, -31010, 120, 108760)
    OP_9F(0x1, -29550, 120, 96790)
    OP_9F(0x1, -30410, 120, 82580)
    OP_9F(0x1, -27420, 120, 72480)
    OP_9F(0x1, -28460, 120, 63070)
    OP_9F(0x1, -34760, 120, 51910)
    OP_9F(0x1, -35820, 120, 43510)
    OP_9F(0x2, 0xFE, 11000, 0x6)
    Return()

    # Function_22_394F end

    def Function_23_39BF(): pass

    label("Function_23_39BF")

    Sleep(500)
    Sound(458, 0, 80, 0)
    Sleep(4000)
    Sound(457, 0, 80, 0)
    Sleep(5000)
    Sound(458, 0, 80, 0)
    Return()

    # Function_23_39BF end

    def Function_24_39DB(): pass

    label("Function_24_39DB")

    Sound(128, 2, 10, 0)
    Sleep(300)
    OP_25(0x80, 0x14)
    Sleep(300)
    OP_25(0x80, 0x1E)
    Sleep(300)
    OP_25(0x80, 0x28)
    Sleep(300)
    OP_25(0x80, 0x32)
    Sleep(300)
    OP_25(0x80, 0x3C)
    Sleep(300)
    OP_25(0x80, 0x46)
    Sleep(300)
    OP_25(0x80, 0x50)
    Sleep(300)
    OP_25(0x80, 0x5A)
    Sleep(300)
    OP_25(0x80, 0x64)
    Return()

    # Function_24_39DB end

    def Function_25_3A21(): pass

    label("Function_25_3A21")

    EventBegin(0x0)
    FadeToDark(0, -1, 0)
    FadeToDark(500, 0, -1)
    OP_0D()
    FadeToBright(0, -1)
    OP_E2(0x3)
    SetChrPos(0x101, -29810, 0, 94930, 0)
    SetChrPos(0x102, -28880, 0, 93870, 0)
    SetChrPos(0x109, -30760, 0, 93290, 0)
    SetChrPos(0x105, -29600, 0, 92570, 0)
    OP_68(-28230, 600, 99000, 0)
    MoveCamera(45, 24, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(23710, 0)
    FadeToBright(1000, 0)
    OP_68(-26340, 900, 107250, 6000)
    MoveCamera(52, 16, 0, 6000)
    OP_6E(510, 6000)
    SetCameraDistance(35430, 6000)
    BeginChrThread(0x101, 0, 0, 26)
    BeginChrThread(0x102, 0, 0, 27)
    BeginChrThread(0x109, 0, 0, 28)
    BeginChrThread(0x105, 0, 0, 29)
    OP_0D()
    Sleep(5000)
    OP_68(-26340, 1500, 107250, 0)
    MoveCamera(52, 17, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(18910, 0)
    Fade(500)
    OP_0D()
    WaitChrThread(0x101, 0)
    WaitChrThread(0x102, 0)
    WaitChrThread(0x109, 0)
    WaitChrThread(0x105, 0)
    Sleep(300)
    OP_93(0x101, 0xB4, 0x1F4)

    #C0029
    ChrTalk(
        0x101,
        (
            "#00006F#5P呼……\x02\x03",

            "#00000F最后还是没有开车，\x01",
            "一直徒步走到了这里啊。\x02",
        )
    )

    CloseMessageWindow()
    OP_93(0x102, 0x13B, 0x1F4)

    #C0030
    ChrTalk(
        0x102,
        (
            "#00102F#11P算啦，山道的景色很美丽，\x01",
            "欣赏一下也不错。\x02",
        )
    )

    CloseMessageWindow()
    OP_93(0x109, 0x2D, 0x1F4)

    #C0031
    ChrTalk(
        0x109,
        (
            "#10112F#6P是、是啊。\x01",
            "（还是有点遗憾……）\x02",
        )
    )

    CloseMessageWindow()

    #C0032
    ChrTalk(
        0x105,
        (
            "#10306F#12P哎呀呀，没想到支援科\x01",
            "是这种需要长途步行的部门啊。\x02\x03",

            "#10305F话说回来……\x02",
        )
    )

    CloseMessageWindow()
    OP_68(-24580, 2000, 106670, 2500)
    MoveCamera(61, 6, 0, 2500)
    OP_6E(510, 2500)
    SetCameraDistance(15380, 2500)
    OP_93(0x105, 0x5A, 0x1F4)
    Sleep(300)

    def lambda_3CA9():
        OP_93(0x101, 0x5A, 0x1F4)
        ExitThread()

    QueueWorkItem(0x101, 0, lambda_3CA9)
    Sleep(50)

    def lambda_3CB9():
        OP_93(0x109, 0x5A, 0x1F4)
        ExitThread()

    QueueWorkItem(0x109, 0, lambda_3CB9)
    Sleep(50)

    def lambda_3CC9():
        OP_93(0x102, 0x5A, 0x1F4)
        ExitThread()

    QueueWorkItem(0x102, 0, lambda_3CC9)
    Sleep(50)
    WaitChrThread(0x101, 0)
    WaitChrThread(0x109, 0)
    WaitChrThread(0x102, 0)
    OP_6F(0x79)

    #C0033
    ChrTalk(
        0x105,
        (
            "#10300F#6P#N那边也有一条路，\x01",
            "前方是什么地方？\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()

    #C0034
    ChrTalk(
        0x101,
        (
            "#00008F#6P……哦……\x01",
            "那边是『罗赞贝尔克工房』。\x02",
        )
    )

    CloseMessageWindow()

    #C0035
    ChrTalk(
        0x102,
        (
            "#00106F#6P里面有一位身份\x01",
            "有点神秘的人偶师……\x02",
        )
    )

    CloseMessageWindow()

    #C0036
    ChrTalk(
        0x105,
        (
            "#10305F#6P#N嘿，那座圈内人士\x01",
            "人尽皆知的人偶工房吗？\x02\x03",

            "#10302F说起来，在那场拍卖会上，\x01",
            "本来还预定要出售那里制作的人偶吧？\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()

    #C0037
    ChrTalk(
        0x101,
        (
            "#00003F#6P嗯……确实如此。\x02\x03",

            "#00008F（至今也没能查明\x01",
            "  是谁将人偶调了包。）\x02\x03",

            "#00001F（虽然玲已经不在工房了……\x01",
            "  不过，要不要过去看看呢？）\x02",
        )
    )

    CloseMessageWindow()
    FadeToDark(1000, 0, -1)
    OP_0D()
    SetChrPos(0x0, -24650, 0, 106360, 90)
    SetScenarioFlags(0x129, 1)
    ModifyEventFlags(0, 0, 0x80)
    OP_E2(0x2)
    Sleep(500)
    EventEnd(0x5)
    Return()

    # Function_25_3A21 end

    def Function_26_3EBC(): pass

    label("Function_26_3EBC")

    OP_9B(0x0, 0xFE, 0xF, 0x36B0, 0x7D0, 0x0)
    Return()

    # Function_26_3EBC end

    def Function_27_3ECC(): pass

    label("Function_27_3ECC")

    Sleep(50)
    OP_9B(0x0, 0xFE, 0xF, 0x36B0, 0x7D0, 0x0)
    Return()

    # Function_27_3ECC end

    def Function_28_3EDF(): pass

    label("Function_28_3EDF")

    Sleep(100)
    OP_9B(0x0, 0xFE, 0xF, 0x36B0, 0x7D0, 0x0)
    Return()

    # Function_28_3EDF end

    def Function_29_3EF2(): pass

    label("Function_29_3EF2")

    Sleep(150)
    OP_9B(0x0, 0xFE, 0xF, 0x36B0, 0x7D0, 0x0)
    Return()

    # Function_29_3EF2 end

    def Function_30_3F05(): pass

    label("Function_30_3F05")

    EventBegin(0x0)
    FadeToDark(0, 0, -1)
    OP_E2(0x3)
    SetChrPos(0x101, -25150, 100, 94110, 293)
    SetChrPos(0x102, -25150, 100, 94110, 293)
    SetChrPos(0x109, -25150, 100, 94110, 293)
    SetChrPos(0x105, -25150, 100, 94110, 293)
    OP_A7(0x101, 0xFF, 0xFF, 0xFF, 0x0, 0x0)
    OP_A7(0x102, 0xFF, 0xFF, 0xFF, 0x0, 0x0)
    OP_A7(0x109, 0xFF, 0xFF, 0xFF, 0x0, 0x0)
    OP_A7(0x105, 0xFF, 0xFF, 0xFF, 0x0, 0x0)
    ClearChrFlags(0x22, 0x80)
    ClearMapObjFlags(0x2, 0x4)
    ClearMapObjFlags(0x2, 0x1000)
    OP_78(0x2, 0x22)
    SetMapObjFrame(0x2, "light", 0x0, 0x1)
    OP_49()
    SetChrPos(0x22, -28010, 0, 67330, 7)
    OP_D5(0x22, 0x0, 0x1B58, 0x0, 0x0)
    SetMapObjFlags(0x2, 0x1000)
    OP_74(0x2, 0x1E)
    OP_71(0x2, 0x79, 0xB4, 0x0, 0x20)
    OP_68(-18810, -400, 90830, 0)
    MoveCamera(47, 14, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(44480, 0)
    FadeToBright(1000, 0)
    BeginChrThread(0x22, 0, 0, 31)
    BeginChrThread(0x27, 1, 0, 36)
    OP_0D()
    Sleep(1500)
    OP_68(-22000, -400, 94790, 5500)
    MoveCamera(61, 25, 0, 5500)
    OP_6E(510, 5500)
    SetCameraDistance(31060, 5500)
    WaitChrThread(0x22, 0)
    OP_68(-26500, 1300, 94300, 0)
    MoveCamera(60, 12, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(20500, 0)
    Fade(500)
    OP_0D()
    Sound(462, 0, 100, 0)
    OP_71(0x2, 0x12D, 0x14A, 0x1, 0x8)
    OP_79(0x2)
    BeginChrThread(0x101, 0, 0, 32)
    BeginChrThread(0x102, 0, 0, 33)
    BeginChrThread(0x105, 0, 0, 34)
    BeginChrThread(0x109, 0, 0, 35)
    WaitChrThread(0x101, 0)
    WaitChrThread(0x102, 0)
    WaitChrThread(0x105, 0)
    WaitChrThread(0x109, 0)

    def lambda_40CF():
        OP_93(0xFE, 0xB4, 0x1F4)
        ExitThread()

    QueueWorkItem(0x101, 2, lambda_40CF)
    Sleep(50)

    def lambda_40DF():
        OP_93(0xFE, 0x5A, 0x1F4)
        ExitThread()

    QueueWorkItem(0x102, 2, lambda_40DF)
    Sleep(50)

    def lambda_40EF():
        OP_93(0xFE, 0x0, 0x1F4)
        ExitThread()

    QueueWorkItem(0x105, 2, lambda_40EF)
    Sleep(50)

    #C0038
    ChrTalk(
        0x102,
        (
            "#00109F#6P呵呵，和芙兰说的一样，\x01",
            "山道一带的天气已经放晴了。\x02",
        )
    )

    CloseMessageWindow()

    #C0039
    ChrTalk(
        0x101,
        (
            "#00002F#5P嗯，雨后的景色\x01",
            "真是美丽啊。\x02",
        )
    )

    CloseMessageWindow()

    #C0040
    ChrTalk(
        0x109,
        (
            "#10109F#11P唔……话说回来，\x01",
            "这辆车实在是很棒呢。\x02\x03",

            "#10102F行驶在这种崎岖难行的山道上，\x01",
            "也基本不会摇晃。\x02",
        )
    )

    CloseMessageWindow()

    #C0041
    ChrTalk(
        0x105,
        (
            "#10304F#12P不愧是蔡斯中央工房，\x01",
            "正式销售之后，肯定会大受欢迎的。\x02\x03",

            "#10305F话说回来……\x02",
        )
    )

    CloseMessageWindow()
    OP_68(-24680, 1700, 97940, 2000)
    MoveCamera(53, 10, 0, 2000)
    OP_6E(510, 2000)
    SetCameraDistance(22600, 2000)
    OP_93(0x105, 0x2D, 0x1F4)
    Sleep(300)

    def lambda_426A():
        OP_93(0x101, 0x0, 0x1F4)
        ExitThread()

    QueueWorkItem(0x101, 0, lambda_426A)
    Sleep(50)

    def lambda_427A():
        OP_93(0x109, 0x0, 0x1F4)
        ExitThread()

    QueueWorkItem(0x109, 0, lambda_427A)
    Sleep(50)

    def lambda_428A():
        OP_93(0x102, 0x0, 0x1F4)
        ExitThread()

    QueueWorkItem(0x102, 0, lambda_428A)
    Sleep(50)
    WaitChrThread(0x101, 0)
    WaitChrThread(0x109, 0)
    WaitChrThread(0x102, 0)
    OP_6F(0x79)

    #C0042
    ChrTalk(
        0x105,
        (
            "#10300F#12P#N那边也有一条路，\x01",
            "前方是什么地方？\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()

    #C0043
    ChrTalk(
        0x101,
        (
            "#00008F#6P……哦……\x01",
            "那边是『罗赞贝尔克工房』。\x02",
        )
    )

    CloseMessageWindow()

    #C0044
    ChrTalk(
        0x102,
        (
            "#00106F#6P#N里面有一位身份\x01",
            "有点神秘的人偶师……\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()

    #C0045
    ChrTalk(
        0x105,
        (
            "#10305F#12P#N嘿，那座圈内人士\x01",
            "人尽皆知的人偶工房吗？\x02\x03",

            "#10302F说起来，在那场拍卖会上，\x01",
            "本来还预定要出售那里制作的人偶吧？\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()

    #C0046
    ChrTalk(
        0x101,
        (
            "#00003F#6P嗯……确实如此。\x02\x03",

            "#00008F（至今也没能查明\x01",
            "  是谁将人偶调了包。）\x02\x03",

            "#00001F（虽然玲已经不在工房了……\x01",
            "  不过，要不要过去看看呢？）\x02",
        )
    )

    CloseMessageWindow()
    FadeToDark(1000, 0, -1)
    OP_0D()
    SetChrPos(0x0, -24660, 0, 97490, 0)
    ClearMapObjFlags(0x2, 0x1000)
    SetScenarioFlags(0x129, 2)
    ModifyEventFlags(0, 0, 0x80)
    SetChrFlags(0x22, 0x80)
    OP_E2(0x2)
    ClearMapFlags(0x8000000)
    Sleep(500)
    EventEnd(0x5)
    Return()

    # Function_30_3F05 end

    def Function_31_4494(): pass

    label("Function_31_4494")

    SetChrPos(0xFE, -28010, 50, 67330, 7)
    OP_9F(0x0, 0xFE)
    OP_9F(0x1, -27850, 50, 72760)
    OP_9F(0x1, -29000, 50, 83000)
    OP_9F(0x1, -26000, 50, 88900)
    OP_9F(0x1, -25800, 50, 89350)
    OP_9F(0x1, -25650, 50, 89650)
    OP_9F(0x2, 0xFE, 5000, 0x6)
    OP_9B(0x0, 0xFE, 0x0, 0x3E8, 0xFA0, 0x1)
    OP_9B(0x0, 0xFE, 0x0, 0x3E8, 0xBB8, 0x1)
    OP_9B(0x0, 0xFE, 0x0, 0x3E8, 0x7D0, 0x1)
    OP_71(0x2, 0x5B, 0x78, 0x1, 0x8)
    OP_9B(0x0, 0xFE, 0x0, 0x3E8, 0x3E8, 0x1)
    Return()

    # Function_31_4494 end

    def Function_32_4541(): pass

    label("Function_32_4541")


    def lambda_4546():
        OP_A7(0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F4)
        ExitThread()

    QueueWorkItem(0xFE, 2, lambda_4546)
    OP_9B(0x1, 0xFE, 0x0, 0x1F4, 0x3E8, 0x0)
    OP_93(0xFE, 0x145, 0x1F4)
    OP_9B(0x1, 0xFE, 0x0, 0x546, 0x7D0, 0x0)
    OP_93(0xFE, 0x87, 0x1F4)
    Return()

    # Function_32_4541 end

    def Function_33_457F(): pass

    label("Function_33_457F")

    Sleep(1300)

    def lambda_4587():
        OP_A7(0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F4)
        ExitThread()

    QueueWorkItem(0xFE, 2, lambda_4587)
    OP_9B(0x1, 0xFE, 0x0, 0x1F4, 0x3E8, 0x0)
    OP_93(0xFE, 0x10E, 0x1F4)
    OP_9B(0x1, 0xFE, 0x0, 0x6D6, 0x7D0, 0x0)
    OP_93(0xFE, 0x5A, 0x1F4)
    Return()

    # Function_33_457F end

    def Function_34_45C0(): pass

    label("Function_34_45C0")

    Sleep(2600)

    def lambda_45C8():
        OP_A7(0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F4)
        ExitThread()

    QueueWorkItem(0xFE, 2, lambda_45C8)
    OP_9B(0x1, 0xFE, 0x0, 0x1F4, 0x3E8, 0x0)
    OP_93(0xFE, 0xD7, 0x1F4)
    OP_9B(0x1, 0xFE, 0x0, 0x546, 0x7D0, 0x0)
    OP_93(0xFE, 0x2D, 0x1F4)
    Return()

    # Function_34_45C0 end

    def Function_35_4601(): pass

    label("Function_35_4601")

    Sleep(3900)

    def lambda_4609():
        OP_A7(0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F4)
        ExitThread()

    QueueWorkItem(0xFE, 2, lambda_4609)
    OP_9B(0x1, 0xFE, 0x0, 0x1F4, 0x3E8, 0x0)
    OP_93(0xFE, 0x5A, 0x1F4)
    Sound(461, 0, 100, 0)
    OP_71(0x2, 0x14B, 0x168, 0x1, 0x8)
    Sleep(600)
    SetChrFlags(0xFE, 0x1000)
    SetChrFlags(0xFE, 0x20)
    SetChrFlags(0xFE, 0x2)
    SetChrSubChip(0xFE, 0x1B)
    Sleep(300)
    ClearChrFlags(0xFE, 0x1000)
    ClearChrFlags(0xFE, 0x20)
    ClearChrFlags(0xFE, 0x2)
    SetChrSubChip(0xFE, 0x0)
    Sleep(300)
    OP_93(0xFE, 0x10E, 0x1F4)
    Return()

    # Function_35_4601 end

    def Function_36_4674(): pass

    label("Function_36_4674")

    Sound(458, 0, 80, 0)
    Sleep(2000)
    Sound(459, 0, 100, 0)
    StopSound(458, 2000, 70)
    Sleep(3000)
    Sound(492, 0, 80, 0)
    Return()

    # Function_36_4674 end

    def Function_37_4693(): pass

    label("Function_37_4693")

    EventBegin(0x0)
    FadeToDark(0, 0, -1)
    OP_E2(0x3)
    OP_68(-24980, 600, 115700, 0)
    MoveCamera(45, 21, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(23500, 0)
    SetChrPos(0x101, -23660, 0, 114990, 270)
    SetChrPos(0x102, -24900, 0, 116210, 180)
    SetChrPos(0x109, -23290, 0, 116420, 225)
    SetChrPos(0x105, -25100, 0, 114790, 45)
    SetChrFlags(0x101, 0x8)
    SetChrFlags(0x102, 0x8)
    SetChrFlags(0x109, 0x8)
    SetChrFlags(0x105, 0x8)
    ClearChrFlags(0xD, 0x80)
    ClearMapObjFlags(0x1, 0x4)
    ClearMapObjFlags(0x1, 0x2)
    OP_78(0x1, 0xD)
    SetMapObjFrame(0x1, "light", 0x0, 0x1)
    OP_49()
    SetChrPos(0xD, -27600, 0, 73000, 0)
    OP_93(0xD, 0x0, 0x0)
    OP_D5(0xD, 0x0, 0x0, 0x0, 0x0)
    SetMapObjFlags(0x1, 0x1000)
    OP_74(0x1, 0x1E)
    FadeToBright(1000, 0)
    OP_68(-27910, 2300, 105910, 0)
    MoveCamera(16, 14, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(57480, 0)
    OP_71(0x1, 0x79, 0xB4, 0x0, 0x20)
    BeginChrThread(0xD, 0, 0, 38)
    BeginChrThread(0x27, 1, 0, 40)
    OP_0D()
    Sleep(500)
    OP_68(-24460, 1900, 115550, 8500)
    MoveCamera(44, 12, 0, 8500)
    OP_6E(510, 8500)
    SetCameraDistance(46590, 8500)
    WaitChrThread(0xD, 0)
    FadeToDark(1000, 0, -1)
    OP_0D()
    ClearChrFlags(0x101, 0x8)
    ClearChrFlags(0x102, 0x8)
    ClearChrFlags(0x109, 0x8)
    ClearChrFlags(0x105, 0x8)

    def lambda_4828():

        label("loc_4828")

        TurnDirection(0xFE, 0xD, 500)
        Yield()
        Jump("loc_4828")

    QueueWorkItem2(0x101, 2, lambda_4828)

    def lambda_483A():

        label("loc_483A")

        TurnDirection(0xFE, 0xD, 500)
        Yield()
        Jump("loc_483A")

    QueueWorkItem2(0x102, 2, lambda_483A)

    def lambda_484C():

        label("loc_484C")

        TurnDirection(0xFE, 0xD, 500)
        Yield()
        Jump("loc_484C")

    QueueWorkItem2(0x109, 2, lambda_484C)

    def lambda_485E():

        label("loc_485E")

        TurnDirection(0xFE, 0xD, 500)
        Yield()
        Jump("loc_485E")

    QueueWorkItem2(0x105, 2, lambda_485E)
    OP_68(-24330, 1500, 115590, 0)
    MoveCamera(69, 27, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(19500, 0)
    Sleep(500)
    FadeToBright(1000, 0)
    Sleep(500)
    BeginChrThread(0xD, 0, 0, 39)
    Sound(471, 0, 100, 0)
    OP_0D()
    Sleep(1500)
    Sleep(1500)
    EndChrThread(0x101, 0x2)
    EndChrThread(0x102, 0x2)
    EndChrThread(0x105, 0x2)
    EndChrThread(0x109, 0x2)

    def lambda_48D0():
        OP_93(0xFE, 0x87, 0x1F4)
        ExitThread()

    QueueWorkItem(0x102, 2, lambda_48D0)
    Sleep(50)

    def lambda_48E0():
        OP_93(0xFE, 0x13B, 0x1F4)
        ExitThread()

    QueueWorkItem(0x101, 2, lambda_48E0)
    Sleep(50)

    def lambda_48F0():
        OP_93(0xFE, 0xE1, 0x1F4)
        ExitThread()

    QueueWorkItem(0x109, 2, lambda_48F0)
    Sleep(50)

    def lambda_4900():
        OP_93(0xFE, 0x2D, 0x1F4)
        ExitThread()

    QueueWorkItem(0x105, 2, lambda_4900)
    Sleep(300)

    #C0047
    ChrTalk(
        0x102,
        (
            "#00109F#6P呵呵，和芙兰说的一样，\x01",
            "山道一带的天气已经放晴了。\x02",
        )
    )

    CloseMessageWindow()

    #C0048
    ChrTalk(
        0x101,
        (
            "#00002F#11P嗯，雨后的景色\x01",
            "真是美丽啊。\x02\x03",

            "#00006F话说回来，我们明明有车，\x01",
            "结果却还是习惯性地坐了巴士啊……\x02",
        )
    )

    CloseMessageWindow()

    #C0049
    ChrTalk(
        0x109,
        (
            "#10109F#5P呵呵，\x01",
            "我很喜欢巴士。\x02\x03",

            "#10102F这种悠哉悠哉的感觉\x01",
            "实在是不错。\x02",
        )
    )

    CloseMessageWindow()

    #C0050
    ChrTalk(
        0x105,
        (
            "#10304F#12P我平时很少坐巴士，\x01",
            "感觉很新鲜呢。\x02\x03",

            "#10305F话说回来……\x02",
        )
    )

    CloseMessageWindow()
    OP_68(-23980, 2200, 113320, 2500)
    MoveCamera(77, 9, 0, 2500)
    OP_6E(510, 2500)
    SetCameraDistance(16970, 2500)
    OP_93(0x105, 0x87, 0x1F4)
    Sleep(300)

    def lambda_4A8B():
        OP_93(0x101, 0x87, 0x1F4)
        ExitThread()

    QueueWorkItem(0x101, 0, lambda_4A8B)
    Sleep(50)

    def lambda_4A9B():
        OP_93(0x109, 0x87, 0x1F4)
        ExitThread()

    QueueWorkItem(0x109, 0, lambda_4A9B)
    Sleep(50)

    def lambda_4AAB():
        OP_93(0x102, 0x87, 0x1F4)
        ExitThread()

    QueueWorkItem(0x102, 0, lambda_4AAB)
    Sleep(50)
    WaitChrThread(0x101, 0)
    WaitChrThread(0x109, 0)
    WaitChrThread(0x102, 0)
    OP_6F(0x79)

    #C0051
    ChrTalk(
        0x105,
        (
            "#10300F#6P#N那边也有一条路，\x01",
            "前方是什么地方？\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()

    #C0052
    ChrTalk(
        0x101,
        (
            "#00008F#5P……哦……\x01",
            "那边是『罗赞贝尔克工房』。\x02",
        )
    )

    CloseMessageWindow()

    #C0053
    ChrTalk(
        0x102,
        (
            "#00106F#6P#N里面有一位身份\x01",
            "有点神秘的人偶师……\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()

    #C0054
    ChrTalk(
        0x105,
        (
            "#10305F#6P#N嘿，那座圈内人士\x01",
            "人尽皆知的人偶工房吗？\x02\x03",

            "#10302F说起来，在那场拍卖会上，\x01",
            "本来还预定要出售那里制作的人偶吧？\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()

    #C0055
    ChrTalk(
        0x101,
        (
            "#00003F#5P嗯……确实如此。\x02\x03",

            "#00008F（至今也没能查明\x01",
            "  是谁将人偶调了包。）\x02\x03",

            "#00001F（虽然玲已经不在工房了……\x01",
            "  不过，要不要过去看看呢？）\x02",
        )
    )

    CloseMessageWindow()
    FadeToDark(1000, 0, -1)
    OP_0D()
    SetChrPos(0x0, -22190, 0, 113430, 90)
    SetMapObjFlags(0x1, 0x4)
    SetScenarioFlags(0x129, 3)
    ModifyEventFlags(0, 0, 0x80)
    SetChrFlags(0xD, 0x80)
    OP_E2(0x2)
    Sleep(500)
    EventEnd(0x5)
    Return()

    # Function_37_4693 end

    def Function_38_4CAE(): pass

    label("Function_38_4CAE")

    OP_74(0x1, 0xF)
    OP_71(0x1, 0x79, 0xB4, 0x0, 0x20)
    SetChrPos(0xFE, -27600, 0, 73000, 0)
    OP_9F(0x0, 0xFE)
    OP_93(0xFE, 0x0, 0x0)
    OP_9F(0x1, -30000, 0, 87500)
    OP_9F(0x1, -29500, 0, 99500)
    OP_9F(0x1, -29000, 0, 109000)
    OP_9F(0x1, -30000, 0, 111500)
    OP_9F(0x1, -31500, 0, 113000)
    OP_9F(0x2, 0xFE, 5000, 0x6)
    OP_9B(0x1, 0xFE, 0x0, 0x15E, 0xFA0, 0x1)
    OP_9B(0x1, 0xFE, 0x0, 0x15E, 0xBB8, 0x1)
    OP_9B(0x1, 0xFE, 0x0, 0x15E, 0x7D0, 0x1)
    OP_71(0x1, 0x5B, 0x78, 0x0, 0x0)
    OP_9B(0x1, 0xFE, 0x0, 0x15E, 0x3E8, 0x1)
    Return()

    # Function_38_4CAE end

    def Function_39_4D72(): pass

    label("Function_39_4D72")

    OP_74(0x1, 0xF)
    OP_71(0x1, 0x79, 0xB4, 0x0, 0x20)
    OP_9B(0x1, 0xFE, 0x0, 0x15E, 0x3E8, 0x1)
    OP_9B(0x1, 0xFE, 0x0, 0x15E, 0x7D0, 0x1)
    OP_9B(0x1, 0xFE, 0x0, 0x15E, 0xBB8, 0x1)
    OP_9B(0x1, 0xFE, 0x0, 0x15E, 0xFA0, 0x1)
    OP_9B(0x1, 0xFE, 0x0, 0x3A98, 0x1388, 0x1)
    ClearMapObjFlags(0x1, 0x1000)
    Return()

    # Function_39_4D72 end

    def Function_40_4DD4(): pass

    label("Function_40_4DD4")

    Sound(471, 0, 100, 0)
    Sleep(3000)
    Sound(473, 0, 100, 0)
    Return()

    # Function_40_4DD4 end

    def Function_41_4DE4(): pass

    label("Function_41_4DE4")

    EventBegin(0x0)
    FadeToDark(0, -1, 0)
    FadeToDark(500, 0, -1)
    OP_0D()
    FadeToBright(0, -1)
    OP_E2(0x3)
    LoadChrToIndex("apl/ch50011.itc", 0x1E)
    SoundLoad(803)
    SoundLoad(2718)
    SoundLoad(2719)
    CreatePortrait(0, 180, 0, 436, 256, 0, 0, 256, 256, 0, 0, 256, 256, 0xFFFFFF, 0x0, "c_vis007.itp")
    SetChrPos(0x101, -15150, 0, 109800, 270)
    SetChrPos(0x102, -13650, 0, 109050, 270)
    SetChrPos(0x103, -12750, 0, 110950, 270)
    SetChrPos(0x104, -11800, 0, 110100, 270)
    SetChrPos(0x109, -12850, 0, 108000, 270)
    SetChrPos(0x105, -13100, 0, 111750, 270)
    ClearChrFlags(0x4, 0x80)
    ClearChrBattleFlags(0x4, 0x8000)
    ClearChrFlags(0x5, 0x80)
    ClearChrBattleFlags(0x5, 0x8000)
    OP_68(-13750, 600, 110000, 0)
    MoveCamera(45, 20, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(22500, 0)
    OP_68(-14500, 600, 109900, 2000)

    def lambda_4EFF():
        OP_9B(0x0, 0xFE, 0x0, 0x7D0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x101, 1, lambda_4EFF)
    Sleep(50)

    def lambda_4F17():
        OP_9B(0x0, 0xFE, 0x0, 0x7D0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x102, 1, lambda_4F17)
    Sleep(50)

    def lambda_4F2F():
        OP_9B(0x0, 0xFE, 0x0, 0x7D0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x103, 1, lambda_4F2F)
    Sleep(50)

    def lambda_4F47():
        OP_9B(0x0, 0xFE, 0x0, 0x7D0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x104, 1, lambda_4F47)
    Sleep(50)

    def lambda_4F5F():
        OP_9B(0x0, 0xFE, 0x0, 0x7D0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x109, 1, lambda_4F5F)
    Sleep(50)

    def lambda_4F77():
        OP_9B(0x0, 0xFE, 0x0, 0x7D0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x105, 1, lambda_4F77)
    FadeToBright(1000, 0)
    OP_0D()
    Sound(803, 2, 100, 0)
    Sleep(300)
    OP_63(0x101, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(1000)
    WaitChrThread(0x101, 1)
    OP_93(0x101, 0xB4, 0x1F4)
    Fade(250)
    SetChrFlags(0x101, 0x20)
    SetChrFlags(0x101, 0x2)
    SetChrChipByIndex(0x101, 0x1E)
    SetChrSubChip(0x101, 0x6)
    Sound(802, 0, 100, 0)
    Sleep(500)
    WaitChrThread(0x102, 1)
    WaitChrThread(0x103, 1)
    WaitChrThread(0x104, 1)
    WaitChrThread(0x109, 1)
    WaitChrThread(0x105, 1)

    def lambda_4FF9():
        TurnDirection(0x101, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x101, 0, lambda_4FF9)
    Sleep(50)

    def lambda_5009():
        TurnDirection(0x102, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x102, 0, lambda_5009)
    Sleep(50)

    def lambda_5019():
        TurnDirection(0x103, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x103, 0, lambda_5019)
    Sleep(50)

    def lambda_5029():
        TurnDirection(0x104, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x104, 0, lambda_5029)
    Sleep(50)

    def lambda_5039():
        TurnDirection(0x109, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x109, 0, lambda_5039)
    Sleep(50)

    def lambda_5049():
        TurnDirection(0x105, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x105, 0, lambda_5049)
    WaitChrThread(0x101, 0)
    WaitChrThread(0x102, 0)
    WaitChrThread(0x103, 0)
    WaitChrThread(0x104, 0)
    WaitChrThread(0x109, 0)
    WaitChrThread(0x105, 0)

    #C0056
    ChrTalk(
        0x101,
        "#00005F#5P哦……\x02",
    )

    CloseMessageWindow()

    #C0057
    ChrTalk(
        0x102,
        "#00105F#11P啊……\x02",
    )

    CloseMessageWindow()

    #C0058
    ChrTalk(
        0x105,
        (
            "#10302F#5P莫非是什么地方\x01",
            "发生问题了吗？\x02",
        )
    )

    CloseMessageWindow()
    SetChrSubChip(0x101, 0x7)
    OP_24(0x323)
    Sound(804, 0, 100, 0)
    Sleep(300)
    OP_CB(0x0, 0x3, 0xFFFFFFFF, 0x1F4, 0x0, 0x0)
    FadeToDark(500, 0, 100)
    OP_0D()
    OP_CC(0x0, 0x0, 0x3)
    #Sound(2084, 255, 100, 0)    #voice#Lloyd
    SetMessageWindowPos(90, 130, -1, -1)

    #A0059
    AnonymousTalk(
        0x101,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x0),
            "#00001F您好，我是特别任务支援科的\x01",
            "罗伊德·班宁斯。\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    OP_C9(0x0, 0x80000000)
    SetMessageWindowPos(170, 50, -1, -1)
    SetChrName("芙兰的声音")

    #A0060
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "#2718V#30W啊，罗伊德警官！\x02\x03",

            "#2719V#30W呼，总算打通了。\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    OP_24(0xA9F)
    OP_C9(0x1, 0x80000000)
    SetMessageWindowPos(90, 130, -1, -1)

    #A0061
    AnonymousTalk(
        0x101,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x0),
            "#00002F芙兰吗？辛苦了。\x02\x03",

            "#00005F莫非你刚才就\x01",
            "联络过我吗？\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    SetMessageWindowPos(170, 50, -1, -1)
    SetChrName("芙兰的声音")

    #A0062
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "是的，但不知为什么，\x01",
            "一直无法接通……\x02\x03",

            "我又呼叫了其他几位的艾尼格玛，\x01",
            "但结果也是一样。\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    SetMessageWindowPos(90, 130, -1, -1)

    #A0063
    AnonymousTalk(
        0x101,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x0),
            "#00008F（看来人偶工房的地下\x01",
            "  布设了阻断导力波\x01",
            "  的装置……）\x02\x03",

            "#00006F抱歉，我们刚才去了\x01",
            "一个有些特殊的地方……\x02\x03",

            "#00001F发生什么事了？\x01",
            "莫非有紧急支援请求吗？\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    SetMessageWindowPos(170, 50, -1, -1)
    SetChrName("芙兰的声音")

    #A0064
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "不是的……\x02\x03",

            "在三十分钟前，西克洛斯贝尔街道\x01",
            "发生了列车脱轨事故。\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    OP_63(0x101, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(1000)
    OP_82(0x64, 0x0, 0xBB8, 0x12C)
    SetMessageWindowPos(90, 130, -1, -1)

    #A0065
    AnonymousTalk(
        0x101,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x0),
            "#00011F#4S什么……\x02\x03",

            "#00007F真的吗！？\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    SetMessageWindowPos(170, 50, -1, -1)
    SetChrName("芙兰的声音")

    #A0066
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "是的，搜查二科已经\x01",
            "去现场调查了。\x02\x03",

            "警备队也出动了，\x01",
            "所以你们应该\x01",
            "没必要过去……\x02\x03",

            "但谨慎起见，\x01",
            "还是通知你们一声。\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    SetMessageWindowPos(90, 130, -1, -1)

    #A0067
    AnonymousTalk(
        0x101,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x0),
            "#00006F是吗……\x01",
            "谢谢了，芙兰。\x02\x03",

            "#00000F如果得到了什么后续情报，\x01",
            "请再联络我们。\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    SetMessageWindowPos(170, 50, -1, -1)
    SetChrName("芙兰的声音")

    #A0068
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "明白了。\x07\x00\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    SetMessageWindowPos(14, 280, 60, 3)
    Sound(813, 0, 50, 0)
    OP_CB(0x0, 0x3, 0xFFFFFF, 0x1F4, 0x0, 0x0)
    FadeToBright(500, 0)
    OP_0D()
    OP_CC(0x0, 0x0, 0x3)
    SetChrSubChip(0x101, 0x6)
    Sound(804, 0, 100, 0)

    #C0069
    ChrTalk(
        0x103,
        "#00200F#5P……出什么问题了？\x02",
    )

    CloseMessageWindow()

    #C0070
    ChrTalk(
        0x109,
        (
            "#10105F#11P好像是芙兰\x01",
            "打来的吧……\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    Fade(250)
    ClearChrFlags(0x101, 0x20)
    ClearChrFlags(0x101, 0x2)
    SetChrChipByIndex(0x101, 0xFF)
    SetChrSubChip(0x101, 0x0)
    Sound(802, 0, 100, 0)
    OP_0D()
    TurnDirection(0x101, 0x104, 500)

    #C0071
    ChrTalk(
        0x101,
        "#00013F#6P嗯……\x02",
    )

    CloseMessageWindow()
    SetChrName("")

    #A0072
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "将西克洛斯贝尔街道发生\x01",
            "脱轨事故的情况做了说明。\x07\x00\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    OP_63(0x102, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    OP_63(0x103, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(50)
    OP_63(0x104, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    OP_63(0x109, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(50)
    OP_63(0x105, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(1000)
    OP_82(0x32, 0x0, 0xBB8, 0xC8)

    #C0073
    ChrTalk(
        0x104,
        "#00307F#11P什么……！？\x02",
    )

    CloseMessageWindow()

    #C0074
    ChrTalk(
        0x109,
        (
            "#10107F#11P脱轨……\x01",
            "就是导力列车的事故吧！？\x02",
        )
    )

    CloseMessageWindow()

    #C0075
    ChrTalk(
        0x101,
        (
            "#00006F#6P嗯，搜查二科和警备队\x01",
            "好像已经前往现场了，\x01",
            "有他们处理，应该没什么问题……\x02",
        )
    )

    CloseMessageWindow()
    OP_63(0x101, 0x0, 2000, 0x18, 0x1B, 0xFA, 0x0)
    OP_63(0x102, 0x0, 2000, 0x18, 0x1B, 0xFA, 0x0)
    OP_63(0x103, 0x0, 2000, 0x18, 0x1B, 0xFA, 0x0)
    OP_63(0x104, 0x0, 2000, 0x18, 0x1B, 0xFA, 0x0)
    OP_63(0x109, 0x0, 2000, 0x18, 0x1B, 0xFA, 0x0)
    OP_63(0x105, 0x0, 2000, 0x18, 0x1B, 0xFA, 0x0)
    Sleep(2000)
    OP_64(0x101)
    OP_64(0x102)
    OP_64(0x103)
    OP_64(0x104)
    OP_64(0x109)
    OP_64(0x105)

    #C0076
    ChrTalk(
        0x103,
        "#00206F#5P……但还是有些在意呢。\x02",
    )

    CloseMessageWindow()

    #C0077
    ChrTalk(
        0x104,
        (
            "#00301F#11P嗯，偏偏在这种紧张时期发生事故，\x01",
            "时机未免也太巧合了。\x02",
        )
    )

    CloseMessageWindow()

    #C0078
    ChrTalk(
        0x105,
        (
            "#10306F#5P嗯，恐怕未必是\x01",
            "单纯的事故。\x02",
        )
    )

    CloseMessageWindow()

    #C0079
    ChrTalk(
        0x109,
        "#10108F#11P罗伊德警官……\x02",
    )

    CloseMessageWindow()

    #C0080
    ChrTalk(
        0x102,
        "#00108F#11P该怎么办呢？\x02",
    )

    CloseMessageWindow()

    #C0081
    ChrTalk(
        0x101,
        (
            "#00006F#6P我们只要在今天之内将\x01",
            "有关『结社』的情报整理完毕即可。\x02\x03",

            "#00001F现在还是先去\x01",
            "事故现场看看吧。\x02\x03",

            "#00000F不知究竟是『幻兽』所为，\x01",
            "还是某组织所引发的……\x02\x03",

            "我们过去之后，至少可以\x01",
            "协助他们调查现场。\x02",
        )
    )

    CloseMessageWindow()

    #C0082
    ChrTalk(
        0x109,
        "#10100F#11P好！\x02",
    )

    CloseMessageWindow()

    #C0083
    ChrTalk(
        0x102,
        "#00102F#11P那我们就赶快出发吧。\x02",
    )

    CloseMessageWindow()
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x1E), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_PUSH_VALUE_INDEX, 0x1E), scpexpr(EXPR_PUSH_LONG, 0x11), scpexpr(EXPR_EQU), scpexpr(EXPR_OR), scpexpr(EXPR_PUSH_VALUE_INDEX, 0x1E), scpexpr(EXPR_PUSH_LONG, 0x13), scpexpr(EXPR_EQU), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_59E6")

    #C0084
    ChrTalk(
        0x104,
        (
            "#00306F#11P既然如此，还是开车\x01",
            "赶过去比较好。\x02",
        )
    )

    CloseMessageWindow()
    Jump("loc_5A52")

    label("loc_59E6")


    #C0085
    ChrTalk(
        0x104,
        "#00305F#11P车……好像停在别的地方了。\x02",
    )

    CloseMessageWindow()

    #C0086
    ChrTalk(
        0x103,
        (
            "#00204F#5P联络巡逻中的警备队，\x01",
            "请他们帮忙把车开回支援科吧。\x02",
        )
    )

    CloseMessageWindow()

    label("loc_5A52")

    FadeToDark(1000, 0, -1)
    OP_0D()
    Sound(814, 0, 100, 0)
    SetMessageWindowPos(-1, -1, -1, -1)
    SetChrName("")

    #A0087
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "导力车的目的地\x01",
            "增加了『列车事故现场前方』。\x07\x00\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    SetMessageWindowPos(14, 280, 60, 3)
    Jc((scpexpr(EXPR_PUSH_VALUE_INDEX, 0x1E), scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_EQU), scpexpr(EXPR_PUSH_VALUE_INDEX, 0x1E), scpexpr(EXPR_PUSH_LONG, 0x11), scpexpr(EXPR_EQU), scpexpr(EXPR_OR), scpexpr(EXPR_PUSH_VALUE_INDEX, 0x1E), scpexpr(EXPR_PUSH_LONG, 0x13), scpexpr(EXPR_EQU), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_5AD4")
    Jump("loc_5B37")

    label("loc_5AD4")

    SetMessageWindowPos(-1, -1, -1, -1)
    SetChrName("")

    #A0088
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "停泊在其它场所的导力车\x01",
            "已经被开回特别任务支援科的后门了。\x07\x00\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    SetMessageWindowPos(14, 280, 60, 3)
    OP_50(0x1E, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))

    label("loc_5B37")

    OP_CC(0x1, 0xFF, 0x0)
    OP_D7(0x1E)
    OP_49()
    OP_37()
    SetChrPos(0x0, -17150, 0, 109800, 270)
    SetChrFlags(0x4, 0x80)
    SetChrBattleFlags(0x4, 0x8000)
    SetChrFlags(0x5, 0x80)
    SetChrBattleFlags(0x5, 0x8000)
    SetScenarioFlags(0x162, 5)
    ModifyEventFlags(0, 1, 0x80)
    OP_29(0xA8, 0x4, 0x2)
    OP_29(0xA8, 0x1, 0x0)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x176, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_5B97")
    Jc((scpexpr(EXPR_EXEC_OP, "OP_2A(0x85, 0x0, 0x10)"), scpexpr(EXPR_END)), "loc_5B92")
    Jump("loc_5B97")

    label("loc_5B92")

    OP_29(0x85, 0x4, 0x40)

    label("loc_5B97")

    Jc((scpexpr(EXPR_EXEC_OP, "OP_2A(0x86, 0x0, 0x10)"), scpexpr(EXPR_END)), "loc_5BA8")
    Jump("loc_5BAD")

    label("loc_5BA8")

    OP_29(0x86, 0x4, 0x40)

    label("loc_5BAD")

    Jc((scpexpr(EXPR_EXEC_OP, "OP_2A(0x87, 0x0, 0x10)"), scpexpr(EXPR_END)), "loc_5BBE")
    Jump("loc_5BC3")

    label("loc_5BBE")

    OP_29(0x87, 0x4, 0x40)

    label("loc_5BC3")

    Jc((scpexpr(EXPR_EXEC_OP, "OP_2A(0x89, 0x0, 0x10)"), scpexpr(EXPR_END)), "loc_5BD4")
    Jump("loc_5BD9")

    label("loc_5BD4")

    OP_29(0x89, 0x4, 0x40)

    label("loc_5BD9")

    ModifyEventFlags(1, 3, 0x80)
    ReplaceBGM("ed7150", "ed7151")
    OP_24(0x323)
    OP_E2(0x2)
    EventEnd(0x5)
    Return()

    # Function_41_4DE4 end

    def Function_42_5BEB(): pass

    label("Function_42_5BEB")

    EventBegin(0x0)
    FadeToDark(0, 0, -1)
    OP_E2(0x3)
    LoadChrToIndex("chr/ch31252.itc", 0x23)
    LoadChrToIndex("chr/ch31253.itc", 0x24)
    LoadChrToIndex("apl/ch50515.itc", 0x25)
    LoadChrToIndex("chr/ch41900.itc", 0x28)
    LoadChrToIndex("chr/ch41950.itc", 0x29)
    LoadChrToIndex("chr/ch41952.itc", 0x2A)
    LoadEffect(0x1, "battle/sc008100.eff")
    LoadEffect(0x2, "event/ev10012.eff")
    LoadEffect(0x3, "battle/sc008104.eff")
    LoadEffect(0x4, "battle/btgun00.eff")
    SoundLoad(577)
    SoundLoad(586)
    SoundLoad(861)
    SoundLoad(865)
    SoundLoad(866)
    SoundLoad(869)
    SetChrFlags(0x0, 0x80)
    SetChrFlags(0x1, 0x80)
    SetChrFlags(0x2, 0x80)
    SetChrFlags(0x3, 0x80)
    SetChrChipByIndex(0x10, 0x23)
    SetChrSubChip(0x10, 0x2)
    ClearChrFlags(0x10, 0x80)
    SetChrFlags(0x10, 0x8000)
    SetChrChipByIndex(0x11, 0x23)
    SetChrSubChip(0x11, 0x2)
    ClearChrFlags(0x11, 0x80)
    SetChrFlags(0x11, 0x8000)
    SetChrChipByIndex(0x12, 0x23)
    SetChrSubChip(0x12, 0x2)
    ClearChrFlags(0x12, 0x80)
    SetChrFlags(0x12, 0x8000)
    SetChrChipByIndex(0x17, 0x28)
    SetChrSubChip(0x17, 0x2)
    ClearChrFlags(0x17, 0x80)
    SetChrFlags(0x17, 0x8000)
    SetChrChipByIndex(0x18, 0x2A)
    SetChrSubChip(0x18, 0x2)
    ClearChrFlags(0x18, 0x80)
    SetChrFlags(0x18, 0x8000)
    SetChrChipByIndex(0x19, 0x2A)
    SetChrSubChip(0x19, 0x2)
    ClearChrFlags(0x19, 0x80)
    SetChrFlags(0x19, 0x8000)
    ClearChrFlags(0x23, 0x80)
    OP_78(0x4, 0x23)
    OP_49()
    ClearMapObjFlags(0x4, 0x4)
    SetMapObjFlags(0x4, 0x1000)
    SetMapObjFrame(0x4, "light", 0x0, 0x1)
    OP_74(0x4, 0x1E)
    OP_71(0x4, 0x122, 0x122, 0x0, 0x0)
    SetMapObjFrame(0x4, "mark01", 0x0, 0x1)
    OP_7D(0xFF, 0xBE, 0xB4, 0x0, 0x0)
    OP_11(0xDC, 0xB4, 0xA0, 0x1E, 0xFA, 0x0)
    SetMapObjFrame(0xFF, "model11_shade", 0x0, 0x1)
    ClearMapObjFlags(0xF, 0x4)
    SetMapObjFlags(0xF, 0x1000)
    OP_74(0xF, 0x5A)
    OP_71(0xF, 0x51, 0x64, 0x1, 0x20)
    SetChrPos(0x23, -69020, 0, 189390, 15)
    SetChrPos(0x10, -71510, 10, 189980, 315)
    SetChrPos(0x11, -69320, 10, 193620, 315)
    SetChrPos(0x12, -70100, 2900, 188000, 315)
    SetChrPos(0x17, -92500, 10000, 217700, 135)
    SetChrPos(0x18, -89350, 9750, 213100, 135)
    SetChrPos(0x19, -93000, 10000, 212550, 135)
    OP_68(-91900, 10600, 212840, 0)
    MoveCamera(50, 25, 0, 0)
    OP_6E(500, 0)
    SetCameraDistance(17000, 0)
    MoveCamera(60, 30, 0, 5000)
    SetCameraDistance(21250, 5000)
    OP_82(0x64, 0x0, 0xBB8, 0x157C)
    SetChrFlags(0x18, 0x800)
    SetChrFlags(0x19, 0x800)
    BeginChrThread(0x18, 0, 0, 43)
    BeginChrThread(0x18, 3, 0, 45)
    BeginChrThread(0x19, 0, 0, 43)
    BeginChrThread(0x19, 3, 0, 45)

    def lambda_5E80():
        OP_A6(0xFE, 0x0, 0x14, 0x0, 0xBB8)
        ExitThread()

    QueueWorkItem(0x17, 0, lambda_5E80)
    PlayEffect(0x2, 0x0, 0x17, 0x5, 0, 1000, 3800, 18, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    Sound(577, 2, 60, 0)
    Sound(586, 2, 60, 0)
    Sound(865, 2, 70, 0)
    Sound(861, 2, 60, 0)
    FadeToBright(1000, 0)
    OP_0D()
    OP_6F(0x79)
    StopSound(577, 500, 60)
    StopSound(586, 500, 60)
    OP_68(-85350, 8250, 207210, 750)
    Sleep(500)
    StopEffect(0x0, 0x0)
    EndChrThread(0x17, 0x0)
    Fade(500)
    SetMapObjFrame(0xFF, "plant01", 0x0, 0x1)
    OP_68(-70000, 2000, 189650, 0)
    MoveCamera(70, 25, 0, 0)
    OP_6E(500, 0)
    SetCameraDistance(22000, 0)
    MoveCamera(80, 30, 0, 7000)
    SetCameraDistance(26000, 7000)
    OP_82(0x64, 0x0, 0xBB8, 0x1B58)
    EndChrThread(0x18, 0x0)
    EndChrThread(0x18, 0x3)
    EndChrThread(0x19, 0x0)
    EndChrThread(0x19, 0x3)
    OP_25(0x361, 0x28)
    OP_25(0x35D, 0x28)
    BeginChrThread(0x27, 1, 0, 46)
    BeginChrThread(0x10, 0, 0, 43)
    BeginChrThread(0x10, 3, 0, 44)
    BeginChrThread(0x11, 0, 0, 43)
    BeginChrThread(0x11, 3, 0, 44)
    BeginChrThread(0x12, 0, 0, 43)
    BeginChrThread(0x12, 3, 0, 44)
    Sound(577, 2, 70, 0)
    Sound(586, 2, 60, 0)
    OP_87(0x1, 0x0, 0x4, "Null_gun", 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3E8, 0x3E8, 0x3E8, 0x0)
    Sleep(3000)
    StopEffect(0x0, 0x2)
    StopSound(577, 500, 70)
    StopSound(586, 500, 60)
    Sleep(1000)
    Sound(869, 0, 100, 0)
    PlayEffect(0x3, 0xFF, 0x23, 0x0, 900, 3300, 100, -60, -30, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    Sleep(100)
    PlayEffect(0x3, 0xFF, 0x23, 0x0, -300, 3300, 100, -60, -30, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    Sleep(100)
    PlayEffect(0x3, 0xFF, 0x23, 0x0, 900, 3100, 100, -60, -30, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    Sleep(100)
    PlayEffect(0x3, 0xFF, 0x23, 0x0, -300, 3100, 100, -60, -30, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    Sleep(1200)
    Sound(577, 2, 70, 0)
    Sound(586, 2, 60, 0)
    OP_87(0x1, 0x0, 0x4, "Null_gun", 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3E8, 0x3E8, 0x3E8, 0x0)
    Sleep(500)
    StopSound(577, 1000, 60)
    StopSound(586, 1000, 60)
    OP_24(0x361)
    OP_24(0x35D)
    EndChrThread(0x27, 0x1)
    FadeToDark(1000, 0, -1)
    OP_0D()
    OP_24(0x241)
    OP_24(0x24A)
    OP_24(0x35D)
    OP_24(0x361)
    OP_24(0x362)
    OP_24(0x365)
    SetScenarioFlags(0x22, 1)
    NewScene("r2050", 0, 0, 0)
    IdleLoop()
    Return()

    # Function_42_5BEB end

    def Function_43_617F(): pass

    label("Function_43_617F")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_61B2")
    Jc((scpexpr(EXPR_RAND), scpexpr(EXPR_PUSH_LONG, 0x64), scpexpr(EXPR_IMOD), scpexpr(EXPR_PUSH_LONG, 0x50), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_61A6")
    OP_4C(0xFE, 0x3)
    Jump("loc_61AA")

    label("loc_61A6")

    OP_4B(0xFE, 0x3)

    label("loc_61AA")

    Sleep(500)
    Jump("Function_43_617F")

    label("loc_61B2")

    Return()

    # Function_43_617F end

    def Function_44_61B3(): pass

    label("Function_44_61B3")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_6202")
    PlayEffect(0x4, 0xFF, 0xFE, 0x3, 100, 1100, 900, 0, 0, 0, 500, 500, 500, 0xFF, 0, 0, 0, 0)
    OP_A1(0xFE, 0xBB8, 0x2, 0x2, 0x3)
    Jump("Function_44_61B3")

    label("loc_6202")

    Return()

    # Function_44_61B3 end

    def Function_45_6203(): pass

    label("Function_45_6203")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_6252")
    PlayEffect(0x4, 0xFF, 0xFE, 0x3, 100, 950, 1700, 0, 0, 0, 500, 500, 500, 0xFF, 0, 0, 0, 0)
    OP_A1(0xFE, 0xBB8, 0x2, 0x1, 0x2)
    Jump("Function_45_6203")

    label("loc_6252")

    Return()

    # Function_45_6203 end

    def Function_46_6253(): pass

    label("Function_46_6253")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_626C")
    Sound(356, 0, 70, 0)
    Sleep(1000)
    Jump("Function_46_6253")

    label("loc_626C")

    Return()

    # Function_46_6253 end

    def Function_47_626D(): pass

    label("Function_47_626D")

    EventBegin(0x0)
    FadeToDark(0, 0, -1)
    OP_E2(0x3)
    LoadChrToIndex("chr/ch31250.itc", 0x23)
    LoadChrToIndex("chr/ch31253.itc", 0x24)
    LoadChrToIndex("apl/ch50515.itc", 0x25)
    LoadChrToIndex("chr/ch31251.itc", 0x26)
    LoadChrToIndex("chr/ch31252.itc", 0x27)
    LoadChrToIndex("chr/ch41900.itc", 0x28)
    LoadChrToIndex("chr/ch41951.itc", 0x29)
    LoadChrToIndex("chr/ch41952.itc", 0x2A)
    LoadChrToIndex("chr/ch03451.itc", 0x2D)
    LoadChrToIndex("chr/ch03456.itc", 0x2E)
    LoadChrToIndex("chr/ch03452.itc", 0x2F)
    LoadChrToIndex("chr/ch03454.itc", 0x30)
    LoadEffect(0x0, "event/ev14004.eff")
    LoadEffect(0x1, "battle/sc008100.eff")
    LoadEffect(0x2, "battle/cr414000.eff")
    LoadEffect(0x3, "battle/cr034001.eff")
    LoadEffect(0x4, "battle/btgun00.eff")
    LoadEffect(0x5, "battle/cr034000.eff")
    LoadEffect(0x6, "event/ev14002.eff")
    LoadEffect(0x7, "event/ev15000.eff")
    LoadEffect(0x8, "event/ev14003.eff")
    LoadEffect(0x9, "eff/cutin34.eff")
    LoadEffect(0xA, "event/ev10012.eff")
    SoundLoad(577)
    SoundLoad(586)
    SoundLoad(861)
    SoundLoad(865)
    SoundLoad(291)
    SoundLoad(870)
    SoundLoad(875)
    SoundLoad(868)
    SoundLoad(534)
    SoundLoad(3913)
    SoundLoad(3918)
    SoundLoad(3915)
    SoundLoad(3914)
    SetChrFlags(0x0, 0x80)
    SetChrFlags(0x1, 0x80)
    SetChrFlags(0x2, 0x80)
    SetChrFlags(0x3, 0x80)
    SetChrChipByIndex(0x10, 0x26)
    SetChrSubChip(0x10, 0x0)
    ClearChrFlags(0x10, 0x80)
    SetChrFlags(0x10, 0x8000)
    SetChrChipByIndex(0x11, 0x26)
    SetChrSubChip(0x11, 0x0)
    ClearChrFlags(0x11, 0x80)
    SetChrFlags(0x11, 0x8000)
    SetChrChipByIndex(0x12, 0x26)
    SetChrSubChip(0x12, 0x0)
    ClearChrFlags(0x12, 0x80)
    SetChrFlags(0x12, 0x8000)
    SetChrChipByIndex(0x13, 0x26)
    SetChrSubChip(0x13, 0x0)
    ClearChrFlags(0x13, 0x80)
    SetChrFlags(0x13, 0x8000)
    SetChrChipByIndex(0x14, 0x26)
    SetChrSubChip(0x14, 0x0)
    ClearChrFlags(0x14, 0x80)
    SetChrFlags(0x14, 0x8000)
    SetChrChipByIndex(0x15, 0x27)
    SetChrSubChip(0x15, 0x2)
    ClearChrFlags(0x15, 0x80)
    SetChrFlags(0x15, 0x8000)
    SetChrChipByIndex(0x16, 0x27)
    SetChrSubChip(0x16, 0x2)
    ClearChrFlags(0x16, 0x80)
    SetChrFlags(0x16, 0x8000)
    SetChrChipByIndex(0x17, 0x28)
    SetChrSubChip(0x17, 0x0)
    ClearChrFlags(0x17, 0x80)
    SetChrFlags(0x17, 0x8000)
    SetChrChipByIndex(0x18, 0x2A)
    SetChrSubChip(0x18, 0x0)
    ClearChrFlags(0x18, 0x80)
    SetChrFlags(0x18, 0x8000)
    SetChrChipByIndex(0x19, 0x2A)
    SetChrSubChip(0x19, 0x0)
    ClearChrFlags(0x19, 0x80)
    SetChrFlags(0x19, 0x8000)
    SetChrChipByIndex(0x1A, 0x29)
    SetChrSubChip(0x1A, 0x0)
    ClearChrFlags(0x1A, 0x80)
    SetChrFlags(0x1A, 0x8000)
    SetChrChipByIndex(0x1B, 0x29)
    SetChrSubChip(0x1B, 0x0)
    ClearChrFlags(0x1B, 0x80)
    SetChrFlags(0x1B, 0x8000)
    SetChrChipByIndex(0x1C, 0x2D)
    SetChrSubChip(0x1C, 0x0)
    ClearChrFlags(0x1C, 0x80)
    SetChrFlags(0x1C, 0x8000)
    OP_52(0x1C, 0x28, (scpexpr(EXPR_PUSH_LONG, 0xD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    ClearChrFlags(0x23, 0x80)
    OP_78(0x4, 0x23)
    OP_49()
    ClearMapObjFlags(0x4, 0x4)
    SetMapObjFlags(0x4, 0x1000)
    SetMapObjFrame(0x4, "light", 0x0, 0x1)
    SetMapObjFrame(0x4, "mark01", 0x0, 0x1)
    OP_74(0x4, 0x1E)
    OP_71(0x4, 0x122, 0x122, 0x0, 0x0)
    OP_7D(0xFF, 0xBE, 0xB4, 0x0, 0x0)
    OP_11(0xDC, 0xB4, 0xA0, 0x1E, 0xFA, 0x0)
    SetMapObjFrame(0xFF, "model11_shade", 0x0, 0x1)
    ClearMapObjFlags(0xF, 0x4)
    SetMapObjFlags(0xF, 0x1000)
    OP_74(0xF, 0x5A)
    OP_71(0xF, 0x51, 0x64, 0x1, 0x20)
    SetChrPos(0x10, -72050, 0, 190750, 325)
    SetChrPos(0x11, -70300, 0, 192250, 325)
    SetChrPos(0x12, -72100, 150, 192850, 325)
    SetChrPos(0x13, -74100, 450, 193650, 325)
    SetChrPos(0x14, -72650, 500, 195350, 325)
    SetChrPos(0x15, -71510, 10, 189980, 315)
    SetChrPos(0x16, -69320, 10, 193620, 315)
    SetChrPos(0x23, -69020, 0, 189390, 15)
    ClearChrFlags(0x10, 0x4)
    ClearChrFlags(0x11, 0x4)
    ClearChrFlags(0x12, 0x4)
    ClearChrFlags(0x13, 0x4)
    ClearChrFlags(0x14, 0x4)
    SetMapObjFrame(0xFF, "plant01", 0x0, 0x1)
    BeginChrThread(0x15, 0, 0, 43)
    BeginChrThread(0x15, 3, 0, 44)
    BeginChrThread(0x16, 0, 0, 43)
    BeginChrThread(0x16, 3, 0, 44)
    OP_68(-71900, 1400, 193200, 0)
    MoveCamera(90, 20, -10, 0)
    OP_6E(500, 0)
    SetCameraDistance(20000, 0)
    OP_68(-75350, 3400, 196850, 3000)
    MoveCamera(90, 20, -10, 3000)
    OP_6E(500, 3000)
    SetCameraDistance(20000, 3000)

    def lambda_668A():
        OP_9B(0x0, 0xFE, 0x0, 0x3A98, 0xFA0, 0x0)
        ExitThread()

    QueueWorkItem(0x10, 1, lambda_668A)
    Sleep(50)

    def lambda_66A2():
        OP_9B(0x0, 0xFE, 0x0, 0x3A98, 0xFA0, 0x0)
        ExitThread()

    QueueWorkItem(0x11, 1, lambda_66A2)
    Sleep(50)

    def lambda_66BA():
        OP_9B(0x0, 0xFE, 0x0, 0x3A98, 0xFA0, 0x0)
        ExitThread()

    QueueWorkItem(0x12, 1, lambda_66BA)
    Sleep(50)

    def lambda_66D2():
        OP_9B(0x0, 0xFE, 0x0, 0x3A98, 0xFA0, 0x0)
        ExitThread()

    QueueWorkItem(0x13, 1, lambda_66D2)
    Sleep(50)

    def lambda_66EA():
        OP_9B(0x0, 0xFE, 0x0, 0x3A98, 0xFA0, 0x0)
        ExitThread()

    QueueWorkItem(0x14, 1, lambda_66EA)
    Sound(577, 2, 60, 0)
    Sound(586, 2, 50, 0)
    OP_82(0x64, 0x0, 0xBB8, 0xBB8)
    OP_87(0x1, 0x0, 0x4, "Null_gun", 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3E8, 0x3E8, 0x3E8, 0x0)
    BeginChrThread(0x27, 1, 0, 46)
    FadeToBright(1000, 0)
    Sleep(2750)
    OP_0D()
    Fade(500)
    EndChrThread(0x10, 0x1)
    EndChrThread(0x11, 0x1)
    EndChrThread(0x12, 0x1)
    EndChrThread(0x13, 0x1)
    EndChrThread(0x14, 0x1)
    EndChrThread(0x15, 0x0)
    EndChrThread(0x15, 0x3)
    EndChrThread(0x16, 0x0)
    EndChrThread(0x16, 0x3)
    StopEffect(0x0, 0x0)
    SetMapObjFrame(0xFF, "plant01", 0x1, 0x1)
    SetChrPos(0x17, -92500, 10000, 217700, 175)
    SetChrPos(0x18, -89350, 9750, 213100, 135)
    SetChrPos(0x19, -93000, 10000, 212550, 135)
    EndChrThread(0x27, 0x1)
    Sound(865, 2, 60, 0)
    Sound(861, 2, 50, 0)
    SetChrFlags(0x18, 0x800)
    SetChrFlags(0x19, 0x800)
    BeginChrThread(0x18, 0, 0, 43)
    BeginChrThread(0x18, 3, 0, 45)
    BeginChrThread(0x19, 0, 0, 43)
    BeginChrThread(0x19, 3, 0, 45)

    def lambda_6800():
        OP_A6(0xFE, 0x0, 0x14, 0x0, 0xBB8)
        ExitThread()

    QueueWorkItem(0x17, 0, lambda_6800)
    PlayEffect(0xA, 0x0, 0x17, 0x5, 0, 1000, 3800, 335, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    SetChrPos(0x1C, -92000, 10000, 228900, 180)
    OP_A7(0x1C, 0xFF, 0xFF, 0xFF, 0x0, 0x0)
    OP_68(-91450, 10600, 213250, 0)
    MoveCamera(20, 28, 0, 0)
    OP_6E(500, 0)
    SetCameraDistance(18000, 0)
    SetCameraDistance(19000, 1000)
    OP_82(0x64, 0x0, 0xBB8, 0x3E8)
    OP_0D()
    OP_6F(0x79)
    Fade(500)
    OP_68(-92000, 11600, 225000, 500)
    MoveCamera(30, 20, 0, 500)
    OP_6E(500, 500)
    SetCameraDistance(22000, 500)

    def lambda_68EA():
        OP_A7(0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F4)
        ExitThread()

    QueueWorkItem(0x1C, 3, lambda_68EA)

    def lambda_68FB():
        OP_9B(0x0, 0xFE, 0x0, 0x2710, 0x1F40, 0x0)
        ExitThread()

    QueueWorkItem(0x1C, 1, lambda_68FB)
    Sleep(250)
    OP_6B(0x1C)
    MoveCamera(80, 25, 0, 3500)
    OP_6E(500, 3500)
    SetCameraDistance(17000, 1500)
    WaitChrThread(0x1C, 1)
    OP_95(0x1C, -89150, 10050, 214300, 8000, 0x0)
    OP_93(0x1C, 0x64, 0x0)
    SetChrSubChip(0x1C, 0x4)
    Sound(844, 0, 100, 0)
    OP_9D(0x1C, 0xFFFEB1B4, 0x2E7C, 0x343C8, 0x7D0, 0x1F40)
    OP_95(0x1C, -79250, 11900, 209450, 8000, 0x0)
    OP_93(0x1C, 0xE1, 0x1F4)
    StopSound(577, 500, 60)
    StopSound(586, 500, 50)
    OP_24(0x361)
    OP_24(0x35D)
    StopEffect(0x0, 0x0)
    EndChrThread(0x17, 0x0)
    EndChrThread(0x18, 0x0)
    EndChrThread(0x18, 0x3)
    EndChrThread(0x19, 0x0)
    EndChrThread(0x19, 0x3)
    ClearChrFlags(0x18, 0x800)
    ClearChrFlags(0x19, 0x800)
    Sound(358, 0, 100, 0)
    Sound(531, 0, 100, 0)
    SetChrChipByIndex(0x1C, 0x2E)
    OP_A1(0x1C, 0x3E8, 0x3, 0x0, 0x1, 0x2)
    OP_6B(0xFF)
    MoveCamera(100, 30, 0, 3000)
    SetCameraDistance(17000, 3000)
    Sound(580, 2, 100, 0)
    Sound(291, 2, 100, 0)
    Sound(861, 2, 100, 0)
    Sound(3913, 255, 100, 0)    #voice#Shirley
    OP_82(0xC8, 0x0, 0xBB8, 0xBB8)
    BeginChrThread(0x1C, 3, 0, 48)
    OP_6F(0x79)
    Fade(500)
    SetMapObjFrame(0xFF, "plant01", 0x0, 0x1)
    EndChrThread(0x1C, 0x3)
    SetChrChipByIndex(0x10, 0x24)
    SetChrSubChip(0x10, 0x0)
    SetChrChipByIndex(0x11, 0x24)
    SetChrSubChip(0x11, 0x0)
    SetChrChipByIndex(0x12, 0x24)
    SetChrSubChip(0x12, 0x0)
    SetChrChipByIndex(0x13, 0x24)
    SetChrSubChip(0x13, 0x0)
    SetChrChipByIndex(0x14, 0x24)
    SetChrSubChip(0x14, 0x0)
    SetChrPos(0x10, -83160, 6710, 206310, 315)
    SetChrPos(0x11, -85730, 7170, 205220, 315)
    SetChrPos(0x12, -83010, 6100, 204490, 315)
    SetChrPos(0x13, -81060, 5360, 204090, 315)
    SetChrPos(0x14, -82350, 5040, 201760, 315)

    def lambda_6AB7():
        OP_A6(0xFE, 0x0, 0x32, 0x0, 0xBB8)
        ExitThread()

    QueueWorkItem(0x10, 0, lambda_6AB7)

    def lambda_6AD0():
        OP_A6(0xFE, 0x0, 0x32, 0x0, 0xBB8)
        ExitThread()

    QueueWorkItem(0x11, 0, lambda_6AD0)

    def lambda_6AE9():
        OP_A6(0xFE, 0x0, 0x32, 0x0, 0xBB8)
        ExitThread()

    QueueWorkItem(0x12, 0, lambda_6AE9)

    def lambda_6B02():
        OP_A6(0xFE, 0x0, 0x32, 0x0, 0xBB8)
        ExitThread()

    QueueWorkItem(0x13, 0, lambda_6B02)

    def lambda_6B1B():
        OP_A6(0xFE, 0x0, 0x32, 0x0, 0xBB8)
        ExitThread()

    QueueWorkItem(0x14, 0, lambda_6B1B)
    SetChrFlags(0x10, 0x4)
    SetChrFlags(0x11, 0x4)
    SetChrFlags(0x12, 0x4)
    SetChrFlags(0x13, 0x4)
    SetChrFlags(0x14, 0x4)
    OP_68(-83010, 7100, 204490, 0)
    MoveCamera(45, 25, 0, 0)
    OP_6E(500, 0)
    SetCameraDistance(17450, 0)
    MoveCamera(65, 35, 0, 3000)
    SetCameraDistance(19500, 3000)
    OP_82(0xC8, 0x0, 0xBB8, 0xBB8)
    PlayEffect(0x2, 0x1, 0x10, 0x0, 0, 0, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    PlayEffect(0x2, 0x2, 0x11, 0x0, 0, 0, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    PlayEffect(0x2, 0x3, 0x12, 0x0, 0, 0, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    PlayEffect(0x2, 0x4, 0x13, 0x0, 0, 0, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    PlayEffect(0x2, 0x5, 0x14, 0x0, 0, 0, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    Sleep(1000)

    #C0089
    ChrTalk(
        0x10,
        "#10A#11P啊啊……！\x02",
    )
    #Auto

    EndChrThread(0x10, 0x0)
    BeginChrThread(0x10, 0, 0, 56)
    Sleep(500)
    StopEffect(0x1, 0x0)
    Sleep(500)
    Sound(871, 0, 100, 0)

    #C0090
    ChrTalk(
        0x11,
        "#6P#10A呜哇哇哇！？\x02",
    )
    #Auto

    EndChrThread(0x11, 0x0)
    BeginChrThread(0x11, 0, 0, 56)
    Sleep(500)
    Sound(514, 0, 70, 0)
    StopEffect(0x2, 0x0)
    OP_0D()
    OP_6F(0x79)
    StopSound(580, 500, 90)
    StopSound(291, 500, 100)
    OP_24(0x35D)
    StopEffect(0x3, 0x0)
    StopEffect(0x4, 0x0)
    StopEffect(0x5, 0x0)
    EndChrThread(0x12, 0x0)
    SetChrSubChip(0x12, 0x3)
    Sleep(50)
    EndChrThread(0x13, 0x0)
    SetChrSubChip(0x13, 0x3)
    Sleep(50)
    EndChrThread(0x14, 0x0)
    SetChrSubChip(0x14, 0x2)
    Sleep(500)
    OP_A6(0x14, 0x0, 0x32, 0x1F4, 0xBB8)
    Fade(250)
    SetChrChipByIndex(0x14, 0x23)
    SetChrSubChip(0x14, 0x0)
    OP_0D()

    #C0091
    ChrTalk(
        0x14,
        "#11P躲、躲在车后！\x02",
    )

    CloseMessageWindow()

    #C0092
    ChrTalk(
        0x1C,
        "#04611F啊哈哈，没用的！\x02",
    )

    CloseMessageWindow()
    Fade(500)
    ClearChrFlags(0x12, 0x4)
    ClearChrFlags(0x13, 0x4)
    ClearChrFlags(0x14, 0x4)
    OP_93(0x12, 0x82, 0x0)
    OP_93(0x13, 0x82, 0x0)
    OP_93(0x14, 0x82, 0x0)
    OP_68(-86150, 9100, 207750, 0)
    MoveCamera(10, 15, 0, 0)
    OP_6E(500, 0)
    SetCameraDistance(18000, 0)
    OP_68(-86150, 8600, 207750, 500)
    MoveCamera(10, 20, 0, 500)
    OP_6E(500, 500)
    SetCameraDistance(16000, 2000)
    SetChrChipByIndex(0x1C, 0x2D)
    SetChrSubChip(0x1C, 0x4)
    Sound(844, 0, 100, 0)
    OP_9D(0x1C, 0xFFFEAFD4, 0x1EFA, 0x32B36, 0x3E8, 0x1F40)
    Sound(326, 0, 100, 0)
    SetChrSubChip(0x1C, 0x1)
    OP_93(0x1C, 0x96, 0x1F4)
    SetChrChipByIndex(0x12, 0x26)

    def lambda_6E65():
        OP_9B(0x0, 0xFE, 0x0, 0x4E20, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x12, 1, lambda_6E65)
    SetChrChipByIndex(0x13, 0x26)

    def lambda_6E7E():
        OP_9B(0x0, 0xFE, 0x0, 0x4E20, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x13, 1, lambda_6E7E)
    SetChrChipByIndex(0x14, 0x26)

    def lambda_6E97():
        OP_9B(0x0, 0xFE, 0x0, 0x4E20, 0xBB8, 0x0)
        ExitThread()

    QueueWorkItem(0x14, 1, lambda_6E97)
    Sound(358, 0, 100, 0)
    Sound(531, 0, 100, 0)
    SetChrChipByIndex(0x1C, 0x2F)
    OP_A1(0x1C, 0xDAC, 0x3, 0x0, 0x1, 0x2)
    BeginChrThread(0x1C, 3, 0, 49)
    BeginChrThread(0x27, 1, 0, 57)
    Sleep(1000)
    EndChrThread(0x1C, 0x3)
    ClearChrFlags(0x1C, 0x4)
    OP_6B(0x1C)
    TurnDirection(0x1C, 0x12, 0)
    EndChrThread(0x12, 0x1)
    Sound(250, 0, 100, 0)
    OP_9A(0x1C, 0x12, 0x0, 0x7530, 0x0)
    SetChrChipByIndex(0x12, 0x24)
    SetChrSubChip(0x12, 0x0)
    Sound(874, 0, 100, 0)
    PlayEffect(0x3, 0x1, 0x12, 0x3, 0, 1000, -500, 0, 0, 0, 500, 500, 500, 0xFF, 0, 0, 0, 0)
    PlayEffect(0x5, 0x0, 0x1C, 0x3, 0, 0, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    OP_9B(0x1, 0x1C, 0x0, 0x7D0, 0x7530, 0x0)
    OP_A1(0x1C, 0xDAC, 0x3, 0x3, 0x4, 0x5)
    SetChrChipByIndex(0x12, 0x25)
    OP_52(0x12, 0x24, (scpexpr(EXPR_PUSH_LONG, 0xA8), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    StopEffect(0x1, 0x2)
    TurnDirection(0x1C, 0x13, 0)
    SetChrSubChip(0x1C, 0x2)
    EndChrThread(0x13, 0x1)
    SetChrChipByIndex(0x13, 0x24)
    SetChrSubChip(0x13, 0x0)
    Sound(250, 0, 100, 0)
    OP_9A(0x1C, 0x13, 0x0, 0x7530, 0x0)
    Sound(874, 0, 100, 0)
    PlayEffect(0x3, 0x2, 0x13, 0x3, 0, 1000, -500, 0, 0, 0, 500, 500, 500, 0xFF, 0, 0, 0, 0)
    PlayEffect(0x5, 0x0, 0x1C, 0x3, 0, 0, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    OP_9B(0x1, 0x1C, 0x0, 0x7D0, 0x7530, 0x0)
    OP_A1(0x1C, 0xDAC, 0x3, 0x3, 0x4, 0x5)
    SetChrChipByIndex(0x13, 0x25)
    OP_52(0x13, 0x24, (scpexpr(EXPR_PUSH_LONG, 0xA8), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    StopEffect(0x2, 0x2)
    TurnDirection(0x1C, 0x14, 0)
    SetChrSubChip(0x1C, 0x2)
    EndChrThread(0x14, 0x1)
    Sound(250, 0, 100, 0)
    OP_9A(0x1C, 0x14, 0x0, 0x7530, 0x0)
    SetChrChipByIndex(0x14, 0x24)
    SetChrSubChip(0x14, 0x0)
    SetChrFlags(0x1C, 0x800)
    Sound(874, 0, 100, 0)
    PlayEffect(0x3, 0x3, 0x14, 0x3, 0, 1000, -500, 0, 0, 0, 500, 500, 500, 0xFF, 0, 0, 0, 0)
    PlayEffect(0x5, 0x0, 0x1C, 0x3, 0, 0, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    OP_9B(0x1, 0x1C, 0x0, 0x7D0, 0x7530, 0x0)
    OP_A1(0x1C, 0xDAC, 0x3, 0x3, 0x4, 0x5)
    StopEffect(0x3, 0x2)
    SetChrFlags(0x1C, 0x4)
    BeginChrThread(0x1C, 3, 0, 50)
    SetCameraDistance(18000, 100)
    OP_82(0xC8, 0x0, 0xBB8, 0x190)
    #Sound(3918, 255, 100, 0)    #voice#Shirley

    #C0093
    ChrTalk(
        0x1C,
        "#04612F#12P#4S#18A啊哈哈哈哈哈哈！！！\x02",
    )
    #Auto

    CloseMessageWindow()

    #C0094
    ChrTalk(
        0x14,
        "#5P#9A呀啊啊啊啊！！\x02",
    )
    #Auto

    CloseMessageWindow()
    Fade(250)
    Sound(514, 0, 100, 0)
    StopEffect(0x3, 0x2)
    SetChrChipByIndex(0x14, 0x25)
    OP_52(0x14, 0x24, (scpexpr(EXPR_PUSH_LONG, 0xA8), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_0D()
    OP_24(0xF4E)
    Sleep(300)

    #C0095
    ChrTalk(
        0x15,
        "呜呜呜呜……！\x02",
    )

    CloseMessageWindow()

    #C0096
    ChrTalk(
        0x16,
        "怪、怪物……！？\x02",
    )

    CloseMessageWindow()
    EndChrThread(0x1C, 0x3)
    EndChrThread(0x27, 0x1)
    StopSound(870, 300, 100)
    Sound(873, 0, 100, 0)
    Fade(500)
    OP_6B(0xFF)
    OP_68(-74200, 2700, 193300, 0)
    MoveCamera(75, 25, -5, 0)
    OP_6E(500, 0)
    SetCameraDistance(20000, 0)
    OP_6B(0x1C)
    OP_71(0x4, 0x11E, 0x11E, 0x1, 0x0)
    OP_93(0x1C, 0x7D, 0x0)
    SetChrChipByIndex(0x1C, 0x2F)
    SetChrSubChip(0x1C, 0x0)

    def lambda_7254():

        label("loc_7254")

        TurnDirection(0xFE, 0x1C, 500)
        Yield()
        Jump("loc_7254")

    QueueWorkItem2(0x15, 2, lambda_7254)

    def lambda_7266():

        label("loc_7266")

        TurnDirection(0xFE, 0x1C, 500)
        Yield()
        Jump("loc_7266")

    QueueWorkItem2(0x16, 2, lambda_7266)
    OP_0D()
    Sound(577, 2, 60, 0)
    Sound(586, 2, 50, 0)
    OP_82(0x64, 0x0, 0xBB8, 0xBB8)
    OP_87(0x1, 0x0, 0x4, "Null_gun", 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3E8, 0x3E8, 0x3E8, 0x0)
    BeginChrThread(0x15, 0, 0, 43)
    BeginChrThread(0x15, 3, 0, 44)
    BeginChrThread(0x16, 0, 0, 43)
    BeginChrThread(0x16, 3, 0, 44)
    BeginChrThread(0x27, 1, 0, 46)
    SetChrChip(0x0, 0x1C, 0x64, 0x12C)
    Sound(844, 0, 100, 0)
    OP_9D(0x1C, 0xFFFED784, 0x5F0, 0x2FE36, 0x1F4, 0x2710)
    Sound(844, 0, 100, 0)
    OP_9D(0x1C, 0xFFFEDA72, 0x38E, 0x2F792, 0x1F4, 0x2710)
    MoveCamera(75, 20, -5, 2000)
    SetCameraDistance(18000, 2000)
    OP_82(0x64, 0x0, 0xBB8, 0x7D0)
    Sound(326, 0, 100, 0)
    SetChrChipByIndex(0x1C, 0x2D)
    OP_95(0x1C, -69790, 290, 196460, 10000, 0x0)
    OP_95(0x1C, -68210, 2230, 195940, 10000, 0x0)
    OP_95(0x1C, -65780, 2230, 193590, 10000, 0x0)
    OP_95(0x1C, -64500, 2000, 193120, 10000, 0x0)
    StopEffect(0x0, 0x2)
    StopSound(577, 500, 60)
    StopSound(586, 500, 50)
    EndChrThread(0x15, 0x0)
    EndChrThread(0x15, 0x3)
    EndChrThread(0x16, 0x0)
    EndChrThread(0x16, 0x3)
    EndChrThread(0x27, 0x1)
    OP_93(0x1C, 0xE1, 0x0)
    Sound(844, 0, 100, 0)
    OP_9D(0x1C, 0xFFFEF2AA, 0xDAC, 0x2E504, 0x7D0, 0x2710)
    Sound(844, 0, 100, 0)
    OP_9D(0x1C, 0xFFFEF14C, 0xAF0, 0x2E022, 0x3E8, 0x2710)
    OP_93(0x1C, 0x1E, 0x3E8)
    SetChrChipByIndex(0x1C, 0x2F)
    OP_A1(0x1C, 0xDAC, 0x2, 0x0, 0x1)
    Fade(500)
    EndChrThread(0x15, 0x2)
    EndChrThread(0x16, 0x2)
    SetChrChipByIndex(0x15, 0x25)
    SetChrSubChip(0x15, 0x0)
    OP_52(0x15, 0x24, (scpexpr(EXPR_PUSH_LONG, 0xA8), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    SetChrChipByIndex(0x16, 0x25)
    SetChrSubChip(0x16, 0x0)
    OP_52(0x16, 0x24, (scpexpr(EXPR_PUSH_LONG, 0xA8), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    SetMapObjFrame(0xFF, "plant01", 0x1, 0x1)
    ClearChrFlags(0x1C, 0x800)
    SetChrChip(0x1, 0x1C, 0x0, 0x0)
    BeginChrThread(0x1C, 3, 0, 49)
    BeginChrThread(0x27, 1, 0, 57)
    Sound(358, 0, 100, 0)
    Sound(531, 0, 100, 0)
    OP_68(-69300, 3400, 188450, 0)
    MoveCamera(165, 30, -5, 0)
    OP_6E(500, 0)
    SetCameraDistance(18000, 0)
    OP_0D()
    OP_82(0xC8, 0x0, 0xBB8, 0x190)
    #Sound(3915, 255, 100, 0)    #voice#Shirley

    #C0097
    ChrTalk(
        0x1C,
        "#04602F#11P#4S#20A看招！！\x02",
    )
    #Auto

    CloseMessageWindow()
    PlayEffect(0x9, 0x2, 0xFF, 0x0, 0, 0, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    Sleep(1500)
    OP_24(0xF4B)
    Sound(875, 2, 100, 0)
    OP_A1(0x1C, 0xDAC, 0x2, 0x3, 0x4)
    BeginChrThread(0x1C, 3, 0, 50)
    PlayEffect(0x7, 0x1, 0xFF, 0x0, -69000, 3000, 189000, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    MoveCamera(140, 20, -10, 3000)
    OP_82(0xC8, 0x0, 0xBB8, 0xBB8)
    Sleep(2250)
    StopSound(875, 500, 100)
    StopEffect(0x1, 0x2)
    SetChrFlags(0x1C, 0x800)
    PlayEffect(0x5, 0x0, 0x1C, 0x3, 0, 0, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    PlayEffect(0x0, 0x1, 0xFF, 0x0, -68900, 3000, 189700, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    OP_93(0x1C, 0x13B, 0x3E8)
    StopEffect(0x1, 0x2)
    Fade(250)
    Sound(200, 0, 80, 0)
    Sound(874, 0, 100, 0)
    StopSound(870, 500, 100)
    Sound(873, 0, 100, 0)
    OP_71(0x4, 0x12D, 0x168, 0x0, 0x8)
    PlayEffect(0x6, 0x1, 0xFF, 0x0, -68900, 3000, 189700, 0, 0, 0, 300, 300, 300, 0xFF, 0, 0, 0, 0)
    OP_82(0x1F4, 0x0, 0xBB8, 0x1F4)
    Sleep(500)
    OP_82(0x64, 0x0, 0xBB8, 0x1F4)
    PlayEffect(0x8, 0x2, 0x23, 0x0, 0, 0, 0, 0, 0, 0, 1000, 1000, 1000, 0xFF, 0, 0, 0, 0)
    Sleep(500)
    OP_0D()
    Sound(868, 2, 100, 0)
    Fade(500)
    ClearChrFlags(0x1C, 0x800)
    EndChrThread(0x1C, 0x3)
    SetChrPos(0x1C, -69150, 2700, 186750, 180)
    Sound(372, 0, 100, 0)
    Sound(200, 0, 80, 0)
    SetChrChipByIndex(0x1C, 0x30)
    SetChrSubChip(0x1C, 0x3)
    OP_6B(0xFF)
    OP_68(-69150, 3400, 186750, 0)
    MoveCamera(347, 0, 1, 0)
    OP_6E(400, 0)
    SetCameraDistance(19000, 0)
    OP_68(-69150, 3200, 186750, 8000)
    MoveCamera(347, 1, 1, 8000)
    SetCameraDistance(22500, 8000)
    ClearChrFlags(0x17, 0x4)
    ClearChrFlags(0x18, 0x4)
    ClearChrFlags(0x19, 0x4)
    ClearChrFlags(0x1A, 0x4)
    ClearChrFlags(0x1B, 0x4)
    SetChrPos(0x17, -76820, 2680, 199740, 125)
    SetChrPos(0x18, -79130, 3730, 200790, 125)
    SetChrPos(0x19, -78720, 4610, 204020, 125)
    SetChrPos(0x1A, -83060, 5360, 202090, 125)
    SetChrPos(0x1B, -85280, 6320, 202930, 125)
    BeginChrThread(0x19, 1, 0, 53)
    BeginChrThread(0x17, 1, 0, 51)
    BeginChrThread(0x18, 1, 0, 52)
    BeginChrThread(0x1A, 1, 0, 54)
    BeginChrThread(0x1B, 1, 0, 55)
    OP_0D()
    SetChrSubChip(0x1C, 0x4)
    Sound(534, 0, 80, 0)
    #Sound(3914, 255, 100, 0)    #voice#Shirley

    #C0098
    ChrTalk(
        0x1C,
        (
            "#04612F#5P#4S#35A呀哈！\x01",
            "哈哈哈哈哈哈哈哈哈哈！！！\x02",
        )
    )
    #Auto

    OP_82(0x64, 0x0, 0xBB8, 0x12C)
    Sleep(1000)
    OP_82(0xC8, 0x0, 0xBB8, 0x3E8)
    CloseMessageWindow()
    OP_6B(0xFF)
    WaitChrThread(0x17, 1)
    StopSound(868, 3000, 100)
    FadeToDark(1000, 0, -1)
    OP_0D()
    OP_82(0x0, 0x0, 0xBB8, 0x0)
    StopBGM(0x1770)
    WaitBGM()
    OP_50(0x4C, (scpexpr(EXPR_PUSH_LONG, 0xFFFF), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_24(0x241)
    OP_24(0x24A)
    OP_24(0x35D)
    OP_24(0x361)
    OP_24(0x123)
    OP_24(0x366)
    OP_24(0x36B)
    OP_24(0x364)
    OP_24(0xF4A)
    SetScenarioFlags(0x22, 0)
    NewScene("r203B", 0, 0, 0)
    IdleLoop()
    Return()

    # Function_47_626D end

    def Function_48_78BA(): pass

    label("Function_48_78BA")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_7909")
    PlayEffect(0x4, 0xFF, 0xFE, 0x3, 100, 800, 1100, 0, 0, 0, 500, 500, 500, 0xFF, 0, 0, 0, 0)
    OP_A1(0xFE, 0xDAC, 0x2, 0x2, 0x3)
    Jump("Function_48_78BA")

    label("loc_7909")

    Return()

    # Function_48_78BA end

    def Function_49_790A(): pass

    label("Function_49_790A")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_7922")
    OP_A1(0xFE, 0xDAC, 0x2, 0x1, 0x2)
    Jump("Function_49_790A")

    label("loc_7922")

    Return()

    # Function_49_790A end

    def Function_50_7923(): pass

    label("Function_50_7923")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_793B")
    OP_A1(0xFE, 0xDAC, 0x2, 0x4, 0x5)
    Jump("Function_50_7923")

    label("loc_793B")

    Return()

    # Function_50_7923 end

    def Function_51_793C(): pass

    label("Function_51_793C")

    Sleep(100)
    SetChrChipByIndex(0x17, 0x29)
    OP_95(0x17, -73100, 160, 192020, 6000, 0x0)
    OP_95(0x17, -72020, 10, 186980, 6000, 0x0)
    OP_95(0x17, -68300, 0, 184320, 6000, 0x0)
    OP_95(0x17, -66940, 250, 180890, 6000, 0x0)
    OP_93(0x17, 0xB4, 0x1F4)
    SetChrChipByIndex(0x17, 0x2A)
    SetChrSubChip(0x17, 0x2)
    OP_82(0x64, 0x0, 0xBB8, 0x186A0)
    BeginChrThread(0x17, 0, 0, 43)
    BeginChrThread(0x17, 3, 0, 45)
    Return()

    # Function_51_793C end

    def Function_52_79C0(): pass

    label("Function_52_79C0")

    Sleep(200)
    SetChrChipByIndex(0x18, 0x29)
    OP_95(0x18, -73100, 160, 192020, 6000, 0x0)
    OP_95(0x18, -72020, 10, 186980, 6000, 0x0)
    OP_95(0x18, -68300, 0, 184320, 6000, 0x0)
    OP_95(0x18, -68540, 250, 180650, 6000, 0x0)
    OP_93(0x18, 0xB4, 0x1F4)
    SetChrChipByIndex(0x18, 0x2A)
    SetChrSubChip(0x18, 0x2)
    BeginChrThread(0x18, 0, 0, 43)
    BeginChrThread(0x18, 3, 0, 45)
    Return()

    # Function_52_79C0 end

    def Function_53_7A33(): pass

    label("Function_53_7A33")

    SetChrChipByIndex(0x19, 0x29)
    OP_95(0x19, -76870, 3450, 202160, 6000, 0x0)
    OP_95(0x19, -73100, 160, 192020, 6000, 0x0)
    OP_95(0x19, -72020, 10, 186980, 6000, 0x0)
    OP_95(0x19, -68300, 0, 184320, 6000, 0x0)
    OP_95(0x19, -66050, 250, 182510, 6000, 0x0)
    OP_93(0x19, 0xB4, 0x1F4)
    SetChrChipByIndex(0x19, 0x2A)
    SetChrSubChip(0x19, 0x2)
    BeginChrThread(0x19, 0, 0, 43)
    BeginChrThread(0x19, 3, 0, 45)
    Return()

    # Function_53_7A33 end

    def Function_54_7AB7(): pass

    label("Function_54_7AB7")

    Sleep(300)
    SetChrChipByIndex(0x1A, 0x29)
    OP_95(0x1A, -78780, 2440, 196980, 6000, 0x0)
    OP_95(0x1A, -72020, 10, 186980, 6000, 0x0)
    OP_95(0x1A, -68300, 0, 184320, 6000, 0x0)
    OP_95(0x1A, -69830, 250, 181040, 6000, 0x0)
    OP_93(0x1A, 0xB4, 0x1F4)
    SetChrChipByIndex(0x1A, 0x2A)
    SetChrSubChip(0x1A, 0x2)
    BeginChrThread(0x1A, 0, 0, 43)
    BeginChrThread(0x1A, 3, 0, 45)
    Return()

    # Function_54_7AB7 end

    def Function_55_7B2A(): pass

    label("Function_55_7B2A")

    Sleep(400)
    SetChrChipByIndex(0x1B, 0x29)
    OP_95(0x1B, -78780, 2440, 196980, 6000, 0x0)
    OP_95(0x1B, -72020, 10, 186980, 6000, 0x0)
    OP_95(0x1B, -68300, 0, 184320, 6000, 0x0)
    OP_95(0x1B, -68110, 250, 182500, 6000, 0x0)
    OP_93(0x1B, 0xB4, 0x1F4)
    SetChrChipByIndex(0x1B, 0x2A)
    SetChrSubChip(0x1B, 0x2)
    BeginChrThread(0x1B, 0, 0, 43)
    BeginChrThread(0x1B, 3, 0, 45)
    Return()

    # Function_55_7B2A end

    def Function_56_7B9D(): pass

    label("Function_56_7B9D")

    SetChrFlags(0xFE, 0x20)
    SetChrChipByIndex(0xFE, 0x24)
    SetChrSubChip(0xFE, 0x0)

    def lambda_7BAF():
        OP_A6(0xFE, 0x0, 0x32, 0x1F4, 0xBB8)
        ExitThread()

    QueueWorkItem(0xFE, 2, lambda_7BAF)

    def lambda_7BC8():
        OP_9C(0xFE, 0x0, 0x0, 0x0, 0x12C, 0x7D0)
        ExitThread()

    QueueWorkItem(0xFE, 1, lambda_7BC8)
    OP_9B(0x1, 0xFE, 0x0, 0xFFFFFDA8, 0x7D0, 0x0)
    WaitChrThread(0xFE, 1)
    WaitChrThread(0xFE, 2)
    SetChrSubChip(0xFE, 0x3)
    Sleep(100)
    SetChrChipByIndex(0xFE, 0x25)
    SetChrSubChip(0xFE, 0x0)
    Return()

    # Function_56_7B9D end

    def Function_57_7C07(): pass

    label("Function_57_7C07")

    Sound(872, 0, 100, 0)
    Sleep(400)
    Sound(870, 2, 100, 0)
    Return()

    # Function_57_7C07 end

    def Function_58_7C17(): pass

    label("Function_58_7C17")

    EventBegin(0x0)
    FadeToDark(0, 0, -1)
    OP_E2(0x3)
    SetChrPos(0x101, -4250, 0, 21950, 315)
    SetChrPos(0x102, -2900, 0, 21700, 315)
    SetChrPos(0x103, -3550, 0, 20500, 315)
    SetChrPos(0x109, -2400, 0, 20150, 315)
    SetChrPos(0x105, -1600, 0, 21200, 315)
    ClearChrFlags(0x4, 0x80)
    ClearChrBattleFlags(0x4, 0x8000)
    OP_68(-2400, 600, 20150, 0)
    MoveCamera(90, 20, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(20500, 0)
    OP_68(-6000, 1000, 23900, 3000)
    MoveCamera(50, 25, 0, 3000)
    OP_6E(510, 3000)
    SetCameraDistance(22500, 3000)

    def lambda_7CE5():
        OP_9B(0x0, 0xFE, 0x0, 0xFA0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x101, 1, lambda_7CE5)
    Sleep(100)

    def lambda_7CFD():
        OP_9B(0x0, 0xFE, 0x0, 0xFA0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x102, 1, lambda_7CFD)
    Sleep(100)

    def lambda_7D15():
        OP_9B(0x0, 0xFE, 0x0, 0xFA0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x103, 1, lambda_7D15)
    Sleep(100)

    def lambda_7D2D():
        OP_9B(0x0, 0xFE, 0x0, 0xFA0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x109, 1, lambda_7D2D)
    Sleep(100)

    def lambda_7D45():
        OP_9B(0x0, 0xFE, 0x0, 0xFA0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x105, 1, lambda_7D45)
    FadeToBright(1000, 0)
    OP_0D()
    WaitChrThread(0x101, 1)
    BeginChrThread(0x101, 2, 0, 59)
    WaitChrThread(0x102, 1)
    BeginChrThread(0x102, 2, 0, 61)
    WaitChrThread(0x103, 1)
    BeginChrThread(0x103, 2, 0, 63)
    WaitChrThread(0x109, 1)
    BeginChrThread(0x109, 2, 0, 62)
    WaitChrThread(0x105, 1)
    BeginChrThread(0x105, 2, 0, 60)
    Sleep(1500)
    OP_6F(0x79)
    EndChrThread(0x101, 0x2)
    OP_63(0x101, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(1000)
    OP_93(0x101, 0x13B, 0x1F4)

    #C0099
    ChrTalk(
        0x101,
        "#00013F#11P瀑布前的高台……是那里吗！？\x02",
    )

    CloseMessageWindow()
    OP_68(-58700, 6400, 66250, 5000)
    MoveCamera(30, 17, 0, 5000)
    OP_6E(600, 5000)
    SetCameraDistance(18000, 5000)
    EndChrThread(0x102, 0x2)
    EndChrThread(0x103, 0x2)
    EndChrThread(0x109, 0x2)
    EndChrThread(0x105, 0x2)

    def lambda_7E2C():
        OP_93(0x103, 0x13B, 0x1F4)
        ExitThread()

    QueueWorkItem(0x103, 0, lambda_7E2C)
    Sleep(30)

    def lambda_7E3C():
        OP_93(0x102, 0x13B, 0x1F4)
        ExitThread()

    QueueWorkItem(0x102, 0, lambda_7E3C)
    Sleep(30)

    def lambda_7E4C():
        OP_93(0x105, 0x13B, 0x1F4)
        ExitThread()

    QueueWorkItem(0x105, 0, lambda_7E4C)
    Sleep(30)

    def lambda_7E5C():
        OP_93(0x109, 0x13B, 0x1F4)
        ExitThread()

    QueueWorkItem(0x109, 0, lambda_7E5C)
    Sleep(30)
    WaitChrThread(0x103, 0)
    WaitChrThread(0x102, 0)
    WaitChrThread(0x105, 0)
    WaitChrThread(0x109, 0)
    OP_6F(0x79)
    Sleep(300)
    SetMessageWindowPos(30, 10, -1, -1)

    #A0100
    AnonymousTalk(
        0x103,
        (
            "#00201F……看来曹先生告诉我们\x01",
            "的情报没错呢。\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    SetMessageWindowPos(230, 10, -1, -1)

    #A0101
    AnonymousTalk(
        0x102,
        "#00107F走吧……！\x02",
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    FadeToDark(1000, 0, -1)
    OP_0D()
    SetChrPos(0x0, -7000, 0, 24750, 0)
    SetChrFlags(0x4, 0x80)
    SetChrBattleFlags(0x4, 0x8000)
    ClearMapFlags(0x10000000)
    SetScenarioFlags(0x166, 4)
    OP_E2(0x2)
    EventEnd(0x5)
    Return()

    # Function_58_7C17 end

    def Function_59_7F10(): pass

    label("Function_59_7F10")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_7F34")
    OP_93(0xFE, 0x0, 0x1F4)
    Sleep(1000)
    OP_93(0xFE, 0x10E, 0x1F4)
    Sleep(1000)
    Jump("Function_59_7F10")

    label("loc_7F34")

    Return()

    # Function_59_7F10 end

    def Function_60_7F35(): pass

    label("Function_60_7F35")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_7F59")
    OP_93(0xFE, 0x5A, 0x1F4)
    Sleep(1000)
    OP_93(0xFE, 0x2D, 0x1F4)
    Sleep(1000)
    Jump("Function_60_7F35")

    label("loc_7F59")

    Return()

    # Function_60_7F35 end

    def Function_61_7F5A(): pass

    label("Function_61_7F5A")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_7F7E")
    OP_93(0xFE, 0x0, 0x1F4)
    Sleep(1000)
    OP_93(0xFE, 0x2D, 0x1F4)
    Sleep(1000)
    Jump("Function_61_7F5A")

    label("loc_7F7E")

    Return()

    # Function_61_7F5A end

    def Function_62_7F7F(): pass

    label("Function_62_7F7F")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_7FA3")
    OP_93(0xFE, 0x87, 0x1F4)
    Sleep(1000)
    OP_93(0xFE, 0xB4, 0x1F4)
    Sleep(1000)
    Jump("Function_62_7F7F")

    label("loc_7FA3")

    Return()

    # Function_62_7F7F end

    def Function_63_7FA4(): pass

    label("Function_63_7FA4")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_7FC8")
    OP_93(0xFE, 0x10E, 0x1F4)
    Sleep(1000)
    OP_93(0xFE, 0xE1, 0x1F4)
    Sleep(1000)
    Jump("Function_63_7FA4")

    label("loc_7FC8")

    Return()

    # Function_63_7FA4 end

    def Function_64_7FC9(): pass

    label("Function_64_7FC9")

    EventBegin(0x0)
    FadeToDark(0, 0, -1)
    OP_E2(0x3)
    ClearChrFlags(0x22, 0x80)
    OP_78(0x2, 0x22)
    OP_49()
    ClearMapObjFlags(0x2, 0x4)
    ClearMapObjFlags(0x2, 0x1000)
    OP_74(0x2, 0x1E)
    OP_71(0x2, 0x79, 0xB4, 0x0, 0x20)
    SetMapObjFrame(0x2, "light", 0x0, 0x1)
    SetChrPos(0x101, -5000000, 0, 0, 0)
    SetChrPos(0x102, -5000000, 0, 0, 0)
    SetChrPos(0x103, -5000000, 0, 0, 0)
    SetChrPos(0x109, -5000000, 0, 0, 0)
    SetChrPos(0x105, -5000000, 0, 0, 0)
    ClearChrFlags(0x4, 0x80)
    ClearChrBattleFlags(0x4, 0x8000)
    SetChrPos(0x22, -200, -4500, 3000, 0)
    OP_D5(0x22, 0x0, 0x0, 0x0, 0x0)
    OP_68(-200, 500, 5000, 0)
    MoveCamera(60, 30, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(23500, 0)
    OP_68(-1810, 600, 23500, 5000)
    MoveCamera(90, 25, 0, 5000)
    FadeToBright(1000, 0)
    BeginChrThread(0x27, 1, 0, 65)
    OP_9F(0x0, 0x22)
    OP_9F(0x1, -200, -4500, 3000)
    OP_9F(0x1, -210, -300, 13600)
    OP_9F(0x1, -410, 0, 20120)
    OP_9F(0x1, -1810, 0, 23520)
    OP_9F(0x2, 0x22, 5000, 0x6)
    OP_71(0x2, 0x5B, 0x78, 0x1, 0x8)
    OP_6F(0x79)
    FadeToDark(1000, 0, -1)
    OP_0D()
    SetChrPos(0x101, -7100, 0, 24800, 315)
    SetChrPos(0x102, -5750, 0, 24550, 0)
    SetChrPos(0x103, -6400, 0, 23350, 270)
    SetChrPos(0x109, -3550, 0, 23000, 45)
    SetChrPos(0x105, -4400, 0, 24000, 270)
    SetChrPos(0x22, -1810, 0, 23520, 330)
    OP_68(-3550, 1000, 23000, 0)
    MoveCamera(60, 25, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(22500, 0)
    OP_68(-6000, 1000, 23900, 3000)
    MoveCamera(50, 25, 0, 3000)
    OP_6E(510, 3000)
    SetCameraDistance(22500, 3000)
    BeginChrThread(0x101, 2, 0, 59)
    Sleep(300)
    BeginChrThread(0x102, 2, 0, 61)
    Sleep(300)
    BeginChrThread(0x103, 2, 0, 62)
    Sleep(300)
    BeginChrThread(0x105, 2, 0, 60)
    Sound(461, 0, 100, 0)
    Sleep(100)
    OP_71(0x2, 0x14B, 0x168, 0x1, 0x8)
    FadeToBright(1000, 0)
    OP_0D()
    OP_95(0x109, -5250, 0, 23000, 2000, 0x0)
    OP_93(0x109, 0x13B, 0x1F4)
    OP_6F(0x79)
    EndChrThread(0x101, 0x2)
    OP_63(0x101, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(1000)
    OP_93(0x101, 0x13B, 0x1F4)

    #C0102
    ChrTalk(
        0x101,
        "#00013F#11P瀑布前的高台……是那里吗！？\x02",
    )

    CloseMessageWindow()
    OP_68(-58700, 6400, 66250, 5000)
    MoveCamera(30, 17, 0, 5000)
    OP_6E(600, 5000)
    SetCameraDistance(18000, 5000)
    EndChrThread(0x102, 0x2)
    EndChrThread(0x103, 0x2)
    EndChrThread(0x109, 0x2)
    EndChrThread(0x105, 0x2)

    def lambda_82F9():
        OP_93(0x103, 0x13B, 0x1F4)
        ExitThread()

    QueueWorkItem(0x103, 0, lambda_82F9)
    Sleep(30)

    def lambda_8309():
        OP_93(0x102, 0x13B, 0x1F4)
        ExitThread()

    QueueWorkItem(0x102, 0, lambda_8309)
    Sleep(30)

    def lambda_8319():
        OP_93(0x105, 0x13B, 0x1F4)
        ExitThread()

    QueueWorkItem(0x105, 0, lambda_8319)
    Sleep(30)

    def lambda_8329():
        OP_93(0x109, 0x13B, 0x1F4)
        ExitThread()

    QueueWorkItem(0x109, 0, lambda_8329)
    Sleep(30)
    WaitChrThread(0x103, 0)
    WaitChrThread(0x102, 0)
    WaitChrThread(0x105, 0)
    WaitChrThread(0x109, 0)
    OP_6F(0x79)
    Sleep(300)
    SetMessageWindowPos(30, 10, -1, -1)

    #A0103
    AnonymousTalk(
        0x103,
        (
            "#00201F……看来曹先生告诉我们\x01",
            "的情报没错呢。\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    SetMessageWindowPos(230, 10, -1, -1)

    #A0104
    AnonymousTalk(
        0x102,
        "#00107F走吧……！\x02",
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    FadeToDark(1000, 0, -1)
    OP_0D()
    SetChrPos(0x0, -7000, 0, 24750, 0)
    SetChrFlags(0x4, 0x80)
    SetChrBattleFlags(0x4, 0x8000)
    SetScenarioFlags(0x166, 3)
    SetScenarioFlags(0x166, 4)
    OP_66(0x8, 0x1)
    ClearMapFlags(0x10000000)
    ClearMapFlags(0x8000000)
    OP_E2(0x2)
    EventEnd(0x5)
    Return()

    # Function_64_7FC9 end

    def Function_65_83E9(): pass

    label("Function_65_83E9")

    Sound(458, 0, 100, 0)
    Sleep(4000)
    Sound(492, 0, 70, 0)
    Return()

    # Function_65_83E9 end

    def Function_66_83F9(): pass

    label("Function_66_83F9")

    EventBegin(0x0)
    Fade(500)
    OP_E2(0x3)
    OP_68(-57850, 7400, 65600, 0)
    MoveCamera(45, 25, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(18000, 0)
    SetChrPos(0x101, -57350, 6000, 65950, 270)
    SetChrPos(0x102, -57500, 6000, 67000, 225)
    SetChrPos(0x103, -56850, 6000, 64950, 270)
    SetChrPos(0x109, -56500, 6000, 67200, 225)
    SetChrPos(0x105, -56000, 6000, 66000, 270)
    ClearChrFlags(0x4, 0x80)
    ClearChrBattleFlags(0x4, 0x8000)
    OP_0D()

    #C0105
    ChrTalk(
        0x105,
        (
            "#10306F#11P果然是从这个地方\x01",
            "攀爬到崖下的啊。\x02\x03",

            "#10308F不过……\x01",
            "下面究竟有什么呢？\x02",
        )
    )

    CloseMessageWindow()

    #C0106
    ChrTalk(
        0x109,
        (
            "#10113F#5P这绳索好像通向\x01",
            "悬崖间的小路……\x02",
        )
    )

    CloseMessageWindow()

    #C0107
    ChrTalk(
        0x101,
        (
            "#00003F#11P……总之，我们也\x01",
            "只能下去了。\x02",
        )
    )

    CloseMessageWindow()
    FadeToDark(300, 0, 100)
    OP_0D()

    Menu(
        0,
        -1,
        -1,
        0,
        (
            "立刻下去\x01",      # 0
            "稍作准备\x01",      # 1
        )
    )

    MenuEnd(0x0)
    OP_60(0x0)
    FadeToBright(300, 0)
    OP_0D()
    Switch(
        (scpexpr(EXPR_GET_RESULT, 0x0), scpexpr(EXPR_END)),
        (0, "loc_858F"),
        (1, "loc_8704"),
        (SWITCH_DEFAULT, "loc_8728"),
    )


    label("loc_858F")


    def lambda_8594():
        OP_93(0xFE, 0x5A, 0x1F4)
        ExitThread()

    QueueWorkItem(0x101, 2, lambda_8594)
    Sleep(50)

    def lambda_85A4():
        TurnDirection(0x101, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x101, 0, lambda_85A4)
    Sleep(50)

    def lambda_85B4():
        TurnDirection(0x102, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x102, 0, lambda_85B4)
    Sleep(50)

    def lambda_85C4():
        TurnDirection(0x103, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x103, 0, lambda_85C4)
    Sleep(50)

    def lambda_85D4():
        TurnDirection(0x109, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x109, 0, lambda_85D4)
    Sleep(50)

    def lambda_85E4():
        TurnDirection(0x105, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x105, 0, lambda_85E4)
    Sleep(50)
    WaitChrThread(0x101, 0)
    WaitChrThread(0x102, 0)
    WaitChrThread(0x103, 0)
    WaitChrThread(0x109, 0)
    WaitChrThread(0x105, 0)

    #C0108
    ChrTalk(
        0x101,
        (
            "#00001F#6P好，\x01",
            "各位，准备好了吗？\x02",
        )
    )

    CloseMessageWindow()

    #C0109
    ChrTalk(
        0x103,
        "#00201F#11P没问题。\x02",
    )

    CloseMessageWindow()

    #C0110
    ChrTalk(
        0x109,
        "#10101F#5P我也没问题。\x02",
    )

    CloseMessageWindow()

    #C0111
    ChrTalk(
        0x105,
        "#10304F#11P我也一样。\x02",
    )

    CloseMessageWindow()

    #C0112
    ChrTalk(
        0x102,
        (
            "#00101F#5P那就出发吧，\x01",
            "一定要捉到兰迪。\x02",
        )
    )

    CloseMessageWindow()

    #C0113
    ChrTalk(
        0x101,
        (
            "#00000F#6P好……大家保持警戒，\x01",
            "顺着这条绳索爬下去吧。\x02",
        )
    )

    CloseMessageWindow()
    FadeToDark(1000, 0, -1)
    OP_0D()
    StopBGM(0xFA0)
    WaitBGM()
    SetScenarioFlags(0x22, 0)
    NewScene("m4150", 0, 0, 0)
    IdleLoop()
    Jump("loc_8728")

    label("loc_8704")

    SetChrPos(0x0, -57350, 6000, 65950, 270)
    SetChrFlags(0x4, 0x80)
    SetChrBattleFlags(0x4, 0x8000)
    OP_E2(0x2)
    EventEnd(0x5)
    Jump("loc_8728")

    label("loc_8728")

    Return()

    # Function_66_83F9 end

    def Function_67_8729(): pass

    label("Function_67_8729")

    EventBegin(0x2)
    ClearMapFlags(0x20)
    SetChrName("")

    #A0114
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "通向崖下的绳索\x01",
            "被割断了。\x07\x00\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    OP_5A()
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A2, 7)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1CE, 1)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_88E5")

    #C0115
    ChrTalk(
        0x101,
        "#00005F这是……\x02",
    )

    CloseMessageWindow()

    #C0116
    ChrTalk(
        0x106,
        (
            "#10703F看来是被利刃\x01",
            "所割断的。\x02\x03",

            "#10701F这条绳索可以\x01",
            "通向什么地方吗？\x02",
        )
    )

    CloseMessageWindow()

    #C0117
    ChrTalk(
        0x105,
        (
            "#10403F嗯，兰迪以前\x01",
            "曾爬它下去，\x01",
            "随后进入旧矿山。\x02\x03",

            "#10400F只要穿越旧矿山，\x01",
            "就可以到达玛因兹地区了。\x02",
        )
    )

    CloseMessageWindow()

    #C0118
    ChrTalk(
        0x106,
        "#10703F原来如此，还有这种暗道……\x02",
    )

    CloseMessageWindow()

    #C0119
    ChrTalk(
        0x103,
        (
            "#00200F绳索应该是被\x01",
            "『赤色星座』的人割断的吧？\x02",
        )
    )

    CloseMessageWindow()

    #C0120
    ChrTalk(
        0x101,
        (
            "#00001F嗯，在这种状况下，\x01",
            "可能性应该很高。\x02",
        )
    )

    CloseMessageWindow()

    #C0121
    ChrTalk(
        0x105,
        "#10402F呵呵，做事真是滴水不漏啊。\x02",
    )

    CloseMessageWindow()
    OP_5A()
    SetScenarioFlags(0x1CE, 1)

    label("loc_88E5")

    EventEnd(0x3)
    Return()

    # Function_67_8729 end

    def Function_68_88E8(): pass

    label("Function_68_88E8")

    EventBegin(0x0)
    FadeToDark(0, 0, -1)
    OP_E2(0x3)
    LoadChrToIndex("chr/ch03154.itc", 0x1E)
    SoundLoad(132)
    SoundLoad(497)
    SoundLoad(950)
    ClearChrFlags(0x24, 0x80)
    OP_78(0x18, 0x24)
    OP_49()
    ClearMapObjFlags(0x18, 0x4)
    SetMapObjFlags(0x18, 0x1000)
    OP_71(0x18, 0x1, 0x78, 0x0, 0x20)
    OP_75(0x18, 0x1, 0x0)
    OP_FF(0x18, 0x2EE, 0x2EE, 0x2EE)
    ClearChrFlags(0x25, 0x80)
    OP_78(0x19, 0x25)
    OP_49()
    ClearMapObjFlags(0x19, 0x4)
    SetMapObjFlags(0x19, 0x1000)
    OP_71(0x19, 0x65, 0xA0, 0x0, 0x20)
    OP_FF(0x19, 0x307, 0x307, 0x307)
    ClearChrFlags(0x26, 0x80)
    OP_78(0x1D, 0x26)
    OP_49()
    ClearMapObjFlags(0x1D, 0x4)
    SetMapObjFlags(0x1D, 0x1000)
    OP_75(0x1D, 0x1, 0x0)
    OP_FF(0x1D, 0x2EE, 0x2EE, 0x2EE)
    ClearMapObjFlags(0x1A, 0x4)
    SetMapObjFlags(0x1A, 0x1000)
    ClearMapObjFlags(0x1B, 0x4)
    SetMapObjFlags(0x1B, 0x1000)
    SetMapObjFlags(0x3, 0x4)
    SetMapObjFlags(0x3, 0x1000)
    Sound(132, 2, 100, 0)
    Sound(497, 2, 100, 0)
    Sleep(1000)
    SetChrPos(0x101, -5000000, 0, 0, 0)
    SetChrPos(0x103, -5000000, 0, 0, 0)
    SetChrPos(0x105, -5000000, 0, 0, 0)
    SetChrPos(0x106, -5000000, 0, 0, 0)
    SetChrPos(0x107, -5000000, 0, 0, 0)
    ClearChrFlags(0x4, 0x80)
    ClearChrBattleFlags(0x4, 0x8000)
    SetChrPos(0x24, -30250, 20000, 104050, 325)
    OP_D5(0x24, 0x0, 0x4F588, 0x0, 0x0)
    SetChrPos(0x25, -30250, 20000, 104050, 325)
    OP_D5(0x25, 0x0, 0x4F588, 0x0, 0x0)
    SetChrPos(0x26, -30250, 0, 104050, 325)
    OP_D5(0x26, 0x0, 0x4F588, 0x0, 0x0)
    OP_68(-33250, -400, 124450, 0)
    MoveCamera(10, 20, 0, 0)
    OP_6E(600, 0)
    SetCameraDistance(55000, 0)
    OP_68(-30250, 5000, 104050, 6000)
    MoveCamera(30, 40, 0, 6000)
    SetCameraDistance(60000, 6000)

    def lambda_8AED():
        OP_96(0xFE, 0xFFFF89D6, 0xDAC, 0x19672, 0x960, 0x0)
        ExitThread()

    QueueWorkItem(0x24, 1, lambda_8AED)

    def lambda_8B07():
        OP_96(0xFE, 0xFFFF89D6, 0xDAC, 0x19672, 0x960, 0x0)
        ExitThread()

    QueueWorkItem(0x25, 1, lambda_8B07)
    OP_82(0x64, 0x64, 0xBB8, 0x1F40)
    BeginChrThread(0x24, 0, 0, 69)
    FadeToBright(1000, 0)
    OP_0D()
    StopSound(132, 1000, 100)
    Sleep(4000)
    FadeToDark(1000, 0, -1)
    OP_0D()
    EndChrThread(0x24, 0x0)
    EndChrThread(0x24, 0x1)
    EndChrThread(0x25, 0x1)
    SetMapObjFrame(0x1A, "Null_fream", 0x2, "start")
    Sleep(1000)
    SetChrPos(0x101, -27200, 0, 93550, 90)
    SetChrPos(0x105, -26350, 0, 92850, 90)
    SetChrPos(0x103, -27900, 0, 91700, 90)
    SetChrPos(0x106, -28550, 0, 92550, 90)
    SetChrPos(0x107, -27150, 0, 90550, 45)
    SetChrSubChip(0x107, 0x5)
    OP_68(-26350, 1600, 92850, 0)
    MoveCamera(30, 30, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(25000, 0)
    OP_68(-26350, 3600, 92850, 6000)
    MoveCamera(30, 15, 0, 6000)
    SetCameraDistance(23000, 6000)
    SetChrPos(0x24, -30250, 3500, 104050, 325)
    OP_D5(0x24, 0x0, 0x4F588, 0x0, 0x0)
    SetChrPos(0x25, -30250, 3500, 104050, 325)
    OP_D5(0x25, 0x0, 0x4F588, 0x0, 0x0)
    SetChrPos(0x26, -30250, 0, 104050, 325)
    OP_D5(0x26, 0x0, 0x4F588, 0x0, 0x0)

    def lambda_8C91():
        OP_96(0xFE, 0xFFFF89D6, 0x3C8C, 0x19672, 0x5DC, 0x0)
        ExitThread()

    QueueWorkItem(0x24, 1, lambda_8C91)

    def lambda_8CAB():
        OP_96(0xFE, 0xFFFF89D6, 0x3C8C, 0x19672, 0x5DC, 0x0)
        ExitThread()

    QueueWorkItem(0x25, 1, lambda_8CAB)
    BeginChrThread(0x24, 0, 0, 71)
    BeginChrThread(0x25, 0, 0, 70)
    SetChrChipByIndex(0x105, 0x1E)
    SetChrSubChip(0x105, 0x0)
    BeginChrThread(0x105, 3, 0, 72)
    Sound(935, 0, 70, 0)
    SetMapObjFrame(0x1B, "Null_fream", 0x2, "start")
    FadeToBright(1000, 0)
    OP_0D()
    OP_6F(0x79)
    Fade(500)
    SetMapObjFlags(0x1A, 0x4)
    ClearMapObjFlags(0x1A, 0x1000)
    SetMapObjFlags(0x1B, 0x4)
    ClearMapObjFlags(0x1B, 0x1000)
    ClearMapObjFlags(0x3, 0x4)
    EndChrThread(0x105, 0x3)
    SetChrChipByIndex(0x105, 0xFF)
    SetChrSubChip(0x105, 0x0)
    TurnDirection(0x101, 0x107, 0)
    TurnDirection(0x103, 0x101, 0)
    TurnDirection(0x105, 0x101, 0)
    TurnDirection(0x106, 0x101, 0)
    TurnDirection(0x107, 0x101, 0)
    SetChrSubChip(0x107, 0x5)
    OP_68(-27500, 1200, 92100, 0)
    MoveCamera(30, 25, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(20000, 0)
    OP_0D()
    Sleep(300)

    #C0122
    ChrTalk(
        0x105,
        (
            "#10404F#11P虽然反抗势力在\x01",
            "山道地区活动……\x02\x03",

            "#10402F不过我们还是先\x01",
            "前往矿山镇玛因兹为好吧？\x02",
        )
    )

    CloseMessageWindow()

    #C0123
    ChrTalk(
        0x101,
        (
            "#00006F#5P是啊，矿山镇的情况\x01",
            "很让人担心……\x02\x03",

            "#00008F只是……\x02",
        )
    )

    CloseMessageWindow()
    OP_68(-27500, 1700, 92100, 2000)
    MoveCamera(43, 12, 0, 2000)
    OP_6E(510, 2000)
    SetCameraDistance(20000, 2000)

    def lambda_8E5D():
        OP_93(0xFE, 0x2D, 0x1F4)
        ExitThread()

    QueueWorkItem(0x101, 2, lambda_8E5D)
    Sleep(1000)

    def lambda_8E6D():
        OP_93(0x103, 0x2D, 0x1F4)
        ExitThread()

    QueueWorkItem(0x103, 0, lambda_8E6D)
    Sleep(50)

    def lambda_8E7D():
        OP_93(0x105, 0x2D, 0x1F4)
        ExitThread()

    QueueWorkItem(0x105, 0, lambda_8E7D)
    Sleep(50)

    def lambda_8E8D():
        OP_93(0x106, 0x2D, 0x1F4)
        ExitThread()

    QueueWorkItem(0x106, 0, lambda_8E8D)
    Sleep(50)
    WaitChrThread(0x103, 0)
    WaitChrThread(0x105, 0)
    WaitChrThread(0x106, 0)
    OP_6F(0x79)

    #C0124
    ChrTalk(
        0x105,
        (
            "#10401F#12P原来如此……\x01",
            "的确，那里也很令人在意。\x02",
        )
    )

    CloseMessageWindow()

    #C0125
    ChrTalk(
        0x103,
        (
            "#00203F#6P结社的『十三工房』之一，\x01",
            "『罗赞贝尔克工房』吗？\x02\x03",

            "#00201F说起来，约鲁古大师以前说过，\x01",
            "如果以后有机会，\x01",
            "可以再和我们聊聊。\x02",
        )
    )

    CloseMessageWindow()

    #C0126
    ChrTalk(
        0x106,
        (
            "#10708F#6P是吗……\x02\x03",

            "#10703F……其实我以前\x01",
            "曾尝试潜入那个地方。\x02\x03",

            "#10710F但地下的构造极其复杂，\x01",
            "最后也只得放弃了。\x02",
        )
    )

    CloseMessageWindow()
    TurnDirection(0x101, 0x106, 500)

    #C0127
    ChrTalk(
        0x101,
        "#00012F#5P是、是吗……\x02",
    )

    CloseMessageWindow()

    #C0128
    ChrTalk(
        0x107,
        (
            "#01203F#12P#3C唔，约鲁古啊。\x02\x03",

            "#01200F有段时间没和他见过面了，\x01",
            "看来他的身体还是很健康啊。\x02",
        )
    )

    CloseMessageWindow()
    OP_63(0x101, 0x0, 2000, 0x26, 0x26, 0xFA, 0x1)
    OP_63(0x106, 0x0, 2000, 0x26, 0x26, 0xFA, 0x1)
    Sleep(50)
    OP_63(0x103, 0x0, 2000, 0x26, 0x26, 0xFA, 0x1)
    OP_63(0x105, 0x0, 2000, 0x26, 0x26, 0xFA, 0x1)
    Sleep(1000)

    def lambda_90AE():
        TurnDirection(0x101, 0x107, 500)
        ExitThread()

    QueueWorkItem(0x101, 0, lambda_90AE)
    Sleep(50)

    def lambda_90BE():
        TurnDirection(0x103, 0x107, 500)
        ExitThread()

    QueueWorkItem(0x103, 0, lambda_90BE)
    Sleep(50)

    def lambda_90CE():
        TurnDirection(0x105, 0x107, 500)
        ExitThread()

    QueueWorkItem(0x105, 0, lambda_90CE)
    Sleep(50)

    def lambda_90DE():
        TurnDirection(0x106, 0x107, 500)
        ExitThread()

    QueueWorkItem(0x106, 0, lambda_90DE)
    Sleep(50)
    WaitChrThread(0x101, 0)
    WaitChrThread(0x103, 0)
    WaitChrThread(0x105, 0)
    WaitChrThread(0x106, 0)

    #C0129
    ChrTalk(
        0x101,
        "#00011F#5P哎……？\x02",
    )

    CloseMessageWindow()

    #C0130
    ChrTalk(
        0x103,
        (
            "#00205F#5P蔡特也认识\x01",
            "那位老爷爷吗？\x02",
        )
    )

    CloseMessageWindow()

    #C0131
    ChrTalk(
        0x107,
        (
            "#01203F#12P#3C嗯，彼此之间\x01",
            "有一定程度的了解。\x02\x03",

            "#01200F他虽然身为『蛇』的一员，\x01",
            "但一直都是个性情极其古板的技术工匠。\x02\x03",

            "我认为他是个\x01",
            "可以信任的人物。\x02",
        )
    )

    CloseMessageWindow()

    #C0132
    ChrTalk(
        0x101,
        "#00002F#5P是吗……\x02",
    )

    CloseMessageWindow()

    #C0133
    ChrTalk(
        0x105,
        (
            "#10404F#5P我们现在很需要了解『结社』的情报，\x01",
            "似乎有前去拜访的必要呢。\x02",
        )
    )

    CloseMessageWindow()

    def lambda_923A():
        TurnDirection(0x103, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x103, 0, lambda_923A)
    Sleep(50)

    def lambda_924A():
        TurnDirection(0x105, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x105, 0, lambda_924A)
    Sleep(50)

    def lambda_925A():
        TurnDirection(0x106, 0x101, 500)
        ExitThread()

    QueueWorkItem(0x106, 0, lambda_925A)
    Sleep(50)
    WaitChrThread(0x103, 0)
    WaitChrThread(0x105, 0)
    WaitChrThread(0x106, 0)

    #C0134
    ChrTalk(
        0x103,
        (
            "#00202F#12P在前往玛因兹之前，\x01",
            "顺路过去看看如何？\x02",
        )
    )

    CloseMessageWindow()

    #C0135
    ChrTalk(
        0x101,
        "#00000F#5P嗯，就这么决定了。\x02",
    )

    CloseMessageWindow()
    FadeToDark(1000, 0, -1)
    OP_0D()
    OP_D7(0x1E)
    OP_49()
    OP_37()
    SetMapObjFlags(0x18, 0x4)
    ClearMapObjFlags(0x18, 0x1000)
    SetMapObjFlags(0x19, 0x4)
    ClearMapObjFlags(0x19, 0x1000)
    SetMapObjFlags(0x1D, 0x4)
    ClearMapObjFlags(0x1D, 0x1000)
    SetChrFlags(0x24, 0x80)
    SetChrFlags(0x25, 0x80)
    SetChrFlags(0x26, 0x80)
    SetChrPos(0x0, -26420, 0, 95890, 0)
    SetChrFlags(0x4, 0x80)
    SetChrBattleFlags(0x4, 0x8000)
    OP_69(0xFF, 0x0)
    SetScenarioFlags(0x1A2, 0)
    OP_29(0xAF, 0x1, 0x8)
    ModifyEventFlags(1, 3, 0x80)
    OP_50(0x1E, (scpexpr(EXPR_PUSH_LONG, 0x13), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_24(0x84)
    OP_24(0x1F1)
    OP_24(0x3B6)
    ClearMapFlags(0x8000000)
    OP_E2(0x2)
    EventEnd(0x5)
    Return()

    # Function_68_88E8 end

    def Function_69_9354(): pass

    label("Function_69_9354")

    Sleep(2000)
    Sound(202, 0, 100, 0)
    Sound(203, 0, 50, 0)
    Sound(950, 2, 50, 0)
    OP_71(0x19, 0x0, 0x32, 0x0, 0x8)
    Sleep(500)
    Sound(920, 0, 100, 0)
    OP_75(0x18, 0x2, 0x7D0)
    OP_75(0x1D, 0x2, 0x7D0)
    Sleep(1000)
    StopSound(950, 1000, 40)
    OP_79(0x19)
    Return()

    # Function_69_9354 end

    def Function_70_9399(): pass

    label("Function_70_9399")

    OP_75(0x18, 0x1, 0x7D0)
    OP_75(0x1D, 0x1, 0x7D0)
    Sleep(500)
    Sound(202, 0, 100, 0)
    Sound(203, 0, 50, 0)
    Sound(950, 2, 50, 0)
    OP_71(0x19, 0x33, 0x64, 0x0, 0x8)
    Sleep(500)
    Sound(920, 0, 100, 0)
    StopSound(950, 2000, 40)
    StopSound(497, 4000, 80)
    OP_79(0x19)
    OP_71(0x19, 0x65, 0xA0, 0x0, 0x20)
    Return()

    # Function_70_9399 end

    def Function_71_93ED(): pass

    label("Function_71_93ED")

    OP_82(0x32, 0x32, 0xBB8, 0x3E8)
    Sleep(1000)
    OP_82(0x28, 0x28, 0xBB8, 0x3E8)
    Sleep(1000)
    OP_82(0x1E, 0x1E, 0xBB8, 0x3E8)
    Sleep(1000)
    OP_82(0x14, 0x14, 0xBB8, 0x3E8)
    Sleep(1000)
    OP_82(0xA, 0xA, 0xBB8, 0x3E8)
    Sleep(1000)
    Return()

    # Function_71_93ED end

    def Function_72_9452(): pass

    label("Function_72_9452")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_946C")
    OP_A1(0xFE, 0x3E8, 0x4, 0x0, 0x1, 0x2, 0x1)
    Jump("Function_72_9452")

    label("loc_946C")

    Return()

    # Function_72_9452 end

    def Function_73_946D(): pass

    label("Function_73_946D")

    EventBegin(0x0)
    FadeToDark(0, -1, 0)
    FadeToDark(500, 0, -1)
    OP_0D()
    FadeToBright(0, -1)
    OP_E2(0x3)
    LoadChrToIndex("monster/ch82050.itc", 0x1E)
    LoadChrToIndex("monster/ch82051.itc", 0x1F)
    LoadChrToIndex("chr/ch00050.itc", 0x20)
    LoadChrToIndex("chr/ch00250.itc", 0x21)
    LoadChrToIndex("chr/ch03150.itc", 0x22)
    LoadChrToIndex("chr/ch03250.itc", 0x23)
    LoadChrToIndex("chr/ch02750.itc", 0x24)
    SetChrChipByIndex(0x1D, 0x1F)
    SetChrSubChip(0x1D, 0x0)
    SetChrFlags(0x1D, 0x20)
    SetChrFlags(0x1D, 0x8000)
    SetChrChipByIndex(0x1E, 0x1F)
    SetChrSubChip(0x1E, 0x0)
    SetChrFlags(0x1E, 0x20)
    SetChrFlags(0x1E, 0x8000)
    SetChrChipByIndex(0x1F, 0x1F)
    SetChrSubChip(0x1F, 0x0)
    SetChrFlags(0x1F, 0x20)
    SetChrFlags(0x1F, 0x8000)
    SetChrChipByIndex(0x20, 0x1F)
    SetChrSubChip(0x20, 0x6)
    SetChrFlags(0x20, 0x20)
    SetChrFlags(0x20, 0x8000)
    SetChrChipByIndex(0x21, 0x1F)
    SetChrSubChip(0x21, 0x0)
    SetChrFlags(0x21, 0x20)
    SetChrFlags(0x21, 0x8000)
    SetChrPos(0x101, -14950, 0, 109800, 270)
    SetChrPos(0x106, -13650, 0, 109050, 270)
    SetChrPos(0x103, -12750, 0, 110950, 270)
    SetChrPos(0x105, -11800, 0, 110100, 270)
    SetChrPos(0x107, -13000, 0, 112000, 270)
    ClearChrFlags(0x4, 0x80)
    ClearChrBattleFlags(0x4, 0x8000)
    OP_68(-13750, 1000, 110000, 0)
    MoveCamera(45, 20, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(22500, 0)
    FadeToBright(1000, 0)
    OP_68(-15750, 1000, 110000, 2000)

    def lambda_95BF():
        OP_9B(0x0, 0x103, 0x0, 0x7D0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x103, 0, lambda_95BF)
    Sleep(10)

    def lambda_95D7():
        OP_9B(0x0, 0x106, 0x0, 0x7D0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x106, 0, lambda_95D7)
    Sleep(10)

    def lambda_95EF():
        OP_9B(0x0, 0x101, 0x0, 0x7D0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x101, 0, lambda_95EF)
    Sleep(10)

    def lambda_9607():
        OP_9B(0x0, 0x105, 0x0, 0x7D0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x105, 0, lambda_9607)
    Sleep(10)

    def lambda_961F():
        OP_9B(0x0, 0x107, 0x0, 0x7D0, 0x7D0, 0x0)
        ExitThread()

    QueueWorkItem(0x107, 0, lambda_961F)
    Sleep(10)
    WaitChrThread(0x103, 0)
    WaitChrThread(0x106, 0)
    WaitChrThread(0x101, 0)
    WaitChrThread(0x105, 0)
    WaitChrThread(0x107, 0)
    OP_0D()
    OP_63(0x103, 0x0, 1700, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(50)
    OP_63(0x106, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(1000)
    StopBGM(0x7D0)
    OP_6F(0x79)
    OP_82(0x32, 0x0, 0x7D0, 0xC8)

    #C0136
    ChrTalk(
        0x103,
        "#00201F#5P这气息是……！？\x02",
    )

    CloseMessageWindow()
    Sleep(200)
    OP_82(0x64, 0x0, 0xBB8, 0x12C)

    #C0137
    ChrTalk(
        0x106,
        "#10707F#11P军用魔兽来了！\x02",
    )

    CloseMessageWindow()

    #C0138
    ChrTalk(
        0x101,
        "#00011F#5P什么……！？\x02",
    )

    CloseMessageWindow()
    WaitBGM()
    Sleep(10)
    PlayBGM("ed7453", 0)
    Fade(500)
    OP_68(-15250, 1000, 110000, 0)
    MoveCamera(55, 30, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(35000, 0)
    OP_68(-15250, 1000, 110000, 4000)
    MoveCamera(75, 20, 0, 4000)
    OP_6E(510, 4000)
    SetCameraDistance(30000, 4000)
    Sound(805, 0, 100, 0)
    Sound(540, 0, 50, 0)
    SetChrChipByIndex(0x101, 0x20)
    SetChrSubChip(0x101, 0x0)
    SetChrChipByIndex(0x103, 0x21)
    SetChrSubChip(0x103, 0x0)
    SetChrChipByIndex(0x105, 0x22)
    SetChrSubChip(0x105, 0x0)
    SetChrChipByIndex(0x106, 0x23)
    SetChrSubChip(0x106, 0x0)
    SetChrChipByIndex(0x107, 0x24)
    SetChrSubChip(0x107, 0x0)
    OP_93(0x101, 0xD2, 0x0)
    OP_93(0x103, 0x1E, 0x0)
    OP_93(0x105, 0x4B, 0x0)
    OP_93(0x106, 0x78, 0x0)
    OP_93(0x107, 0x12C, 0x0)
    ClearChrFlags(0x1D, 0x80)
    ClearChrFlags(0x1E, 0x80)
    ClearChrFlags(0x1F, 0x80)
    ClearChrFlags(0x20, 0x80)
    ClearChrFlags(0x21, 0x80)
    SetChrPos(0x1D, -26000, 0, 98450, 45)
    SetChrPos(0x1E, -4220, 4000, 94720, 315)
    SetChrPos(0x1F, 700, 3530, 112320, 270)
    SetChrPos(0x20, -11670, 8540, 123840, 180)
    SetChrPos(0x21, -27000, 0, 116250, 135)
    BeginChrThread(0x1D, 3, 0, 74)
    BeginChrThread(0x27, 1, 0, 76)

    def lambda_9843():
        OP_96(0xFE, 0xFFFFB2A8, 0x0, 0x19834, 0x1770, 0x0)
        ExitThread()

    QueueWorkItem(0x1D, 1, lambda_9843)
    Sleep(300)
    BeginChrThread(0x1E, 3, 0, 74)

    def lambda_9866():
        OP_96(0xFE, 0xFFFFD634, 0xFA0, 0x18BE6, 0x1770, 0x0)
        ExitThread()

    QueueWorkItem(0x1E, 1, lambda_9866)
    Sleep(300)
    BeginChrThread(0x1F, 3, 0, 74)

    def lambda_9889():
        OP_96(0xFE, 0xFFFFE34A, 0x1F4, 0x1B198, 0x1770, 0x0)
        ExitThread()

    QueueWorkItem(0x1F, 1, lambda_9889)
    Sleep(300)

    def lambda_98A6():
        OP_9D(0xFE, 0xFFFFC888, 0x7D0, 0x1CB60, 0x3E8, 0x1388)
        ExitThread()

    QueueWorkItem(0x20, 1, lambda_98A6)
    Sleep(300)
    Sound(809, 0, 60, 0)
    BeginChrThread(0x21, 3, 0, 74)

    def lambda_98D2():
        OP_96(0xFE, 0xFFFFB082, 0x0, 0x1B8D2, 0x1770, 0x0)
        ExitThread()

    QueueWorkItem(0x21, 1, lambda_98D2)
    WaitChrThread(0x1D, 1)
    EndChrThread(0x1D, 0x3)
    SetChrChipByIndex(0x1D, 0x1E)
    BeginChrThread(0x1D, 3, 0, 75)
    WaitChrThread(0x1E, 1)
    EndChrThread(0x1E, 0x3)
    SetChrChipByIndex(0x1E, 0x1E)
    BeginChrThread(0x1E, 3, 0, 75)
    WaitChrThread(0x1F, 1)
    EndChrThread(0x1F, 0x3)
    SetChrChipByIndex(0x1F, 0x1E)
    BeginChrThread(0x1F, 3, 0, 75)
    WaitChrThread(0x20, 1)
    SetChrChipByIndex(0x20, 0x1E)
    BeginChrThread(0x20, 3, 0, 75)
    WaitChrThread(0x21, 1)
    EndChrThread(0x21, 0x3)
    EndChrThread(0x27, 0x1)
    SetChrChipByIndex(0x21, 0x1E)
    BeginChrThread(0x21, 3, 0, 75)
    Sound(948, 0, 60, 0)
    OP_6F(0x79)

    #C0139
    ChrTalk(
        0x101,
        "#00010F#6P呜……这些家伙！？\x02",
    )

    CloseMessageWindow()

    #C0140
    ChrTalk(
        0x105,
        "#10407F#5P来了……！\x02",
    )

    CloseMessageWindow()
    EndChrThread(0x1D, 0x3)
    EndChrThread(0x1E, 0x3)
    EndChrThread(0x1F, 0x3)
    EndChrThread(0x20, 0x3)
    EndChrThread(0x21, 0x3)
    SetChrChipByIndex(0x1D, 0x1F)
    SetChrSubChip(0x1D, 0x6)
    SetChrChipByIndex(0x1E, 0x1F)
    SetChrSubChip(0x1E, 0x6)
    SetChrChipByIndex(0x1F, 0x1F)
    SetChrSubChip(0x1F, 0x6)
    SetChrChipByIndex(0x20, 0x1F)
    SetChrSubChip(0x20, 0x6)
    SetChrChipByIndex(0x21, 0x1F)
    SetChrSubChip(0x21, 0x6)
    Sound(250, 0, 60, 0)

    def lambda_99CC():
        OP_9D(0xFE, 0xFFFFC46E, 0x0, 0x1ADB0, 0x1F4, 0x3E8)
        ExitThread()

    QueueWorkItem(0x1D, 1, lambda_99CC)

    def lambda_99E9():
        OP_9D(0xFE, 0xFFFFC46E, 0x0, 0x1ADB0, 0x1F4, 0x3A98)
        ExitThread()

    QueueWorkItem(0x1E, 1, lambda_99E9)

    def lambda_9A06():
        OP_9D(0xFE, 0xFFFFC46E, 0x0, 0x1ADB0, 0x1F4, 0x3E8)
        ExitThread()

    QueueWorkItem(0x1F, 1, lambda_9A06)

    def lambda_9A23():
        OP_9D(0xFE, 0xFFFFC46E, 0x0, 0x1ADB0, 0x1F4, 0x7D0)
        ExitThread()

    QueueWorkItem(0x20, 1, lambda_9A23)

    def lambda_9A40():
        OP_9D(0xFE, 0xFFFFC46E, 0x0, 0x1ADB0, 0x1F4, 0x3E8)
        ExitThread()

    QueueWorkItem(0x21, 1, lambda_9A40)
    BlurSwitch(0x0, 0xBBFFFFFF, 0x0, 0x1, 0x5)
    SetCameraDistance(25000, 200)
    Sleep(200)
    CancelBlur(200)
    Battle("BattleInfo_E30", 0x30200011, 0x0, 0x0, 0x1B, 0xFF)
    FadeToDark(0, 0, -1)
    EndChrThread(0x1D, 0x1)
    EndChrThread(0x1E, 0x1)
    EndChrThread(0x1F, 0x1)
    EndChrThread(0x20, 0x1)
    EndChrThread(0x21, 0x1)
    Call(0, 77)
    Return()

    # Function_73_946D end

    def Function_74_9AA7(): pass

    label("Function_74_9AA7")

    OP_52(0xFE, 0x7, (scpexpr(EXPR_PUSH_LONG, 0x7D0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0xFE, 0x34, (scpexpr(EXPR_PUSH_LONG, 0x7D0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))

    label("loc_9ABD")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_9AD4")
    OP_A0(0xFE, 1500, 0x0, 0x7)
    Jump("loc_9ABD")

    label("loc_9AD4")

    Return()

    # Function_74_9AA7 end

    def Function_75_9AD5(): pass

    label("Function_75_9AD5")

    OP_52(0xFE, 0x7, (scpexpr(EXPR_PUSH_LONG, 0x7D0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
    OP_52(0xFE, 0x34, (scpexpr(EXPR_PUSH_LONG, 0x7D0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))

    label("loc_9AEB")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_9B02")
    OP_A0(0xFE, 1500, 0x0, 0x7)
    Jump("loc_9AEB")

    label("loc_9B02")

    Return()

    # Function_75_9AD5 end

    def Function_76_9B03(): pass

    label("Function_76_9B03")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_9B1C")
    Sound(845, 0, 80, 0)
    Sleep(500)
    Jump("Function_76_9B03")

    label("loc_9B1C")

    Return()

    # Function_76_9B03 end

    def Function_77_9B1D(): pass

    label("Function_77_9B1D")

    EventBegin(0x0)
    FadeToDark(0, 0, -1)
    OP_E2(0x3)
    LoadChrToIndex("monster/ch82050.itc", 0x1E)
    LoadChrToIndex("monster/ch82051.itc", 0x1F)
    LoadChrToIndex("chr/ch00050.itc", 0x20)
    LoadChrToIndex("chr/ch00250.itc", 0x21)
    LoadChrToIndex("chr/ch03150.itc", 0x22)
    LoadChrToIndex("chr/ch03250.itc", 0x23)
    LoadChrToIndex("chr/ch02750.itc", 0x24)
    SetChrChipByIndex(0x101, 0x20)
    SetChrSubChip(0x101, 0x0)
    SetChrChipByIndex(0x103, 0x21)
    SetChrSubChip(0x103, 0x0)
    SetChrChipByIndex(0x105, 0x22)
    SetChrSubChip(0x105, 0x0)
    SetChrChipByIndex(0x106, 0x23)
    SetChrSubChip(0x106, 0x0)
    SetChrChipByIndex(0x107, 0x24)
    SetChrSubChip(0x107, 0x0)
    SetChrChipByIndex(0x1D, 0x1E)
    SetChrSubChip(0x1D, 0x1)
    SetChrFlags(0x1D, 0x20)
    SetChrFlags(0x1D, 0x8000)
    SetChrChipByIndex(0x1E, 0x1E)
    SetChrSubChip(0x1E, 0x1)
    SetChrFlags(0x1E, 0x20)
    SetChrFlags(0x1E, 0x8000)
    SetChrChipByIndex(0x1F, 0x1E)
    SetChrSubChip(0x1F, 0x1)
    SetChrFlags(0x1F, 0x20)
    SetChrFlags(0x1F, 0x8000)
    SetChrChipByIndex(0x20, 0x1E)
    SetChrSubChip(0x20, 0x1)
    SetChrFlags(0x20, 0x20)
    SetChrFlags(0x20, 0x8000)
    SetChrChipByIndex(0x21, 0x1E)
    SetChrSubChip(0x21, 0x1)
    SetChrFlags(0x21, 0x20)
    SetChrFlags(0x21, 0x8000)
    ClearChrFlags(0x1D, 0x80)
    ClearChrFlags(0x1E, 0x80)
    ClearChrFlags(0x1F, 0x80)
    ClearChrFlags(0x20, 0x80)
    ClearChrFlags(0x21, 0x80)
    OP_68(-16250, 1000, 110000, 0)
    MoveCamera(45, 20, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(22500, 0)
    SetChrPos(0x101, -16950, 0, 109800, 270)
    SetChrPos(0x106, -15650, 0, 109050, 270)
    SetChrPos(0x103, -14750, 0, 110950, 270)
    SetChrPos(0x105, -13800, 0, 110100, 270)
    SetChrPos(0x107, -15000, 0, 112000, 270)
    ClearChrFlags(0x4, 0x80)
    ClearChrBattleFlags(0x4, 0x8000)
    SetChrPos(0x1D, -21250, 0, 109450, 89)
    SetChrPos(0x1E, -22650, 0, 110900, 89)
    SetChrPos(0x1F, -23350, 0, 108100, 89)
    SetChrPos(0x20, -25350, 0, 109450, 89)
    SetChrPos(0x21, -20150, 0, 112150, 135)
    BeginChrThread(0x1D, 3, 0, 75)
    BeginChrThread(0x1E, 3, 0, 75)
    BeginChrThread(0x1F, 3, 0, 75)
    BeginChrThread(0x20, 3, 0, 75)
    BeginChrThread(0x21, 3, 0, 75)
    FadeToBright(1000, 0)
    OP_0D()
    OP_9B(0x1, 0x21, 0xB4, 0xFA, 0x3E8, 0x0)
    OP_9B(0x1, 0x1F, 0xB4, 0xFA, 0x3E8, 0x0)
    OP_9B(0x1, 0x1E, 0xB4, 0xFA, 0x3E8, 0x0)
    SetChrChipByIndex(0x21, 0x1F)
    BeginChrThread(0x21, 3, 0, 74)
    BeginChrThread(0x27, 1, 0, 78)

    def lambda_9D3C():
        OP_95(0xFE, -29350, 0, 113100, 6000, 0x0)
        ExitThread()

    QueueWorkItem(0x21, 1, lambda_9D3C)
    OP_63(0x101, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(50)
    OP_63(0x106, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    OP_63(0x103, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(50)
    OP_63(0x105, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    SetChrChipByIndex(0x20, 0x1F)
    BeginChrThread(0x20, 3, 0, 74)

    def lambda_9DC6():
        OP_95(0xFE, -29350, 0, 113100, 6000, 0x0)
        ExitThread()

    QueueWorkItem(0x20, 1, lambda_9DC6)
    Sleep(500)
    SetChrChipByIndex(0x1F, 0x1F)
    BeginChrThread(0x1F, 3, 0, 74)

    def lambda_9DED():
        OP_95(0xFE, -29350, 0, 113100, 6000, 0x0)
        ExitThread()

    QueueWorkItem(0x1F, 1, lambda_9DED)
    Sleep(500)
    SetChrChipByIndex(0x1E, 0x1F)
    BeginChrThread(0x1E, 3, 0, 74)

    def lambda_9E14():
        OP_95(0xFE, -29350, 0, 113100, 6000, 0x0)
        ExitThread()

    QueueWorkItem(0x1E, 1, lambda_9E14)
    Sleep(300)
    SetChrChipByIndex(0x1D, 0x1F)
    BeginChrThread(0x1D, 3, 0, 74)

    def lambda_9E3B():
        OP_95(0xFE, -29350, 0, 113100, 6000, 0x0)
        ExitThread()

    QueueWorkItem(0x1D, 1, lambda_9E3B)

    #C0141
    ChrTalk(
        0x101,
        "#00005F#11P什么……！？\x02",
    )

    CloseMessageWindow()
    Fade(500)
    EndChrThread(0x1D, 0x1)
    EndChrThread(0x1E, 0x1)
    EndChrThread(0x1F, 0x1)
    EndChrThread(0x20, 0x1)
    EndChrThread(0x21, 0x1)
    SetChrPos(0x1D, -68250, 0, 156100, 0)
    SetChrPos(0x1E, -67130, 0, 153980, 0)
    SetChrPos(0x1F, -69080, 0, 153530, 0)
    SetChrPos(0x20, -68260, 0, 151500, 0)
    SetChrPos(0x21, -66520, 0, 150830, 0)
    OP_68(-68330, 3500, 153190, 0)
    MoveCamera(45, 20, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(20000, 0)
    OP_68(-68330, 850, 175360, 5000)
    MoveCamera(45, 20, 0, 5000)
    OP_6E(510, 5000)
    SetCameraDistance(40000, 5000)

    def lambda_9F3C():
        OP_9B(0x1, 0xFE, 0x0, 0x7530, 0x1770, 0x0)
        ExitThread()

    QueueWorkItem(0x1D, 1, lambda_9F3C)
    Sleep(50)

    def lambda_9F54():
        OP_9B(0x1, 0xFE, 0x0, 0x7530, 0x1770, 0x0)
        ExitThread()

    QueueWorkItem(0x1E, 1, lambda_9F54)
    Sleep(50)

    def lambda_9F6C():
        OP_9B(0x1, 0xFE, 0x0, 0x7530, 0x1770, 0x0)
        ExitThread()

    QueueWorkItem(0x1F, 1, lambda_9F6C)
    Sleep(50)

    def lambda_9F84():
        OP_9B(0x1, 0xFE, 0x0, 0x7530, 0x1770, 0x0)
        ExitThread()

    QueueWorkItem(0x20, 1, lambda_9F84)
    Sleep(50)

    def lambda_9F9C():
        OP_9B(0x1, 0xFE, 0x0, 0x7530, 0x1770, 0x0)
        ExitThread()

    QueueWorkItem(0x21, 1, lambda_9F9C)
    Sleep(4500)
    OP_0D()
    EndChrThread(0x27, 0x1)
    Fade(500)
    EndChrThread(0x1D, 0x1)
    EndChrThread(0x1E, 0x1)
    EndChrThread(0x1F, 0x1)
    EndChrThread(0x20, 0x1)
    EndChrThread(0x21, 0x1)
    SetChrFlags(0x1D, 0x80)
    SetChrFlags(0x1E, 0x80)
    SetChrFlags(0x1F, 0x80)
    SetChrFlags(0x20, 0x80)
    SetChrFlags(0x21, 0x80)
    SetChrChipByIndex(0x101, 0xFF)
    SetChrSubChip(0x101, 0x0)
    SetChrChipByIndex(0x103, 0xFF)
    SetChrSubChip(0x103, 0x0)
    SetChrChipByIndex(0x105, 0xFF)
    SetChrSubChip(0x105, 0x0)
    SetChrChipByIndex(0x106, 0xFF)
    SetChrSubChip(0x106, 0x0)
    SetChrChipByIndex(0x107, 0xFF)
    SetChrSubChip(0x107, 0x0)
    SetChrPos(0x101, -38850, 0, 120000, 315)
    SetChrPos(0x103, -37350, 0, 120000, 315)
    SetChrPos(0x106, -38300, 0, 118050, 315)
    SetChrPos(0x105, -36900, 0, 117900, 315)
    SetChrPos(0x107, -36050, 0, 120100, 315)
    OP_68(-37500, 1000, 118590, 0)
    MoveCamera(0, 20, 0, 0)
    OP_6E(510, 0)
    SetCameraDistance(20000, 0)
    OP_68(-42100, 1000, 123390, 2000)
    MoveCamera(0, 25, 0, 2000)
    OP_6E(510, 2000)
    SetCameraDistance(20000, 2000)
    BeginChrThread(0x27, 2, 0, 79)

    def lambda_A0CA():
        OP_9B(0x0, 0x101, 0x0, 0x1770, 0xFA0, 0x0)
        ExitThread()

    QueueWorkItem(0x101, 0, lambda_A0CA)
    Sleep(50)

    def lambda_A0E2():
        OP_9B(0x0, 0x103, 0x0, 0x1770, 0xFA0, 0x0)
        ExitThread()

    QueueWorkItem(0x103, 0, lambda_A0E2)
    Sleep(50)

    def lambda_A0FA():
        OP_9B(0x0, 0x106, 0x0, 0x1770, 0xFA0, 0x0)
        ExitThread()

    QueueWorkItem(0x106, 0, lambda_A0FA)
    Sleep(50)

    def lambda_A112():
        OP_9B(0x0, 0x105, 0x0, 0x1770, 0xFA0, 0x0)
        ExitThread()

    QueueWorkItem(0x105, 0, lambda_A112)
    Sleep(50)

    def lambda_A12A():
        OP_9B(0x0, 0x107, 0x0, 0x1770, 0xFA0, 0x0)
        ExitThread()

    QueueWorkItem(0x107, 0, lambda_A12A)
    Sleep(50)
    WaitChrThread(0x101, 0)
    WaitChrThread(0x103, 0)
    WaitChrThread(0x106, 0)
    WaitChrThread(0x105, 0)
    WaitChrThread(0x107, 0)
    SetChrSubChip(0x107, 0x5)
    EndChrThread(0x27, 0x2)
    OP_0D()
    OP_6F(0x79)

    #C0142
    ChrTalk(
        0x101,
        "#00013F#11P逃向隧道了……？\x02",
    )

    CloseMessageWindow()
    TurnDirection(0x106, 0x101, 500)
    Sleep(250)

    #C0143
    ChrTalk(
        0x106,
        (
            "#10703F#6P……说不定，\x01",
            "『赤色星座』正在\x01",
            "玛因兹地区展开行动。\x02\x03",

            "#10701F也许是开始全力\x01",
            "围剿反抗军了。\x02",
        )
    )

    CloseMessageWindow()
    OP_63(0x101, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(50)
    OP_63(0x103, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(50)
    OP_63(0x105, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
    Sound(28, 0, 100, 0)
    Sleep(1000)

    def lambda_A245():
        TurnDirection(0x101, 0x106, 500)
        ExitThread()

    QueueWorkItem(0x101, 0, lambda_A245)
    Sleep(0)

    def lambda_A255():
        TurnDirection(0x103, 0x106, 500)
        ExitThread()

    QueueWorkItem(0x103, 0, lambda_A255)
    Sleep(0)

    def lambda_A265():
        TurnDirection(0x105, 0x106, 500)
        ExitThread()

    QueueWorkItem(0x105, 0, lambda_A265)
    Sleep(0)

    def lambda_A275():
        TurnDirection(0x107, 0x106, 500)
        ExitThread()

    QueueWorkItem(0x107, 0, lambda_A275)
    Sleep(0)
    WaitChrThread(0x101, 0)
    WaitChrThread(0x103, 0)
    WaitChrThread(0x105, 0)
    WaitChrThread(0x107, 0)
    SetChrSubChip(0x107, 0x5)

    #C0144
    ChrTalk(
        0x101,
        "#00007F#5P啊……！\x02",
    )

    CloseMessageWindow()

    #C0145
    ChrTalk(
        0x105,
        (
            "#10403F#12P嗯……很有可能。\x02\x03",

            "#10401F也就是说，\x01",
            "刚才那些家伙是在\x01",
            "部队后方执行警戒任务？\x02",
        )
    )

    CloseMessageWindow()

    #C0146
    ChrTalk(
        0x103,
        (
            "#00206F#11P很有可能……\x02\x03",

            "#00201F之前的撤退似乎是\x01",
            "别有意图的。\x02",
        )
    )

    CloseMessageWindow()

    #C0147
    ChrTalk(
        0x101,
        (
            "#00010F#5P唔……\x01",
            "尽快赶往玛因兹地区吧！\x02\x03",

            "如果再磨磨蹭蹭的，\x01",
            "反抗军的人恐怕就危险了！\x02",
        )
    )

    CloseMessageWindow()

    #C0148
    ChrTalk(
        0x107,
        "#01201F#11P#3C嗯，出发吧。\x02",
    )

    CloseMessageWindow()
    FadeToDark(1000, 0, -1)
    OP_0D()
    OP_D7(0x1E)
    OP_D7(0x1F)
    OP_D7(0x20)
    OP_D7(0x21)
    OP_D7(0x22)
    OP_D7(0x23)
    OP_D7(0x24)
    OP_37()
    SetChrPos(0x0, -43100, 0, 124250, 315)
    SetChrFlags(0x4, 0x80)
    SetChrBattleFlags(0x4, 0x8000)
    OP_69(0xFF, 0x0)
    SetScenarioFlags(0x1A2, 3)
    OP_29(0xAF, 0x1, 0xA)
    ModifyEventFlags(0, 2, 0x80)
    OP_E2(0x2)
    EventEnd(0x5)
    Return()

    # Function_77_9B1D end

    def Function_78_A411(): pass

    label("Function_78_A411")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_A433")
    Sound(845, 0, 40, 0)
    Sleep(100)
    Sound(845, 0, 40, 0)
    Sleep(400)
    Jump("Function_78_A411")

    label("loc_A433")

    Return()

    # Function_78_A411 end

    def Function_79_A434(): pass

    label("Function_79_A434")

    Jc((scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_END)), "loc_A44D")
    Sound(845, 0, 40, 0)
    Sleep(440)
    Jump("Function_79_A434")

    label("loc_A44D")

    Return()

    # Function_79_A434 end

    def Function_80_A44E(): pass

    label("Function_80_A44E")

    EventBegin(0x1)
    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x162, 5)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x164, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_A4A4")

    #C0149
    ChrTalk(
        0x101,
        (
            "#00001F现在不需要前往矿山镇方向，\x01",
            "还是专心调查事故方面的情况吧。\x02",
        )
    )

    CloseMessageWindow()

    label("loc_A4A4")

    Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A2, 0)), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1A2, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_A502")

    #C0150
    ChrTalk(
        0x101,
        (
            "#00000F在前往玛因兹之前，\x01",
            "还是先去人偶工房拜访吧。\x02\x03",

            "说不定能得到什么情报。\x02",
        )
    )

    CloseMessageWindow()

    label("loc_A502")

    OP_5A()
    SetChrPos(0x0, -38960, 10, 120380, 135)
    OP_69(0xFF, 0x0)
    EventEnd(0x4)
    Return()

    # Function_80_A44E end

    def Function_81_A51B(): pass

    label("Function_81_A51B")

    EventBegin(0x1)

    #C0151
    ChrTalk(
        0x101,
        (
            "#00001F兰迪应该已经顺着\x01",
            "高台的绳索爬往崖下了，\x01",
            "我们赶快追吧。\x02",
        )
    )

    CloseMessageWindow()
    OP_5A()
    SetChrPos(0x0, -9050, 0, 28880, 90)
    EventEnd(0x4)
    Return()

    # Function_81_A51B end

    def Function_82_A575(): pass

    label("Function_82_A575")

    FadeToDark(300, 0, 100)
    SetChrName("")
    SetMessageWindowPos(-1, -1, -1, -1)

    #A0152
    AnonymousTalk(
        0xFF,
        (
            scpstr(SCPSTR_CODE_COLOR, 0x5),
            "南·克洛斯贝尔市　　１５９赛尔矩\x01",
            "北·矿山镇玛因兹  　１５２赛尔矩\x02",
        )
    )

    CloseMessageWindow()
    OP_57(0x0)
    FadeToBright(300, 0)
    SetMessageWindowPos(14, 280, 60, 3)
    TalkEnd(0xFF)
    Return()

    # Function_82_A575 end

    SaveToFile()

Try(main)
