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

163 lines
6.4 KiB
JavaScript

main.floors.DP2_3=
{
"floorId": "DP2_3",
"title": "龙宫游乐园:2-3",
"name": "2-3",
"width": 13,
"height": 13,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"cannotMoveDirectly": false,
"images": [],
"ratio": 1,
"defaultGround": "magicground2",
"bgm": "maps5A.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {
"6,4": [
{
"type": "if",
"condition": "switch:A",
"true": [
"\t[商人,woman]传说在龙宫有秘宝可以帮助少女化为真龙,秘宝只有一个,却有两名少女需要它",
"\t[商人,woman]前方战胜两名小头目后你需要在两位少女间选择一位成为你的伙伴并帮助她取得秘宝\n至于另一位嘛……",
{
"type": "hide",
"remove": true
}
],
"false": [
{
"type": "choices",
"text": "\t[商人,woman]我50星币特价卖${core.hasItem(\"Backpack\") ?\"两\":\"一\"}把蓝钥匙。你买吗?",
"choices": [
{
"text": "我太需要了",
"need": "status:money>=50",
"action": [
{
"type": "setValue",
"name": "status:money",
"operator": "-=",
"value": "50"
},
{
"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": "使用1星光支付",
"need": "flags.star.level>0",
"condition": "item:FriendshipBadge&&!switch:B",
"action": [
{
"type": "function",
"function": "function(){\nflags.star.level--\n}"
},
{
"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:B",
"value": "true"
}
]
},
{
"text": "离开",
"action": []
}
]
}
]
}
]
},
"changeFloor": {
"6,12": {
"floorId": "DP1_3",
"loc": [
6,
1
],
"direction": "down"
},
"0,11": {
"floorId": "DP2_2",
"loc": [
11,
11
],
"direction": "right"
}
},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[142,142,142,142,142,142,142,142,142,142,142,142,142],
[142, 31,205, 81, 0, 81,217, 0,142,142,142,142,142],
[142, 21, 21,142, 0,142, 0, 31,142,142,142,142,142],
[142,142,142,142,202,142,142, 81,142,142,142,142,142],
[142, 21, 21,142, 0,142,122,209, 32,142, 32, 27,142],
[142, 31,205, 81, 0,142, 0, 0, 0, 81,202, 28,142],
[142,142,142,142,202,142,142, 81,142,142,142,142,142],
[142, 32, 21,142, 0,142, 21,205,142, 31, 21, 27,142],
[142, 0,210, 82, 0,142, 0, 0, 82,210, 21, 28,142],
[142, 32, 21,142, 0,142,217,142,142,142,142,142,142],
[142,142,142,142,202,142, 0, 21,142, 31, 22, 21,142],
[ 92, 0, 0, 0, 0,142, 0, 0, 81,209, 0, 0,142],
[142,142,142,142,142,142, 93,142,142,142,142,142,142]
],
"bgmap": [
],
"fgmap": [
]
}