51_AstralParty/project/floors/SX1_1.js
2025-09-11 22:30:07 +08:00

501 lines
19 KiB
JavaScript

main.floors.SX1_1=
{
"floorId": "SX1_1",
"title": "水乡古镇:1-1",
"name": "1-1",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"images": [],
"ratio": 1,
"defaultGround": "ground7",
"bgm": "maps3.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {
"11,12": [
{
"type": "if",
"condition": "switch:A",
"true": [
"\t[商人,woman]欢迎来到水乡古镇,如果你觉得晕头转向不妨先试试乱撞",
{
"type": "hide",
"remove": true
}
],
"false": [
{
"type": "choices",
"text": "\t[商人,woman]我50星币特价卖${core.hasItem(\"Backpack\") ?\"两\":\"一\"}把蓝钥匙。你买吗?",
"choices": [
{
"text": "我太需要了",
"need": "status:money>=50",
"action": [
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "50"
},
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "1"
}
]
},
{
"type": "setValue",
"name": "switch:A",
"value": "true"
}
]
},
{
"text": "使用1星光支付",
"need": "flags.star.level>0",
"condition": "item:FriendshipBadge&&!switch:B",
"action": [
{
"type": "function",
"function": "function(){\nflags.star.level--\n}"
},
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "1"
}
]
},
{
"type": "setValue",
"name": "switch:B",
"value": "true"
}
]
},
{
"text": "离开",
"action": []
}
]
}
]
}
],
"6,4": [
{
"type": "closeDoor",
"id": "specialDoor",
"loc": [
6,
5
]
},
"\t[骷髅队长,skeletonCaptain]此路是我开 此树是我栽 要想从此过 纳命来",
{
"type": "playBgm",
"name": "battle.mp3"
},
{
"type": "hide",
"remove": true
}
]
},
"changeFloor": {
"12,6": {
"floorId": "SX1_2",
"loc": [
1,
6
],
"direction": "right"
},
"6,0": {
"floorId": "SX2_1",
"loc": [
6,
11
],
"direction": "up"
}
},
"beforeBattle": {},
"afterBattle": {
"2,2": [
{
"type": "function",
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 2],\n\t[2, 2],\n\t[3, 2],\n\t[2, 1],\n\t[2, 3],\n\t[10, 1],\n\t[10, 2],\n\t[10, 3],\n\t[9, 2],\n\t[11, 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": [
6,
2
]
},
"\t[骷髅队长,skeletonCaptain]你通过了考验 现在我要与你一对一决斗"
]
}
],
"2,1": [
{
"type": "function",
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 2],\n\t[2, 2],\n\t[3, 2],\n\t[2, 1],\n\t[2, 3],\n\t[10, 1],\n\t[10, 2],\n\t[10, 3],\n\t[9, 2],\n\t[11, 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": [
6,
2
]
},
"\t[骷髅队长,skeletonCaptain]你通过了考验 现在我要与你一对一决斗"
]
}
],
"1,2": [
{
"type": "function",
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 2],\n\t[2, 2],\n\t[3, 2],\n\t[2, 1],\n\t[2, 3],\n\t[10, 1],\n\t[10, 2],\n\t[10, 3],\n\t[9, 2],\n\t[11, 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": [
6,
2
]
},
"\t[骷髅队长,skeletonCaptain]你通过了考验 现在我要与你一对一决斗"
]
}
],
"3,2": [
{
"type": "function",
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 2],\n\t[2, 2],\n\t[3, 2],\n\t[2, 1],\n\t[2, 3],\n\t[10, 1],\n\t[10, 2],\n\t[10, 3],\n\t[9, 2],\n\t[11, 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": [
6,
2
]
},
"\t[骷髅队长,skeletonCaptain]你通过了考验 现在我要与你一对一决斗"
]
}
],
"9,2": [
{
"type": "function",
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 2],\n\t[2, 2],\n\t[3, 2],\n\t[2, 1],\n\t[2, 3],\n\t[10, 1],\n\t[10, 2],\n\t[10, 3],\n\t[9, 2],\n\t[11, 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": [
6,
2
]
},
"\t[骷髅队长,skeletonCaptain]你通过了考验 现在我要与你一对一决斗"
]
}
],
"10,2": [
{
"type": "function",
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 2],\n\t[2, 2],\n\t[3, 2],\n\t[2, 1],\n\t[2, 3],\n\t[10, 1],\n\t[10, 2],\n\t[10, 3],\n\t[9, 2],\n\t[11, 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": [
6,
2
]
},
"\t[骷髅队长,skeletonCaptain]你通过了考验 现在我要与你一对一决斗"
]
}
],
"11,2": [
{
"type": "function",
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 2],\n\t[2, 2],\n\t[3, 2],\n\t[2, 1],\n\t[2, 3],\n\t[10, 1],\n\t[10, 2],\n\t[10, 3],\n\t[9, 2],\n\t[11, 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": [
6,
2
]
},
"\t[骷髅队长,skeletonCaptain]你通过了考验 现在我要与你一对一决斗"
]
}
],
"10,3": [
{
"type": "function",
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 2],\n\t[2, 2],\n\t[3, 2],\n\t[2, 1],\n\t[2, 3],\n\t[10, 1],\n\t[10, 2],\n\t[10, 3],\n\t[9, 2],\n\t[11, 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": [
6,
2
]
},
"\t[骷髅队长,skeletonCaptain]你通过了考验 现在我要与你一对一决斗"
]
}
],
"10,1": [
{
"type": "function",
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 2],\n\t[2, 2],\n\t[3, 2],\n\t[2, 1],\n\t[2, 3],\n\t[10, 1],\n\t[10, 2],\n\t[10, 3],\n\t[9, 2],\n\t[11, 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": [
6,
2
]
},
"\t[骷髅队长,skeletonCaptain]你通过了考验 现在我要与你一对一决斗"
]
}
],
"6,1": [
"\t[骷髅队长,skeletonCaptain]你通过了我的考验 但接下来还会有更困难的考验在等着你",
{
"type": "openDoor",
"loc": [
6,
5
]
},
{
"type": "setBlock",
"number": "0",
"loc": [
[
6,
11
]
],
"floorId": "SX2_1"
},
{
"type": "setBlock",
"number": "32",
"loc": [
[
1,
1
],
[
1,
2
],
[
1,
3
]
]
},
{
"type": "setBlock",
"number": "27",
"loc": [
[
3,
1
],
[
3,
2
],
[
3,
3
]
]
},
{
"type": "setBlock",
"number": "28",
"loc": [
[
9,
1
],
[
9,
2
],
[
9,
3
]
]
},
{
"type": "setBlock",
"number": "21",
"loc": [
[
11,
1
],
[
11,
2
],
[
11,
3
]
]
},
{
"type": "setValue",
"name": "flag:ratio",
"operator": "+=",
"value": "1"
},
{
"type": "hide",
"loc": [
[
6,
4
]
],
"remove": true
}
],
"2,3": [
{
"type": "function",
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[1, 2],\n\t[2, 2],\n\t[3, 2],\n\t[2, 1],\n\t[2, 3],\n\t[10, 1],\n\t[10, 2],\n\t[10, 3],\n\t[9, 2],\n\t[11, 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": [
6,
2
]
},
"\t[骷髅队长,skeletonCaptain]你通过了考验 现在我要与你一对一决斗"
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0, 0, 0,140, 91,140, 0, 0, 0, 0, 0],
[ 0, 0,209, 0, 0,140,211,140, 0, 0,209, 0, 0],
[ 0,209,210,209, 0,140, 85,140, 0,209,210,209, 0],
[ 0, 0,209, 0, 0, 0, 0, 0, 0, 0,209, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[140,140,140,140,140,140, 83,140,140,140,140,140,140],
[ 28, 31, 21, 0,210, 0, 0, 0, 0, 0, 0, 0, 94],
[140,140,140,140,140,140,140,140,140, 81,140,217,140],
[ 21, 28,140,201, 81,209, 0,140, 0,217,140, 21,201],
[ 27, 21, 82,205,140, 0, 0,205, 0, 0,140,140, 81],
[140,140,140,140,140, 0,140,140,140,140,140,209, 0],
[ 21, 23,221, 0,140,217,140, 0,210, 22,140, 0,205],
[ 21, 34,140,221, 81, 0, 81,209,140, 31,140,122, 31]
],
"bgmap": [
[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],
[141,141,141,141,141, 0,141, 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],
[ 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],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0,141, 0,141, 0],
[141,141, 0,141,141,141,141, 0,141,141, 0,141,141],
[141,141,141,141, 0,141,141,141,141,141, 0, 0,141],
[ 0, 0, 0, 0, 0,141, 0, 0, 0, 0, 0,141,141],
[141,141,141,141, 0,141, 0,141,141,141, 0,141,141],
[141,141, 0,141,141,141,141,141, 0,141, 0,141,141]
],
"fgmap": [
]
}