main.floors.SX3_3= { "floorId": "SX3_3", "title": "水乡古镇:3-3", "name": "3-3", "width": 13, "height": 13, "canFlyTo": true, "canFlyFrom": true, "canUseQuickShop": true, "images": [], "ratio": 1, "defaultGround": "ground7", "bgm": "maps3.mp3", "firstArrive": [], "eachArrive": [], "parallelDo": "", "events": { "6,6": [ { "type": "if", "condition": "(core.getBlockId(6,5)==='redDoor')", "true": [], "false": [ { "type": "closeDoor", "id": "specialDoor", "loc": [ 6, 5 ] } ] }, "\t[骑士队长,yellowKnight]你来到了这里 这证明你是个星趴高手 但现在游戏结束了 我将亲手送你一个优质睡眠", "\t[骑士队长,yellowKnight]不过在那之前你还得打败我这14名手下才能开始试练", { "type": "playBgm", "name": "battle.mp3" }, { "type": "hide", "remove": true } ] }, "changeFloor": { "0,4": { "floorId": "SX3_2", "loc": [ 11, 4 ], "direction": "left" }, "12,4": { "floorId": "SX3_4", "loc": [ 1, 4 ], "direction": "right" }, "6,0": { "floorId": "SX4_3", "loc": [ 6, 11 ], "direction": "up" } }, "beforeBattle": {}, "afterBattle": { "1,7": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "2,7": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "3,7": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "9,7": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "10,7": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "11,7": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "5,8": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "7,8": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "2,9": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "3,9": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "4,9": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "8,9": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "9,9": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "10,9": [ { "type": "function", "function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 7],\n\t[2, 7],\n\t[3, 7],\n\t[9, 7],\n\t[10, 7],\n\t[11, 7],\n\t[2, 9],\n\t[3, 9],\n\t[4, 9],\n\t[8, 9],\n\t[9, 9],\n\t[10, 9],\n\t[5, 8],\n\t[7, 8],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockCls(loc[0], loc[1]) == \"enemys\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}" }, { "type": "if", "condition": "flag:open_yes", "true": [ { "type": "openDoor", "loc": [ 6, 11 ] }, { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]很好 你通过了第一轮测试 不过现在就轮到我了" ] }, { "type": "hide", "loc": [ [ 6, 6 ] ], "remove": true } ] } ], "6,12": [ { "type": "if", "condition": "(!flag:骑士队长)", "true": [ "\t[骑士队长,yellowKnight]这场试练是你赢了 但别高兴的太早 下次我还会再来的", { "type": "if", "condition": "(core.getBlockId(6,5)!=='redDoor')", "true": [ { "type": "openDoor", "loc": [ 6, 5 ] } ] }, { "type": "openDoor", "loc": [ 6, 1 ] }, { "type": "setBlock", "number": "402", "loc": [ [ 1, 7 ], [ 2, 7 ], [ 3, 7 ] ] }, { "type": "setBlock", "number": "412", "loc": [ [ 9, 7 ], [ 10, 7 ], [ 11, 7 ] ] }, { "type": "setBlock", "number": "21", "loc": [ [ 2, 9 ], [ 3, 9 ], [ 4, 9 ] ] }, { "type": "setBlock", "number": "32", "loc": [ [ 8, 9 ], [ 9, 9 ], [ 10, 9 ] ] }, { "type": "setBlock", "number": "0", "loc": [ [ 6, 11 ] ], "floorId": "SX4_3" }, { "type": "setValue", "name": "flag:ratio", "operator": "+=", "value": "1" }, { "type": "setValue", "name": "flag:骑士队长", "value": "true" } ] } ] }, "afterGetItem": {}, "afterOpenDoor": {}, "autoEvent": {}, "cannotMove": {}, "cannotMoveIn": {}, "map": [ [ 31,224,140,402,412,140, 91,140,402,225,140,224,412], [225, 0,140, 32, 21,140, 85,140,212, 0,140, 0,227], [ 0, 0,140,227, 0,140, 0,140, 0,216,140,216, 0], [140, 81,140, 82,140,140, 0,140,140, 81,140, 81,140], [ 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94], [140,140,140,140,140,140, 83,140,140,140,140,140,140], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0,225,225,225, 0, 0, 0, 0, 0,212,212,212, 0], [ 0, 0, 0, 0, 0,222, 0,222, 0, 0, 0, 0, 0], [ 0, 0,227,227,227, 0, 0, 0,224,224,224, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0,140, 85,140, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0,140,226,140, 0, 0, 0, 0, 0] ], "bgmap": [ [141,141, 0,141,141, 0,141, 0,141,141, 0,141,141], [141,141, 0,141,141, 0,141, 0,141,141, 0,141,141], [141,141, 0,141,141, 0,141, 0,141,141, 0,141,141], [ 0,141, 0,141, 0, 0,141, 0, 0,141, 0,141, 0], [141,141,141,141,141,141,141,141,141,141,141,141,141], [ 0, 0, 0, 0, 0, 0,141, 0, 0, 0, 0, 0, 0], [141,141,141,141,141,141,141,141,141,141,141,141,141], [141,141,141,141,141,141,141,141,141,141,141,141,141], [141,141,141,141,141,141,141,141,141,141,141,141,141], [141,141,141,141,141,141,141,141,141,141,141,141,141], [141,141,141,141,141,141,141,141,141,141,141,141,141], [141,141,141,141,141, 0,141, 0,141,141,141,141,141], [141,141,141,141,141, 0,141, 0,141,141,141,141,141] ], "fgmap": [ ] }