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

248 lines
9.6 KiB
JavaScript

main.floors.SX2_3=
{
"floorId": "SX2_3",
"title": "水乡古镇:2-3",
"name": "2-3",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"images": [],
"ratio": 1,
"defaultGround": "ground7",
"bgm": "maps3.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {
"0,6": [
{
"type": "if",
"condition": "switch:A",
"true": [
{
"type": "if",
"condition": "(flags.MapStatus?.Hard===\"普通\")",
"true": [
"\t[商人,woman]如果要打败魔龙你需要屠龙匕或战斗筹码"
],
"false": [
"\t[商人,woman]如果要打败魔龙你需要战斗筹码替代消失的屠龙匕"
]
},
{
"type": "hide",
"remove": true
}
],
"false": [
{
"type": "choices",
"text": "\t[商人,woman]给我${core.hasItem(\"Backpack\") ?2000:4000}星币我就能帮你打开后面的宝库大门",
"choices": [
{
"text": "我太需要了",
"need": "status:money>=(core.hasItem(\"Backpack\") ?2000:4000)",
"action": [
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "2000"
}
],
"false": [
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "4000"
}
]
},
{
"type": "openDoor",
"loc": [
2,
9
]
},
{
"type": "openDoor",
"loc": [
10,
9
]
},
{
"type": "setValue",
"name": "switch:A",
"value": "true"
}
]
},
{
"text": "使用${core.hasItem(\"Backpack\") ?8:16}星光支付",
"need": "flags.star.level>(core.hasItem(\"Backpack\") ?7:15)",
"condition": "item:FriendshipBadge&&!switch:B",
"action": [
{
"type": "function",
"function": "function(){\nif (core.hasItem(\"Backpack\")) flags.star.level -= 8\nelse flags.star.level -= 16\n}"
},
{
"type": "openDoor",
"loc": [
2,
9
]
},
{
"type": "openDoor",
"loc": [
10,
9
]
},
{
"type": "setValue",
"name": "switch:A",
"value": "true"
}
]
},
{
"text": "离开",
"action": []
}
]
}
]
}
],
"12,6": [
"\t[米米,Mimi]喜欢这款游戏的话也可以关注下原作《星引擎Party》",
{
"type": "confirm",
"text": "是否前往《星引擎Party》页面",
"yes": [
{
"type": "function",
"function": "function(){\nopen(\"https://store.steampowered.com/app/2622000/_Party/\")\n}"
}
],
"no": []
}
]
},
"changeFloor": {
"6,12": {
"floorId": "SX1_3",
"loc": [
6,
1
],
"direction": "down"
},
"0,8": {
"floorId": "SX2_2",
"loc": [
11,
8
],
"direction": "left"
},
"12,8": {
"floorId": "SX2_4",
"loc": [
1,
8
],
"direction": "right"
}
},
"beforeBattle": {},
"afterBattle": {
"5,4": [
{
"type": "function",
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[5, 4],\n\t[7, 4],\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,
3
]
}
]
}
],
"7,4": [
{
"type": "function",
"function": "function(){\nlet bool = true;\nlet loc_arr = [\n\t[5, 4],\n\t[7, 4],\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,
3
]
}
]
}
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[140,140, 63,140,140,140, 31,140,140,140, 63,140,140],
[140,181,182,183,140, 31, 63, 31,140,189,190,191,140],
[140,184,185,186,140,140, 31,140,140,192,193,194,140],
[140,187,258,188,140,140, 85,140,140,195,257,196,140],
[140,140, 0,140,140,223, 0,223,140,140, 0,140,140],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[122, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,396],
[140,140,140,140,140,140, 0,140,140,140,140,140,140],
[ 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94],
[140,140, 85,140,140,140, 0,140,140,140, 85,140,140],
[ 21, 31, 21, 31, 21,140, 0,140,402, 31,402, 31,412],
[ 21, 22, 23, 22, 21,140, 0,140, 31,402, 49,412, 31],
[ 21, 32, 21, 32, 21,140, 93,140,402, 31,412, 31,412]
],
"bgmap": [
[ 0, 0,141, 0, 0, 0,141, 0, 0, 0,141, 0, 0],
[ 0,141,141,141, 0,141,141,141, 0,141,141,141, 0],
[ 0,141,141,141, 0, 0,141, 0, 0,141,141,141, 0],
[ 0,141,141,141, 0, 0,141, 0, 0,141,141,141, 0],
[ 0, 0,141, 0, 0,141,141,141, 0, 0,141, 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],
[ 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,141, 0, 0, 0,141, 0, 0, 0,141, 0, 0],
[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]
],
"fgmap": [
]
}