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

350 lines
15 KiB
JavaScript

main.floors.SX3_2=
{
"floorId": "SX3_2",
"title": "水乡古镇:3-2",
"name": "3-2",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"images": [],
"ratio": 1,
"defaultGround": "ground7",
"bgm": "maps3.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {
"2,10": [
{
"type": "if",
"condition": "switch:A",
"true": [
"\t[商人,woman]似曾相识 对吗?",
{
"type": "hide",
"remove": true
}
],
"false": [
{
"type": "choices",
"text": "\t[商人,woman]一把黄钥匙换${core.hasItem(\"Backpack\") ?\"两\":\"一\"}把蓝钥匙,换吗?",
"choices": [
{
"text": "我太需要了",
"need": "item:yellowKey>0",
"action": [
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "-=",
"value": "1"
},
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "1"
}
]
},
{
"type": "setValue",
"name": "switch:A",
"value": "true"
}
]
},
{
"text": "离开",
"action": []
}
]
}
]
}
],
"10,10": [
{
"type": "if",
"condition": "switch:A",
"true": [
{
"type": "if",
"condition": "((flags.MapStatus?.Hard===\"噩梦\")||(flags.MapStatus?.Hard===\"疯狂\"))",
"true": [
"\t[商人,woman]如果你不幸遇到了一个带坚固的双手剑士而你又没有能获得额外攻击的手段……"
],
"false": [
"\t[商人,woman]双手剑士的攻击力高得离谱,和他对战会受到大量伤害。在能对他一击必杀之前,最好避免和他交战。"
]
},
{
"type": "hide",
"remove": true
}
],
"false": [
{
"type": "choices",
"text": "\t[商人,woman]一把黄钥匙换${core.hasItem(\"Backpack\") ?\"两\":\"一\"}个蓝血瓶,换吗?",
"choices": [
{
"text": "我太需要了",
"need": "item:yellowKey>0",
"action": [
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "-=",
"value": "1"
},
{
"type": "setValue",
"name": "item:bluePotion",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:bluePotion",
"operator": "+=",
"value": "1"
}
]
},
{
"type": "setValue",
"name": "switch:A",
"value": "true"
}
]
},
{
"text": "离开",
"action": []
}
]
}
]
}
],
"2,6": [
{
"type": "if",
"condition": "switch:A",
"true": [
{
"type": "if",
"condition": "core.hasItem(\"BankcardU2\")",
"true": [
"\t[商人,woman]某处有一个幸运金币 拥有它在打败敌人后能获得4倍的金币"
],
"false": [
"\t[商人,woman]某处有一个幸运金币 拥有它在打败敌人后能获得2倍的金币"
]
},
{
"type": "hide",
"remove": true
}
],
"false": [
{
"type": "choices",
"text": "\t[商人,women]我1000星币卖${core.hasItem(\"Backpack\") ?2:1}把蓝钥匙和${core.hasItem(\"Backpack\") ?8:4}把黄钥匙,你买吗?",
"choices": [
{
"text": "我太需要了",
"need": "status:money>=1000",
"action": [
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "1000"
},
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "1"
},
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "+=",
"value": "4"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "1"
},
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "+=",
"value": "4"
}
]
},
{
"type": "setValue",
"name": "switch:A",
"value": "true"
}
]
},
{
"text": "使用3星光支付",
"need": "flags.star.level>2",
"condition": "item:FriendshipBadge&&!switch:B",
"action": [
{
"type": "function",
"function": "function(){\nflags.star.level-=3\n}"
},
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "1"
},
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "+=",
"value": "4"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:blueKey",
"operator": "+=",
"value": "1"
},
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "+=",
"value": "4"
}
]
},
{
"type": "setValue",
"name": "switch:B",
"value": "true"
}
]
},
{
"text": "离开",
"action": []
}
]
}
]
}
],
"10,6": [
"\t[老登,man]清空某个具有对称地形地区的怪物后一件致富宝物会降临",
{
"type": "hide",
"remove": true,
"time": 200
}
]
},
"changeFloor": {
"6,12": {
"floorId": "SX2_2",
"loc": [
6,
1
],
"direction": "down"
},
"0,4": {
"floorId": "SX3_1",
"loc": [
11,
4
],
"direction": "left"
},
"12,4": {
"floorId": "SX3_3",
"loc": [
1,
4
],
"direction": "right"
}
},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 22, 31,222, 0,140,402, 0, 81,225, 0,140, 31,402],
[ 21, 21,140, 0,140, 0,412,140, 0,216,140, 0, 21],
[ 21, 21,140, 0,140, 21, 0,140,216, 0,140,225, 0],
[140,140,140,222,140,140, 82,140,140, 81,140, 81,140],
[ 92, 0,216, 0, 0, 0, 0, 0, 0, 0,212, 0, 94],
[140,140,140,140,140,140, 0,140,140,140,140,140,140],
[412,140,122, 0,212,140,214,140,212, 0,121,140,402],
[ 81,140, 0,212, 0,140, 0,140, 0,212, 0,140, 81],
[ 0,227, 0,140, 81,140,214,140, 81,140, 0,225, 0],
[140,140,140,140, 0,212, 0,212, 0,140,140,140,140],
[ 21, 21,122,140, 81,140, 0,140, 81,140,122, 21, 21],
[ 21, 21, 0,224, 0,140, 0,140, 0,216, 0, 21, 21],
[ 0, 0, 0, 0,225,140, 93,140,216, 0, 0, 0, 0]
],
"bgmap": [
[141,141,141,141, 0,141,141,141,141,141, 0,141,141],
[141,141, 0,141, 0,141,141, 0,141,141, 0,141,141],
[141,141, 0,141, 0,141,141, 0,141,141, 0,141,141],
[ 0, 0, 0,141, 0, 0,141, 0, 0,141, 0,141, 0],
[141,141,141,141,141,141,141,141,141,141,141,141,141],
[ 0, 0, 0, 0, 0, 0,141, 0, 0, 0, 0, 0, 0],
[141, 0,141,141,141, 0,141, 0,141,141,141, 0,141],
[141, 0,141,141,141, 0,141, 0,141,141,141, 0,141],
[141,141,141, 0,141, 0,141, 0,141, 0,141,141,141],
[ 0, 0, 0, 0,141,141,141,141,141, 0, 0, 0, 0],
[141,141,141, 0,141, 0,141, 0,141, 0,141,141,141],
[141,141,141,141,141, 0,141, 0,141,141,141,141,141],
[141,141,141,141,141, 0,141, 0,141,141,141,141,141]
],
"fgmap": [
]
}