285 lines
9.5 KiB
JavaScript
285 lines
9.5 KiB
JavaScript
main.floors.SC2_4=
|
|
{
|
|
"floorId": "SC2_4",
|
|
"title": "御魂庆典:2F",
|
|
"name": "第 2 层",
|
|
"width": 13,
|
|
"height": 13,
|
|
"map": [
|
|
[330,330,330,330,330,330,330,330,330,330,330,330,330],
|
|
[330, 88, 0, 82, 0, 0, 0, 0, 0, 0, 0, 0,330],
|
|
[330, 0, 0, 1, 1, 0,222, 0,222, 0, 1, 1,330],
|
|
[330, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1,330],
|
|
[330, 0, 1, 21, 21, 1, 0, 0, 0, 1, 0,121,330],
|
|
[330, 0, 1, 21, 0, 86, 0, 0, 0, 86, 0, 0,330],
|
|
[330, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1,330],
|
|
[330, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0,122,330],
|
|
[330, 0, 1, 0, 0, 86, 0, 0, 0, 86, 0, 0,330],
|
|
[330, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1,330],
|
|
[330, 0, 1, 32, 32, 1, 0, 0, 0, 1, 0, 0,330],
|
|
[330, 87, 1, 32, 0, 86, 0, 0, 0, 86, 0, 0,330],
|
|
[330,330,330,330,330,330,330,330,330,330,330,330,330]
|
|
],
|
|
"canFlyTo": true,
|
|
"canFlyFrom": true,
|
|
"canUseQuickShop": true,
|
|
"images": [],
|
|
"ratio": 1,
|
|
"defaultGround": "ground",
|
|
"bgm": "maps2.mp3",
|
|
"firstArrive": null,
|
|
"eachArrive": [],
|
|
"parallelDo": "",
|
|
"events": {
|
|
"11,7": [
|
|
{
|
|
"type": "choices",
|
|
"text": "\t[商人,woman]谢谢你的帮助!我能为你增加${core.hasItem(\"Backpack\") ?6:3}%攻击和防御。",
|
|
"choices": [
|
|
{
|
|
"text": "现在提升",
|
|
"action": [
|
|
{
|
|
"type": "playSound",
|
|
"name": "item.mp3"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "status:atk",
|
|
"operator": "+=",
|
|
"value": "(Math.round((status:atk*0.03)))"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "status:def",
|
|
"operator": "+=",
|
|
"value": "(Math.round((status:def*0.03)))"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "core.hasItem(\"Backpack\")",
|
|
"true": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "status:atk",
|
|
"operator": "+=",
|
|
"value": "(Math.round((status:atk*0.03)))"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "status:def",
|
|
"operator": "+=",
|
|
"value": "(Math.round((status:def*0.03)))"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hide",
|
|
"remove": true,
|
|
"time": 200
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "等会再说",
|
|
"action": []
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"11,4": [
|
|
{
|
|
"type": "comment",
|
|
"text": "\\d\\c[24]\\i[I361]\\i[A367]\\c\r[rgb(224,210,69)](+1000G)"
|
|
},
|
|
"\t[老登,man]谢谢你救了我,为了感谢你的帮助请收下这些礼物。",
|
|
{
|
|
"type": "setValue",
|
|
"name": "status:money",
|
|
"operator": "+=",
|
|
"value": "1000"
|
|
},
|
|
{
|
|
"type": "hide",
|
|
"remove": true,
|
|
"time": 200
|
|
}
|
|
]
|
|
},
|
|
"changeFloor": {
|
|
"1,11": {
|
|
"floorId": ":next",
|
|
"stair": "downFloor"
|
|
},
|
|
"1,1": {
|
|
"floorId": ":before",
|
|
"stair": "upFloor"
|
|
}
|
|
},
|
|
"afterBattle": {
|
|
"6,2": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[6, 2],\n\t[8, 2],\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": [
|
|
5,
|
|
5
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
5,
|
|
8
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
5,
|
|
11
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
9,
|
|
5
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
9,
|
|
8
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
9,
|
|
11
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "waitAsync"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"8,2": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nvar bool = true;\nvar loc_arr = [\n\t[6, 2],\n\t[8, 2],\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": [
|
|
5,
|
|
5
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
5,
|
|
8
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
5,
|
|
11
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
9,
|
|
5
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
9,
|
|
8
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
9,
|
|
11
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "waitAsync"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"afterGetItem": {},
|
|
"afterOpenDoor": {},
|
|
"cannotMove": {},
|
|
"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]
|
|
],
|
|
"fgmap": [
|
|
|
|
],
|
|
"upFloor": [
|
|
1,
|
|
10
|
|
],
|
|
"downFloor": [
|
|
1,
|
|
2
|
|
],
|
|
"autoEvent": {
|
|
"5,5": {
|
|
"1": null
|
|
}
|
|
},
|
|
"beforeBattle": {},
|
|
"cannotMoveIn": {},
|
|
"bg2map": [],
|
|
"fg2map": []
|
|
} |