main.floors.MT49_4=
{
    "floorId": "MT49_4",
    "title": "主塔 49 层",
    "name": "49",
    "width": 13,
    "height": 13,
    "canFlyTo": true,
    "canFlyFrom": true,
    "canUseQuickShop": true,
    "images": [],
    "ratio": 4,
    "defaultGround": "ground",
    "bgm": "section1.mp3",
    "firstArrive": [],
    "eachArrive": [],
    "parallelDo": "",
    "events": {
        "6,6": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n}"
            },
            {
                "type": "playBgm",
                "name": "Knight.mp3"
            },
            "\t[骑士队长,yellowKnight]我竟敢入侵我的领地，这说明你是个勇士，但现在游戏结束了，我将在这里杀死你",
            "\t[骑士队长,yellowKnight]鬼战士给我上！",
            {
                "type": "function",
                "function": "function(){\nlet f_x = flags[\"@temp@floor_x\"],\n\tf_y = flags[\"@temp@floor_y\"];\nconst arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n];\nconst _arr = arr.map(([x, y]) => [x + f_x, y + f_y])\n\nlet floorId = core.status.floorId,\n\tattribute = 'special';\n_arr.forEach(([x, y]) => {\n\tlet id = core.getBlockId(x, y, floorId);\n\tlet a = core.getEnemyValue(id, attribute, x, y, floorId) || [];\n\tif (typeof a === \"number\") a = [a]\n\tlet b = a.slice();\n\tb.push(1)\n\tcore.setEnemyOnPoint(x, y, floorId, attribute, b);\n})\n}"
            },
            {
                "type": "function",
                "function": "function(){\nlet f_x = flags[\"@temp@floor_x\"],\n\tf_y = flags[\"@temp@floor_y\"];\nlet targetX = f_x + 6,\n\ttargetY = f_y + 6;\nlet doorX = f_x + 6,\n\tdoorY = f_y + 2;\n\nconst arr = new Array(\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n);\nconst a = arr.map(([x, y]) => [x + f_x, y + f_y])\n\nfunction getSteps(x, y, tx, ty) {\n\tlet steps = [];\n\n\t// 水平移动：x → tx\n\tlet dx = tx - x;\n\tif (dx !== 0) {\n\t\tlet dir = dx > 0 ? \"right\" : \"left\";\n\t\tsteps.push(`${dir}:${Math.abs(dx)}`);\n\t}\n\t// 竖直移动：y → ty\n\tlet dy = ty - y;\n\tif (dy !== 0) {\n\t\tlet dir = dy > 0 ? \"down\" : \"up\";\n\t\tsteps.push(`${dir}:${Math.abs(dy)}`);\n\t}\n\n\n\treturn steps;\n}\nlet todo = [];\n\nfor (let i = 0; i <= 12; i++) {\n\tlet x = a[i][0],\n\t\ty = a[i][1];\n\n\tif (core.getBlockId(x, y) !== null) {\n\t\t// 生成 steps\n\t\tlet steps = getSteps(x, y, targetX, targetY);\n\t\t// 移动动画\n\t\tcore.push(todo, [\n\t\t\t{ \"type\": \"sleep\", \"time\": 100 },\n\t\t\t{\n\t\t\t\t\"type\": \"move\",\n\t\t\t\t\"loc\": [x, y],\n\t\t\t\t\"time\": 100,\n\t\t\t\t\"keep\": true,\n\t\t\t\t\"steps\": steps\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"type\": \"battle\",\n\t\t\t\t\"loc\": [targetX, targetY]\n\t\t\t}\n\t\t]);\n\t}\n\tif (i === 2) core.push(todo, '\\t[yellowKnight]哼，没关系，士兵们给我上！');\n\telse if (i === 5) core.push(todo, '\\t[yellowKnight]真正的战斗才刚开始，让我们继续，双手剑士给我上！');\n\telse if (i === 8) core.push(todo, '\\t[yellowKnight]哼，你们这战怎么打的？骑士们给我冲！');\n\telse if (i === 11) core.push(todo, '\\t[yellowKnight]你怎会击败我所有的手下？我和你誓不两立我决不认输。（骑士队长失去了理智）');\n\telse if (i === 12) {\n\t\tcore.push(todo, {\n\t\t\t\"type\": \"setBlock\",\n\t\t\t\"number\": \"yellowKnight\",\n\t\t\t\"loc\": [targetX, targetY]\n\t\t});\n\t\tcore.push(todo, \"\\t[yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。（骑士队长逃走了）\");\n\t\tcore.push(todo, {\n\t\t\t\"type\": \"move\",\n\t\t\t\"loc\": [targetX, targetY],\n\t\t\t\"time\": 100,\n\t\t\t\"keep\": true,\n\t\t\t\"steps\": ['up:3']\n\t\t});\n\t\tcore.push(todo, { \"type\": \"openDoor\", \"loc\": [doorX, doorY] }, );\n\t\tcore.push(todo, {\n\t\t\t\"type\": \"move\",\n\t\t\t\"loc\": [targetX, targetY - 3],\n\t\t\t\"time\": 100,\n\t\t\t\"keep\": true,\n\t\t\t\"steps\": ['up:2']\n\t\t});\n\t\tcore.push(todo, { \"type\": \"closeDoor\", \"id\": \"yellowWall\", \"loc\": [doorX, doorY] }, );\n\t\tcore.push(todo, {\n\t\t\t\"type\": \"move\",\n\t\t\t\"loc\": [targetX, targetY - 5],\n\t\t\t\"time\": 100,\n\t\t\t\"keep\": false,\n\t\t\t\"steps\": ['up:1']\n\t\t});\n\t}\n\n}\ncore.insertAction(todo);\n}"
            },
            {
                "type": "playSound",
                "name": "door.mp3"
            },
            {
                "type": "setBlock",
                "number": "21",
                "loc": [
                    "temp:floor_x + 3",
                    "temp:floor_y + 4"
                ]
            },
            {
                "type": "setBlock",
                "number": "21",
                "loc": [
                    "temp:floor_x + 4",
                    "temp:floor_y + 4"
                ]
            },
            {
                "type": "setBlock",
                "number": "21",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 4"
                ]
            },
            {
                "type": "setBlock",
                "number": "364",
                "loc": [
                    "temp:floor_x + 9",
                    "temp:floor_y + 4"
                ]
            },
            {
                "type": "setBlock",
                "number": "364",
                "loc": [
                    "temp:floor_x + 8",
                    "temp:floor_y + 4"
                ]
            },
            {
                "type": "setBlock",
                "number": "364",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 4"
                ]
            },
            {
                "type": "setBlock",
                "number": "344",
                "loc": [
                    "temp:floor_x + 3",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "344",
                "loc": [
                    "temp:floor_x + 4",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "344",
                "loc": [
                    "temp:floor_x + 5",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "349",
                "loc": [
                    "temp:floor_x + 9",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "349",
                "loc": [
                    "temp:floor_x + 8",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "setBlock",
                "number": "349",
                "loc": [
                    "temp:floor_x + 7",
                    "temp:floor_y + 5"
                ]
            },
            {
                "type": "hide",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 6"
                ],
                "remove": true,
                "time": 0,
                "destruct": true
            },
            {
                "type": "openDoor",
                "loc": [
                    "temp:floor_x + 6",
                    "temp:floor_y + 7"
                ]
            },
            {
                "type": "waitAsync"
            }
        ]
    },
    "changeFloor": {},
    "beforeBattle": {},
    "afterBattle": {
        "4,8": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[4, 8],\n\t[5, 8],\n\t[7, 8],\n\t[8, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    }
                ]
            }
        ],
        "5,8": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[4, 8],\n\t[5, 8],\n\t[7, 8],\n\t[8, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    }
                ]
            }
        ],
        "7,8": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[4, 8],\n\t[5, 8],\n\t[7, 8],\n\t[8, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    }
                ]
            }
        ],
        "8,8": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[4, 8],\n\t[5, 8],\n\t[7, 8],\n\t[8, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    }
                ]
            }
        ],
        "6,3": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骑士队长,yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。",
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "hide",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ],
                        "remove": true,
                        "time": 0,
                        "destruct": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "5,4": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骑士队长,yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。",
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "hide",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ],
                        "remove": true,
                        "time": 0,
                        "destruct": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "4,4": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骑士队长,yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。",
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "hide",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ],
                        "remove": true,
                        "time": 0,
                        "destruct": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "3,4": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骑士队长,yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。",
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "hide",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ],
                        "remove": true,
                        "time": 0,
                        "destruct": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "4,5": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骑士队长,yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。",
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "hide",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ],
                        "remove": true,
                        "time": 0,
                        "destruct": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "3,5": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骑士队长,yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。",
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "hide",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ],
                        "remove": true,
                        "time": 0,
                        "destruct": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "3,6": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骑士队长,yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。",
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "hide",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ],
                        "remove": true,
                        "time": 0,
                        "destruct": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "8,5": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骑士队长,yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。",
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "hide",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ],
                        "remove": true,
                        "time": 0,
                        "destruct": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "9,5": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骑士队长,yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。",
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "hide",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ],
                        "remove": true,
                        "time": 0,
                        "destruct": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "9,6": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骑士队长,yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。",
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "hide",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ],
                        "remove": true,
                        "time": 0,
                        "destruct": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "7,4": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骑士队长,yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。",
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "hide",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ],
                        "remove": true,
                        "time": 0,
                        "destruct": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "8,4": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骑士队长,yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。",
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "hide",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ],
                        "remove": true,
                        "time": 0,
                        "destruct": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ],
        "9,4": [
            {
                "type": "function",
                "function": "function(){\nlet bool = true;\nlet floor_x = Math.floor(core.status.hero.loc.x / 12),\n\tfloor_y = Math.floor(core.status.hero.loc.y / 12);\nlet bigMaps = flags.bigMaps.grid\nflags[\"@temp@floorId\"] = bigMaps[floor_x][floor_y]\n\nlet f_x = floor_x * 12,\n\tf_y = floor_y * 12\nflags[\"@temp@floor_x\"] = f_x;\nflags[\"@temp@floor_y\"] = f_y;\n\nvar loc_arr = [\n\t[3, 6],\n\t[4, 5],\n\t[3, 5],\n\n\t[9, 6],\n\t[8, 5],\n\t[9, 5],\n\n\t[5, 4],\n\t[4, 4],\n\t[3, 4],\n\n\t[7, 4],\n\t[8, 4],\n\t[9, 4],\n\n\t[6, 3],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(f_x + loc[0], f_y + loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\nflags[\"@temp@open_yes\"] = bool\n}"
            },
            {
                "type": "if",
                "condition": "temp:open_yes",
                "true": [
                    "\t[骑士队长,yellowKnight]这次先饶了你，下次碰到我会和你正式的决斗，你最好投降。",
                    {
                        "type": "playSound",
                        "name": "door.mp3"
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "21",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "364",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 4"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 3",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 4",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "344",
                        "loc": [
                            "temp:floor_x + 5",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 9",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 8",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "setBlock",
                        "number": "349",
                        "loc": [
                            "temp:floor_x + 7",
                            "temp:floor_y + 5"
                        ]
                    },
                    {
                        "type": "hide",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 6"
                        ],
                        "remove": true,
                        "time": 0,
                        "destruct": true
                    },
                    {
                        "type": "openDoor",
                        "loc": [
                            "temp:floor_x + 6",
                            "temp:floor_y + 7"
                        ]
                    },
                    {
                        "type": "waitAsync"
                    }
                ]
            }
        ]
    },
    "afterGetItem": {},
    "afterOpenDoor": {},
    "autoEvent": {},
    "cannotMove": {},
    "cannotMoveIn": {},
    "map": [
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1],
    [  1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1],
    [  1,  0,  1,  1,  1,  1,  1,  1,  1,  1,  1,  0,  1],
    [  1,  0,  1,  0,  0,  0,226,  0,  0,  0,  1,  0,  1],
    [  1,  0,  1,224,224,224,  0,227,227,227,  1,  0,  1],
    [  1,  0,  1,212,212,  0,  0,  0,225,225,  1,  0,  1],
    [  0,  0,  1,212,  0,  0,166,  0,  0,225,  1,  0,  0],
    [  1,  0,  1,  1,  1,  1, 85,  1,  1,  1,  1,  0,  1],
    [  1,  0,  1,  0,227,224,  0,224,227,  0,  1,  0,  1],
    [  1,  0,  1,  1,  1,  1, 83,  1,  1,  1,  1,  0,  1],
    [  1,  0,  1,  0,344,  1,  0,  1,349,  0,  1,  0,  1],
    [  1,121,225,  0,  0,224,  0,224,  0,  0,225,  0,  1],
    [  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1]
],
    "bgmap": [

],
    "fgmap": [

]
}