{

    "ID": 2020706,  //开关两处，包含普通和精英人形战斗

    

    

    "Events": {



        "OnHollowCreated":{

            "Actions":[

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Eventb.2020709",//b-初始为关

                    "Value": 0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Eventd.2020711",//d-初始为开

                    "Value": 1

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Eventg.2020714",//g-初始为关

                    "Value": 0

                }

            ]

        },

        "OnStart": {

            "Actions": [

               

              //从右来(左边开关)

              {

                "$type": "Share.CConfigJump",

                "Jump":"OnRight",

                "Predicates":[

                    {

                      "$type":"Share.CConfigEventByDirection",

                      "Direction":

                      [

                          "Down"

                      ]

                  }

                ]

              },

              //从左来（右边开关）

              {

                "$type": "Share.CConfigJump",

                "Jump":"OnLeft",

                "Predicates":[

                  {

                    "$type":"Share.CConfigEventByDirection",

                    "Direction":

                    [

                        "Up"

                    ]

                }

                ]

              }

            ]

          },

        "OnRight":{

            "Actions":[

                {

                    "$type": "Share.CConfigJump",

                    "Jump":"OnAndOff",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "BattleEnd_1",

                            "Param":0,

                            "CompareType":"NotEqual"

                        }

                    ]

                    },



                {

                    "$type": "Share.CConfigOpenDialog"

                },

                {

                    //对话框内容

                    "$type": "Share.CConfigLogText",

                    "Messages": [

                        "Event2020706_1",//前方有一扇巨大的站台卷帘门，如果能灵活运用，或许能解决掉那个四处奔窜的以骸。

                        "Event2020706_6"    //太幸运了，卷帘门还能正常使用！

                        //"Event2020706_2"//先把盘踞在周围的威胁清除掉吧。

                        //"Event2020706_5" ,//威胁已清除，接下来……

                    ]

                },

                {

                    "$type": "Share.CConfigCloseDialog"

                },

                

                

                //观测条件

                {

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":30060064,

                    "Progress":1,

                    "ModifyType":"Add"

                },

                //Fairy：卷帘门困住，对面看看

                {

                    "$type": "Share.CConfigShowTip",

                    "TipID": 100031004,

                    "Delay": 0,

                    "Type":"Duration",

                    "Duration":50,

                    "NextTips":[

                        {

                            "$type": "Share.CConfigShowTip",

                            "TipID": 100031005

                        }

                    ]

                },

                //战斗计数

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "BattleEnd_1",

                    "SpecialValue": 1

                },

                

                {

                    "$type": "Share.CConfigJump",

                    "Jump":"OnAndOff"

                  }

            ]

        },

        "OnLeft":{

            "Actions":[

                //判断战斗计数是否为0，非0跳转到OnAndOff

                {

                    "$type": "Share.CConfigJump",

                    "Jump":"OnAndOff",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "BattleEnd_2",

                            "Param":0,

                            "CompareType":"NotEqual"

                        }

                    ]

                    },



                {

                    "$type": "Share.CConfigOpenDialog"

                },

                {

                    //对话框内容

                    "$type": "Share.CConfigLogText",

                    "Messages": [

                        "Event2020706_1",//前方有一扇巨大的站台卷帘门，如果能灵活运用，或许能解决掉那个四处奔窜的以骸。

                        "Event2020706_6"    //太幸运了，卷帘门还能正常使用！

                        //"Event2020706_2"//先把盘踞在周围的威胁清除掉吧。

                        //"Event2020706_5" ,//威胁已清除，接下来……

                    ]

                },

                {

                    "$type": "Share.CConfigCloseDialog"

                },

                //观测条件

                {

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":30060064,

                    "Progress":1,

                    "ModifyType":"Add"

                },

                //战斗计数

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "BattleEnd_2",

                    "SpecialValue": 1

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump":"OnAndOff"

                }

            ]

        },

        "OnAndOff": {

            "Actions": [

                {

                    "$type": "Share.CConfigCameraMoveV2",

                    "StretchKey": "Target",

                    "Type": "CustomBound",

                    "BoundIndexX":10,

                    "BoundIndexY":26,

                    "CanControl":false,

                    "UseStretchZ":true,

                    "FreezeZ":true,

                    "Parallel":false

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.5

                },

                {

                  "$type": "Share.CConfigJump",

                  "Jump": "State_1",

                  "Predicates": //判断d格子是否是“开”状态

                            [

                                {

                                    "$type": "Share.CConfigEventByHollowVariable",

                                    "Key": "Eventd.2020711",

                                    "CompareType": "Equal",

                                    "Count": 1

                                }

                            ]

                },

                {

                  "$type": "Share.CConfigJump",

                  "Jump": "State_2"

                }

            ]

        },

    "State_1":{ //开bg，关d 

        "Actions":[

            //关d（3,2）

            {

                "$type": "Share.CConfigSetMapState",

                "Position": "Absolute",

                "NodeType": "All",

                "X": 3,

                "Y": 2,

                "Radius": 0,

                "Count": 1,

                "FromVisibleState": ["Visible"],

                "ToVisibleState": [ "VisibleByTriggerEvent" ]

            },

            //设置d为关

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Eventd.2020711",

                "Value": 0

            },

            //开b（4,1）

            {

                "$type": "Share.CConfigSetMapState",

                "Position": "Absolute",

                "NodeType": "All",

                "X": 4,

                "Y": 1,

                "Radius": 0,

                "Count": 1,

                "FromVisibleState": ["VisibleByTriggerEvent"],

                "ToVisibleState": [ "Visible" ]

            },

            //设置b为开

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Eventb.2020709",

                "Value": 1

            },

            //开g（4,3）

            {

                "$type": "Share.CConfigSetMapState",

                "Position": "Absolute",

                "NodeType": "All",

                "X": 4,

                "Y": 3,

                "Radius": 0,

                "Count": 1,

                "FromVisibleState": ["VisibleByTriggerEvent"],

                "ToVisibleState": [ "Visible" ]

            },

            //设置g为开

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Eventg.2020714",

                "Value": 1

            },

            {

                "$type": "Share.CConfigWaitSeconds",

                "Time": 0.5

            },

            {

                "$type": "Share.CConfigCameraMoveV2",

                "StretchKey": "Back",

                "Type": "Back",

                "CanControl":true,

                "UseStretchZ":false,

                "FreezeZ":true,

                "Parallel":false

            },

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnEnd"

              }



            

        ]

    },

    "State_2":{ //关bg，开d 

        "Actions":[

            //开d（3,2）

            {

                "$type": "Share.CConfigSetMapState",

                "Position": "Absolute",

                "NodeType": "All",

                "X": 3,

                "Y": 2,

                "Radius": 0,

                "Count": 1,

                "FromVisibleState": ["VisibleByTriggerEvent"],

                "ToVisibleState": [ "Visible" ]

            },

            //设置d为开

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Eventd.2020711",

                "Value": 1

            },

            //关b（4,1）

            {

                "$type": "Share.CConfigSetMapState",

                "Position": "Absolute",

                "NodeType": "All",

                "X": 4,

                "Y": 1,

                "Radius": 0,

                "Count": 1,

                "FromVisibleState": ["Visible"],

                "ToVisibleState": [ "VisibleByTriggerEvent" ]

            },

            //设置b为关

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Eventb.2020709",

                "Value": 0

            },

            //关g（4,3）

            {

                "$type": "Share.CConfigSetMapState",

                "Position": "Absolute",

                "NodeType": "All",

                "X": 4,

                "Y": 3,

                "Radius": 0,

                "Count": 1,

                "FromVisibleState": ["Visible"],

                "ToVisibleState": [ "VisibleByTriggerEvent" ]

            },

            //设置g为关

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Eventg.2020714",

                "Value": 0

            },

            {

                "$type": "Share.CConfigWaitSeconds",

                "Time": 0.5

            },

            {

                "$type": "Share.CConfigCameraMoveV2",

                "StretchKey": "Back",

                "Type": "Back",

                "CanControl":true,

                "UseStretchZ":false,

                "FreezeZ":true,

                "Parallel":false

            },

            

            

            

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnEnd"

              }

        ]

    },

    "OnEnd": {

        "Actions": [

            {

                "$type": "Share.CConfigWaitSeconds",

                "Time": 0.5

            },

            

            {

                "$type": "Share.CConfigFinishEvent"

            }

        ]

    }



    

    },

    "Specials": {

        "BattleID": 0,

        "BattleEnd_1": 0, //左边的开关只战斗一次，计数

        "BattleEnd_2": 0  //右边的开关只战斗一次，计数

    }

}

