244 lines
8.9 KiB
JavaScript
244 lines
8.9 KiB
JavaScript
main.floors.SC39_2=
|
|
{
|
|
"floorId": "SC39_2",
|
|
"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,213,330],
|
|
[330, 0, 81, 0, 81, 0, 81, 0, 1,203, 1,401,330],
|
|
[330, 0, 0, 0, 0, 0, 0,215, 1, 0, 0,206,330],
|
|
[330, 1, 82, 1, 1, 1, 1, 0, 55, 1, 81, 1,330],
|
|
[330, 0, 0,206, 1,218,411,215, 1, 0,214, 0,330],
|
|
[330, 1,206, 0, 81, 0, 1, 0, 81, 0, 0, 0,330],
|
|
[330, 0, 0, 21, 1, 0,203, 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": "maps2.mp3",
|
|
"firstArrive": null,
|
|
"eachArrive": [],
|
|
"parallelDo": "",
|
|
"events": {
|
|
"9,2": [
|
|
{
|
|
"type": "choices",
|
|
"text": "\t[商人,woman]我1000星币卖${core.hasItem(\"Backpack\") ?6:3}把蓝钥匙,你买吗?",
|
|
"choices": [
|
|
{
|
|
"text": "我太需要了",
|
|
"need": "status:money>=1000",
|
|
"action": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "status:money",
|
|
"operator": "-=",
|
|
"value": "1000"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:blueKey",
|
|
"operator": "+=",
|
|
"value": "3"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "core.hasItem(\"Backpack\")",
|
|
"true": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:blueKey",
|
|
"operator": "+=",
|
|
"value": "3"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hide",
|
|
"remove": 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": []
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"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": []
|
|
} |