{

    "ID": 2010913, //绝望滋生，全局事件2

               //1.替身移动；2.开关三个； 3.桥打开；

    "EventTypeTag": [

        "Empty"

    ],

    "Specials": {

        "BridgeCount": 0,

        "BridgeCount_1": 0,

        "BridgeCount_2": 0,

        "X":2, //替身初始位置X

        "Y":3,

        "PIndex":24,//玩家初始index

        "Diff":0,   //储存玩家当前index与上一步index的差

        "Empty":0,

        "SwitchState":0, //机关1的开关状态判断

        "MoveCount":0,

        "Player_X":0,

        "Player_Y":0

    },

    "Events": {



        "OnPlayerMove": {

            "Actions": [

                //拿到玩家坐标

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Player_X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Player_Y",

                    "SpecialValue":"playerpos(Y)"

                },

                //最终观测任务判断

                {

                    "$type":"Share.CConfigJump",

                    "Jump":"Quest",

                    "Predicates":[

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "Player_X",

                                    "Param": 2,

                                    "CompareType": "Equal"

                                },

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "Player_Y",

                                    "Param": 1,

                                    "CompareType": "Equal"

                                },

                                //桥已升起

                                {

                                    "$type": "Share.CConfigEventByEventState",

                                    "X": 4,

                                    "Y": 3,

                                    "Position": "Absolute",

                                    "VisibleState": [

                                      "Visible"

                                    ],

                                    "Count": 1,

                                    "CompareType": "Equal",

                                    "Radius": 0

                                }

                    ]

                },

                //计布器

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "MoveCount",

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

                },

                //还原格子

                

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 6,

                    "Y": 2,

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2010901 ],//开始点

                    "TargetEventType": 1,

                    "TargetEventState":["Finished"],

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2010902 ],//空

                    "EventState": "Unstable",

                    "VisibleState": "Visible"

                  },

                  {

                    "$type": "Share.CConfigEventModification",

                    "X": 6,

                    "Y": 2,

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2010912 ],//提示

                    "TargetEventType": 1,

                    "TargetEventState":["Finished"],

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2010902 ],//空

                    "EventState": "Unstable",

                    "VisibleState": "Visible"

                  },

                  {

                    "$type": "Share.CConfigEventModification",

                    "X": 5,

                    "Y": 3,

                    "Position": "Absolute",

                    "Radius": 15,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2010904 ],//起始点

                    "TargetEventType": 1,

                    "TargetEventState":["Finished"],

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2010902 ],//空

                    "EventState": "Unstable",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 6,

                    "Y": 3,

                    "Position": "Absolute",

                    "Radius": 2,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2010911 ],//扭蛋

                    "TargetEventType": 1,

                    "TargetEventState":["Finished"],

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2010902 ],//空

                    "EventState": "Unstable",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 6,

                    "Y": 3,

                    "Position": "Absolute",

                    "Radius": 2,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2010903 ],//战斗

                    "TargetEventType": 1,

                    "TargetEventState":["Finished"],

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2010902 ],//空

                    "EventState": "Unstable",

                    "VisibleState": "Visible"

                  },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 6,

                    "Y": 3,

                    "Position": "Absolute",

                    "Radius": 2,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 3003 ],//战斗

                    "TargetEventType": 1,

                    "TargetEventState":["Finished"],

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2010902 ],//空

                    "EventState": "Unstable",

                    "VisibleState": "Visible"

                  },

                {

                    "$type": "Share.CConfigSetMapState",

                    "X": 6,

                    "Y": 3,

                    "Position": "Absolute",

                    "NodeType": "All",

                    "Radius": 2,

                    "Count": 1,

                    "FromState": ["Finished"],

                    "ToState": ["Unstable"]

                },

                //保险起见，判断方向前全部清零一次

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Right.2010901",

                    "Value": 0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Left.2010902",

                    "Value": 0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Up.2010903",

                    "Value": 0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Down.2010904",

                    "Value": 0

                },



            //得到index差值 playerpos(Index)-specials(PIndex)

            

            {

                "$type": "Share.CConfigSetSpecial",

                "SpecialName": "Diff",

                "SpecialValue": "playerpos(Index)-specials(PIndex)"

            },



            //判断是否往右走

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Right.2010901",

                "Value": 1,

                "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"Diff",

                        "Param":1,

                        "CompareType":"Equal"

                    }

                ]

            },

            //判断是否往左走

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Left.2010902",

                "Value": 1,

                "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"Diff",

                        "Param":-1,

                        "CompareType":"Equal"

                    }

                ]

            },

            //判断是否往上走

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Up.2010903",

                "Value": 1,

                "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"Diff",

                        "Param":-1,

                        "CompareType":"Less"

                    }

                ]

            },

            //判断是否往下走

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Down.2010904",

                "Value": 1,

                "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"Diff",

                        "Param":1,

                        "CompareType":"Greater"

                    }

                ]

            },

            //更新Pindex的值

            {

                "$type": "Share.CConfigSetSpecial",

                "SpecialName": "PIndex",

                "SpecialValue": "playerpos(Index)"

            },



            //边界格子



            //替身在(1,3)

            {

                "$type": "Share.CConfigJump",

                "Jump":"OneThree",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":1,

                        "Y":3,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            //替身在(1,2)

            {

                "$type": "Share.CConfigJump",

                "Jump":"OneTwo",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":1,

                        "Y":2,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            //替身在(2,1)

            {

                "$type": "Share.CConfigJump",

                "Jump":"TwoOne",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":2,

                        "Y":1,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            //替身在(3,2)

            {

                "$type": "Share.CConfigJump",

                "Jump":"ThreeTwo",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":3,

                        "Y":2,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            //替身在(4,3)

            {

                "$type": "Share.CConfigJump",

                "Jump":"FourThree",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":4,

                        "Y":3,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            //替身在(3,4)

            {

                "$type": "Share.CConfigJump",

                "Jump":"ThreeFour",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":3,

                        "Y":4,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            //替身在（3,3）

            {

                "$type": "Share.CConfigJump",

                "Jump":"ThreeFour",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":3,

                        "Y":3,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            //替身在(3,5)

            {

                "$type": "Share.CConfigJump",

                "Jump":"ThreeFive",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":3,

                        "Y":5,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            //替身在(2,4)

            {

                "$type": "Share.CConfigJump",

                "Jump":"TwoFour",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":2,

                        "Y":4,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            //替身在(1,5)

            {

                "$type": "Share.CConfigJump",

                "Jump":"OneFive",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":1,

                        "Y":5,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            //替身在(1,4)

            {

                "$type": "Share.CConfigJump",

                "Jump":"OneFour",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":1,

                        "Y":4,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },



            //四通八达的格子



            //得到向右的变量，跳转到往右走   

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoRight",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Right.2010901",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            },

            //得到向左的变量，跳转到往左走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoLeft",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Left.2010902",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            },

            //得到向上的变量，跳转到往上走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoUp",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Up.2010903",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            },

            //得到向下的变量，跳转到往下走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoDown",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Down.2010904",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            }

            

            

                

            ]

        },

    "OneThree":{

        "Actions":[

             

            //得到向右的变量，跳转到往右走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoRight",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Right.2010901",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            },

            //上

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoUp",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Up.2010903",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            },

            //得到向下的变量，跳转到往下走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoDown",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Down.2010904",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            }

        ]

    },

    "OneTwo":{

        "Actions":[



            //得到向右的变量，跳转到往右走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoRight",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Right.2010901",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            },

            //得到向下的变量，跳转到往下走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoDown",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Down.2010904",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            }

            

        ]

    },

    "TwoOne":{

        "Actions":[



            //得到向下的变量，跳转到往下走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoDown",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Down.2010904",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            }

        ]

    },

    "ThreeTwo":{

        "Actions":[

             //得到向左的变量，跳转到往左走   

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoLeft",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Left.2010902",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            },



            //得到向下的变量，跳转到往下走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoDown",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Down.2010904",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            }

        ]

    },

    "FourThree":{

        "Actions":[

             //得到向左的变量，跳转到往左走   

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoLeft",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Left.2010902",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            }

        ]

    },

    "ThreeFour":{

        "Actions":[

             //得到向左的变量，跳转到往左走   

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoLeft",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Left.2010902",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            },

            //得到向上的变量，跳转到往上走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoUp",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Up.2010903",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            },

            //得到向下的变量，跳转到往下走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoDown",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Down.2010904",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            }

        ]

    },

    "ThreeFive":{

        "Actions":[

            

            //得到向上的变量，跳转到往上走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoUp",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Up.2010903",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            }

        ]

    },

    "TwoFour":{

        "Actions":[



            //得到向右的变量，跳转到往右走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoRight",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Right.2010901",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            },

            //得到向左的变量，跳转到往左走   

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoLeft",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Left.2010902",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            },



            //得到向上的变量，跳转到往上走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoUp",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Up.2010903",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            }

        ]

    },

    "OneFive":{

        "Actions":[



            

            //得到向上的变量，跳转到往上走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoUp",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Up.2010903",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            }

        ]

    },

    "OneFour":{

        "Actions":[



            //得到向右的变量，跳转到往右走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoRight",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Right.2010901",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            },



            //得到向上的变量，跳转到往上走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoUp",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Up.2010903",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            },

            //得到向下的变量，跳转到往下走 

            {

                "$type": "Share.CConfigJump",

                "Jump":"GoDown",

                "Predicates": [

                    {

                        "$type": "Share.CConfigEventByHollowVariable",

                        "Key": "Down.2010904",

                        "CompareType": "Equal",

                        "Count": 1

                    }

                ]

            }

        ]

    },

    "GoRight":{ 

        "Actions":[

            //下一步出现

            {

                "$type": "Share.CConfigEventModification",

                "X": "specials(X)+1",

                "Y": "specials(Y)",

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                //"TargetEventID": [ 1000 ],

                "TargetEventType": 1,

                "EventID": [ 2010907 ],//替身

                "EventState": "ShowEvent",

                "VisibleState": "Visible"

            },

            //X自加

            {

                "$type": "Share.CConfigSetSpecial",

                "SpecialName": "X",

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

            },

            //上一步还原

            {

                "$type": "Share.CConfigEventModification",

                "X": "specials(X)-1",

                "Y": "specials(Y)",

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                "TargetEventID": [ 2010907 ],

                "TargetEventType": 1,

                "EventID": [ 1000 ],

                "EventState": "Locked",

                "VisibleState": "Visible"

            },

            //还原全局变量Right

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Right.2010901",

                "Value": 0

            },

            //到达机关1，解锁机关2&3

            {

                "$type": "Share.CConfigJump",

                "Jump":"Switch_1",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":2,

                        "Y":1,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            

            //到達机关2&3

            {

                "$type": "Share.CConfigJump",

                "Jump":"Switch_2_1",

                "Predicates":[ 

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":1,

                        "Y":5,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }



                ]

            },

            {

                "$type": "Share.CConfigJump",

                "Jump":"Switch_2_2",

                "Predicates":[ 

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":3,

                        "Y":5,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }



                ]

            },

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnEnd"

            }

        ]

    },

    "GoLeft":{

        "Actions":[

            //下一步出现

            {

                "$type": "Share.CConfigEventModification",

                "X": "specials(X)-1",

                "Y": "specials(Y)",

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                //"TargetEventID": [ 1000 ],

                "TargetEventType": 1,

                "EventID": [ 2010907 ],//替身

                "EventState": "ShowEvent",

                "VisibleState": "Visible"

            },

            //X自加

            {

                "$type": "Share.CConfigSetSpecial",

                "SpecialName": "X",

                "SpecialValue":"specials(X)-1"

            },

            //上一步还原

            {

                "$type": "Share.CConfigEventModification",

                "X": "specials(X)+1",

                "Y": "specials(Y)",

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                "TargetEventID": [ 2010907 ],

                "TargetEventType": 1,

                "EventID": [ 1000 ],

                "EventState": "Locked",

                "VisibleState": "Visible"

            },

            //还原全局变量Left

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Left.2010902",

                "Value": 0

            },

            //到达机关1，解锁机关2&3

            {

                "$type": "Share.CConfigJump",

                "Jump":"Switch_1",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":2,

                        "Y":1,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            //到達机关2&3

            {

                "$type": "Share.CConfigJump",

                "Jump":"Switch_2_1",

                "Predicates":[ 

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":1,

                        "Y":5,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }



                ]

            },

            {

                "$type": "Share.CConfigJump",

                "Jump":"Switch_2_2",

                "Predicates":[ 

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":3,

                        "Y":5,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }



                ]

            },

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnEnd"

            }

        ]

    },

    "GoUp":{

        "Actions":[

            //下一步出现

            {

                "$type": "Share.CConfigEventModification",

                "X": "specials(X)",

                "Y": "specials(Y)-1",

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                //"TargetEventID": [ 1000 ],

                "TargetEventType": 1,

                "EventID": [ 2010907 ],//替身

                "EventState": "ShowEvent",

                "VisibleState": "Visible"

            },

            //y自加

            {

                "$type": "Share.CConfigSetSpecial",

                "SpecialName": "Y",

                "SpecialValue":"specials(Y)-1"

            },



            //上一步还原

            {

                "$type": "Share.CConfigEventModification",

                "X": "specials(X)",

                "Y": "specials(Y)+1",

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                "TargetEventID": [ 2010907 ],

                "TargetEventType": 1,

                "EventID": [ 1000 ],

                "EventState": "Locked",

                "VisibleState": "Visible"

            },

            //还原全局变量Up

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Up.2010903",

                "Value": 0

            },

            //到达机关1，解锁机关2&3

            {

                "$type": "Share.CConfigJump",

                "Jump":"Switch_1",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":2,

                        "Y":1,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            //到達机关2&3

            {

                "$type": "Share.CConfigJump",

                "Jump":"Switch_2_1",

                "Predicates":[ 

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":1,

                        "Y":5,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }



                ]

            },

            {

                "$type": "Share.CConfigJump",

                "Jump":"Switch_2_2",

                "Predicates":[ 

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":3,

                        "Y":5,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }



                ]

            },

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnEnd"

            }

        ]

    },

    "GoDown":{

        "Actions":[

            //下一步出现

            {

                "$type": "Share.CConfigEventModification",

                "X": "specials(X)",

                "Y": "specials(Y)+1",

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                //"TargetEventID": [ 1000 ],

                "TargetEventType": 1,

                "EventID": [ 2010907 ],//替身

                "EventState": "ShowEvent",

                "VisibleState": "Visible"

            },

            //y自加

            {

                "$type": "Share.CConfigSetSpecial",

                "SpecialName": "Y",

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

            },

            //上一步还原

            {

                "$type": "Share.CConfigEventModification",

                "X": "specials(X)",

                "Y": "specials(Y)-1",

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                "TargetEventID": [ 2010907 ],

                "TargetEventType": 1,

                "EventID": [ 1000 ],

                "EventState": "Locked",

                "VisibleState": "Visible"

            },

            //还原全局变量Down

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Down.2010904",

                "Value": 0

            },

            //到达机关1，解锁机关2&3

            {

                "$type": "Share.CConfigJump",

                "Jump":"Switch_1",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":2,

                        "Y":1,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }

                ]

            },

            //到達机关2&3

            {

                "$type": "Share.CConfigJump",

                "Jump":"Switch_2_1",

                "Predicates":[ 

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":1,

                        "Y":5,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }



                ]

            },

            {

                "$type": "Share.CConfigJump",

                "Jump":"Switch_2_2",

                "Predicates":[ 

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":3,

                        "Y":5,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "State":["ShowEvent"],

                        "Count":1,

                        "CompareType":"Equal",

                        "Radius":0,

                        "EventID":[2010907] //替身

                    }



                ]

            },

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnEnd"

            }

        ]

    },

    "Switch_1":{ //机关2&3打开

        "Actions":[



            //判断机关是否开过，开过则失效 SwitchState=1

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnEnd",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"SwitchState",

                        "Param":1,

                        "CompareType":"Equal"

                    }

                ]

            },

            

            // {

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

            //     "StretchKey": "Far",

            //     "Type": "CustomBound",

            //     "BoundIndexX":0,

            //     "BoundIndexY":61

            //   },

            //   {

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

            //     "Time": "0.5"

            //   },

            //任务判断:到达第一次唯一一个目标点

            {

                "$type":"Share.CConfigSetConditionProgress",

                "ConditionID":30060157,

                "Progress":1,

                "ModifyType":"Add"

              },

            //变成开关

            {

                "$type": "Share.CConfigEventModification",

                "X": 1,

                "Y": 5,

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                "TargetEventID": [ 3103,1000 ],

                "TargetEventType": 1,

                "EventID": [ 2010918,2010918 ],//开关

                "EventState": "ShowEvent",

                "VisibleState": "Visible"

            },

            {

                "$type": "Share.CConfigEventModification",

                "X": 3,

                "Y": 5,

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                "TargetEventID": [ 3103,1000 ],

                "TargetEventType": 1,

                "EventID": [ 2010918,2010918 ],//开关

                "EventState": "ShowEvent",

                "VisibleState": "Visible"

            },

            //fairy:发现两处新的

            {

                "$type": "Share.CConfigShowTip",

                "TipID": 201090109

            },

            // {

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

            //     "Time": "1"

            //   },

            // {

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

            //     "Type": "Player",

            //     "StretchKey": "Back"

            // },

            // {

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

            //     "StretchKey":"Far",

            //     "IndexX":10,

            //     "IndexY":52

            // },

            //开关状态记录

            {

                "$type": "Share.CConfigSetSpecial",

                "SpecialName": "SwitchState",

                "SpecialValue": 1

            },

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnEnd" 

            }



        ]

    },

    "Switch_2_1":{ //标记

        "Actions":[

            //计数前的判断，SwitchState=1,开关1是否开过，没开过则无效

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnEnd",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"SwitchState",

                        "Param":0,

                        "CompareType":"Equal"

                    }

                ]

            },

            //计数

            {

                "$type": "Share.CConfigSetSpecial",

                "SpecialName": "BridgeCount_1",

                "SpecialValue": 1

            },

            //任务判断:到达一个目标点（1/2）

            {

                "$type":"Share.CConfigSetConditionProgress",

                "ConditionID":30060071,

                "Progress":1,

                "ModifyType":"Add"

              },

            //判断BridgCount是否为2，是2跳转到OnBridge

            //機關2&3都開了

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnBridge",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"BridgeCount_1",

                        "Param":1,

                        "CompareType":"Equal"

                    },

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"BridgeCount_2",

                        "Param":1,

                        "CompareType":"Equal"

                    }

                ]

            },

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnEnd" 

            }

        ]

    },

    "Switch_2_2":{ //标记

        "Actions":[

            //计数前的判断，SwitchState=1,开关1是否开过，没开过则无效

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnEnd",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"SwitchState",

                        "Param":0,

                        "CompareType":"Equal"

                    }

                ]

            },

            //计数

            {

                "$type": "Share.CConfigSetSpecial",

                "SpecialName": "BridgeCount_2",

                "SpecialValue": 1

            },

            //任务判断:到达一个目标点（1/2）

            {

                "$type":"Share.CConfigSetConditionProgress",

                "ConditionID":30060071,

                "Progress":1,

                "ModifyType":"Add"

              },

            //判断BridgCount两个变量是否都是1，都是1跳转到OnBridge

            //機關2&3都開了

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnBridge",

                "Predicates": [

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"BridgeCount_1",

                        "Param":1,

                        "CompareType":"Equal"

                    },

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"BridgeCount_2",

                        "Param":1,

                        "CompareType":"Equal"

                    }

                ]

            },

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnEnd" 

            }

        ]

    },

    "OnBridge":{

        "Actions":[

            {

                "$type":"Share.CConfigJump",

                "Jump":"OnEnd",

                "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"BridgeCount",

                        "Param":2,

                        "CompareType":"Greater"

                    }

                ]

            },

            {

                "$type": "Share.CConfigSetMapState",

                "Position": "Absolute",

                "NodeType": "All",

                "X": 4,

                "Y": 3,

                "Radius": 0,

                "Count": 1,

                "FromVisibleState": ["VisibleByTriggerEvent"],

                "ToVisibleState": [ "Visible" ]

            },

            //桥开，替身消失

            {

                "$type": "Share.CConfigEventModification",

                "X": 2,

                "Y": 3,

                "Position": "Absolute",

                "Radius": 3,

                "ModificationNum": 1,

                "ModificationType": 1,

                "TargetEventID": [ 2010907 ],

                "TargetEventType": 1,

                "EventID": [ 1000 ],//去

                "EventState": "Locked",

                "VisibleState": "Visible"

            },

            //镜头

            {

                "$type": "Share.CConfigCameraMove",

                "StretchKey": "Far",

                "Type": "CustomBound",

                "BoundIndexX":10,

                "BoundIndexY":52

              },

              {

                "$type": "Share.CConfigWaitSeconds",

                "Time": "0.5"

              },

              //切层终点

              {

                "$type": "Share.CConfigEventModification",

                "X": 2,

                "Y": 1,

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                //"TargetEventID": [ 1000 ],

                "TargetEventType": 1,

                "EventID": [ 2010916 ],//切层战斗→BOSS

                "EventState": "ShowEvent",

                "VisibleState": "Visible"

            },

            //BOSS前一格变商店

            {

                "$type": "Share.CConfigEventModification",

                "X": 2,

                "Y": 2,

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                //"TargetEventID": [ 1000 ],

                "TargetEventType": 1,

                "EventID": [ 1021 ],

                "EventState": "ShowEvent",

                "VisibleState": "Visible"

            },

            //替身经过的地方变成金币

            {

                "$type": "Share.CConfigEventModification",

                "X": 2,

                "Y": 3,

                "Position": "Absolute",

                "Radius": 3,

                "ModificationNum": 10,

                "ModificationType": 1,

                "TargetEventID": [ 1000 ],

                "TargetEventType": 1,

                "EventID": [ 1016 ],

                "EventState": "ShowEvent",

                "VisibleState": "Visible"

            },

            //fairy：拍摄成功，让我们离开吧

            {

                "$type": "Share.CConfigShowTip",

                "TipID": 201090110

            },

            {

                "$type": "Share.CConfigWaitSeconds",

                "Time": "1"

              },

            {

                "$type": "Share.CConfigCameraMove",

                "Type": "Player",

                "StretchKey": "Back"

            },

            // {

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

            //     "StretchKey":"Far",

            //     "IndexX":10,

            //     "IndexY":52

            // },



            {

                "$type": "Share.CConfigSetSpecial",

                "SpecialName": "BridgeCount",

                "SpecialValue": 3

            },

            //坐标失效

            {

                "$type": "Share.CConfigSetSpecial",

                "SpecialName": "X",

                "SpecialValue": -9999

            },

            {

                "$type": "Share.CConfigSetSpecial",

                "SpecialName": "Y",

                "SpecialValue": -9999

            },

            {

                "$type": "Share.CConfigJump",

                "Jump":"OnEnd" 

            }

        ]

    },

    "OnEnd":{

        "Actions":[

            //无实际意义，空过用

            {

                "$type": "Share.CConfigSetSpecial",

                "SpecialName": "Empty",

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

            },

            //走到附近揭露战斗格子（8，1）

            {

                "$type": "Share.CConfigSetMapState",

                    "X": 8,

                    "Y": 1,

                    "Position": "Absolute",

                    "NodeType": "All",

                    "Radius": 0,

                    "Count": 1,

                    "FromState": ["Locked"],

                    "ToState": ["ShowEvent"],

                    "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"PIndex",

                        "Param":17,

                        "CompareType":"Equal"

                    }

                ]

            },

            //走到附近揭露战斗格子（7，3）

            {

                "$type": "Share.CConfigSetMapState",

                    "X": 7,

                    "Y": 3,

                    "Position": "Absolute",

                    "NodeType": "All",

                    "Radius": 0,

                    "Count": 1,

                    "FromState": ["Locked"],

                    "ToState": ["ShowEvent"],

                    "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"PIndex",

                        "Param":25,

                        "CompareType":"Equal"

                    }

                ]

            },

            {

                "$type": "Share.CConfigSetMapState",

                    "X": 7,

                    "Y": 3,

                    "Position": "Absolute",

                    "NodeType": "All",

                    "Radius": 0,

                    "Count": 1,

                    "FromState": ["Locked"],

                    "ToState": ["ShowEvent"],

                    "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"PIndex",

                        "Param":33,

                        "CompareType":"Equal"

                    }

                ]

            },

            {

                "$type": "Share.CConfigSetMapState",

                    "X": 7,

                    "Y": 3,

                    "Position": "Absolute",

                    "NodeType": "All",

                    "Radius": 0,

                    "Count": 1,

                    "FromState": ["Locked"],

                    "ToState": ["ShowEvent"],

                    "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"PIndex",

                        "Param":43,

                        "CompareType":"Equal"

                    }

                ]

            },

            //走到附近揭露战斗格子（6，4）

            {

                "$type": "Share.CConfigSetMapState",

                    "X": 6,

                    "Y": 4,

                    "Position": "Absolute",

                    "NodeType": "All",

                    "Radius": 0,

                    "Count": 1,

                    "FromState": ["Locked"],

                    "ToState": ["ShowEvent"],

                    "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"PIndex",

                        "Param":33,

                        "CompareType":"Equal"

                    }

                ]

            },

            {

                "$type": "Share.CConfigSetMapState",

                    "X": 6,

                    "Y": 4,

                    "Position": "Absolute",

                    "NodeType": "All",

                    "Radius": 0,

                    "Count": 1,

                    "FromState": ["Locked"],

                    "ToState": ["ShowEvent"],

                    "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"PIndex",

                        "Param":41,

                        "CompareType":"Equal"

                    }

                ]

            },

            {

                "$type": "Share.CConfigSetMapState",

                    "X": 6,

                    "Y": 4,

                    "Position": "Absolute",

                    "NodeType": "All",

                    "Radius": 0,

                    "Count": 1,

                    "FromState": ["Locked"],

                    "ToState": ["ShowEvent"],

                    "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"PIndex",

                        "Param":43,

                        "CompareType":"Equal"

                    }

                ]

            },

            //移动次数超过5次，开关1任然未开

            {

                "$type":"Share.CConfigJump",

                "Jump":"OnTip",

                "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"MoveCount",

                        "Param":5,

                        "CompareType":"Greater"

                    },

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"SwitchState",

                        "Param":0,

                        "CompareType":"Equal"

                    }

                ]

            },

            {

                "$type":"Share.CConfigJump",

                "Jump":"PopWindows",

                "Predicates":[

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"MoveCount",

                        "Param":15,

                        "CompareType":"Equal"

                    },

                    {

                        "$type":"Share.CConfigEventBySpecials",

                        "ParamName":"SwitchState",

                        "Param":1,

                        "CompareType":"Equal"

                    }

                ]

            }

        ]

    },

    "Quest":{

        "Actions":[

            //清理战斗

            {

                "$type":"Share.CConfigSetConditionProgress",

                "ConditionID":30060073,

                "Progress":1,

                "ModifyType":"Add",

                "Predicates":[

                    {

                        "$type":"Share.CConfigEventByEventState",

                        "X":3,

                        "Y":3,

                        "Position":"Absolute",

                        "VisibleState":["Visible"],

                        "Count":1,

                        "CompareType":"Less",

                        "Radius":15,

                        "EventID":[3103] //战斗

                    }

                ]

            },

            //任务判断：最终获得的侵蚀数量不超过0个 

            {

                "$type":"Share.CConfigSetConditionProgress",

                "ConditionID":30060083,

                "Progress":1,

                "ModifyType":"Add",

                "Predicates":[

                    {

                        "$type":"Share.CConfigEventByCurse",

                        "CompareType":"LessEqual",

                        "Count":0

                    }

                ]

            },

            //任务判断：最终获得的侵蚀数量不超过1个 

            {

                "$type":"Share.CConfigSetConditionProgress",

                "ConditionID":30060074,

                "Progress":1,

                "ModifyType":"Add",

                "Predicates":[

                    {

                        "$type":"Share.CConfigEventByCurse",

                        "CompareType":"LessEqual",

                        "Count":1

                    }

                ]

            },

            //离开空洞

            {

                "$type":"Share.CConfigSetConditionProgress",

                "ConditionID":30060072,

                "Progress":1,

                "ModifyType":"Add"

            }

        ]

    },

    "OnTip":{

        "Actions":[

            {

                "$type": "Share.CConfigShowTip",

                "TipID": 201090107,

                "Delay": 0

            }

        ]

    },

    "PopWindows":{

        "Actions":[

            {

                "$type": "Share.CConfigShowPopWindow",

                "PopID": 1011107,

                "ShowDirectly": false

            }

        ]

    }

    }

}

