//祭坛

{

    "ID": 2020401,

    "Specials": {

        //特异性划分

        "branch":1,



        //recover

        "hp":20,

        //标志参数

        "BattleID": 0,

        "max":0,

        "shownext":0,

        "targetposX":0,

        "targetposY":0

    },

    "Events": {

        "OnCreate":{

            //eventmodify替代逻辑,记录每个事件的位置

            "Actions":[

                //记录位置

                {

                    //有效性

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Valid_Target_2020401_{specials(branch)}",

                    "Value": 1

                },

                {

                    //X

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "X_Target_2020401_{specials(branch)}",

                    "Value": "getpos(X,2)"

                },

                {

                    //Y

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Y_Target_2020401_{specials(branch)}",

                    "Value": "getpos(Y,2)"

                },

                {

                    //红9

                    "$type": "Share.CConfigEventModification",

                    // "ModifyID": 2010101,

                    "ModificationNum":1,

                    "ModificationType":1,

                    "ExcludeEventID":[2020304,2020401,2020405,2020406,2020402,2020408],

                    "TargetCoreNode":0,

                    "TargetEventType":1,

                    "TargetEventState":["Locked"],

                    "TargetVisibleState":["VisibleAtGridAround"],

                    "EventID":[

                        1003

                    ],

                    "EventState":"ShowEvent",

                    "VisibleState":"Visible",

                    "Position":"Absolute",

                    "X":"getpos(X,2)",

                    "Y":"getpos(Y,2)",

                    "Radius":2,

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByEventState",

                            "X":"getpos(X,2)",

                            "Y":"getpos(Y,2)",

                            "NodeType":"All",

                            // "EventType":"Dialog",

                            "Position":"Absolute",

                            "Radius":2,

                            "EventID":[1003],

                            "Count":0,

                            "CompareType":"Equal"

                        }

                    ]

                }

            ]

        },

        "OnStart": {

            "Actions": [

                {

                    "$type": "Share.CConfigOpenDialog"

                },

                {

                    "$type": "Share.CConfigChoiceServer",

                    "OptionsMode": "Normal",

                    "Title":"Event2020401_Title", //希望的坐标点

                    "Description": "Event2020401_1", //到达了一处11号所指示的坐标地点，这里似乎是个反叛军搭建的临时隔离屋，可以在空洞扩张时用来紧急避难，大幅降低以太侵蚀速度。

                    "QuestionDescription": "Event2020401_2", //要想进去得先把门外的守卫打倒。

                    "Choices": [

                        {

                            "OptionText": "Event2020401_3", //进入战斗

                            "OptionIcon1":109,

                            "OptionContents": [

                                {

                                    "Actions": 

                                    [



                                    ]

                                }

                            ]

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigDropBattleID",

                    "Type":[102,103],

                    "SpecialName":"BattleID"

                },

                {

                    "$type": "Share.CConfigTriggerBattle",

                    "BattleID": "specials(BattleID)",

                    "OnSuccess": "OnChoose"

                }

            ]

        },

        "OnChoose":{

            "Actions":[

                {

                  "$type": "Share.CConfigPreset",

                  "PerformKey" : "Chessboard_BattleEnd_None"

                },

                {

                    "$type":"Share.CConfigCloseDialog",

                    "CameraMove":false

                },

                {

                    //有效性

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Valid_Target_2020401_{specials(branch)}",

                    "Value": 0

                },

                {

                    "$type":"Share.CConfigOpenDialog"

                },

                //选择

                {

                    "$type": "Share.CConfigChoiceServer",

                    "OptionsMode": "Normal",

                    "Title":"Event2020401_Title", //希望的坐标点

                    "Description": "Event2020401_4", //果然，你们在屋子里找到了一.....

                    "QuestionDescription": "Event2020401_5", //可以进隔离屋查看了。

                    "Choices": [

                        {

                            "OptionText": "Event2020401_6", // 情报

                            "OptionText2": "Event2020401_7", // 显示着下一个隔离屋的方向

                            "OptionIcon1":113,

                            "Predicates":[

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "max",

                                    "Param":"scenevar(Valid_Target_2020401_1)+scenevar(Valid_Target_2020401_2)+scenevar(Valid_Target_2020401_3)",

                                    "CompareType":"NotEqual"

                                }

                            ],

                            "OptionContents": [

                                {

                                    "Actions": [

                                        {

                                            "$type": "Share.CConfigJump",

                                            "Jump": "OnDiscover"

                                        }

                                    ]

                                }

                            ]

                        },

                        {

                            "OptionText": "Event2020401_8", // 补给

                            "OptionText2": "Event2020401_9", // 全员回复{specials(hp)}%生命值

                            "OptionIcon1":103,

                            "OptionContents": [

                                {

                                    "Actions": [

                                        {

                                            "$type": "Share.CConfigJump",

                                            "Jump": "OnRecover"

                                        }

                                    ]

                                }

                            ]

                        }

                    ]

                }

            ]

        },

        "OnDiscover": {

            "Actions": [

                // {

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

                //     "Property" :  "Stamina",

                //     "Count" : "specials(stamina)"

                // },

                {

                    "$type": "Share.CConfigCloseDialog"

                },

                {

                    "$type": "Share.CConfigSwitchServer",

                    "Switch": [

                        {

                            "Weight": 50,

                            "Conditions":[

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "branch",

                                    "Param":1,

                                    "CompareType":"NotEqual"

                                },

                                {

                                    "$type": "Share.CConfigEventByHollowVariable",

                                    "Key": "Valid_Target_2020401_1",

                                    "CompareType": "NotEqual",

                                    "Count": 0

                                }

                            ],

                            "Actions": [

                                {

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"targetposX",

                                    "SpecialValue":"scenevar(X_Target_2020401_1)"

                                },

                                {

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"targetposY",

                                    "SpecialValue":"scenevar(Y_Target_2020401_1)"

                                }

                            ]

                        },

                        {

                            "Weight": 50,

                            "Conditions":[

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "branch",

                                    "Param":2,

                                    "CompareType":"NotEqual"

                                },

                                {

                                    "$type": "Share.CConfigEventByHollowVariable",

                                    "Key": "Valid_Target_2020401_2",

                                    "CompareType": "NotEqual",

                                    "Count": 0

                                }

                            ],

                            "Actions": [

                                {

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"targetposX",

                                    "SpecialValue":"scenevar(X_Target_2020401_2)"

                                },

                                {

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"targetposY",

                                    "SpecialValue":"scenevar(Y_Target_2020401_2)"

                                }

                            ]

                        },

                        {

                            "Weight": 50,

                            "Conditions":[

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "branch",

                                    "Param":3,

                                    "CompareType":"NotEqual"

                                },

                                {

                                    "$type": "Share.CConfigEventByHollowVariable",

                                    "Key": "Valid_Target_2020401_3",

                                    "CompareType": "NotEqual",

                                    "Count": 0

                                }

                            ],

                            "Actions": [

                                {

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"targetposX",

                                    "SpecialValue":"scenevar(X_Target_2020401_3)"

                                },

                                {

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"targetposY",

                                    "SpecialValue":"scenevar(Y_Target_2020401_3)"

                                }

                            ]

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigShowTip",

                    "TipID": 202040102,

                    "Delay": 0

                },

                {

                    "$type": "Share.CConfigCameraMoveV2",

                    "StretchKey": "Far",

                    "Type": "TriggerPosition",

                    "PositionOffsetType":"Absolute",

                    "PositionOffsetX":"specials(targetposX)",

                    "PositionOffsetY":"specials(targetposY)",

                    "RadiusX":2,

                    "RadiusY":2,

                    "CanControl":false,

                    "UseStretchZ":true

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.75

                },

                {

                    "$type": "Share.CConfigSetMapState",

                    "Position": "Absolute",

                    "NodeType": "All",

                    "X": "specials(targetposX)",

                    "Y": "specials(targetposY)",

                    "Radius": 1,

                    "Count": 5,

                    "FromVisibleState": [

                        "VisibleAtGridAround"

                    ],

                    "ToVisibleState": ["Visible"]

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.2

                },

                {

                    "$type": "Share.CConfigSetMapState",

                    "Position": "Absolute",

                    "NodeType": "All",

                    "X": "specials(targetposX)",

                    "Y": "specials(targetposY)",

                    "Radius": 2,

                    "Count": 13,

                    "FromVisibleState": [

                        "VisibleAtGridAround"

                    ],

                    "ToVisibleState": ["Visible"]

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.75

                },

                {

                    "$type": "Share.CConfigCameraMoveV2",

                    "StretchKey": "Back",

                    "Type": "Back",

                    "CanControl":true,

                    "UseStretchZ":false

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnEnd"

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        },

        "OnRecover": {

            "Actions": [

                {

                    "$type": "Share.CConfigCloseDialog"

                },

                {

                    "$type": "Share.CConfigShowTip",

                    "TipID": 202040101,

                    "Delay": 0

                },

                {

                    "$type": "Share.CConfigModifyProperty",

                    "Property": "Hp",

                    "Count": "property(HpMax_Battle)*specials(hp)*0.01"

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnEnd"

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        },

        

        "OnEnd": {

            "Actions": [

                // {

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

                // },

                {

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":1020060003,

                    "Progress":1,

                    "ModifyType":"Add"

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        }

    }

}

