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

172 lines
6.8 KiB
JavaScript

main.floors.SX2_1=
{
"floorId": "SX2_1",
"title": "水乡古镇:2-1",
"name": "2-1",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"images": [],
"ratio": 1,
"defaultGround": "ground7",
"bgm": "maps3.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {
"0,12": [
{
"type": "if",
"condition": "switch:A",
"true": [
"\t[商人,woman]击败BOSS后会立刻获得\\i[stars]",
{
"type": "hide",
"remove": true
}
],
"false": [
{
"type": "choices",
"text": "\t[商人,woman]我800星币卖${core.hasItem(\"Backpack\") ?2:1}把珍稀的红钥匙,你买吗?",
"choices": [
{
"text": "我太需要了",
"need": "status:money>=800",
"action": [
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "800"
},
{
"type": "setValue",
"name": "item:redKey",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:redKey",
"operator": "+=",
"value": "1"
}
]
},
{
"type": "setValue",
"name": "switch:A",
"value": "true"
}
]
},
{
"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": "item:redKey",
"operator": "+=",
"value": "1"
},
{
"type": "if",
"condition": "core.hasItem(\"Backpack\")",
"true": [
{
"type": "setValue",
"name": "item:redKey",
"operator": "+=",
"value": "1"
}
]
},
{
"type": "setValue",
"name": "switch:B",
"value": "true"
}
]
},
{
"text": "离开",
"action": []
}
]
}
]
}
]
},
"changeFloor": {
"6,12": {
"floorId": "SX1_1",
"loc": [
6,
1
],
"direction": "down"
},
"12,12": {
"floorId": "SX2_2",
"loc": [
1,
12
],
"direction": "right"
}
},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 21,206, 0,140, 0, 31, 0, 81,221,140,221, 0, 0],
[ 21,218, 0, 81, 0, 0, 0,140, 0,140, 0,140, 63],
[ 21,206, 0,140, 0,206, 0,140,221, 0,221,140, 0],
[140,140,140,140,140, 81,140,140,140,140,140,140,140],
[411,214, 0,140, 0,206, 0,140, 0, 31,140, 21,401],
[213, 0, 0, 81,205, 0,203, 81,203, 0, 81,215, 31],
[ 0, 0,203,140, 0, 0, 0,140, 0,206,140, 21,411],
[ 81,140,140,140,140,140, 81,140,140, 81,140, 82,140],
[ 0,203, 0,206, 0,140,206,140, 22, 0,140,203, 0],
[140, 81,140,140,218,140, 0,140, 0,206, 81, 0, 21],
[ 21, 22, 21,206, 0,140, 0,140,213, 0,140, 31, 0],
[140,140,140,140,218,140, 85,140, 81,140,140, 81,140],
[122, 0,206, 81, 0,140, 93,140, 0, 0,214, 0, 94]
],
"bgmap": [
[141,141,141, 0,141,141,141,141,141, 0,141,141,141],
[141,141,141,141,141,141,141, 0,141, 0,141, 0,141],
[141,141,141, 0,141,141,141, 0,141,141,141, 0,141],
[ 0, 0, 0, 0, 0,141, 0, 0, 0, 0, 0, 0, 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,141],
[141,141,141, 0,141,141,141, 0,141,141, 0,141,141],
[141, 0, 0, 0, 0, 0,141, 0, 0,141, 0,141, 0],
[141,141,141,141,141, 0,141, 0,141,141, 0,141,141],
[ 0,141, 0, 0,141, 0,141, 0,141,141,141,141,141],
[141,141,141,141,141, 0,141, 0,141,141, 0,141,141],
[ 0, 0, 0, 0,141, 0,141, 0,141, 0, 0,141, 0],
[141,141,141,141,141, 0,141, 0,141,141,141,141,141]
],
"fgmap": [
]
}