main.floors.MT74=
{
    "floorId": "MT74",
    "title": "74F",
    "name": "74层",
    "width": 13,
    "height": 13,
    "canFlyTo": true,
    "canFlyFrom": true,
    "canUseQuickShop": true,
    "cannotViewMap": false,
    "images": [],
    "ratio": 3,
    "defaultGround": "ground",
    "bgm": "2qu.mp3",
    "firstArrive": [
        {
            "type": "setValue",
            "name": "flag:floor",
            "operator": "+=",
            "value": "1"
        },
        {
            "type": "setValue",
            "name": "status:hp",
            "operator": "+=",
            "value": "Math.ceil(core.values.redPotion * (2-flags.hard+core.status.thisMap.ratio))"
        },
        {
            "type": "playSound",
            "name": "回血"
        },
        {
            "type": "tip",
            "text": "生命+${Math.ceil(core.values.redPotion * (2-flags.hard+core.status.thisMap.ratio))}"
        },
        "\t[水晶球,I341]调整休息一下，做点\r[aqua]\\d交易\r\\d吧~\n当然你也可以捡了便宜就走~~"
    ],
    "eachArrive": [],
    "parallelDo": "",
    "events": {
        "2,8": [
            {
                "type": "openDoor",
                "loc": [
                    6,
                    9
                ],
                "async": true
            },
            {
                "type": "openDoor",
                "loc": [
                    10,
                    9
                ],
                "async": true
            },
            {
                "type": "closeDoor",
                "id": "steelDoor",
                "loc": [
                    6,
                    9
                ],
                "async": true
            },
            {
                "type": "closeDoor",
                "id": "steelDoor",
                "loc": [
                    10,
                    9
                ],
                "async": true
            },
            {
                "type": "hide",
                "loc": [
                    [
                        2,
                        8
                    ]
                ]
            },
            {
                "type": "hide",
                "loc": [
                    [
                        6,
                        8
                    ]
                ]
            },
            {
                "type": "hide",
                "loc": [
                    [
                        10,
                        8
                    ]
                ]
            },
            {
                "type": "waitAsync"
            }
        ],
        "6,8": [
            {
                "type": "openDoor",
                "loc": [
                    2,
                    9
                ],
                "async": true
            },
            {
                "type": "openDoor",
                "loc": [
                    10,
                    9
                ],
                "async": true
            },
            {
                "type": "closeDoor",
                "id": "steelDoor",
                "loc": [
                    2,
                    9
                ],
                "async": true
            },
            {
                "type": "closeDoor",
                "id": "steelDoor",
                "loc": [
                    10,
                    9
                ],
                "async": true
            },
            {
                "type": "hide",
                "loc": [
                    [
                        2,
                        8
                    ]
                ]
            },
            {
                "type": "hide",
                "loc": [
                    [
                        6,
                        8
                    ]
                ]
            },
            {
                "type": "hide",
                "loc": [
                    [
                        10,
                        8
                    ]
                ]
            },
            {
                "type": "waitAsync"
            }
        ],
        "10,8": [
            {
                "type": "openDoor",
                "loc": [
                    6,
                    9
                ],
                "async": true
            },
            {
                "type": "openDoor",
                "loc": [
                    2,
                    9
                ],
                "async": true
            },
            {
                "type": "closeDoor",
                "id": "steelDoor",
                "loc": [
                    6,
                    9
                ],
                "async": true
            },
            {
                "type": "closeDoor",
                "id": "steelDoor",
                "loc": [
                    2,
                    9
                ],
                "async": true
            },
            {
                "type": "hide",
                "loc": [
                    [
                        2,
                        8
                    ]
                ]
            },
            {
                "type": "hide",
                "loc": [
                    [
                        6,
                        8
                    ]
                ]
            },
            {
                "type": "hide",
                "loc": [
                    [
                        10,
                        8
                    ]
                ]
            },
            {
                "type": "waitAsync"
            }
        ],
        "10,6": [
            {
                "type": "if",
                "condition": "switch:A",
                "true": [],
                "false": [
                    {
                        "type": "confirm",
                        "text": "\r[gold]豪华三色宝石套餐！\r\n要交易吗？(确定后有选项，可取消)",
                        "yes": [
                            {
                                "type": "playSound",
                                "name": "确定"
                            },
                            {
                                "type": "choices",
                                "text": "\t[商人074C1,trader]交易后\r[gold]攻击+3，防御+3，护盾+11\r，请选择：",
                                "choices": [
                                    {
                                        "text": "\r[white]不交易，白嫖\r1颗绿宝石",
                                        "color": [
                                            89,
                                            235,
                                            78,
                                            1
                                        ],
                                        "action": [
                                            {
                                                "type": "playSound",
                                                "name": "确定"
                                            },
                                            {
                                                "type": "setValue",
                                                "name": "item:greenGem",
                                                "operator": "+=",
                                                "value": "1"
                                            },
                                            {
                                                "type": "setValue",
                                                "name": "switch:A",
                                                "value": "true"
                                            },
                                            {
                                                "type": "hide",
                                                "remove": true,
                                                "time": 250
                                            },
                                            {
                                                "type": "playSound",
                                                "name": "确定"
                                            }
                                        ]
                                    },
                                    {
                                        "text": "-${5*core.values.bluePotion * core.status.thisMap.ratio}生命",
                                        "color": [
                                            234,
                                            102,
                                            166,
                                            1
                                        ],
                                        "action": [
                                            {
                                                "type": "if",
                                                "condition": "(status:hp>=5*core.values.bluePotion * core.status.thisMap.ratio)",
                                                "true": [
                                                    {
                                                        "type": "setValue",
                                                        "name": "status:hp",
                                                        "operator": "-=",
                                                        "value": "5*core.values.bluePotion * core.status.thisMap.ratio"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "确定"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "item:redGem",
                                                        "operator": "+=",
                                                        "value": "1"
                                                    },
                                                    {
                                                        "type": "sleep",
                                                        "time": 250,
                                                        "noSkip": true
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "item:blueGem",
                                                        "operator": "+=",
                                                        "value": "1"
                                                    },
                                                    {
                                                        "type": "sleep",
                                                        "time": 250,
                                                        "noSkip": true
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "item:greenGem",
                                                        "operator": "+=",
                                                        "value": "1"
                                                    },
                                                    {
                                                        "type": "sleep",
                                                        "time": 250,
                                                        "noSkip": true
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "switch:A",
                                                        "value": "true"
                                                    },
                                                    {
                                                        "type": "hide",
                                                        "remove": true,
                                                        "time": 250
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "确定"
                                                    }
                                                ],
                                                "false": [
                                                    {
                                                        "type": "playSound",
                                                        "name": "操作失败"
                                                    },
                                                    "\t[商人074C1,trader]你的生命不足~"
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "text": "-${Math.ceil(10/2*(20 * core.status.thisMap.ratio - 30))}金币",
                                        "color": [
                                            235,
                                            228,
                                            78,
                                            1
                                        ],
                                        "action": [
                                            {
                                                "type": "if",
                                                "condition": "(status:money>=Math.ceil(10/2*(20 * core.status.thisMap.ratio - 30)))",
                                                "true": [
                                                    {
                                                        "type": "setValue",
                                                        "name": "status:money",
                                                        "operator": "-=",
                                                        "value": "Math.ceil(10/2*(20 * core.status.thisMap.ratio - 30))"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "确定"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "item:redGem",
                                                        "operator": "+=",
                                                        "value": "1"
                                                    },
                                                    {
                                                        "type": "sleep",
                                                        "time": 250,
                                                        "noSkip": true
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "item:blueGem",
                                                        "operator": "+=",
                                                        "value": "1"
                                                    },
                                                    {
                                                        "type": "sleep",
                                                        "time": 250,
                                                        "noSkip": true
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "item:greenGem",
                                                        "operator": "+=",
                                                        "value": "1"
                                                    },
                                                    {
                                                        "type": "sleep",
                                                        "time": 250,
                                                        "noSkip": true
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "switch:A",
                                                        "value": "true"
                                                    },
                                                    {
                                                        "type": "hide",
                                                        "remove": true,
                                                        "time": 250
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "确定"
                                                    }
                                                ],
                                                "false": [
                                                    {
                                                        "type": "playSound",
                                                        "name": "操作失败"
                                                    },
                                                    "\t[商人074C1,trader]你的金币不足~"
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "text": "取消",
                                        "action": [
                                            {
                                                "type": "playSound",
                                                "name": "取消"
                                            },
                                            "\t[商人074C1,trader]想好再来吧~"
                                        ]
                                    }
                                ]
                            }
                        ],
                        "no": [
                            {
                                "type": "playSound",
                                "name": "取消"
                            }
                        ]
                    }
                ]
            },
            {
                "type": "waitAsync"
            }
        ],
        "6,6": [
            {
                "type": "if",
                "condition": "switch:A",
                "true": [],
                "false": [
                    {
                        "type": "confirm",
                        "text": "\r[gold]给我钥匙，我可以帮你恢复生命\r\n需要吗？(确定后有选项，可取消)",
                        "yes": [
                            {
                                "type": "playSound",
                                "name": "确定"
                            },
                            {
                                "type": "choices",
                                "text": "\t[商人074B1,wizard]\r[gold]只有1次机会\r，请选择：",
                                "choices": [
                                    {
                                        "text": "生命+${core.values.bluePotion * core.status.thisMap.ratio}(免费)",
                                        "color": [
                                            234,
                                            102,
                                            166,
                                            1
                                        ],
                                        "action": [
                                            {
                                                "type": "setValue",
                                                "name": "status:hp",
                                                "operator": "+=",
                                                "value": "core.values.bluePotion * core.status.thisMap.ratio"
                                            },
                                            {
                                                "type": "playSound",
                                                "name": "回血"
                                            },
                                            {
                                                "type": "setValue",
                                                "name": "switch:A",
                                                "value": "true"
                                            },
                                            {
                                                "type": "hide",
                                                "remove": true,
                                                "time": 250
                                            },
                                            {
                                                "type": "playSound",
                                                "name": "确定"
                                            }
                                        ]
                                    },
                                    {
                                        "text": "生命+${2*core.values.bluePotion * core.status.thisMap.ratio}\r[#fca](黄钥匙-1)",
                                        "color": [
                                            234,
                                            102,
                                            166,
                                            1
                                        ],
                                        "action": [
                                            {
                                                "type": "if",
                                                "condition": "(item:yellowKey>=1)",
                                                "true": [
                                                    {
                                                        "type": "setValue",
                                                        "name": "item:yellowKey",
                                                        "operator": "-=",
                                                        "value": "1"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "确定"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "status:hp",
                                                        "operator": "+=",
                                                        "value": "2*core.values.bluePotion * core.status.thisMap.ratio"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "回血"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "switch:A",
                                                        "value": "true"
                                                    },
                                                    {
                                                        "type": "hide",
                                                        "remove": true,
                                                        "time": 250
                                                    }
                                                ],
                                                "false": [
                                                    {
                                                        "type": "playSound",
                                                        "name": "操作失败"
                                                    },
                                                    "\t[商人074B1,wizard]你的黄钥匙不足~"
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "text": "生命+${3*core.values.bluePotion * core.status.thisMap.ratio}\r[#fca](黄钥匙-2)",
                                        "color": [
                                            234,
                                            102,
                                            166,
                                            1
                                        ],
                                        "action": [
                                            {
                                                "type": "if",
                                                "condition": "(item:yellowKey>=2)",
                                                "true": [
                                                    {
                                                        "type": "setValue",
                                                        "name": "item:yellowKey",
                                                        "operator": "-=",
                                                        "value": "2"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "确定"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "status:hp",
                                                        "operator": "+=",
                                                        "value": "3*core.values.bluePotion * core.status.thisMap.ratio"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "回血"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "switch:A",
                                                        "value": "true"
                                                    },
                                                    {
                                                        "type": "hide",
                                                        "remove": true,
                                                        "time": 250
                                                    }
                                                ],
                                                "false": [
                                                    {
                                                        "type": "playSound",
                                                        "name": "操作失败"
                                                    },
                                                    "\t[商人074B1,wizard]你的黄钥匙不足~"
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "text": "生命+${3*core.values.bluePotion * core.status.thisMap.ratio}\r[#aad](蓝钥匙-1)",
                                        "color": [
                                            234,
                                            102,
                                            166,
                                            1
                                        ],
                                        "action": [
                                            {
                                                "type": "if",
                                                "condition": "(item:blueKey>=1)",
                                                "true": [
                                                    {
                                                        "type": "setValue",
                                                        "name": "item:blueKey",
                                                        "operator": "-=",
                                                        "value": "1"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "确定"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "status:hp",
                                                        "operator": "+=",
                                                        "value": "3*core.values.bluePotion * core.status.thisMap.ratio"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "回血"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "switch:A",
                                                        "value": "true"
                                                    },
                                                    {
                                                        "type": "hide",
                                                        "remove": true,
                                                        "time": 250
                                                    }
                                                ],
                                                "false": [
                                                    {
                                                        "type": "playSound",
                                                        "name": "操作失败"
                                                    },
                                                    "\t[商人074B1,wizard]你的黄钥匙不足~"
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "text": "生命+${4*core.values.bluePotion * core.status.thisMap.ratio}\r[#fca](黄钥匙-3)",
                                        "color": [
                                            234,
                                            102,
                                            166,
                                            1
                                        ],
                                        "action": [
                                            {
                                                "type": "if",
                                                "condition": "(item:yellowKey>=3)",
                                                "true": [
                                                    {
                                                        "type": "setValue",
                                                        "name": "item:yellowKey",
                                                        "operator": "-=",
                                                        "value": "3"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "确定"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "status:hp",
                                                        "operator": "+=",
                                                        "value": "4*core.values.bluePotion * core.status.thisMap.ratio"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "回血"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "switch:A",
                                                        "value": "true"
                                                    },
                                                    {
                                                        "type": "hide",
                                                        "remove": true,
                                                        "time": 250
                                                    }
                                                ],
                                                "false": [
                                                    {
                                                        "type": "playSound",
                                                        "name": "操作失败"
                                                    },
                                                    "\t[商人074B1,wizard]你的黄钥匙不足~"
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "text": "生命+${5*core.values.bluePotion * core.status.thisMap.ratio}\r[#fca](黄钥匙-4)",
                                        "color": [
                                            234,
                                            102,
                                            166,
                                            1
                                        ],
                                        "action": [
                                            {
                                                "type": "if",
                                                "condition": "(item:yellowKey>=4)",
                                                "true": [
                                                    {
                                                        "type": "setValue",
                                                        "name": "item:yellowKey",
                                                        "operator": "-=",
                                                        "value": "4"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "确定"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "status:hp",
                                                        "operator": "+=",
                                                        "value": "5*core.values.bluePotion * core.status.thisMap.ratio"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "回血"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "switch:A",
                                                        "value": "true"
                                                    },
                                                    {
                                                        "type": "hide",
                                                        "remove": true,
                                                        "time": 250
                                                    }
                                                ],
                                                "false": [
                                                    {
                                                        "type": "playSound",
                                                        "name": "操作失败"
                                                    },
                                                    "\t[商人074B1,wizard]你的黄钥匙不足~"
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "text": "生命+${5*core.values.bluePotion * core.status.thisMap.ratio}\r[#aad](蓝钥匙-2)",
                                        "color": [
                                            234,
                                            102,
                                            166,
                                            1
                                        ],
                                        "action": [
                                            {
                                                "type": "if",
                                                "condition": "(item:blueKey>=2)",
                                                "true": [
                                                    {
                                                        "type": "setValue",
                                                        "name": "item:blueKey",
                                                        "operator": "-=",
                                                        "value": "2"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "确定"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "status:hp",
                                                        "operator": "+=",
                                                        "value": "5*core.values.bluePotion * core.status.thisMap.ratio"
                                                    },
                                                    {
                                                        "type": "playSound",
                                                        "name": "回血"
                                                    },
                                                    {
                                                        "type": "setValue",
                                                        "name": "switch:A",
                                                        "value": "true"
                                                    },
                                                    {
                                                        "type": "hide",
                                                        "remove": true,
                                                        "time": 250
                                                    }
                                                ],
                                                "false": [
                                                    {
                                                        "type": "playSound",
                                                        "name": "操作失败"
                                                    },
                                                    "\t[商人074B1,wizard]你的黄钥匙不足~"
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "text": "取消",
                                        "action": [
                                            {
                                                "type": "playSound",
                                                "name": "取消"
                                            },
                                            "\t[商人074B1,wizard]想好再来吧~"
                                        ]
                                    }
                                ]
                            }
                        ],
                        "no": [
                            {
                                "type": "playSound",
                                "name": "取消"
                            }
                        ]
                    }
                ]
            }
        ],
        "2,6": [
            {
                "type": "if",
                "condition": "switch:A",
                "true": [],
                "false": [
                    {
                        "type": "confirm",
                        "text": "\r[gold]用能力交换钥匙，只有1次机会\r\n你要换吗？(确定后有选项，可取消)",
                        "yes": [
                            {
                                "type": "playSound",
                                "name": "确定"
                            },
                            {
                                "type": "choices",
                                "text": "\t[商人074A1,thief]你的选择是？\n(确定后有选项，可取消)",
                                "choices": [
                                    {
                                        "text": "黄钥匙+1(白给)",
                                        "icon": "yellowKey",
                                        "color": [
                                            255,
                                            204,
                                            170,
                                            1
                                        ],
                                        "action": [
                                            {
                                                "type": "setValue",
                                                "name": "item:yellowKey",
                                                "operator": "+=",
                                                "value": "1"
                                            },
                                            {
                                                "type": "playSound",
                                                "name": "获得道具"
                                            },
                                            {
                                                "type": "setValue",
                                                "name": "switch:A",
                                                "value": "true"
                                            },
                                            {
                                                "type": "hide",
                                                "remove": true,
                                                "time": 250
                                            },
                                            {
                                                "type": "playSound",
                                                "name": "确定"
                                            }
                                        ]
                                    },
                                    {
                                        "text": "黄钥匙+2",
                                        "icon": "yellowKey",
                                        "color": [
                                            255,
                                            204,
                                            170,
                                            1
                                        ],
                                        "action": [
                                            {
                                                "type": "playSound",
                                                "name": "确定"
                                            },
                                            {
                                                "type": "choices",
                                                "text": "\t[商人074A1,thief]请选择你要交换的能力：",
                                                "choices": [
                                                    {
                                                        "text": "-${Math.floor(1/3*core.values.redGem * core.status.thisMap.ratio)}攻击",
                                                        "color": [
                                                            235,
                                                            78,
                                                            78,
                                                            1
                                                        ],
                                                        "action": [
                                                            {
                                                                "type": "if",
                                                                "condition": "(status:atk>=Math.floor(1/3*core.values.redGem * core.status.thisMap.ratio))",
                                                                "true": [
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "status:atk",
                                                                        "operator": "-=",
                                                                        "value": "Math.floor(1/3*core.values.redGem * core.status.thisMap.ratio)"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "确定"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "item:yellowKey",
                                                                        "operator": "+=",
                                                                        "value": "2"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "获得道具"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "switch:A",
                                                                        "value": "true"
                                                                    },
                                                                    {
                                                                        "type": "hide",
                                                                        "remove": true,
                                                                        "time": 250
                                                                    }
                                                                ],
                                                                "false": [
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "操作失败"
                                                                    },
                                                                    "\t[商人074A1,thief]你的攻击不足~"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "text": "-${Math.ceil(0.5*core.values.blueGem * core.status.thisMap.ratio)}防御",
                                                        "color": [
                                                            9,
                                                            78,
                                                            235,
                                                            1
                                                        ],
                                                        "action": [
                                                            {
                                                                "type": "if",
                                                                "condition": "(status:def>=Math.ceil(0.5*core.values.blueGem * core.status.thisMap.ratio))",
                                                                "true": [
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "status:def",
                                                                        "operator": "-=",
                                                                        "value": "Math.ceil(0.5*core.values.blueGem * core.status.thisMap.ratio)"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "确定"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "item:yellowKey",
                                                                        "operator": "+=",
                                                                        "value": "2"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "获得道具"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "switch:A",
                                                                        "value": "true"
                                                                    },
                                                                    {
                                                                        "type": "hide",
                                                                        "remove": true,
                                                                        "time": 250
                                                                    }
                                                                ],
                                                                "false": [
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "操作失败"
                                                                    },
                                                                    "\t[商人074A1,thief]你的防御不足~"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "text": "-${Math.ceil(core.values.greenGem * core.status.thisMap.ratio)}护盾",
                                                        "color": [
                                                            89,
                                                            235,
                                                            78,
                                                            1
                                                        ],
                                                        "action": [
                                                            {
                                                                "type": "if",
                                                                "condition": "(status:mdef>=Math.ceil(core.values.greenGem * core.status.thisMap.ratio))",
                                                                "true": [
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "status:mdef",
                                                                        "operator": "-=",
                                                                        "value": "Math.ceil(core.values.greenGem * core.status.thisMap.ratio)"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "确定"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "item:yellowKey",
                                                                        "operator": "+=",
                                                                        "value": "2"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "获得道具"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "switch:A",
                                                                        "value": "true"
                                                                    },
                                                                    {
                                                                        "type": "hide",
                                                                        "remove": true,
                                                                        "time": 250
                                                                    }
                                                                ],
                                                                "false": [
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "操作失败"
                                                                    },
                                                                    "\t[商人074A1,thief]你的护盾不足~"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "text": "取消",
                                                        "action": [
                                                            {
                                                                "type": "playSound",
                                                                "name": "取消"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "text": "黄钥匙+3",
                                        "icon": "yellowKey",
                                        "color": [
                                            255,
                                            204,
                                            170,
                                            1
                                        ],
                                        "action": [
                                            {
                                                "type": "playSound",
                                                "name": "确定"
                                            },
                                            {
                                                "type": "choices",
                                                "text": "\t[商人074A1,thief]请选择你要交换的能力：",
                                                "choices": [
                                                    {
                                                        "text": "-${Math.floor(2/3*core.values.redGem * core.status.thisMap.ratio)}攻击",
                                                        "color": [
                                                            235,
                                                            78,
                                                            78,
                                                            1
                                                        ],
                                                        "action": [
                                                            {
                                                                "type": "if",
                                                                "condition": "(status:atk>=Math.floor(2/3*core.values.redGem * core.status.thisMap.ratio))",
                                                                "true": [
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "status:atk",
                                                                        "operator": "-=",
                                                                        "value": "Math.floor(2/3*core.values.redGem * core.status.thisMap.ratio)"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "确定"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "item:yellowKey",
                                                                        "operator": "+=",
                                                                        "value": "3"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "获得道具"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "switch:A",
                                                                        "value": "true"
                                                                    },
                                                                    {
                                                                        "type": "hide",
                                                                        "remove": true,
                                                                        "time": 250
                                                                    }
                                                                ],
                                                                "false": [
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "操作失败"
                                                                    },
                                                                    "\t[商人074A1,thief]你的攻击不足~"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "text": "-${Math.ceil(core.values.blueGem * core.status.thisMap.ratio)}防御",
                                                        "color": [
                                                            9,
                                                            78,
                                                            235,
                                                            1
                                                        ],
                                                        "action": [
                                                            {
                                                                "type": "if",
                                                                "condition": "(status:def>=Math.ceil(core.values.blueGem * core.status.thisMap.ratio))",
                                                                "true": [
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "status:def",
                                                                        "operator": "-=",
                                                                        "value": "Math.ceil(core.values.blueGem * core.status.thisMap.ratio)"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "确定"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "item:yellowKey",
                                                                        "operator": "+=",
                                                                        "value": "3"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "获得道具"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "switch:A",
                                                                        "value": "true"
                                                                    },
                                                                    {
                                                                        "type": "hide",
                                                                        "remove": true,
                                                                        "time": 250
                                                                    }
                                                                ],
                                                                "false": [
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "操作失败"
                                                                    },
                                                                    "\t[商人074A1,thief]你的防御不足~"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "text": "-${Math.ceil(2*core.values.greenGem * core.status.thisMap.ratio)}护盾",
                                                        "color": [
                                                            89,
                                                            235,
                                                            78,
                                                            1
                                                        ],
                                                        "action": [
                                                            {
                                                                "type": "if",
                                                                "condition": "(status:mdef>=Math.ceil(2*core.values.greenGem * core.status.thisMap.ratio))",
                                                                "true": [
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "status:mdef",
                                                                        "operator": "-=",
                                                                        "value": "Math.ceil(2*core.values.greenGem * core.status.thisMap.ratio)"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "确定"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "item:yellowKey",
                                                                        "operator": "+=",
                                                                        "value": "3"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "获得道具"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "switch:A",
                                                                        "value": "true"
                                                                    },
                                                                    {
                                                                        "type": "hide",
                                                                        "remove": true,
                                                                        "time": 250
                                                                    }
                                                                ],
                                                                "false": [
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "操作失败"
                                                                    },
                                                                    "\t[商人074A1,thief]你的护盾不足~"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "text": "取消",
                                                        "action": [
                                                            {
                                                                "type": "playSound",
                                                                "name": "取消"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "text": "蓝钥匙+1",
                                        "icon": "blueKey",
                                        "color": [
                                            170,
                                            170,
                                            221
                                        ],
                                        "action": [
                                            {
                                                "type": "playSound",
                                                "name": "确定"
                                            },
                                            {
                                                "type": "choices",
                                                "text": "\t[商人074A1,thief]请选择你要交换的能力：",
                                                "choices": [
                                                    {
                                                        "text": "-${Math.floor(1/3*core.values.redGem * core.status.thisMap.ratio)}攻击",
                                                        "color": [
                                                            235,
                                                            78,
                                                            78,
                                                            1
                                                        ],
                                                        "action": [
                                                            {
                                                                "type": "if",
                                                                "condition": "(status:atk>=Math.floor(1/3*core.values.redGem * core.status.thisMap.ratio))",
                                                                "true": [
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "status:atk",
                                                                        "operator": "-=",
                                                                        "value": "Math.floor(1/3*core.values.redGem * core.status.thisMap.ratio)"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "确定"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "item:blueKey",
                                                                        "operator": "+=",
                                                                        "value": "1"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "获得道具"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "switch:A",
                                                                        "value": "true"
                                                                    },
                                                                    {
                                                                        "type": "hide",
                                                                        "remove": true,
                                                                        "time": 250
                                                                    }
                                                                ],
                                                                "false": [
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "操作失败"
                                                                    },
                                                                    "\t[商人074A1,thief]你的攻击不足~"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "text": "-${Math.ceil(0.5*core.values.blueGem * core.status.thisMap.ratio)}防御",
                                                        "color": [
                                                            9,
                                                            78,
                                                            235,
                                                            1
                                                        ],
                                                        "action": [
                                                            {
                                                                "type": "if",
                                                                "condition": "(status:def>=Math.ceil(0.5*core.values.blueGem * core.status.thisMap.ratio))",
                                                                "true": [
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "status:def",
                                                                        "operator": "-=",
                                                                        "value": "Math.ceil(0.5*core.values.blueGem * core.status.thisMap.ratio)"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "确定"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "item:blueKey",
                                                                        "operator": "+=",
                                                                        "value": "1"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "获得道具"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "switch:A",
                                                                        "value": "true"
                                                                    },
                                                                    {
                                                                        "type": "hide",
                                                                        "remove": true,
                                                                        "time": 250
                                                                    }
                                                                ],
                                                                "false": [
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "操作失败"
                                                                    },
                                                                    "\t[商人074A1,thief]你的防御不足~"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "text": "-${Math.ceil(core.values.greenGem * core.status.thisMap.ratio)}护盾",
                                                        "color": [
                                                            89,
                                                            235,
                                                            78,
                                                            1
                                                        ],
                                                        "action": [
                                                            {
                                                                "type": "if",
                                                                "condition": "(status:mdef>=Math.ceil(core.values.greenGem * core.status.thisMap.ratio))",
                                                                "true": [
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "status:mdef",
                                                                        "operator": "-=",
                                                                        "value": "Math.ceil(core.values.greenGem * core.status.thisMap.ratio)"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "确定"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "item:blueKey",
                                                                        "operator": "+=",
                                                                        "value": "1"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "获得道具"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "switch:A",
                                                                        "value": "true"
                                                                    },
                                                                    {
                                                                        "type": "hide",
                                                                        "remove": true,
                                                                        "time": 250
                                                                    }
                                                                ],
                                                                "false": [
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "操作失败"
                                                                    },
                                                                    "\t[商人074A1,thief]你的护盾不足~"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "text": "取消",
                                                        "action": [
                                                            {
                                                                "type": "playSound",
                                                                "name": "取消"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "text": "蓝钥匙+2",
                                        "icon": "blueKey",
                                        "color": [
                                            170,
                                            170,
                                            221
                                        ],
                                        "action": [
                                            {
                                                "type": "playSound",
                                                "name": "确定"
                                            },
                                            {
                                                "type": "choices",
                                                "text": "\t[商人074A1,thief]请选择你要交换的能力：",
                                                "choices": [
                                                    {
                                                        "text": "-${Math.floor(core.values.redGem * core.status.thisMap.ratio)}攻击",
                                                        "color": [
                                                            235,
                                                            78,
                                                            78,
                                                            1
                                                        ],
                                                        "action": [
                                                            {
                                                                "type": "if",
                                                                "condition": "(status:atk>=Math.floor(core.values.redGem * core.status.thisMap.ratio))",
                                                                "true": [
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "status:atk",
                                                                        "operator": "-=",
                                                                        "value": "Math.floor(core.values.redGem * core.status.thisMap.ratio)"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "确定"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "item:blueKey",
                                                                        "operator": "+=",
                                                                        "value": "2"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "获得道具"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "switch:A",
                                                                        "value": "true"
                                                                    },
                                                                    {
                                                                        "type": "hide",
                                                                        "remove": true,
                                                                        "time": 250
                                                                    }
                                                                ],
                                                                "false": [
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "操作失败"
                                                                    },
                                                                    "\t[商人074A1,thief]你的攻击不足~"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "text": "-${Math.ceil(1.5*core.values.blueGem * core.status.thisMap.ratio)}防御",
                                                        "color": [
                                                            9,
                                                            78,
                                                            235,
                                                            1
                                                        ],
                                                        "action": [
                                                            {
                                                                "type": "if",
                                                                "condition": "(status:def>=Math.ceil(1.5*core.values.blueGem * core.status.thisMap.ratio))",
                                                                "true": [
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "status:def",
                                                                        "operator": "-=",
                                                                        "value": "Math.ceil(1.5*core.values.blueGem * core.status.thisMap.ratio)"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "确定"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "item:blueKey",
                                                                        "operator": "+=",
                                                                        "value": "2"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "获得道具"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "switch:A",
                                                                        "value": "true"
                                                                    },
                                                                    {
                                                                        "type": "hide",
                                                                        "remove": true,
                                                                        "time": 250
                                                                    }
                                                                ],
                                                                "false": [
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "操作失败"
                                                                    },
                                                                    "\t[商人074A1,thief]你的防御不足~"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "text": "-${Math.ceil(3*core.values.greenGem * core.status.thisMap.ratio)}护盾",
                                                        "color": [
                                                            89,
                                                            235,
                                                            78,
                                                            1
                                                        ],
                                                        "action": [
                                                            {
                                                                "type": "if",
                                                                "condition": "(status:mdef>=Math.ceil(3*core.values.greenGem * core.status.thisMap.ratio))",
                                                                "true": [
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "status:mdef",
                                                                        "operator": "-=",
                                                                        "value": "Math.ceil(3*core.values.greenGem * core.status.thisMap.ratio)"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "确定"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "item:blueKey",
                                                                        "operator": "+=",
                                                                        "value": "2"
                                                                    },
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "获得道具"
                                                                    },
                                                                    {
                                                                        "type": "setValue",
                                                                        "name": "switch:A",
                                                                        "value": "true"
                                                                    },
                                                                    {
                                                                        "type": "hide",
                                                                        "remove": true,
                                                                        "time": 250
                                                                    }
                                                                ],
                                                                "false": [
                                                                    {
                                                                        "type": "playSound",
                                                                        "name": "操作失败"
                                                                    },
                                                                    "\t[商人074A1,thief]你的护盾不足~"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "text": "取消",
                                                        "action": [
                                                            {
                                                                "type": "playSound",
                                                                "name": "取消"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "text": "取消",
                                        "action": [
                                            {
                                                "type": "playSound",
                                                "name": "取消"
                                            },
                                            "\t[商人074A1,thief]想好再来吧~"
                                        ]
                                    }
                                ]
                            }
                        ],
                        "no": [
                            {
                                "type": "playSound",
                                "name": "取消"
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "changeFloor": {
        "6,12": {
            "floorId": ":before",
            "stair": "upFloor",
            "time": 250
        },
        "6,0": {
            "floorId": ":next",
            "stair": "downFloor",
            "time": 250
        }
    },
    "beforeBattle": {},
    "afterBattle": {},
    "afterGetItem": {},
    "afterOpenDoor": {},
    "autoEvent": {},
    "cannotMove": {},
    "cannotMoveIn": {},
    "map": [
    [  4,  4,  4,  4,  4,  3, 87,  3,  4,  4,  4,  4,  4],
    [  4,  3,  3,  3,  3,  3,  0,  3,  3,  3,  3,  3,  4],
    [  4,  3,164,  0,  0,  0,161,  0,  0,  0,163,  3,  4],
    [  4,  3,  0,  3,  3,  3,  0,  3,  3,  3,  0,  3,  4],
    [  4,  3,  0,  3,  0,  3,  0,  3,  0,  3,  0,  3,  4],
    [  4,  3, 22,  3,10185,  3, 32,  3,10185,  3, 28,  3,  4],
    [  4,  3,123,  3,10195,  3,125,  3,10195,  3,122,  3,  4],
    [  4,  3,  0,  3,10189,  3, 32,  3,10189,  3,  0,  3,  4],
    [  4,  3,  0,  3,  0,  3,  0,  3,  0,  3,  0,  3,  4],
    [  4,  3,  0,  3,  3,  3,  0,  3,  3,  3,  0,  3,  4],
    [  4,  3,  0,  0,  0,  0,  0,  0,  0,  0,  0,  3,  4],
    [  4,  3,  3,  3,  3,  3,  0,  3,  3,  3,  3,  3,  4],
    [  4,  4,  4,  4,  4,  3, 88,  3,  4,  4,  4,  4,  4]
],
    "bgmap": [
    [  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
    [  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
    [  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
    [  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
    [  0,  0,  0,  0,  4,  0,  0,  0,  4,  0,  0,  0,  0],
    [  0,  0,  0,  0,  4,  0,  0,  0,  4,  0,  0,  0,  0],
    [  0,  0,  0,  0,  4,  0,  0,  0,  4,  0,  0,  0,  0],
    [  0,  0,  0,  0,  4,  0,  0,  0,  4,  0,  0,  0,  0],
    [  0,  0,  0,  0,  4,  0,  0,  0,  4,  0,  0,  0,  0],
    [  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
    [  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
    [  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
    [  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0]
],
    "fgmap": [

]
}