//目标点

{

    "ID": 2011407,

    "Specials":{

        "HPRecover":30,

        "Stamina":80,

        "Coin":1000,



        "BattleID":10102032,

        "Flag":0,

        "X":0,

        "Y":0,

        "X1":10,

        "Y1":9,

        "X2":2,

        "Y2":9,

        "X3":3,

        "Y3":2,



        //循环控制

        "ite":0

    },

    "Events": {

        "OnStart": {

            "Actions": [

                {

                    "$type":"Share.CConfigSetHollowVariable",

                    "Key":"Target_2011407",

                    "Value":"scenevar(Target_2011407)+1"

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "First",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Target_2011407",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "Second",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Target_2011407",

                            "CompareType": "Equal",

                            "Count": 2

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "Last",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Target_2011407",

                            "CompareType": "Equal",

                            "Count": 3

                        }

                    ]

                }

            ]

        },

        "First":{

            "Actions":[

                {

                    "$type": "Share.CConfigShowTip",

                    "TipID": 201140701

                },

                {

                    "$type": "Share.CConfigPlayAnim",

                    "AnimID":20008,

                    "WaitingTime": 1

                },

                {

                    "$type": "Share.CConfigShowTip",

                    "TipID": 201140702

                },

                //循环观察

                {

                    "$type":"Share.CConfigSetSpecial",

                    "ID":101,

                    "SpecialName":"ite",

                    "SpecialValue":"specials(ite)+1"

                },

                {

                    "$type":"Share.CConfigGoto",

                    "GotoID":102,

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventByCompareParam",

							"Param1":"specials(ite)",

							"Param2":"specials(Flag)",

							"CompareType":"Equal"

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"specials(X{specials(ite)})"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"specials(Y{specials(ite)})"

                },

                {

                    "$type": "Share.CConfigCameraMoveV2",

                    "StretchKey": "Target",

                    "Type": "TriggerPosition",

                    "PositionOffsetType":"Absolute",

                    "PositionOffsetX":"specials(X)",

                    "PositionOffsetY":"specials(Y)",

                    "RadiusX":2,

                    "RadiusY":2,

                    "CanControl":false,

                    "UseStretchZ":true,

                    "FreezeZ":true

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.5

                },

                {

                    "$type": "Share.CConfigSetMapState",

                    "Position": "Absolute",

                    "NodeType": "All",

                    "X": "specials(X)",

                    "Y": "specials(Y)",

                    "Radius": 0,

                    "Count": 1,

                    "ToVisibleState": ["Visible"],

                    "ToState": ["ShowEvent"]

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 1

                },

                {

                    "$type":"Share.CConfigGoto",

                    "ID":102,

                    "GotoID":101,

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventByCompareParam",

							"Param1":"specials(ite)",

							"Param2":3,

							"CompareType":"NotEqual"

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigCameraMoveV2",

                    "StretchKey": "Back",

                    "Type": "Back",

                    "CanControl":true,

                    "UseStretchZ":false

                },

                {

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":1020060010,

                    "Progress":1,

                    "ModifyType":"Add"

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        },

        "Second":{

            "Actions":[

                {

                    "$type": "Share.CConfigOpenDialog"

                },

                {

                    "$type": "Share.CConfigChoiceServer",

                    "OptionsMode": "Normal",

                    "Title":"Event2011407_Title", 

                    "Description": "Event2011407_1",

                    "QuestionDescription": "Event2011407_2",

                    "Choices": [

                        {

                            "OptionText": "Event2011407_3",

                            "OptionText2": "Event2011407_4",

                            "OptionIcon1": 109,

                            "OptionContents": [

                                {

                                    "Actions": [

                                        {

                                            "$type": "Share.CConfigJump",

                                            "Jump": "OP1"

                                        }

                                    ]

                                }

                            ]

                        },

                        {

                            "OptionText": "Event2011407_5",

                            "OptionText2": "Event2011407_6",

                            "OptionIcon1": 113,

                            "OptionContents": [

                                {

                                    "Actions": [

                                        {

                                            "$type": "Share.CConfigJump",

                                            "Jump": "OP2"

                                        }

                                    ]

                                }

                            ]

                        },

                        {

                            "OptionText": "Event2011407_7",

                            "OptionText2": "Event2011407_8",

                            "OptionIcon1": 113,

                            "OptionContents": [

                                {

                                    "Actions": [

                                        {

                                            "$type": "Share.CConfigJump",

                                            "Jump": "OP3"

                                        }

                                    ]

                                }

                            ]

                        }

                    ]

                }

            ]

        },

        "OP1":{

            "Actions":[

                {

                    "$type":"Share.CConfigSetBattleType",

                    "BattleID":"specials(BattleID)",

                    "Type":"Elite"

                },

                {

                    "$type": "Share.CConfigTriggerBattle",

                    "BattleID": "specials(BattleID)",

                    "OnSuccess": "OnFinish"

                }

            ]

        },

        "OP2":{

            "Actions":[

                {

                    "$type": "Share.CConfigLogText",

                    "Messages": [

                        "Event2011407_9",

                        "Event2011407_10"

                    ]

                },

                { 	

                    //+100压力值

                    "$type" : "Share.CConfigModifySceneProperty",

                    "Property" :  "Stamina",

                    "Count" : "specials(Stamina)"

                },

                {

                    "$type": "Share.CConfigCloseDialog"

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "SecondEnd"

                }

            ]

        },

        "OP3":{

            "Actions":[

                {

                    "$type": "Share.CConfigLogText",

                    "Messages": [

                        "Event2011407_11",

                        "Event2011407_12"

                    ]

                },

                {

                    //获得金币

                    "$type": "Share.CConfigAddItem",

                    "ItemID": 1,

                    "Count": "-specials(Coin)"

                },

                {

                    "$type": "Share.CConfigCloseDialog"

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "SecondEnd"

                }

            ]

        },

        "OnFinish": {

            "Actions": [

                {

                    "$type": "Share.CConfigPreset",

                    "PerformKey" : "Chessboard_BattleEnd_None"

                },

                {

                    "$type": "Share.CConfigCloseDialog",

                    "CameraMove":false

                },

                // {

                //     "$type": "Share.CConfigOpenDialog"

                // },

                // {

                //     "$type": "Share.CConfigChoiceServer",

                //     "OptionsMode": "Normal",

                //     "Title":"间谍的信号装置", 

                //     "Description": "先这样这样再那样那样...",

                //     "QuestionDescription": "看看有什么好东西",

                //     "Choices": [

                //         {

                //             "OptionText": "清空当前压力",

                //             "OptionIcon1": 113,

                //             "OptionContents": [

                //                 {

                //                     "Actions": [

                //                         {

                //                             //-20压力值

                //                             "$type": "Share.CConfigModifySceneProperty",

                //                             "Property": "Stamina",

                //                             "Count": "-100"

                //                         }

                //                     ]

                //                 }

                //             ]

                //         },

                //         {

                //             "OptionText": "恢复全队{specials(HPRecover)}%生命值",

                //             "OptionIcon1": 113,

                //             "OptionContents": [

                //                 {

                //                     "Actions": [

                //                         {

                //                             "$type": "Share.CConfigModifyProperty",

                //                             "Property": "Hp",

                //                             "Count": "property(HpMax_Battle)*specials(HPRecover)*0.01"

                //                         }

                //                     ]

                //                 }

                //             ]

                //         }

                //     ]

                // },

                // {

                //     "$type": "Share.CConfigCloseDialog"

                // },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "SecondEnd"

                }

            ]

        },

        "SecondEnd":{

            "Actions":[

                {

                    "$type": "Share.CConfigEventModification",

                    "ModificationNum":1,

                    "ModificationType":1,

                    "TargetEventID": [

                        2011420

                    ],

                    "TargetCoreNode":0,

                    "TargetEventType":1,

                    "EventID":[

                        2011419

                    ],

                    "EventState":"ShowEvent",

                    "VisibleState":"Visible",

                    "Position":"Relative",

                    "X":0,

                    "Y":0,

                    "Radius":1

                },

                {

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":1020060010,

                    "Progress":1,

                    "ModifyType":"Add"

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        },

        "Last":{

            "Actions":[

                {

                    "$type": "Share.CConfigShowTip",

                    "TipID": 201140703

                },

                {

                    "$type": "Share.CConfigPlayAnim",

                    "AnimID":20008,

                    "WaitingTime": 1

                },

                {

                    "$type": "Share.CConfigPerform",

                    "PerformID" : 15011

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.5

                },

                {

                    "$type": "Share.CConfigCameraMoveV2",

                    "StretchKey": "Target",

                    "Type": "TriggerPosition",

                    "PositionOffsetType":"Absolute",

                    "PositionOffsetX":6,

                    "PositionOffsetY":6,

                    "RadiusX":2,

                    "RadiusY":2,

                    "CanControl":false,

                    "UseStretchZ":true,

                    "FreezeZ":true

                },

                {

                    "$type": "Share.CConfigShowTip",

                    "TipID": "201140704"

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.5

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "ModificationNum":15,

                    "ModificationType":1,

                    "IndexList":[

                        96

                    ],

                    "TargetCoreNode":0,

                    "TargetEventType":1,

                    "EventID":[

                        2011409

                    ],

                    "EventState":"Target",

                    "VisibleState":"Visible"

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 1

                },

                {

                    "$type": "Share.CConfigCameraMoveV2",

                    "StretchKey": "Back",

                    "Type": "Back",

                    "CanControl":true,

                    "UseStretchZ":false

                },

                {

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":1020060010,

                    "Progress":1,

                    "ModifyType":"Add"

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        }

    }

}

