//全局事件，管理行动规则

{

    "ID": 784,

    "Specials": 

    {

        //↑

        "positiveY_offset":3,

        //↓

        "negativeY_offset":3,



        "modifyY_offset":0,



        //上次位置

        "X":0,

        "Y":0,



        "numbers":0

    },

    "Events": {

        //起始坐标

        "OnCreate":{

            "Actions":

            [

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                },

                {

                    //红9

                    "$type": "Share.CConfigEventModification",

                    // "ModifyID": 2010101,

                    "ModificationNum":1,

                    "ModificationType":1,

                    "TargetEventID": [

                        1003

                    ],

                    "TargetCoreNode":0,

                    "TargetEventType":1,

                    "TargetEventState":["Locked"],

                    "TargetVisibleState":["Visible"],

                    "EventID":[

                        1006

                    ],

                    "EventState":"ShowEvent",

                    "VisibleState":"Visible",

                    "Position":"Absolute",

                    "X":7,

                    "Y":2,

                    "Radius":2

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        },

        //每次行动都会摧毁旁边格子——左和下

        "OnPlayerMove": {

            "Actions": [

                {

                    //左右

                    "$type": "Share.CConfigSwitchServer",

                    "Switch": [

                        {

                            "Weight": 50,

                            "Actions": [

                                //左侧所有

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":-1,

                                    "Y":0,

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":-1,

                                    "Y":-1,

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":-1,

                                    "Y":-2,

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":-1,

                                    "Y":-3,

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":-1,

                                    "Y":1,

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":-1,

                                    "Y":2,

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":-1,

                                    "Y":3,

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                }

                            ]

                        }

                    ],

                    "Predicates":

                    [

                        // {

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

                        //     "Direction":

                        //     [

                        //         "Right",

                        //         "Left"

                        //     ]

                        // }

                        {

                            "$type":"Share.CConfigEventBySpecials",

                            "ParamName":"X",

                            "Param":"playerpos(X)",

                            "CompareType":"NotEqual"

                        }

                    ]

                },

                //setspecials,如果有上下

                {

                    "$type":"Share.CConfigIf",

                    "OnSuccess":"RL",

                    "OnFailure":"UD",

                    "Conditions":

                    [

                        // {

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

                        //     "Direction":

                        //     [

                        //         "Right",

                        //         "Left"

                        //     ]

                        // }

                        {

                            "$type":"Share.CConfigEventBySpecials",

                            "ParamName":"X",

                            "Param":"playerpos(X)",

                            "CompareType":"NotEqual"

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }



            ]

        },

        "RL":{

            "Actions":

            [

                {

                    "$type":"Share.CConfigLog",

                    "Message":"===========RL============="

                },

                {

                    //上下跳格移动

                    "$type": "Share.CConfigSwitchServer",

                    "Switch": [

                        {

                            "Weight": 50,

                            "Actions":

                            [

                                {

                                    "$type":"Share.CConfigLog",

                                    "Message":"JsonText_1156" // ============不只进入上下修改============

                                },

                                //Y赋值

                                //临时容错

                                {

                                    //从上到下,y<posy

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"modifyY_offset",

                                    "SpecialValue":"-specials(positiveY_offset)-1",

                                    "Predicates":

                                    [

                                        {

                                            "$type":"Share.CConfigEventBySpecials",

                                            "ParamName":"Y",

                                            "Param":"playerpos(Y)",

                                            "CompareType":"Less"

                                        }

                                    ]

                                },

                                {

                                    //从下到上，y>posy

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"modifyY_offset",

                                    "SpecialValue":"specials(negativeY_offset)+1",

                                    "Predicates":

                                    [

                                        {

                                            "$type":"Share.CConfigEventBySpecials",

                                            "ParamName":"Y",

                                            "Param":"playerpos(Y)",

                                            "CompareType":"Greater"

                                        }

                                    ]

                                },

                                //判断移动方向（上/下/其它）、移动距离

                                //临时容错

                                {

                                    "$type":"Share.CConfigLog",

                                    "Message":"========================",

                                    "ShowVariables":"All"

                                },

                                //下方所有

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":0,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":1,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":2,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":3,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":4,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":5,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":6,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":7,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":8,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                }

                            ]

                        }

                    ],

                    "Predicates":

                    [

                        {

                            "$type":"Share.CConfigEventByOr",

                            "Predicates":

                            [

                                {

                                    "$type":"Share.CConfigEventBySpecials",

                                    "ParamName":"Y",

                                    "Param":"playerpos(Y)+1",

                                    "CompareType":"NotEqual"

                                },

                                {

                                    "$type":"Share.CConfigEventBySpecials",

                                    "ParamName":"Y",

                                    "Param":"playerpos(Y)-1",

                                    "CompareType":"NotEqual"

                                }

                            ]

                        },

                        {

                            "$type":"Share.CConfigEventBySpecials",

                            "ParamName":"Y",

                            "Param":"playerpos(Y)",

                            "CompareType":"NotEqual"

                        }

                    ]

                },

                {

                    //上下

                    "$type": "Share.CConfigSwitchServer",

                    "Switch": [

                        {

                            "Weight": 50,

                            "Actions":

                            [

                                {

                                    "$type":"Share.CConfigLog",

                                    "Message":"JsonText_1156" // ============不只进入上下修改============

                                },

                                //Y赋值

                                //临时容错

                                {

                                    //从上到下,y<posy

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"modifyY_offset",

                                    "SpecialValue":"-specials(positiveY_offset)",

                                    "Predicates":

                                    [

                                        {

                                            "$type":"Share.CConfigEventBySpecials",

                                            "ParamName":"Y",

                                            "Param":"playerpos(Y)",

                                            "CompareType":"Less"

                                        }

                                    ]

                                },

                                {

                                    //从下到上，y>posy

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"modifyY_offset",

                                    "SpecialValue":"specials(negativeY_offset)",

                                    "Predicates":

                                    [

                                        {

                                            "$type":"Share.CConfigEventBySpecials",

                                            "ParamName":"Y",

                                            "Param":"playerpos(Y)",

                                            "CompareType":"Greater"

                                        }

                                    ]

                                },

                                //判断移动方向（上/下/其它）、移动距离

                                //临时容错

                                {

                                    //从下到上，上-1

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"positiveY_offset",

                                    "SpecialValue":"specials(positiveY_offset)-1",

                                    "Predicates":

                                    [

                                        {

                                            "$type":"Share.CConfigEventBySpecials",

                                            "ParamName":"Y",

                                            "Param":"playerpos(Y)",

                                            "CompareType":"Greater"

                                        }

                                    ]

                                },

                                {

                                    //从上到下，下-1

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"negativeY_offset",

                                    "SpecialValue":"specials(negativeY_offset)-1",

                                    "Predicates":

                                    [

                                        {

                                            "$type":"Share.CConfigEventBySpecials",

                                            "ParamName":"Y",

                                            "Param":"playerpos(Y)",

                                            "CompareType":"Less"

                                        }

                                    ]

                                },

                                {

                                    "$type":"Share.CConfigLog",

                                    "Message":"========================",

                                    "ShowVariables":"All"

                                },

                                //下方所有

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":0,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":1,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":2,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":3,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":4,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":5,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":6,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":7,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":8,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                }

                            ]

                        }

                    ],

                    "Predicates":

                    [

                        {

                            "$type":"Share.CConfigEventBySpecials",

                            "ParamName":"Y",

                            "Param":"playerpos(Y)",

                            "CompareType":"NotEqual"

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                },

                {

                    "$type":"Share.CConfigLog",

                    "Message":"JsonText_1157", // ===========总结=============

                    "ShowVariables":"All"

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        },

        "UD":{

            "Actions":

            [

                {

                    "$type":"Share.CConfigLog",

                    "Message":"===========UD============="

                },

                {

                    //上下

                    "$type": "Share.CConfigSwitchServer",

                    "Switch": [

                        {

                            //正确运行就这个

                            "Weight": 50,

                            "Actions":

                            [

                                {

                                    "$type":"Share.CConfigLog",

                                    "Message":"JsonText_1158" // ============只进入上下修改============

                                },

                                //Y赋值

                                {

                                    //从上到下

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"modifyY_offset",

                                    "SpecialValue":"-specials(positiveY_offset)-1",

                                    "Predicates":

                                    [

                                        {

                                            "$type":"Share.CConfigEventByDirection",

                                            "Direction":

                                            [

                                                "Up"

                                            ]

                                        }

                                    ]

                                },

                                {

                                    //从下到上

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"modifyY_offset",

                                    "SpecialValue":"specials(negativeY_offset)+1",

                                    "Predicates":

                                    [

                                        {

                                            "$type":"Share.CConfigEventByDirection",

                                            "Direction":

                                            [

                                                "Down"

                                            ]

                                        }

                                    ]

                                },

                                //判断移动方向（上/下/其它）、移动距离

                                {

                                    "$type":"Share.CConfigLog",

                                    "Message":"========================",

                                    "ShowVariables":"All"

                                },

                                //下方所有

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":0,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":1,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":2,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":3,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":4,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":5,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":6,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":7,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":8,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                }

                            ]

                        }

                    ],

                    "Predicates":

                    [

                        {

                            "$type":"Share.CConfigEventByDirection",

                            "Direction":

                            [

                                "Up",

                                "Down"

                            ]

                        },

                        {

                            "$type":"Share.CConfigEventByOr",

                            "Predicates":

                            [

                                {

                                    "$type":"Share.CConfigEventBySpecials",

                                    "ParamName":"Y",

                                    "Param":"playerpos(Y)+1",

                                    "CompareType":"NotEqual"

                                },

                                {

                                    "$type":"Share.CConfigEventBySpecials",

                                    "ParamName":"Y",

                                    "Param":"playerpos(Y)-1",

                                    "CompareType":"NotEqual"

                                }

                            ]

                        }

                    ]

                },

                {

                    //上下

                    "$type": "Share.CConfigSwitchServer",

                    "Switch": [

                        {

                            //正确运行就这个

                            "Weight": 50,

                            "Actions":

                            [

                                {

                                    "$type":"Share.CConfigLog",

                                    "Message":"JsonText_1158" // ============只进入上下修改============

                                },

                                //Y赋值

                                {

                                    //从上到下

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"modifyY_offset",

                                    "SpecialValue":"-specials(positiveY_offset)",

                                    "Predicates":

                                    [

                                        {

                                            "$type":"Share.CConfigEventByDirection",

                                            "Direction":

                                            [

                                                "Up"

                                            ]

                                        }

                                    ]

                                },

                                {

                                    //从下到上

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"modifyY_offset",

                                    "SpecialValue":"specials(negativeY_offset)",

                                    "Predicates":

                                    [

                                        {

                                            "$type":"Share.CConfigEventByDirection",

                                            "Direction":

                                            [

                                                "Down"

                                            ]

                                        }

                                    ]

                                },

                                //判断移动方向（上/下/其它）、移动距离

                                {

                                    //从下到上，上-1

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"positiveY_offset",

                                    "SpecialValue":"specials(positiveY_offset)-1",

                                    "Predicates":

                                    [

                                        {

                                            "$type":"Share.CConfigEventByDirection",

                                            "Direction":

                                            [

                                                "Down"

                                            ]

                                        }

                                    ]

                                },

                                {

                                    //从上到下，下-1

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"negativeY_offset",

                                    "SpecialValue":"specials(negativeY_offset)-1",

                                    "Predicates":

                                    [

                                        {

                                            "$type":"Share.CConfigEventByDirection",

                                            "Direction":

                                            [

                                                "Up"

                                            ]

                                        }

                                    ]

                                },

                                {

                                    "$type":"Share.CConfigLog",

                                    "Message":"========================",

                                    "ShowVariables":"All"

                                },

                                //下方所有

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":0,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":1,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":2,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":3,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":4,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":5,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":6,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":7,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                },

                                {

                                    "$type": "Share.CConfigSetMapState",

                                    "NodeType":"All",

                                    "X":8,

                                    "Y":"specials(modifyY_offset)",

                                    "Position":"Relative",

                                    "Radius":0,

                                    "Count":1,

                                    "FromVisibleState":["Visible"],

                                    "ToVisibleState":["VisibleByTriggerEvent"]

                                }

                            ]

                        }

                    ],

                    "Predicates":

                    [

                        {

                            "$type":"Share.CConfigEventByDirection",

                            "Direction":

                            [

                                "Up",

                                "Down"

                            ]

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                },

                {

                    "$type":"Share.CConfigLog",

                    "Message":"JsonText_1157", // ===========总结=============

                    "ShowVariables":"All"

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        },

        "OnTurn":{

            "Actions":

            [

                //判定是否需要进行

                {

                    "$type":"Share.CConfigIf",

                    "OnSuccess":"Show",

                    "OnFailure":"Pass",

                    "Conditions":

                    [

                        {

                            "$type":"Share.CConfigEventBySpecials",

                            "ParamName":"numbers",

                            "Param":1,

                            "CompareType":"NotEqual"

                        },

                        {

                            "$type":"Share.CConfigEventByHollowVariable",

                            "Key":"gateKey_779",

                            "Count":0,

                            "CompareType":"NotEqual"

                        }

                    ]

                }

            ]

        },

        "Pass":{

            "Actions":

            [

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        },

        "Show":{

            "Actions":

            [

                //7的状态正确，就解锁8

                {

                    "$type":"Share.CConfigSetMapState",

                    "X":8,

                    "Y":0,

                    "Position":"Absolute",

                    "Radius":0,

                    "Count":1,

                    "NodeType":"All",

                    "FromVisibleState":["VisibleByTriggerEvent"],

                    "ToVisibleState":["Visible"],

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByEventState",

                            "X":7,

                            "Y":0,

                            "NodeType":"All",

                            "EventType":"Dialog",

                            "Position":"Absolute",

                            "Radius":0,

                            "VisibleState":["Visible"],

                            "Count":1,

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetMapState",

                    "X":8,

                    "Y":1,

                    "Position":"Absolute",

                    "Radius":0,

                    "Count":1,

                    "NodeType":"All",

                    "FromVisibleState":["VisibleByTriggerEvent"],

                    "ToVisibleState":["Visible"],

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByEventState",

                            "X":7,

                            "Y":1,

                            "NodeType":"All",

                            "EventType":"Dialog",

                            "Position":"Absolute",

                            "Radius":0,

                            "VisibleState":["Visible"],

                            "Count":1,

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetMapState",

                    "X":8,

                    "Y":2,

                    "Position":"Absolute",

                    "Radius":0,

                    "Count":1,

                    "NodeType":"All",

                    "FromVisibleState":["VisibleByTriggerEvent"],

                    "ToVisibleState":["Visible"],

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByEventState",

                            "X":7,

                            "Y":2,

                            "NodeType":"All",

                            "EventType":"Dialog",

                            "Position":"Absolute",

                            "Radius":0,

                            "VisibleState":["Visible"],

                            "Count":1,

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetMapState",

                    "X":8,

                    "Y":3,

                    "Position":"Absolute",

                    "Radius":0,

                    "Count":1,

                    "NodeType":"All",

                    "FromVisibleState":["VisibleByTriggerEvent"],

                    "ToVisibleState":["Visible"],

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByEventState",

                            "X":7,

                            "Y":3,

                            "NodeType":"All",

                            "EventType":"Dialog",

                            "Position":"Absolute",

                            "Radius":0,

                            "VisibleState":["Visible"],

                            "Count":1,

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetMapState",

                    "X":8,

                    "Y":4,

                    "Position":"Absolute",

                    "Radius":0,

                    "Count":1,

                    "NodeType":"All",

                    "FromVisibleState":["VisibleByTriggerEvent"],

                    "ToVisibleState":["Visible"],

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByEventState",

                            "X":7,

                            "Y":4,

                            "NodeType":"All",

                            "EventType":"Dialog",

                            "Position":"Absolute",

                            "Radius":0,

                            "VisibleState":["Visible"],

                            "Count":1,

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"numbers",

                    "SpecialValue":1

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        }

    }

}

