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

183 lines
7.1 KiB
JavaScript

main.floors.SX3_4=
{
"floorId": "SX3_4",
"title": "水乡古镇:3-4",
"name": "3-4",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"images": [],
"ratio": 1,
"defaultGround": "ground7",
"bgm": "maps3.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {
"3,0": [
"\t[老登,man]别匆忙 放慢速度"
],
"4,12": [
{
"type": "if",
"condition": "switch:A",
"true": [
"\t[商人,woman]3-5和4-3看似都是对称的 实际上4-3有细微差异使其不对称",
{
"type": "hide",
"remove": true
}
],
"false": [
{
"type": "choices",
"text": "\t[商人,woman]我以200星币特价卖${core.hasItem(\"Backpack\") ?6:3}把黄钥匙,先到先得。",
"choices": [
{
"text": "我太需要了",
"need": "status:money>=200",
"action": [
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "200"
},
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "+=",
"value": "3"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "+=",
"value": "3"
}
]
},
{
"type": "setValue",
"name": "switch:A",
"value": "true"
}
]
},
{
"text": "使用1星光支付",
"need": "flags.star.level>0",
"condition": "item:FriendshipBadge&&!switch:B",
"action": [
{
"type": "function",
"function": "function(){\nflags.star.level--\n}"
},
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "+=",
"value": "3"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:yellowKey",
"operator": "+=",
"value": "3"
}
]
},
{
"type": "setValue",
"name": "switch:B",
"value": "true"
}
]
},
{
"text": "离开",
"action": []
}
]
}
]
}
]
},
"changeFloor": {
"6,12": {
"floorId": "SX2_4",
"loc": [
6,
1
],
"direction": "down"
},
"0,4": {
"floorId": "SX3_3",
"loc": [
12,
4
],
"direction": "left"
},
"12,6": {
"floorId": "SX3_5",
"loc": [
1,
6
],
"direction": "right"
}
},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 21, 0,140,121,140, 0, 21,140, 23, 0,140, 69, 69],
[ 32,207, 81, 0, 81,207,414,140, 0, 0,140, 69,140],
[ 21, 0,140, 0,140, 0, 21,140, 0,228,140, 0, 0],
[140,140,140, 0,140,140,140,140,140, 81,140,140, 82],
[ 92, 0, 0, 0, 0, 0, 0, 81, 0, 0,212, 0, 0],
[140,140,140,140,140,140, 83,140,140,140,140,140,140],
[ 21,412,140, 0, 0,227, 0, 0,225, 0,224, 0, 94],
[ 21,227, 81, 0,140,140, 0,140,140,140,140,140,140],
[ 21, 31,140, 0, 0,227, 0, 81,212,227, 21, 21, 21],
[140,140,140, 81,140,140,140,140, 81,140,140,140,140],
[ 31,412,140, 0,216, 82, 0,140,212,140,224, 81,222],
[ 0,140,140, 0, 0,140, 85,140, 0,140, 0,140,222],
[224,212, 81,216,122,140, 93,140,225, 81,214,140, 33]
],
"bgmap": [
[141,141, 0,141, 0,141,141, 0,141,141, 0,141,141],
[141,141,141,141,141,141,141, 0,141,141, 0,141, 0],
[141,141, 0,141, 0,141,141, 0,141,141, 0,141,141],
[ 0, 0, 0,141, 0, 0, 0, 0, 0,141, 0, 0,141],
[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,141, 0,141,141,141,141,141,141,141,141,141,141],
[141,141,141,141, 0, 0,141, 0, 0, 0, 0, 0, 0],
[141,141, 0,141,141,141,141,141,141,141,141,141,141],
[ 0, 0, 0,141, 0, 0, 0, 0,141, 0, 0, 0, 0],
[141,141, 0,141,141,141,141, 0,141, 0,141,141,141],
[141, 0, 0,141,141, 0,141, 0,141, 0,141, 0,141],
[141,141,141,141,141, 0,141, 0,141,141,141, 0,141]
],
"fgmap": [
]
}