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

261 lines
9.7 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.MAL39=
{
"floorId": "MAL39",
"title": "魔法学院:39F",
"name": "主楼 39F",
"width": 13,
"height": 13,
"map": [
[148,148,148,148,148,148,148,148,148,148,148,148,148],
[148, 0, 0, 0, 0, 0, 0, 0,148, 0, 0, 88,148],
[148, 0, 81, 0, 81, 0, 81, 0,148,122, 0, 0,148],
[148, 0, 0, 0, 0, 0, 0, 0,148, 0, 0, 21,148],
[148, 0, 81, 0, 81, 0, 81, 0,148,148, 81,148,148],
[148, 0, 0, 0, 0, 0, 0, 0,148, 0, 0,225,148],
[148, 0, 81, 0, 81, 0, 81, 0,148,216,148,402,148],
[148, 0, 0, 0, 0, 0, 0, 0,148, 0, 0,212,148],
[148,148, 82,148,148,148,148,148,148,148, 81,148,148],
[148, 0, 0,212,148,224,412,227,148, 0,227, 0,148],
[148,148,212, 0, 81, 0,148, 0, 81, 0, 0, 0,148],
[148,121, 0, 21,148, 0,216, 0,148, 31, 0, 87,148],
[148,148,148,148,148,148,148,148,148,148,148,148,148]
],
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"images": [],
"ratio": 4,
"defaultGround": "magicground",
"bgm": "maps4L.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": [
"\t[老登,man]在3点钟方向可以空间传送的秘宝将会出现。",
{
"type": "if",
"condition": "(status:name===\"茉莉\")",
"true": [
"\t[老登,man]但你需要这个??你不是可以直接飞过去吗"
]
},
{
"type": "hide",
"remove": true,
"time": 200
}
],
"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": [
],
"upFloor": [
11,
10
],
"downFloor": [
11,
2
],
"autoEvent": {},
"beforeBattle": {},
"cannotMoveIn": {},
"bg2map": [],
"fg2map": []
}