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

254 lines
9.0 KiB
JavaScript

main.floors.SC45_5=
{
"floorId": "SC45_5",
"title": "御魂庆典:45F",
"name": "第 45 层",
"width": 13,
"height": 13,
"map": [
[330,330,330,330,330,330,330,330,330,330,330,330,330],
[330, 88, 0, 0, 0, 0, 0, 0, 0, 0, 0, 87,330],
[330, 1, 1, 1, 1, 1, 81, 1, 1, 1, 1, 1,330],
[330,404,404, 0, 1,219, 0,220, 1,122, 0, 0,330],
[330, 82, 1,228, 1, 0, 0, 0, 1, 0, 0,204,330],
[330,414,414, 0, 1,220, 0,219, 1, 1, 1, 81,330],
[330, 82, 1,228, 1, 1, 81, 1, 1, 0, 1, 0,330],
[330, 0, 0, 0, 81, 0, 0,207, 0, 0, 0, 21,330],
[330, 1, 83, 1, 1, 1, 1, 1, 1, 1,220, 0,330],
[330, 0, 0, 0, 1,228, 0, 1,246, 1, 1, 81,330],
[330, 0, 51, 0, 85, 0, 0, 85, 0, 81, 0, 0,330],
[330, 0, 0, 0, 1,228, 0, 1,246, 1, 0, 32,330],
[330,330,330,330,330,330,330,330,330,330,330,330,330]
],
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"images": [],
"ratio": 5,
"defaultGround": "ground",
"bgm": "maps2.mp3",
"firstArrive": null,
"eachArrive": [],
"parallelDo": "",
"events": {
"9,3": [
{
"type": "choices",
"text": "\t[商人,woman]给我1000G我就恢复你${core.hasItem(\"Backpack\") ?4000:2000}生命",
"choices": [
{
"text": "我太需要了",
"need": "status:money>=1000",
"action": [
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "1000"
},
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "2000"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "2000"
}
]
},
{
"type": "hide",
"remove": true,
"time": 200
}
]
},
{
"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": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "2000"
}
]
},
{
"type": "setValue",
"name": "switch:B",
"value": "true"
}
]
},
{
"text": "取消",
"action": []
}
]
}
]
},
"changeFloor": {
"1,1": {
"floorId": "SC43_5",
"stair": "upFloor"
},
"11,1": {
"floorId": ":next",
"stair": "downFloor"
}
},
"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": [
[ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17],
[ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17],
[ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17],
[ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17],
[ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17],
[ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17],
[ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17],
[ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17],
[ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17],
[ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17],
[ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17],
[ 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17],
[ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17]
],
"upFloor": [
10,
1
],
"downFloor": [
2,
1
],
"autoEvent": {},
"beforeBattle": {},
"cannotMoveIn": {},
"bg2map": [],
"fg2map": []
}