617 lines
21 KiB
JavaScript
617 lines
21 KiB
JavaScript
main.floors.SX3_1=
|
|
{
|
|
"floorId": "SX3_1",
|
|
"title": "水乡古镇:3-1",
|
|
"name": "3-1",
|
|
"width": 13,
|
|
"height": 13,
|
|
"canFlyTo": true,
|
|
"canFlyFrom": true,
|
|
"canUseQuickShop": true,
|
|
"images": [],
|
|
"ratio": 1,
|
|
"defaultGround": "ground7",
|
|
"bgm": "maps3.mp3",
|
|
"firstArrive": [],
|
|
"eachArrive": [],
|
|
"parallelDo": "",
|
|
"events": {
|
|
"9,2": [
|
|
{
|
|
"type": "closeDoor",
|
|
"id": "specialDoor",
|
|
"loc": [
|
|
9,
|
|
3
|
|
]
|
|
},
|
|
{
|
|
"type": "hide",
|
|
"remove": true
|
|
}
|
|
]
|
|
},
|
|
"changeFloor": {
|
|
"12,4": {
|
|
"floorId": "SX3_2",
|
|
"loc": [
|
|
1,
|
|
4
|
|
],
|
|
"direction": "right"
|
|
},
|
|
"0,0": {
|
|
"floorId": "SX4_1",
|
|
"loc": [
|
|
0,
|
|
11
|
|
],
|
|
"direction": "up"
|
|
}
|
|
},
|
|
"beforeBattle": {},
|
|
"afterBattle": {
|
|
"8,0": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[8, 0],\n\t[10, 0],\n\t[8, 2],\n\t[10, 2],\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,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
9,
|
|
3
|
|
]
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
11,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"type": "hide",
|
|
"loc": [
|
|
[
|
|
9,
|
|
2
|
|
]
|
|
],
|
|
"remove": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"10,0": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[8, 0],\n\t[10, 0],\n\t[8, 2],\n\t[10, 2],\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,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
9,
|
|
3
|
|
]
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
11,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"type": "hide",
|
|
"loc": [
|
|
[
|
|
9,
|
|
2
|
|
]
|
|
],
|
|
"remove": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"8,2": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[8, 0],\n\t[10, 0],\n\t[8, 2],\n\t[10, 2],\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,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
9,
|
|
3
|
|
]
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
11,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"type": "hide",
|
|
"loc": [
|
|
[
|
|
9,
|
|
2
|
|
]
|
|
],
|
|
"remove": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"10,2": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[8, 0],\n\t[10, 0],\n\t[8, 2],\n\t[10, 2],\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,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
9,
|
|
3
|
|
]
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
11,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"type": "hide",
|
|
"loc": [
|
|
[
|
|
9,
|
|
2
|
|
]
|
|
],
|
|
"remove": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"8,6": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[8, 6],\n\t[12, 6],\n\t[8, 8],\n\t[12, 8],\n\t[8, 10],\n\t[12, 10],\n\t[8, 12],\n\t[12, 12],\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": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
10,
|
|
4
|
|
],
|
|
[
|
|
10,
|
|
6
|
|
],
|
|
[
|
|
10,
|
|
10
|
|
],
|
|
[
|
|
10,
|
|
12
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
10,
|
|
8
|
|
]
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"12,6": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[8, 6],\n\t[12, 6],\n\t[8, 8],\n\t[12, 8],\n\t[8, 10],\n\t[12, 10],\n\t[8, 12],\n\t[12, 12],\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": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
10,
|
|
4
|
|
],
|
|
[
|
|
10,
|
|
6
|
|
],
|
|
[
|
|
10,
|
|
10
|
|
],
|
|
[
|
|
10,
|
|
12
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
10,
|
|
8
|
|
]
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"8,8": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[8, 6],\n\t[12, 6],\n\t[8, 8],\n\t[12, 8],\n\t[8, 10],\n\t[12, 10],\n\t[8, 12],\n\t[12, 12],\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": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
10,
|
|
4
|
|
],
|
|
[
|
|
10,
|
|
6
|
|
],
|
|
[
|
|
10,
|
|
10
|
|
],
|
|
[
|
|
10,
|
|
12
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
10,
|
|
8
|
|
]
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"12,8": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[8, 6],\n\t[12, 6],\n\t[8, 8],\n\t[12, 8],\n\t[8, 10],\n\t[12, 10],\n\t[8, 12],\n\t[12, 12],\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": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
10,
|
|
4
|
|
],
|
|
[
|
|
10,
|
|
6
|
|
],
|
|
[
|
|
10,
|
|
10
|
|
],
|
|
[
|
|
10,
|
|
12
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
10,
|
|
8
|
|
]
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"8,10": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[8, 6],\n\t[12, 6],\n\t[8, 8],\n\t[12, 8],\n\t[8, 10],\n\t[12, 10],\n\t[8, 12],\n\t[12, 12],\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": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
10,
|
|
4
|
|
],
|
|
[
|
|
10,
|
|
6
|
|
],
|
|
[
|
|
10,
|
|
10
|
|
],
|
|
[
|
|
10,
|
|
12
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
10,
|
|
8
|
|
]
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"12,10": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[8, 6],\n\t[12, 6],\n\t[8, 8],\n\t[12, 8],\n\t[8, 10],\n\t[12, 10],\n\t[8, 12],\n\t[12, 12],\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": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
10,
|
|
4
|
|
],
|
|
[
|
|
10,
|
|
6
|
|
],
|
|
[
|
|
10,
|
|
10
|
|
],
|
|
[
|
|
10,
|
|
12
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
10,
|
|
8
|
|
]
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"8,12": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[8, 6],\n\t[12, 6],\n\t[8, 8],\n\t[12, 8],\n\t[8, 10],\n\t[12, 10],\n\t[8, 12],\n\t[12, 12],\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": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
10,
|
|
4
|
|
],
|
|
[
|
|
10,
|
|
6
|
|
],
|
|
[
|
|
10,
|
|
10
|
|
],
|
|
[
|
|
10,
|
|
12
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
10,
|
|
8
|
|
]
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"12,12": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[8, 6],\n\t[12, 6],\n\t[8, 8],\n\t[12, 8],\n\t[8, 10],\n\t[12, 10],\n\t[8, 12],\n\t[12, 12],\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": "setBlock",
|
|
"number": "21",
|
|
"loc": [
|
|
[
|
|
10,
|
|
4
|
|
],
|
|
[
|
|
10,
|
|
6
|
|
],
|
|
[
|
|
10,
|
|
10
|
|
],
|
|
[
|
|
10,
|
|
12
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"type": "setBlock",
|
|
"number": "23",
|
|
"loc": [
|
|
[
|
|
10,
|
|
8
|
|
]
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"afterGetItem": {},
|
|
"afterOpenDoor": {},
|
|
"autoEvent": {},
|
|
"cannotMove": {},
|
|
"cannotMoveIn": {},
|
|
"map": [
|
|
[ 91,140,225, 32,140,216, 21,140,225, 0,225,140, 0],
|
|
[ 0,140, 0,224,140, 0,225, 81, 0, 0, 0, 85, 63],
|
|
[ 82,140, 81,140,140,140, 81,140,212, 0,212,140, 0],
|
|
[ 0,140, 0,212, 81,214, 0,140,140, 81,140,140,140],
|
|
[225,140, 0, 0,140, 0,216, 81, 32, 0, 0, 0, 94],
|
|
[ 0,140,140, 81,140,140,140,140,140,140, 0,140,140],
|
|
[216,140,140, 0,227, 0,214,140,203, 81, 0, 81,212],
|
|
[ 0,140,140,216,140,140, 0,140,140,140, 0,140,140],
|
|
[212,140,140, 0,140,140,225,140,224, 81, 0, 81,206],
|
|
[ 0,227, 0,224, 0,214, 0,140,140,140, 0,140,140],
|
|
[214,140,140, 0,140,140,216,140,218, 81, 0, 81,227],
|
|
[ 0,140,140,212,140,140, 0,140,140,140, 0,140,140],
|
|
[225, 0, 32, 0,224, 0,227,140,225, 81, 0, 81,213]
|
|
],
|
|
"bgmap": [
|
|
[141, 0,141,141, 0,141,141, 0,141,141,141, 0,141],
|
|
[141, 0,141,141, 0,141,141,141,141,141,141,141,141],
|
|
[141, 0,141, 0, 0, 0,141, 0,141,141,141, 0,141],
|
|
[141, 0,141,141,141,141,141, 0, 0,141, 0, 0, 0],
|
|
[141, 0,141,141, 0,141,141,141,141,141,141,141,141],
|
|
[141, 0, 0,141, 0, 0, 0, 0, 0, 0,141, 0, 0],
|
|
[141, 0, 0,141,141,141,141, 0,141,141,141,141,141],
|
|
[141, 0, 0,141, 0, 0,141, 0, 0, 0,141, 0, 0],
|
|
[141, 0, 0,141, 0, 0,141, 0,141,141,141,141,141],
|
|
[141,141,141,141,141,141,141, 0, 0, 0,141, 0, 0],
|
|
[141, 0, 0,141, 0, 0,141, 0,141,141,141,141,141],
|
|
[141, 0, 0,141, 0, 0,141, 0, 0, 0,141, 0, 0],
|
|
[141,141,141,141,141,141,141, 0,141,141,141,141,141]
|
|
],
|
|
"fgmap": [
|
|
|
|
]
|
|
} |