189 lines
7.6 KiB
JavaScript
189 lines
7.6 KiB
JavaScript
main.floors.SX4_5=
|
|
{
|
|
"floorId": "SX4_5",
|
|
"title": "水乡古镇:4-5",
|
|
"name": "4-5",
|
|
"width": 13,
|
|
"height": 13,
|
|
"canFlyTo": true,
|
|
"canFlyFrom": true,
|
|
"canUseQuickShop": true,
|
|
"images": [],
|
|
"ratio": 1,
|
|
"defaultGround": "ground7",
|
|
"bgm": "maps3.mp3",
|
|
"firstArrive": [],
|
|
"eachArrive": [],
|
|
"parallelDo": "",
|
|
"events": {
|
|
"0,10": [
|
|
{
|
|
"type": "if",
|
|
"condition": "switch:A",
|
|
"true": [
|
|
"\t[商人,woman]神圣盾可以让你抵挡魔法攻击。但它不在这里",
|
|
{
|
|
"type": "if",
|
|
"condition": "core.hasItem(\"MagicTome\")",
|
|
"true": [
|
|
"\t[商人,woman]但你已经有替代品了"
|
|
]
|
|
},
|
|
{
|
|
"type": "hide",
|
|
"remove": true,
|
|
"time": 200
|
|
}
|
|
],
|
|
"false": [
|
|
{
|
|
"type": "choices",
|
|
"text": "\t[商人,woman]给我1000G我就恢复你${core.hasItem(\"Backpack\") ?4000:2000}生命",
|
|
"choices": [
|
|
{
|
|
"text": "是",
|
|
"need": "status:money>=1000",
|
|
"action": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "status:money",
|
|
"operator": "-=",
|
|
"value": "1000"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "status:hp",
|
|
"operator": "+=",
|
|
"value": "2000"
|
|
},
|
|
{
|
|
"type": "playSound",
|
|
"name": "确定"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "core.hasItem(\"Backpack\")",
|
|
"true": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "status:hp",
|
|
"operator": "+=",
|
|
"value": "2000"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "switch:A",
|
|
"value": "true"
|
|
},
|
|
"\t[商人,woman]感谢惠顾。"
|
|
]
|
|
},
|
|
{
|
|
"text": "使用4星光支付",
|
|
"need": "flags.star.level>3",
|
|
"condition": "item:FriendshipBadge&&!switch:B",
|
|
"action": [
|
|
{
|
|
"type": "function",
|
|
"function": "function(){\nflags.star.level-=4\n}"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "status:hp",
|
|
"operator": "+=",
|
|
"value": "2000"
|
|
},
|
|
{
|
|
"type": "playSound",
|
|
"name": "确定"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "core.hasItem(\"Backpack\")",
|
|
"true": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "status:hp",
|
|
"operator": "+=",
|
|
"value": "2000"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "switch:B",
|
|
"value": "true"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "否",
|
|
"action": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"changeFloor": {
|
|
"12,12": {
|
|
"floorId": "SX3_5",
|
|
"loc": [
|
|
12,
|
|
1
|
|
],
|
|
"direction": "down"
|
|
},
|
|
"0,0": {
|
|
"floorId": "SX4_4",
|
|
"loc": [
|
|
11,
|
|
0
|
|
],
|
|
"direction": "left"
|
|
}
|
|
},
|
|
"beforeBattle": {},
|
|
"afterBattle": {},
|
|
"afterGetItem": {},
|
|
"afterOpenDoor": {},
|
|
"autoEvent": {},
|
|
"cannotMove": {},
|
|
"cannotMoveIn": {},
|
|
"map": [
|
|
[ 92, 0, 0, 0, 0,229, 0, 0, 0, 0, 0,140, 32],
|
|
[140, 81,140,140,140,140, 81,140,140,140, 81,140, 32],
|
|
[ 0,204, 81, 0, 21,140,207, 0,140, 0,404,140, 0],
|
|
[ 0, 0,140,220, 0,140, 0,219,140,219, 0,140,228],
|
|
[414, 21,140, 0,204, 81, 21, 0,140, 0, 31, 81, 0],
|
|
[140,140,140,140,140,140,140,140,140,140,140,140, 0],
|
|
[ 0,404, 82, 0,414, 82, 0,140, 32, 32, 32,140, 0],
|
|
[ 0,140,140, 0,140,140, 0,140,140,228,140,140, 0],
|
|
[ 0,404,228, 0,414,228, 0,140,246, 0,246,140, 0],
|
|
[140,140,140,140,140,140, 81,140,140, 81,140,140, 0],
|
|
[122, 0,140, 21, 0,140, 0,140,220, 0,219,140, 0],
|
|
[ 0, 0,140, 0,220,140, 0, 81, 0, 0, 0, 81, 0],
|
|
[ 0,204, 81, 0, 0, 81,207,140,219, 0,220,140, 93]
|
|
],
|
|
"bgmap": [
|
|
[141,141,141,141,141,141,141,141,141,141,141, 0,141],
|
|
[ 0,141, 0, 0, 0, 0,141, 0, 0, 0,141, 0,141],
|
|
[141,141,141,141,141, 0,141,141, 0,141,141, 0,141],
|
|
[141,141, 0,141,141, 0,141,141, 0,141,141, 0,141],
|
|
[141,141, 0,141,141,141,141,141, 0,141,141,141,141],
|
|
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,141],
|
|
[141,141,141,141,141,141,141, 0,141,141,141, 0,141],
|
|
[141, 0, 0,141, 0, 0,141, 0, 0,141, 0, 0,141],
|
|
[141,141,141,141,141,141,141, 0,141,141,141, 0,141],
|
|
[ 0, 0, 0, 0, 0, 0,141, 0, 0,141, 0, 0,141],
|
|
[141,141, 0,141,141, 0,141, 0,141,141,141, 0,141],
|
|
[141,141, 0,141,141, 0,141,141,141,141,141,141,141],
|
|
[141,141,141,141,141,141,141, 0,141,141,141, 0,141]
|
|
],
|
|
"fgmap": [
|
|
|
|
]
|
|
} |