256 lines
8.6 KiB
JavaScript
256 lines
8.6 KiB
JavaScript
main.floors.DP1_1=
|
|
{
|
|
"floorId": "DP1_1",
|
|
"title": "龙宫游乐园:1-1",
|
|
"name": "1-1",
|
|
"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": {
|
|
"11,4": [
|
|
{
|
|
"type": "if",
|
|
"condition": "switch:A",
|
|
"true": [
|
|
{
|
|
"type": "if",
|
|
"condition": "(!core.hasItem(\"PiercingGun\"))",
|
|
"true": [
|
|
"\t[商人,woman]当你在商店加点时,你最好是提升防御力而不是攻击力。但如果完全不提升攻击力的话,之后会有你没法打败的怪物。"
|
|
],
|
|
"false": [
|
|
"\t[商人,woman]当你在商店加点时,你最好是提升防御力而不是攻击力。因为拿到贯穿之铳的人不需要提升防御力来击破怪物防御"
|
|
]
|
|
},
|
|
{
|
|
"type": "hide",
|
|
"remove": true
|
|
}
|
|
],
|
|
"false": [
|
|
{
|
|
"type": "choices",
|
|
"text": "\t[商人,woman]我300星币卖${core.hasItem(\"Backpack\") ?10:5}把黄钥匙。你买吗?",
|
|
"choices": [
|
|
{
|
|
"text": "我太需要了",
|
|
"need": "status:money>=300",
|
|
"action": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "status:money",
|
|
"operator": "-=",
|
|
"value": "300"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:yellowKey",
|
|
"operator": "+=",
|
|
"value": "5"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "core.hasItem(\"Backpack\")",
|
|
"true": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:yellowKey",
|
|
"operator": "+=",
|
|
"value": "5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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:yellowKey",
|
|
"operator": "+=",
|
|
"value": "5"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "core.hasItem(\"Backpack\")",
|
|
"true": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:yellowKey",
|
|
"operator": "+=",
|
|
"value": "5"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "switch:B",
|
|
"value": "true"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "离开",
|
|
"action": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"changeFloor": {
|
|
"12,11": {
|
|
"floorId": "DP1_2",
|
|
"loc": [
|
|
1,
|
|
11
|
|
],
|
|
"direction": "right"
|
|
},
|
|
"1,0": {
|
|
"floorId": "DP2_1",
|
|
"loc": [
|
|
1,
|
|
11
|
|
],
|
|
"direction": "up"
|
|
}
|
|
},
|
|
"beforeBattle": {},
|
|
"afterBattle": {
|
|
"8,5": [
|
|
{
|
|
"type": "specialDoor",
|
|
"loc": [
|
|
[
|
|
"8",
|
|
"5"
|
|
],
|
|
[
|
|
"8",
|
|
"7"
|
|
]
|
|
],
|
|
"doors": [
|
|
[
|
|
"7",
|
|
"6"
|
|
]
|
|
]
|
|
}
|
|
],
|
|
"8,7": [
|
|
{
|
|
"type": "specialDoor",
|
|
"loc": [
|
|
[
|
|
"8",
|
|
"5"
|
|
],
|
|
[
|
|
"8",
|
|
"7"
|
|
]
|
|
],
|
|
"doors": [
|
|
[
|
|
"7",
|
|
"6"
|
|
]
|
|
]
|
|
}
|
|
],
|
|
"7,1": [
|
|
{
|
|
"type": "specialDoor",
|
|
"loc": [
|
|
[
|
|
"7",
|
|
"1"
|
|
],
|
|
[
|
|
"7",
|
|
"3"
|
|
]
|
|
],
|
|
"doors": [
|
|
[
|
|
"8",
|
|
"2"
|
|
]
|
|
]
|
|
}
|
|
],
|
|
"7,3": [
|
|
{
|
|
"type": "specialDoor",
|
|
"loc": [
|
|
[
|
|
"7",
|
|
"1"
|
|
],
|
|
[
|
|
"7",
|
|
"3"
|
|
]
|
|
],
|
|
"doors": [
|
|
[
|
|
"8",
|
|
"2"
|
|
]
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"afterGetItem": {},
|
|
"afterOpenDoor": {},
|
|
"autoEvent": {},
|
|
"cannotMove": {},
|
|
"cannotMoveIn": {},
|
|
"map": [
|
|
[142, 91,142,142,142,142,142,142,142,142,142,142,142],
|
|
[142, 0, 82, 0, 32,142, 0,209,142, 0,142,142,142],
|
|
[142, 0,142, 0, 0, 81, 0, 0, 85, 63,142,142,142],
|
|
[142, 0,142, 0, 21,142, 0,209,142, 0,142,142,142],
|
|
[142, 0,142, 81,142,142,142,142,142, 83,142,122,142],
|
|
[142, 0,217, 0,142, 23, 32,142,221, 0,142,201,142],
|
|
[142,205,142,142,142, 21, 31, 85, 0, 31, 81, 0,142],
|
|
[142, 0, 0, 0,142, 82,142,142,221, 0,142,202,142],
|
|
[142,142,142, 31,142, 31, 27,142,142,142,142, 0,142],
|
|
[142, 21,142, 0,142,210, 28,142, 0,205, 81, 0,142],
|
|
[142, 21,142,202,142, 81,142,142, 0,142,142, 0,142],
|
|
[142,205, 81, 0, 0, 0, 0,202, 0, 31,217, 0, 94],
|
|
[142,142,142,142,142,142,142,142,142,142,142,142,142]
|
|
],
|
|
"bgmap": [
|
|
|
|
],
|
|
"fgmap": [
|
|
|
|
]
|
|
} |