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

364 lines
14 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

main.floors.MT45=
{
"floorId": "MT45",
"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,1012, 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": "maps.mp3",
"firstArrive": null,
"eachArrive": [],
"parallelDo": "",
"events": {
"9,3": [
{
"type": "if",
"condition": "switch:A",
"true": [
"\t[商人,woman]神圣盾可以让你抵挡魔法攻击。但它不在这里",
{
"type": "if",
"condition": "core.hasItem(\"MagicTome\")",
"true": [
"\t[商人,woman]但你已经有替代品了"
]
},
{
"type": "hide",
"remove": true,
"time": 200
}
],
"false": [
{
"type": "choices",
"text": "\t[商人,woman]给我1000G我就恢复你${core.hasItem(\"Backpack\") ?4000:2000}生命",
"choices": [
{
"text": "是",
"action": [
{
"type": "if",
"condition": "(status:money>=1000)",
"true": [
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "1000"
},
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "2000"
},
{
"type": "playSound",
"name": "确定"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "2000"
}
]
},
{
"type": "setValue",
"name": "switch:A",
"value": "true"
},
"\t[商人,woman]感谢惠顾。"
],
"false": [
{
"type": "playSound",
"name": "操作失败"
},
"\t[商人,woman]你的金币不足!"
]
}
]
},
{
"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": "playSound",
"name": "确定"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "status:hp",
"operator": "+=",
"value": "2000"
}
]
},
{
"type": "setValue",
"name": "switch:B",
"value": "true"
}
]
},
{
"text": "否",
"action": []
}
]
}
]
}
],
"9,6": [
{
"type": "text",
"text": "\t[娜蒂斯]\f[Nardis_Full.png,0,190,200,250]慢着。你是从43层直接上来的吧。",
"pos": [
96,
80,
270
]
},
"\t[勇者,hero]对啊。不然呢?",
{
"type": "text",
"text": "\t[娜蒂斯]\f[Nardis_Full.png,0,190,200,250]那我问你,现在这里是多少层?",
"pos": [
96,
80,
270
]
},
"\t[勇者,hero]44层不对吗",
{
"type": "text",
"text": "\t[娜蒂斯]\f[Nardis_Full.png,0,190,200,250]……",
"pos": [
96,
80
]
},
{
"type": "text",
"text": "\t[娜蒂斯]\f[Nardis_Full.png,0,190,200,250]去看一眼楼层传送器吧,唉。",
"pos": [
96,
80,
270
]
},
{
"type": "text",
"text": "\t[娜蒂斯]\f[Nardis_Full.png,0,190,200,250]如果这里真的是44层那么你应该也不在这座塔里了。因为那里是异空间。",
"pos": [
96,
60
]
},
{
"type": "text",
"text": "\t[娜蒂斯]\f[Nardis_Full.png,0,190,200,250]传闻那里藏着许多宝物,不过也没人去过,所以消息的真假还未可知。",
"pos": [
96,
60
]
},
{
"type": "text",
"text": "\t[娜蒂斯]\f[Nardis_Full.png,0,190,200,250]那里应该只有使用移动宝物才能抵达,想去的话,就凭本事从那个房间里把宝物拿出来吧。",
"pos": [
96,
60,
270
]
},
{
"type": "hide",
"remove": true
}
]
},
"changeFloor": {
"1,1": {
"floorId": "MT43",
"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": []
}