238 lines
7.6 KiB
JavaScript
238 lines
7.6 KiB
JavaScript
main.floors.MAL2=
|
|
{
|
|
"floorId": "MAL2",
|
|
"title": "魔法学院:2F",
|
|
"name": "主楼 2F",
|
|
"width": 13,
|
|
"height": 13,
|
|
"map": [
|
|
[148,148,148,148,148,148,148,148,148,148,148,148,148],
|
|
[148, 88, 0, 82, 0, 0, 0, 0, 0, 0, 0, 0,148],
|
|
[148, 0, 0,148,148, 0,222, 0,222, 0,148,148,148],
|
|
[148, 0,148,148,148,148,148, 0,148,148,148,148,148],
|
|
[148, 0,148, 21, 0,148, 0, 0, 0,148, 0, 0,148],
|
|
[148, 0,148, 21, 0, 85, 0, 0, 0, 85, 0,121,148],
|
|
[148, 0,148, 21, 0,148, 0, 0, 0,148, 0, 0,148],
|
|
[148, 0,148,148,148,148, 0, 0, 0,148,148,148,148],
|
|
[148, 0,148,148,148,148, 0, 0, 0,148,148,148,148],
|
|
[148, 0,148, 32, 0,148, 0, 0, 0,148, 0, 0,148],
|
|
[148, 0,148, 32, 0, 85, 0, 0, 0, 85, 0,122,148],
|
|
[148, 87,148, 32, 0,148, 0, 0, 0,148, 0, 0,148],
|
|
[148,148,148,148,148,148,148,148,148,148,148,148,148]
|
|
],
|
|
"canFlyTo": true,
|
|
"canFlyFrom": true,
|
|
"canUseQuickShop": true,
|
|
"images": [],
|
|
"ratio": 1,
|
|
"defaultGround": "magicground",
|
|
"bgm": "maps4L.mp3",
|
|
"firstArrive": null,
|
|
"eachArrive": [],
|
|
"parallelDo": "",
|
|
"events": {
|
|
"11,10": [
|
|
{
|
|
"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,5": [
|
|
"\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": [
|
|
9,
|
|
5
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
5,
|
|
10
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
9,
|
|
10
|
|
],
|
|
"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": [
|
|
9,
|
|
5
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
5,
|
|
10
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
9,
|
|
10
|
|
],
|
|
"async": true
|
|
},
|
|
{
|
|
"type": "waitAsync"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"afterGetItem": {},
|
|
"afterOpenDoor": {},
|
|
"cannotMove": {},
|
|
"bgmap": [
|
|
|
|
],
|
|
"fgmap": [
|
|
|
|
],
|
|
"upFloor": [
|
|
1,
|
|
10
|
|
],
|
|
"downFloor": [
|
|
1,
|
|
2
|
|
],
|
|
"autoEvent": {
|
|
"5,5": {
|
|
"0": null,
|
|
"1": null
|
|
}
|
|
},
|
|
"beforeBattle": {},
|
|
"cannotMoveIn": {},
|
|
"bg2map": [],
|
|
"fg2map": []
|
|
} |