668 lines
22 KiB
JavaScript
668 lines
22 KiB
JavaScript
main.floors.MAL34=
|
|
{
|
|
"floorId": "MAL34",
|
|
"title": "魔法学院:34F",
|
|
"name": "主楼 34F",
|
|
"width": 13,
|
|
"height": 13,
|
|
"map": [
|
|
[148,148,148,148,148,148,148,148,148,148,148,148,148],
|
|
[148, 88, 0, 31,148, 0, 21, 0,148, 21, 21,412,148],
|
|
[148, 0, 0, 0, 81,216, 0,227, 81, 0, 21, 31,148],
|
|
[148, 0,216, 0,148,148,148,148,148,148,148,148,148],
|
|
[148,148, 81,148,148,201,148,224,148,203,148,225,148],
|
|
[148, 0, 0, 0,148, 81,148, 81,148, 81,148, 81,148],
|
|
[148, 0,148, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94],
|
|
[148, 0, 0, 0,148, 81,148, 81,148, 81,148, 81,148],
|
|
[148,148, 81,148,148,212,148,202,148,227,148,205,148],
|
|
[148, 0, 0,212,148,148,148,148,148,148,148,148,148],
|
|
[148,224,148, 0, 81, 0, 0, 0, 81,225, 0, 31,148],
|
|
[148, 32,225, 0,148, 0, 87, 0,148, 0, 21,402,148],
|
|
[148,148,148,148,148,148,148,148,148,148,148,148,148]
|
|
],
|
|
"canFlyTo": true,
|
|
"canFlyFrom": true,
|
|
"canUseQuickShop": true,
|
|
"images": [],
|
|
"ratio": 4,
|
|
"defaultGround": "magicground",
|
|
"bgm": "maps4L.mp3",
|
|
"firstArrive": null,
|
|
"eachArrive": [],
|
|
"parallelDo": "",
|
|
"events": {},
|
|
"changeFloor": {
|
|
"1,1": {
|
|
"floorId": ":before",
|
|
"stair": "upFloor"
|
|
},
|
|
"6,11": {
|
|
"floorId": ":next",
|
|
"stair": "downFloor"
|
|
},
|
|
"12,6": {
|
|
"floorId": "MAC4",
|
|
"loc": [
|
|
1,
|
|
6
|
|
],
|
|
"direction": "right"
|
|
}
|
|
},
|
|
"afterBattle": {
|
|
"5,4": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[5, 4],\n\t[7, 4],\n\t[9, 4],\n\t[11, 4],\n\t[5, 8],\n\t[7, 8],\n\t[9, 8],\n\t[11, 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": "playSound",
|
|
"name": "door.mp3"
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
2,
|
|
6
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "waitAsync"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"5,8": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[5, 4],\n\t[7, 4],\n\t[9, 4],\n\t[11, 4],\n\t[5, 8],\n\t[7, 8],\n\t[9, 8],\n\t[11, 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": "playSound",
|
|
"name": "door.mp3"
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
2,
|
|
6
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "waitAsync"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"7,4": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[5, 4],\n\t[7, 4],\n\t[9, 4],\n\t[11, 4],\n\t[5, 8],\n\t[7, 8],\n\t[9, 8],\n\t[11, 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": "playSound",
|
|
"name": "door.mp3"
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
2,
|
|
6
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "waitAsync"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"7,8": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[5, 4],\n\t[7, 4],\n\t[9, 4],\n\t[11, 4],\n\t[5, 8],\n\t[7, 8],\n\t[9, 8],\n\t[11, 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": "playSound",
|
|
"name": "door.mp3"
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
2,
|
|
6
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "waitAsync"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"9,4": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[5, 4],\n\t[7, 4],\n\t[9, 4],\n\t[11, 4],\n\t[5, 8],\n\t[7, 8],\n\t[9, 8],\n\t[11, 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": "playSound",
|
|
"name": "door.mp3"
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
2,
|
|
6
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "waitAsync"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"9,8": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[5, 4],\n\t[7, 4],\n\t[9, 4],\n\t[11, 4],\n\t[5, 8],\n\t[7, 8],\n\t[9, 8],\n\t[11, 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": "playSound",
|
|
"name": "door.mp3"
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
2,
|
|
6
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "waitAsync"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"11,8": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[5, 4],\n\t[7, 4],\n\t[9, 4],\n\t[11, 4],\n\t[5, 8],\n\t[7, 8],\n\t[9, 8],\n\t[11, 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": "playSound",
|
|
"name": "door.mp3"
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
2,
|
|
6
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "waitAsync"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"11,4": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[5, 4],\n\t[7, 4],\n\t[9, 4],\n\t[11, 4],\n\t[5, 8],\n\t[7, 8],\n\t[9, 8],\n\t[11, 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": "playSound",
|
|
"name": "door.mp3"
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
5
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
1,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
3,
|
|
7
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
2,
|
|
6
|
|
]
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "waitAsync"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"afterGetItem": {},
|
|
"afterOpenDoor": {},
|
|
"cannotMove": {},
|
|
"fgmap": [
|
|
|
|
],
|
|
"bgmap": [
|
|
|
|
],
|
|
"upFloor": [
|
|
6,
|
|
10
|
|
],
|
|
"downFloor": [
|
|
1,
|
|
2
|
|
],
|
|
"autoEvent": {},
|
|
"beforeBattle": {},
|
|
"cannotMoveIn": {},
|
|
"bg2map": [],
|
|
"fg2map": []
|
|
} |