{

    "ID": 2020530,

    "Specials": {

        //turn开关

        "CanTurn":1,

        //玩家当前位置

        "playerX":0,

        "playerY":0,

        //巡逻区域AABB

        "BoundX1":3,

        "BoundY1":2,

        "BoundX2":7,

        "BoundY2":4,

        //当前回合

        "turn":0,

        //战斗ID

        "BattleID":0,

        //上中下战斗

        "Elite_TopBattleEvt":2020539,

        "Elite_MidBattleEvt":2020540,

        "Elite_BottomBattleEvt":2020541,

        "Normal_TopBattleEvt":2020532,

        "Normal_MidBattleEvt":2020533,

        "Normal_BottomBattleEvt":2020534,

        "Cur_TopBattleEvt":0,

        "Cur_MidBattleEvt":0,

        "Cur_BottomBattleEvt":0,



        //表格参数，初始难度控制

        "Patrol":1,

        "Difficult":2

        //Patrol_2020530

        //Difficult_2020530

        //TopDir_2020530

        //MidDir_2020530

        //BottomDir_2020530

        //TopDie_2020532

        //MidDie_2020532

        //BottomDie_2020532

        //Glitch_2020532

    },

    "Events": {

        "OnHollowCreated": {

            "Actions": [

                //重置变量

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Patrol_2020530",

                    "Value": 0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Difficult_2020530",

                    "Value": 0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "TopDir_2020530",

                    "Value": 0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "MidDir_2020530",

                    "Value": 0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "BottomDir_2020530",

                    "Value": 0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "TopDie_2020532",

                    "Value": 0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "MidDie_2020532",

                    "Value": 0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "BottomDie_2020532",

                    "Value": 0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Glitch_2020532",

                    "Value": 0

                },

                //初始化全局变量

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Patrol_2020530",

                    "Value": "specials(Patrol)" //初始巡逻速度

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Difficult_2020530",

                    "Value": "specials(Difficult)" //初始战斗难度

                },





                //决定上方战斗出生点、方向

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "TopDir_2020530",

                    "Value": "rand(1,3)" //[1,3)

                },

                //决定中间战斗出生点、方向

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "MidDir_2020530",

                    "Value": "rand(1,3)" //[1,3)

                },

                //决定下方战斗出生点、方向

                {

                    "$type": "Share.CConfigSwitchServer",

                    "Switch": [

                        {

                            "Weight": 50,

                            "Conditions":[

                                {

                                    "$type": "Share.CConfigEventByHollowVariable",

                                    "Key": "TopDir_2020530",

                                    "CompareType": "NotEqual",

                                    "Count": 1

                                }

                            ],

                            "Actions": [

                                {

                                    "$type": "Share.CConfigSetHollowVariable",

                                    "Key": "BottomDir_2020530",

                                    "Value": 1

                                }

                            ]

                        },

                        {

                            "Weight": 50,

                            "Conditions":[

                                {

                                    "$type": "Share.CConfigEventByHollowVariable",

                                    "Key": "TopDir_2020530",

                                    "CompareType": "NotEqual",

                                    "Count": 2

                                }

                            ],

                            "Actions": [

                                {

                                    "$type": "Share.CConfigSetHollowVariable",

                                    "Key": "BottomDir_2020530",

                                    "Value": 2

                                }

                            ]

                        }

                    ]

                }



            ]

        },

        "OnPlayerMove":{

            "Actions":[

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "CanTurn",

                    "SpecialValue": 0

                },

                //处理路过路径

                {

                    //pre点

                    "$type": "Share.CConfigEventModification",

                    "X": "specials(playerX)",

                    "Y": "specials(playerY)",

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 

                        2020531

                    ],

                    "TargetEventType": 1,

                    //"TargetEventState": "Locked",

                    //"TargetVisibleState": "Visible",

                    "EventID": [ 2020536],

                    "EventState": "Unstable",

                    "VisibleState": "Visible",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Glitch_2020532",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

                },

                {

                    //pre点

                    "$type": "Share.CConfigEventModification",

                    "X": "specials(playerX)",

                    "Y": "specials(playerY)",

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 

                        2020531

                    ],

                    "TargetEventType": 1,

                    //"TargetEventState": "Locked",

                    //"TargetVisibleState": "Visible",

                    "EventID": [ 2020537],

                    "EventState": "Unstable",

                    "VisibleState": "Visible",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Glitch_2020532",

                            "CompareType": "Equal",

                            "Count": 2

                        }

                    ]

                },

                {

                    //pre点

                    "$type": "Share.CConfigEventModification",

                    "X": "specials(playerX)",

                    "Y": "specials(playerY)",

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 

                        2020531

                    ],

                    "TargetEventType": 1,

                    //"TargetEventState": "Locked",

                    //"TargetVisibleState": "Visible",

                    "EventID": [ 2020538],

                    "EventState": "Unstable",

                    "VisibleState": "Visible",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Glitch_2020532",

                            "CompareType": "Equal",

                            "Count": 3

                        }

                    ]

                },

                {

                    //战斗计数器+1

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Glitch_2020532",

                    "Value": 0

                },

                {

                    //1层卡牌

                    "$type": "Share.CConfigEventModification",

                    "X": "specials(playerX)",

                    "Y": "specials(playerY)",

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 

                        1005

                    ],

                    "TargetEventType": 1,

                    "TargetEventState": ["Finished"],

                    //"TargetVisibleState": "Visible",

                    "EventID": [ 1003],

                    "EventState": "Unstable",

                    "VisibleState": "Visible",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "playerX",

                            "Param":"specials(BoundX1)",

                            "CompareType":"GreaterEqual"

                        },

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "playerY",

                            "Param":"specials(BoundY1)",

                            "CompareType":"GreaterEqual"

                        },

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "playerX",

                            "Param":"specials(BoundX2)",

                            "CompareType":"LessEqual"

                        },

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "playerY",

                            "Param":"specials(BoundY2)",

                            "CompareType":"LessEqual"

                        }

                    ]

                },

                {

                    //pre点

                    "$type": "Share.CConfigEventModification",

                    "X": "specials(playerX)",

                    "Y": "specials(playerY)",

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 

                        2020536,2020537,2020538,

                        2020532,2020533,2020534,

                        2020539,2020540,2020541

                    ],

                    "TargetEventType": 1,

                    "TargetEventState": ["Finished"],

                    //"TargetVisibleState": "Visible",

                    "EventID": [ 2020531],

                    "EventState": "Unstable",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigSetMapState",

                    "Position": "Absolute",

                    "NodeType": "All",

                    "X": "specials(playerX)",

                    "Y": "specials(playerY)",

                    "Radius": 0,

                    "Count": 1,

                    "FromState": [

                        "Finished"

                    ],

                    "ToState": ["Unstable"],

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "playerX",

                            "Param":"specials(BoundX1)",

                            "CompareType":"GreaterEqual"

                        },

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "playerY",

                            "Param":"specials(BoundY1)",

                            "CompareType":"GreaterEqual"

                        },

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "playerX",

                            "Param":"specials(BoundX2)",

                            "CompareType":"LessEqual"

                        },

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "playerY",

                            "Param":"specials(BoundY2)",

                            "CompareType":"LessEqual"

                        }

                    ]

                },

                //更新玩家位置

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "playerX",

                    "SpecialValue": "playerpos(X)"

                },

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "playerY",

                    "SpecialValue": "playerpos(Y)"

                }

            ]

        },

        "OnTurn":{

            "Actions":[

                //是否启用

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnEnd",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "CanTurn",

                            "Param":1,

                            "CompareType":"Equal"

                        }

                    ]

                },

                //回合计数判断

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "turn",

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

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnEnd",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "turn",

                            "Param":"scenevar(Patrol_2020530)",

                            "CompareType":"Less"

                        }

                    ]

                },

                //归零，用于下个回合的统计

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "turn",

                    "SpecialValue": 0

                },

                //计算CurBattleEvt()

                {

                    // normal

                    "$type":"Share.CConfigGoto",

                    "GotoID":101,

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Difficult_2020530",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

                },

                {

                    // elite

                    "$type":"Share.CConfigGoto",

                    "GotoID":102,

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Difficult_2020530",

                            "CompareType": "Equal",

                            "Count": 2

                        }

                    ]

                },

                // {

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

                //     "ID":103

                // },

                //位置更改（若存活）

                {

                    "$type": "Share.CConfigEventModification",

                    "ID":103,

                    "X": 2,

                    "Y": 3,

                    "Position": "Absolute",

                    "Radius": 15,

                    "ModificationNum": 3,

                    "ModificationType": 1,

                    "TargetEventID": [ 

                        2020532,2020533,2020534,

                        2020539,2020540,2020541

                    ],

                    "TargetEventType": 1,

                    //"TargetEventState": "Locked",

                    //"TargetVisibleState": "Visible",

                    "EventID": [ 2020531],

                    "EventState": "Locked",

                    "VisibleState": "Visible",

                    "ExcludePlayerPos":true

                },

                {

                    //战斗 - 上

                    "$type": "Share.CConfigEventModification",

                    "X": 2,

                    "Y": 3,

                    "Position": "Absolute",

                    "Radius": 15,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 

                        2020536

                    ],

                    "TargetEventType": 1,

                    //"TargetEventState": "Locked",

                    //"TargetVisibleState": "Visible",

                    "EventID": [

                        "specials(Cur_TopBattleEvt)"

                    ],

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible",

                    "ExcludePlayerPos":true

                },

                {

                    //战斗 - 中

                    "$type": "Share.CConfigEventModification",

                    "X": 2,

                    "Y": 3,

                    "Position": "Absolute",

                    "Radius": 15,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 

                        2020537

                    ],

                    "TargetEventType": 1,

                    //"TargetEventState": "Locked",

                    //"TargetVisibleState": "Visible",

                    "EventID": [

                        "specials(Cur_MidBattleEvt)"

                    ],

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible",

                    "ExcludePlayerPos":true

                },

                {

                    //战斗 - 下

                    "$type": "Share.CConfigEventModification",

                    "X": 2,

                    "Y": 3,

                    "Position": "Absolute",

                    "Radius": 15,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 

                        2020538

                    ],

                    "TargetEventType": 1,

                    //"TargetEventState": "Locked",

                    //"TargetVisibleState": "Visible",

                    "EventID": [

                        "specials(Cur_BottomBattleEvt)"

                    ],

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible",

                    "ExcludePlayerPos":true

                },

                //新pre生成

                // {

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

                //     "ID":104

                // },

                // {

                //     // 上

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

                //     "ID":104,

                //     "Jump": "RevertTop",

                //     "Predicates":[

                //         {

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

                //             "Key": "TopDie_2020532",

                //             "CompareType": "Equal",

                //             "Count": 1

                //         }

                //     ]

                // },

                // {

                //     // 中

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

                //     "Jump": "RevertMid",

                //     "Predicates":[

                //         {

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

                //             "Key": "MidDie_2020532",

                //             "CompareType": "Equal",

                //             "Count": 1

                //         }

                //     ]

                // },

                // {

                //     // 下

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

                //     "Jump": "RevertBottom",

                //     "Predicates":[

                //         {

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

                //             "Key": "BottomDie_2020532",

                //             "CompareType": "Equal",

                //             "Count": 1

                //         }

                //     ]

                // },

                //入战判断：如果此时站在2020536-2020538之上，就会进入战斗

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "Elite",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Difficult_2020530",

                            "CompareType": "Equal",

                            "Count": 2

                        },

                        {

                            "$type":"Share.CConfigEventByEventState",

                            "X":0,

                            "Y":0,

                            "NodeType":"All",

                            "EventType":"All",

                            "EventID":[

                                2020536,2020537,2020538

                            ],

                            "Position":"Relative",

                            "Radius":0,

                            "VisibleState":["Visible"],

                            "Count":1,

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "Normal",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Difficult_2020530",

                            "CompareType": "Equal",

                            "Count": 1

                        },

                        {

                            "$type":"Share.CConfigEventByEventState",

                            "X":0,

                            "Y":0,

                            "NodeType":"All",

                            "EventType":"All",

                            "EventID":[

                                2020536,2020537,2020538

                            ],

                            "Position":"Relative",

                            "Radius":0,

                            "VisibleState":["Visible"],

                            "Count":1,

                            "CompareType":"Equal"

                        }

                    ]

                }

                //

            ]

        },

        "Elite":{

            "Actions":

            [

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.5

                },

                {

                    //战斗计数器+1

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "BattleTrigger_20205",

                    "Value": 1

                },

                {

                    //战斗计数器+1

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "BattleEvt_20205",

                    "Value": 2020539

                }

                // {

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

                //   "Type":[102],

                //   "SpecialName":"BattleID"

                // },

                // {

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

                //   "BattleID": "specials(BattleID)",

                //   "OnSuccess": "OnBattleEnd"

                // }

            ]

        },

        "Normal":{

            "Actions":

            [

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.5

                },

                {

                    //战斗计数器+1

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "BattleTrigger_20205",

                    "Value": 1

                },

                {

                    //战斗计数器+1

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "BattleEvt_20205",

                    "Value": 2020532

                }

                // {

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

                //   "Type":[100],

                //   "SpecialName":"BattleID"

                // },

                // {

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

                //   "BattleID": "specials(BattleID)",

                //   "OnSuccess": "OnBattleEnd"

                // }

            ]

        },

        "OnBattleEnd":{

            "Actions":[

                {

                    "$type": "Share.CConfigPreset",

                    "PerformKey" : "Chessboard_BattleEnd_None"

                }

                // {

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

                //     "Jump": "RevertTop",

                //     "Predicates":[

                //         {

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

                //             "X":0,

                //             "Y":0,

                //             "NodeType":"All",

                //             "EventType":"All",

                //             "EventID":[

                //                 2020536

                //             ],

                //             "Position":"Relative",

                //             "Radius":0,

                //             "VisibleState":["Visible"],

                //             "Count":1,

                //             "CompareType":"Equal"

                //         }

                //     ]

                // },

                // {

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

                //     "Jump": "RevertMid",

                //     "Predicates":[

                //         {

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

                //             "X":0,

                //             "Y":0,

                //             "NodeType":"All",

                //             "EventType":"All",

                //             "EventID":[

                //                 2020537

                //             ],

                //             "Position":"Relative",

                //             "Radius":0,

                //             "VisibleState":["Visible"],

                //             "Count":1,

                //             "CompareType":"Equal"

                //         }

                //     ]

                // },

                // {

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

                //     "Jump": "RevertBottom",

                //     "Predicates":[

                //         {

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

                //             "X":0,

                //             "Y":0,

                //             "NodeType":"All",

                //             "EventType":"All",

                //             "EventID":[

                //                 2020538

                //             ],

                //             "Position":"Relative",

                //             "Radius":0,

                //             "VisibleState":["Visible"],

                //             "Count":1,

                //             "CompareType":"Equal"

                //         }

                //     ]

                // }

            ]

        },

        "OnEnd":{

            "Actions":

            [

                // {

                //     "$type":"Share.CConfigEmpty"

                // } 

            ]

        },

        "Normal_CalCurBattle":{

            //goto-伪函数调用

            "Actions":

            [

                {

                    "$type": "Share.CConfigSetSpecial",

                    "ID":101,

                    "SpecialName": "Cur_TopBattleEvt",

                    "SpecialValue": "specials(Normal_TopBattleEvt)"

                },

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "Cur_MidBattleEvt",

                    "SpecialValue": "specials(Normal_MidBattleEvt)"

                },

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "Cur_BottomBattleEvt",

                    "SpecialValue": "specials(Normal_BottomBattleEvt)"

                },

                {

                    "$type":"Share.CConfigGoto",

                    "GotoID":103

                }

            ]

        },

        "Elite_CalCurBattle":{

            //goto-伪函数调用

            "Actions":

            [

                {

                    "$type": "Share.CConfigSetSpecial",

                    "ID":102,

                    "SpecialName": "Cur_TopBattleEvt",

                    "SpecialValue": "specials(Elite_TopBattleEvt)"

                },

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "Cur_MidBattleEvt",

                    "SpecialValue": "specials(Elite_MidBattleEvt)"

                },

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "Cur_BottomBattleEvt",

                    "SpecialValue": "specials(Elite_BottomBattleEvt)"

                },

                {

                    "$type":"Share.CConfigGoto",

                    "GotoID":103

                }

            ]

        },

        "RevertTop":{

            "Actions":[

                //即将出现新的敌人

                //随机出现在左端和右端

                {

                    "$type": "Share.CConfigSwitchServer",

                    "Switch": [

                        {

                            "Weight": 50,

                            "Conditions":[

                                //玩家不在左极端

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "BoundX1",

                                    "Param":"playerpos(X)",

                                    "CompareType":"NotEqual"

                                }

                            ],

                            "Actions": [

                                {

                                    //战斗预备 - 上

                                    "$type": "Share.CConfigEventModification",

                                    "X": "specials(BoundX1)",

                                    "Y": "specials(BoundY1)",

                                    "Position": "Absolute",

                                    "Radius": 0,

                                    "ModificationNum": 1,

                                    "ModificationType": 1,

                                    "TargetEventID": [ 

                                        2020531

                                    ],

                                    "TargetEventType": 1,

                                    //"TargetEventState": "Locked",

                                    //"TargetVisibleState": "Visible",

                                    "EventID": [

                                        2020536

                                    ],

                                    "EventState": "ShowEvent",

                                    "VisibleState": "Visible",

                                    "ExcludePlayerPos":true

                                }

                            ]

                        },

                        {

                            "Weight": 50,

                            "Conditions":[

                                //玩家不在右极端

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "BoundX2",

                                    "Param":"playerpos(X)",

                                    "CompareType":"NotEqual"

                                }

                            ],

                            "Actions": [

                                {

                                    //战斗预备 - 上

                                    "$type": "Share.CConfigEventModification",

                                    "X": "specials(BoundX2)",

                                    "Y": "specials(BoundY1)",

                                    "Position": "Absolute",

                                    "Radius": 0,

                                    "ModificationNum": 1,

                                    "ModificationType": 1,

                                    "TargetEventID": [ 

                                        2020531

                                    ],

                                    "TargetEventType": 1,

                                    //"TargetEventState": "Locked",

                                    //"TargetVisibleState": "Visible",

                                    "EventID": [

                                        2020536

                                    ],

                                    "EventState": "ShowEvent",

                                    "VisibleState": "Visible",

                                    "ExcludePlayerPos":true

                                }

                            ]

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnEnd",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "TopDie_2020532",

                            "CompareType": "Equal",

                            "Count": 0

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "TopDie_2020532",

                    "Value": 0

                },

                {

                    "$type":"Share.CConfigGoto",

                    "GotoID":104

                }

                

            ]

        },

        "RevertMid":{

            "Actions":[

                //即将出现新的敌人

                //随机出现在左端和右端

                {

                    "$type": "Share.CConfigSwitchServer",

                    "Switch": [

                        {

                            "Weight": 50,

                            "Conditions":[

                                //玩家不在左极端

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "BoundX1",

                                    "Param":"playerpos(X)",

                                    "CompareType":"NotEqual"

                                }

                            ],

                            "Actions": [

                                {

                                    //战斗预备 - 中

                                    "$type": "Share.CConfigEventModification",

                                    "X": "specials(BoundX1)",

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

                                    "Position": "Absolute",

                                    "Radius": 0,

                                    "ModificationNum": 1,

                                    "ModificationType": 1,

                                    "TargetEventID": [ 

                                        2020531

                                    ],

                                    "TargetEventType": 1,

                                    //"TargetEventState": "Locked",

                                    //"TargetVisibleState": "Visible",

                                    "EventID": [

                                        2020537

                                    ],

                                    "EventState": "ShowEvent",

                                    "VisibleState": "Visible",

                                    "ExcludePlayerPos":true

                                }

                            ]

                        },

                        {

                            "Weight": 50,

                            "Conditions":[

                                //玩家不在右极端

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "BoundX2",

                                    "Param":"playerpos(X)",

                                    "CompareType":"NotEqual"

                                }

                            ],

                            "Actions": [

                                {

                                    //战斗预备 - 中

                                    "$type": "Share.CConfigEventModification",

                                    "X": "specials(BoundX2)",

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

                                    "Position": "Absolute",

                                    "Radius": 0,

                                    "ModificationNum": 1,

                                    "ModificationType": 1,

                                    "TargetEventID": [ 

                                        2020531

                                    ],

                                    "TargetEventType": 1,

                                    //"TargetEventState": "Locked",

                                    //"TargetVisibleState": "Visible",

                                    "EventID": [

                                        2020537

                                    ],

                                    "EventState": "ShowEvent",

                                    "VisibleState": "Visible",

                                    "ExcludePlayerPos":true

                                }

                            ]

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnEnd",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "MidDie_2020532",

                            "CompareType": "Equal",

                            "Count": 0

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "MidDie_2020532",

                    "Value": 0

                },

                {

                    "$type":"Share.CConfigGoto",

                    "GotoID":104

                }



            ]

        },

        "RevertBottom":{

            "Actions":[

                {

                    "$type": "Share.CConfigSwitchServer",

                    "Switch": [

                        {

                            "Weight": 50,

                            "Conditions":[

                                //玩家不在左极端

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "BoundX1",

                                    "Param":"playerpos(X)",

                                    "CompareType":"NotEqual"

                                }

                            ],

                            "Actions": [

                                {

                                    //战斗预备 - 下

                                    "$type": "Share.CConfigEventModification",

                                    "X": "specials(BoundX1)",

                                    "Y": "specials(BoundY2)",

                                    "Position": "Absolute",

                                    "Radius": 0,

                                    "ModificationNum": 1,

                                    "ModificationType": 1,

                                    "TargetEventID": [ 

                                        2020531

                                    ],

                                    "TargetEventType": 1,

                                    //"TargetEventState": "Locked",

                                    //"TargetVisibleState": "Visible",

                                    "EventID": [

                                        2020538

                                    ],

                                    "EventState": "ShowEvent",

                                    "VisibleState": "Visible",

                                    "ExcludePlayerPos":true

                                }

                            ]

                        },

                        {

                            "Weight": 50,

                            "Conditions":[

                                //玩家不在右极端

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "BoundX2",

                                    "Param":"playerpos(X)",

                                    "CompareType":"NotEqual"

                                }

                            ],

                            "Actions": [

                                {

                                    //战斗预备 - 下

                                    "$type": "Share.CConfigEventModification",

                                    "X": "specials(BoundX2)",

                                    "Y": "specials(BoundY2)",

                                    "Position": "Absolute",

                                    "Radius": 0,

                                    "ModificationNum": 1,

                                    "ModificationType": 1,

                                    "TargetEventID": [ 

                                        2020531

                                    ],

                                    "TargetEventType": 1,

                                    //"TargetEventState": "Locked",

                                    //"TargetVisibleState": "Visible",

                                    "EventID": [

                                        2020538

                                    ],

                                    "EventState": "ShowEvent",

                                    "VisibleState": "Visible",

                                    "ExcludePlayerPos":true

                                }

                            ]

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnEnd",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "BottomDie_2020532",

                            "CompareType": "Equal",

                            "Count": 0

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "BottomDie_2020532",

                    "Value": 0

                },

                {

                    "$type":"Share.CConfigGoto",

                    "GotoID":104

                }



            ]

        }

    }

}

