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

401 lines
17 KiB
JavaScript
Raw 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.MT39=
{
"floorId": "MT39",
"title": "星趴·梦想号:39F",
"name": "第 39 层",
"width": 13,
"height": 13,
"map": [
[330,330,330,330,330,330,330,330,330,330,330,330,330],
[330, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 88,330],
[330, 0, 81, 0, 81, 0, 81, 0, 1,122, 0, 0,330],
[330, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 21,330],
[330, 0, 81, 0, 81, 0, 81, 0, 1, 1, 81, 1,330],
[330, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,225,330],
[330, 0, 81, 0, 81, 0, 81, 0, 1,216, 1,402,330],
[330, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,212,330],
[330, 1, 82, 1, 1, 1, 1, 1, 1, 1, 81, 1,330],
[330, 0, 0,212, 1,224,412,227, 1, 0,227, 0,330],
[330, 1,212, 0, 81, 0, 1, 0, 81, 0, 0, 0,330],
[330,1010, 0, 21, 1, 0,216, 0, 1, 31, 0, 87,330],
[330,330,330,330,330,330,330,330,330,330,330,330,330]
],
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"images": [],
"ratio": 4,
"defaultGround": "ground",
"bgm": "maps.mp3",
"firstArrive": null,
"eachArrive": [],
"parallelDo": "",
"events": {
"9,2": [
{
"type": "if",
"condition": "switch:A",
"true": [
"\t[商人,woman]感谢老板,老板大气",
{
"type": "hide",
"remove": true
}
],
"false": [
{
"type": "choices",
"text": "\t[商人,woman]我2000金币卖${core.hasItem(\"Backpack\") ?6:3}把蓝钥匙,你买吗?",
"choices": [
{
"text": "我太需要了",
"need": "status:money>=2000",
"action": [
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "2000"
},
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "3"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "3"
}
]
},
{
"type": "setValue",
"name": "switch:A",
"value": "true"
}
]
},
{
"text": "使用5星光支付",
"need": "flags.star.level>4",
"condition": "item:FriendshipBadge&&!switch:B",
"action": [
{
"type": "function",
"function": "function(){\nflags.star.level-=5\n}"
},
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "3"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "3"
}
]
},
{
"type": "setValue",
"name": "switch:B",
"value": "true"
}
]
},
{
"text": "离开",
"action": []
}
]
}
]
}
],
"1,11": [
{
"type": "text",
"text": "\t[姬梦枫]\f[Feng_Full.png,0,190,200,250]很可惜,这个地方已经被我们“凰天会”事先占领啦~",
"pos": [
96,
100,
250
]
},
{
"type": "text",
"text": "\t[姬梦枫]\f[Feng_Full.png,0,190,200,250]就算你贸然闯进去,也很难拿到这里的宝物的……毕竟这可是可以“空间传送”的秘宝呀~",
"pos": [
96,
80,
250
]
},
{
"type": "if",
"condition": "(!switch:A)",
"true": [
{
"type": "text",
"text": "\t[姬梦枫]\f[Feng_Full.png,0,190,200,250]不过我看你身手也不错……就卖你个人情吧!毕竟我们“凰天会”对于心善的勇士还是很大度的~",
"pos": [
96,
80,
280
]
},
{
"type": "text",
"text": "\t[姬梦枫]\f[Feng_Full.png,0,190,200,250]你也想塔里的躁动能赶快平息嘛,对不?",
"pos": [
96,
100,
270
]
},
{
"type": "setValue",
"name": "switch:A",
"value": "true"
},
{
"type": "trigger"
}
],
"false": [
{
"type": "choices",
"text": "\t[勇士,hero]要说什么?",
"choices": [
{
"text": "如果能赶快平息就好了!",
"action": [
{
"type": "text",
"text": "\t[姬梦枫]\f[Feng_Full.png,0,190,200,250]就等你这句话了!我看人的眼光不会错的~",
"pos": [
96,
100
]
},
{
"type": "text",
"text": "\t[姬梦枫]\f[Feng_Full.png,0,190,200,250]“秘宝只在3点钟方向出现”这种秘密你在整个联合城打听也不可能打听到的~",
"pos": [
96,
80
]
},
{
"type": "text",
"text": "\t[姬梦枫]\f[Feng_Full.png,0,190,200,250]所以拿到以后,也记得低调使用哈。成交不?",
"pos": [
96,
100
]
},
{
"type": "hide",
"remove": true,
"time": 200
}
]
},
{
"text": "平息了对我有啥好处?",
"action": [
{
"type": "text",
"text": "\t[姬梦枫]\f[Feng_Full.png,0,190,200,250]嘛,最直观的话,就是大家的生活都能好一点~",
"pos": [
96,
100
]
},
{
"type": "text",
"text": "\t[姬梦枫]\f[Feng_Full.png,0,190,200,250]不用再整天担忧着怪物生活,不是也挺好的?",
"pos": [
96,
100
]
},
{
"type": "trigger"
}
]
},
{
"text": "帮了你我能有啥好处?",
"action": [
{
"type": "text",
"text": "\t[姬梦枫]\f[Feng_Full.png,0,190,200,250]你到时候自然就知道了~我肯定不会骗你就是了!",
"pos": [
96,
100
]
},
{
"type": "text",
"text": "\t[姬梦枫]\f[Feng_Full.png,0,190,200,250]不然“凰天会”的名声不就全臭了嘛~",
"pos": [
96,
100,
270
]
},
{
"type": "trigger"
}
]
}
]
}
]
}
],
"4,4": {
"trigger": "action",
"enable": true,
"noPass": null,
"displayDamage": true,
"opacity": 1,
"filter": {
"blur": 0,
"hue": 0,
"grayscale": 0,
"invert": false,
"shadow": 0
},
"data": [
{
"type": "if",
"condition": "(blockId:4,4==='centerFly')",
"true": [
{
"type": "addValue",
"name": "item:centerFly",
"value": "3"
},
{
"type": "hide",
"time": 0
}
],
"false": [
{
"type": "openDoor",
"needKey": true
}
]
}
]
}
},
"changeFloor": {
"11,1": {
"floorId": ":before",
"stair": "upFloor"
},
"11,11": {
"floorId": ":next",
"stair": "downFloor"
}
},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {
"4,2": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[4, 2],\n\t[6, 4],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockId(loc[0], loc[1]) == \"yellowDoor\") {\n\t\tbool = false;\n\t}\n});\nvar loc_arr = [\n\t[2, 2],\n\t[2, 4],\n\t[2, 6],\n\t[4, 4],\n\t[4, 6],\n\t[6, 2],\n\t[6, 6],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockId(loc[0], loc[1]) != \"yellowDoor\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}"
},
{
"type": "if",
"condition": "flag:open_yes",
"true": [
{
"type": "setBlock",
"number": "centerFly",
"loc": [
[
4,
4
]
],
"time": 500
}
]
}
],
"6,4": [
{
"type": "function",
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[4, 2],\n\t[6, 4],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockId(loc[0], loc[1]) == \"yellowDoor\") {\n\t\tbool = false;\n\t}\n});\nvar loc_arr = [\n\t[2, 2],\n\t[2, 4],\n\t[2, 6],\n\t[4, 4],\n\t[4, 6],\n\t[6, 2],\n\t[6, 6],\n]\nloc_arr.forEach(loc => {\n\tif (core.getBlockId(loc[0], loc[1]) != \"yellowDoor\") {\n\t\tbool = false;\n\t}\n});\ncore.setFlag(\"open_yes\", bool)\n}"
},
{
"type": "if",
"condition": "flag:open_yes",
"true": [
{
"type": "setBlock",
"number": "centerFly",
"loc": [
[
4,
4
]
],
"time": 500
}
]
}
]
},
"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": [
11,
10
],
"downFloor": [
11,
2
],
"autoEvent": {},
"beforeBattle": {},
"cannotMoveIn": {},
"bg2map": [],
"fg2map": []
}