main.floors.MAL45= { "floorId": "MAL45", "title": "魔法学院:45F", "name": "主楼 45F", "width": 13, "height": 13, "map": [ [148,148,148,148,148,148,148,148,148,148,148,148,148], [148, 88, 0, 0, 0, 0, 0, 0, 0, 0, 0, 87,148], [148,148,148,148,148,148, 81,148,148,148,148,148,148], [148,404,404, 0,148,219, 0,220,148,122, 0, 0,148], [148, 82,148,228,148, 0, 0, 0,148, 0, 0,204,148], [148,414,414, 0,148,220, 0,219,148,148,148, 81,148], [148, 82,148,228,148,148, 81,148,148,121,148, 0,148], [148, 0, 0, 0, 81, 0, 0,207, 0, 0, 0, 21, 94], [148,148, 83,148,148,148,148,148,148,148,220, 0,148], [148, 0, 0, 0,148,228, 0,148,246,148,148, 81,148], [148, 0, 51, 0, 85, 0, 0, 85, 0, 81, 0, 0,148], [148, 0, 0, 0,148,228, 0,148,246,148, 0, 32,148], [148,148,148,148,148,148,148,148,148,148,148,148,148] ], "canFlyTo": true, "canFlyFrom": true, "canUseQuickShop": true, "images": [], "ratio": 5, "defaultGround": "magicground", "bgm": "maps4L.mp3", "firstArrive": null, "eachArrive": [], "parallelDo": "", "events": { "9,3": [ { "type": "if", "condition": "switch:A", "true": [ "\t[商人,woman]神圣盾可以让你抵挡魔法攻击。但它不在这里", { "type": "if", "condition": "core.hasItem(\"MagicTome\")", "true": [ "\t[商人,woman]但你已经有替代品了" ] }, { "type": "hide", "remove": true, "time": 200 } ], "false": [ { "type": "choices", "text": "\t[商人,woman]给我1000G我就恢复你${core.hasItem(\"Backpack\") ?4000:2000}生命", "choices": [ { "text": "是", "action": [ { "type": "if", "condition": "(status:money>=1000)", "true": [ { "type": "setValue", "name": "status:money", "operator": "-=", "value": "1000" }, { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "2000" }, { "type": "playSound", "name": "确定" }, { "type": "if", "condition": "core.hasItem(\"Backpack\")", "true": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "2000" } ] }, { "type": "setValue", "name": "switch:A", "value": "true" }, "\t[商人,woman]感谢惠顾。" ], "false": [ { "type": "playSound", "name": "操作失败" }, "\t[商人,woman]你的金币不足!" ] } ] }, { "text": "使用4星光支付", "need": "flags.star.level>3", "condition": "item:FriendshipBadge&&!switch:B", "action": [ { "type": "function", "function": "function(){\nflags.star.level-=4\n}" }, { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "2000" }, { "type": "playSound", "name": "确定" }, { "type": "if", "condition": "core.hasItem(\"Backpack\")", "true": [ { "type": "setValue", "name": "status:hp", "operator": "+=", "value": "2000" } ] }, { "type": "setValue", "name": "switch:B", "value": "true" } ] }, { "text": "否", "action": [] } ] } ] } ], "9,6": [ "\t[老登,man]44楼被藏在异空间 你只能用移动宝物才能到达", { "type": "hide", "remove": true } ] }, "changeFloor": { "1,1": { "floorId": "MAL43", "stair": "upFloor" }, "11,1": { "floorId": ":next", "stair": "downFloor" }, "12,7": { "floorId": "MAC5", "loc": [ 1, 7 ], "direction": "right" } }, "afterBattle": { "8,9": [ { "type": "function", "function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[8, 9],\n\t[8, 11],\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": [ 7, 10 ] }, { "type": "hide", "time": 0 } ] } ], "8,11": [ { "type": "function", "function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[8, 9],\n\t[8, 11],\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": [ 7, 10 ] }, { "type": "hide", "time": 0 } ] } ], "5,9": [ { "type": "function", "function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[5, 9],\n\t[5, 11],\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": [ 4, 10 ] }, { "type": "hide", "time": 0 } ] } ], "5,11": [ { "type": "function", "function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[5, 9],\n\t[5, 11],\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": [ 4, 10 ] }, { "type": "hide", "time": 0 } ] } ] }, "afterGetItem": {}, "afterOpenDoor": {}, "cannotMove": {}, "fgmap": [ ], "bgmap": [ ], "upFloor": [ 10, 1 ], "downFloor": [ 2, 1 ], "autoEvent": {}, "beforeBattle": {}, "cannotMoveIn": {}, "bg2map": [], "fg2map": [] }