

{

    "ID": 1037, //清除诅咒商店

    "Events": {

        "OnHollowCreated":{

            "Actions":[

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Count.1037",

                    "Value": 1

                }

            ]

        },

        "OnStart": {

            "Actions": [

                {

                    "$type": "Share.CConfigOpenDialog"

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "NoMercy",

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByCurse",

                            "CompareType":"GreaterEqual",

                            "Count":5

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnChoose"

                }

            ]

        },

        "OnChoose":{

            "Actions":[

                {

                    "$type": "Share.CConfigChoiceServer",

                    "OptionsMode": "Normal",

                    "Title":"Event1037_1",

                    "Description": "Event1037_2",

                    "QuestionDescription": "Event1037_3",

                    "Choices": [

                        {  //1

                            "OptionText": "Event1037_4",

                            "OptionText2": "Event1037_5",

                            "OptionIcon1": 105,

                            "OptionContents": [

                                {

                                    "Actions": [

                                        

                                        {

                                            "$type": "Share.CConfigJump",

                                            "Jump": "Money"

                                        }

                                    ]

                                }

                            ],

                            "Predicates":[

                                {

                                    "$type":"Share.CConfigEventByCurse",

                                    "CompareType":"Greater",

                                    "Count":0

                                }

                            ]

                        },

                        { //离开

                            "OptionText": "Event1037_6",

                            "OptionText2": "Event1037_7",

                            "OptionIcon1": 106,

                            "OptionContents": [

                                {

                                    "Actions": [

                                        {

                                            "$type": "Share.CConfigJump",

                                            "Jump": "OnEnd"

                                        }

                                    ]

                                }

                            ]

                        }

                    ]

                    

                }

            ]

        },

        "Money":{

            "Actions":[

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "NoMoney",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByItemID",

                            "ItemID": 1,

                            "CompareType": "Less",

                            "Count": "specials(Coin)*scenevar(Count.1037)"

                        }

                    ]

                },

                {

                    //扣除金币

                    "$type" : "Share.CConfigAddItem",

                    "ItemID" : 1,

                    "Count" : "-scenevar(Count.1037)*specials(Coin)"

                },

                {

                    "$type":"Share.CConfigJump",

                    "Jump":"Curse"

                }

            ]

        },

        "Curse":{

            "Actions":[

                

                {

                    "$type": "Share.CConfigCloseDialog"

                },

                {

                    "$type":"Share.CConfigRemoveCurse",

                    "RemoveType":"Initiative",

                    "Count":1,

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByCurse",

                            "CompareType":"Greater",

                            "Count":0

                        }

                    ]

                },

                //物价指数上升

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Count.1037",

                    "Value":"scenevar(Count.1037)+1"

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        },

        "NoMercy":{

            "Actions":[

                {

                    "$type": "Share.CConfigLogText",

                    "Messages": [

                        "Event1037_8"

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnEnd"

                }

            ]

        },

        "NoMoney":{

            "Actions":[

                {

                    "$type": "Share.CConfigLogText",

                    "Messages": [

                        "Event1037_9"

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnEnd"

                }

            ]

        },

        "OnEnd": {

            "Actions": [

                {

                    "$type": "Share.CConfigCloseDialog"

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        }

    },

    "Specials": {

        "Coin":2000

    }

}

