{

    "ID": 2010519, //希望与绝望-全局 

    "Specials": {

        //玩家当前坐标

        "Xn":0,

        "Yn":0,

        //玩家上一步坐标

        "X":0,

        "Y":0,

        //进入区域的标记

        "Flag":0,

        "CountIn":0,

        "CountOut":0,

        //0-红 1-黄 2蓝 3-黄 4-蓝

        "Color":1,

        //连战计数:2-两次连战,3-连战3次

        "Combo":1

    },

    "Events": {

        "OnHollowCreated": {

            "Actions": [

                //随机初始颜色

                {

                    "$type": "Share.CConfigSwitchServer",

                    "Switch": [

                        {   //初始红色

                            "Weight": 50,

                            "Actions": [

                                {

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"Color",

                                    "SpecialValue":0

                                }

                            ]

                        },

                        {   //初始黄色

                            "Weight": 50,

                            "Actions": [

                                {

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"Color",

                                    "SpecialValue":1

                                }

                            ]

                        },

                        {   //初始蓝色

                            "Weight": 50,

                            "Actions": [

                                {

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"Color",

                                    "SpecialValue":2

                                }

                            ]

                        }

                    ]

                }

            ]

        },

        "OnPlayerMove": {

            "Actions": [

                

                //拿到玩家当前位置

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Xn",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Yn",

                    "SpecialValue":"playerpos(Y)"

                },

                //走过彩色格子不加压力

                {

                    "$type": "Share.CConfigModifySceneProperty",

                    "Property": "Stamina_Increase",

                    "Count": 0,

                    "ModifyType" : "Replace",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByEventState",

                            "X":"playerpos(X)",

                            "Y":"playerpos(Y)",

                            "Position": "Absolute",

                            "VisibleState": [

                              "Visible"

                            ],

                            "State": ["ShowEvent"],

                            "Count": 1,

                            "CompareType": "Equal",

                            "Radius": 0,

                            "EventID": [

                              2010515,2010516,2010517

                            ]

                          }

                    ]

                },

                //走正常格子加压力

                {

                    "$type": "Share.CConfigModifySceneProperty",

                    "Property": "Stamina_Increase",

                    "Count": 10,

                    "ModifyType" : "Replace",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByEventState",

                            "X":"playerpos(X)",

                            "Y":"playerpos(Y)",

                            "Position": "Absolute",

                            "VisibleState": [

                              "Visible"

                            ],

                            "State": ["ShowEvent"],

                            "Count": 1,

                            "CompareType": "Equal",

                            "Radius": 0,

                            "EventID": [

                              1000,1005,3003,3101,3201,1021,1030,1019,2010518,2010524,2010525

                            ]

                          }

                    ]

                },



                //判断观测任务完成情况：金币

                {

                    "$type":"Share.CConfigJump",

                    "Jump":"Quest",

                    "Predicates":[

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "Xn",

                                    "Param": 2,

                                    "CompareType": "Equal"

                                },

                                {

                                    "$type": "Share.CConfigEventBySpecials",

                                    "ParamName": "Yn",

                                    "Param": 12,

                                    "CompareType": "Equal"

                                }

                    ]

                },

                //观测任务：3连战——————————————————————————————————————————————————————————————————————

                {

                    "$type":"Share.CConfigJump",

                    "Jump":"TTK",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByEventState",

                            "X":"playerpos(X)",

                            "Y":"playerpos(Y)",

                            "Position": "Absolute",

                            "VisibleState": [

                              "Visible"

                            ],

                            "Count": 1,

                            "CompareType": "Equal",

                            "Radius": 0,

                            "EventID": [

                              2010528,3003

                            ]

                        }

                    ]

                },

            

                //判断玩家位置结束

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "ColorStep_End",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Xn",

                            "Param": 2,

                            "CompareType": "Equal"

                        },

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Yn",

                            "Param": 4,

                            "CompareType": "Equal"

                        },

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "CountOut",

                            "Param": 0,

                            "CompareType": "Equal"

                        }

                    ]

                },

                //判断玩家位置开始

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "ColorStep_1",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Xn",

                            "Param": 2,

                            "CompareType": "Equal"

                        },

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Yn",

                            "Param": 10,

                            "CompareType": "Equal"

                        },

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "CountIn",

                            "Param": 0,

                            "CompareType": "Equal"

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "ColorStep_2",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Flag",

                            "Param": 1,

                            "CompareType": "Equal"

                        },

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "CountOut",

                            "Param": 0,

                            "CompareType": "Equal"

                        }

                    ]

                },

                //用于保存上一步的坐标(离开色块区域后)

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                },

                {

                    "$type":"Share.CConfigJump",

                    "Jump":"OnEnd"

                }



            ]

        },



        "ColorStep_1":{

            "Actions":[

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "Flag",

                    "SpecialValue": 1

                },

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "CountIn",

                    "SpecialValue": 1

                },

                //更新玩家坐标

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                }

            ]

        },

        "ColorStep_End":{

            "Actions":[

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "Flag",

                    "SpecialValue": 0

                },

                {

                    "$type": "Share.CConfigSetSpecial",

                    "SpecialName": "CountOut",

                    "SpecialValue": 1

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "ColorStep_2"

                }

            ]

        },

        "ColorStep_2":{

            "Actions":[

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "Red",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Color",

                            "Param": 0,

                            "CompareType": "Equal"

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "Yellow",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Color",

                            "Param": 1,

                            "CompareType": "Equal"

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "Yellow2",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Color",

                            "Param": 3,

                            "CompareType": "Equal"

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "Blue",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Color",

                            "Param": 2,

                            "CompareType": "Equal"

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "Blue2",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Color",

                            "Param": 4,

                            "CompareType": "Equal"

                        }

                    ]

                }

                

            ]

        },

        "Red":{

            "Actions":[

                //上一步的坐标

                {

                    "$type": "Share.CConfigEventModification",

                    "X": "specials(X)",

                    "Y": "specials(Y)",

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventType": 1,

                    "EventID": [

                        2010515

                    ], //红

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Color",

                    "SpecialValue":1

                },

                //更新玩家坐标

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                },

                {

                    "$type":"Share.CConfigJump",

                    "Jump":"OnEnd"

                }

            ]

        },

        "Yellow":{

            "Actions":[

                //上一步的坐标

                {

                    "$type": "Share.CConfigEventModification",

                    "X": "specials(X)",

                    "Y": "specials(Y)",

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventType": 1,

                    "EventID": [

                        2010516

                    ], //黄

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Color",

                    "SpecialValue":2

                },

                //更新玩家坐标

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                },

                {

                    "$type":"Share.CConfigJump",

                    "Jump":"OnEnd"

                }

            ]

        },

        "Blue":{

            "Actions":[

                //上一步的坐标

                {

                    "$type": "Share.CConfigEventModification",

                    "X": "specials(X)",

                    "Y": "specials(Y)",

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventType": 1,

                    "EventID": [

                        2010517

                    ], //蓝色

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Color",

                    "SpecialValue":0

                },

                //更新玩家坐标

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                },

                {

                    "$type":"Share.CConfigJump",

                    "Jump":"OnEnd"

                }

            ]

        },

        "Yellow2":{

            "Actions":[

                //上一步的坐标

                {

                    "$type": "Share.CConfigEventModification",

                    "X": "specials(X)",

                    "Y": "specials(Y)",

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventType": 1,

                    "EventID": [

                        2010516

                    ], //黄

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Color",

                    "SpecialValue":2

                },

                //更新玩家坐标

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                },

                {

                    "$type":"Share.CConfigJump",

                    "Jump":"OnEnd"

                }

            ]

        },

        "Blue2":{

            "Actions":[

                //上一步的坐标

                {

                    "$type": "Share.CConfigEventModification",

                    "X": "specials(X)",

                    "Y": "specials(Y)",

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventType": 1,

                    "EventID": [

                        2010517

                    ], //蓝色

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Color",

                    "SpecialValue":1

                },

                //更新玩家坐标

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                },

                {

                    "$type":"Share.CConfigJump",

                    "Jump":"OnEnd"

                }

            ]

        },

        "OnEnd":{

            "Actions":[

                //判断开关-区域1

                {

                    "$type": "Share.CConfigSetMapState",

                    "Position": "Absolute",

                    "NodeType": "All",

                    "X": 2,

                    "Y": 8,

                    "Radius": 0,

                    "Count": 1,

                    "FromVisibleState": [

                        "VisibleByTriggerEvent"

                    ],

                    "ToVisibleState": ["Visible"],

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByNot",

                            "Predicates":[

                                {

                                    "$type": "Share.CConfigEventByEventState",

                                    "X": 2,

                                    "Y": 10,

                                    "Position": "Absolute",

                                    "VisibleState": [

                                      "Visible"

                                    ],

                                    "Count": 1,

                                    "CompareType": "GreaterEqual",

                                    "Radius": 2,

                                    "EventID": [

                                        2010515 //hong

        

                                    ]

                                }

                            ]

                        }

                        

                    ]

                },

                //判断开关-区域2

                {

                    "$type": "Share.CConfigSetMapState",

                    "Position": "Absolute",

                    "NodeType": "All",

                    "X": 2,

                    "Y": 4,

                    "Radius": 0,

                    "Count": 1,

                    "FromVisibleState": [

                        "VisibleByTriggerEvent"

                    ],

                    "ToVisibleState": ["Visible"],

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByNot",

                            "Predicates":[

                                {

                                    "$type": "Share.CConfigEventByEventState",

                                    "X": 2,

                                    "Y": 5,

                                    "Position": "Absolute",

                                    "VisibleState": [

                                      "Visible"

                                    ],

                                    "Count": 1,

                                    "CompareType": "GreaterEqual",

                                    "Radius": 3,

                                    "EventID": [

                                        2010515 //hong

        

                                    ]

                                }

                            ]

                        }

                        

                    ]

                }

            ]

        },

        "Quest":{

            "Actions":[

                {

                    "$type": "Share.CConfigSetConditionProgress",

                    "ConditionID": 30060168,

                    "Progress": 1,

                    "ModifyType": "Add",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventByItemID",

                            "Count": 3000,

                            "ItemID": 1,

                            "CompareType": "GreaterEqual"

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigSetConditionProgress",

                    "ConditionID": 30060169,

                    "Progress": 1,

                    "ModifyType": "Add",

                    "Predicates": [

                        {

                            "$type":"Share.CConfigEventByCurse",

                            "CompareType":"Equal",

                            "Count":0

                        }

                    ]

                }

            ]

        },

        "TTK":{

            "Actions":[



                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Combo",

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

                    "Predicates":[

                        {   //判断上一步是不是战斗

                            "$type": "Share.CConfigEventByEventState",

                            "X":"specials(X)" ,

                            "Y": "specials(Y)" ,

                            "Position": "Absolute",

                            "VisibleState": [

                              "Visible"

                            ],

                            "Count": 1,

                            "CompareType": "Equal",

                            "Radius": 0,

                            "EventID": [

                              2010528,3003

                            ]

                        }

                        // {

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

                        //     "ParamName": "Combo",

                        //     "Param": 2,

                        //     "CompareType": "LessEqual"

                        // }

                    ]

                },

                {

                    "$type":"Share.CConfigJump",

                    "Jump":"TTK2",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Combo",

                            "Param": 3,

                            "CompareType": "Equal"

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetSpecial",      

                    "SpecialName":"Combo",

                    "SpecialValue":1,

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByNot",

                            "Predicates": [

                                {   //判断上一步不是战斗计数归1

                                    "$type": "Share.CConfigEventByEventState",

                                    "X":"specials(X)" ,

                                    "Y": "specials(Y)" ,

                                    "Position": "Absolute",

                                    "VisibleState": [

                                      "Visible"

                                    ],

                                    "Count": 1,

                                    "CompareType": "Equal",

                                    "Radius": 0,

                                    "EventID": [

                                      2010528,3003

                                    ]

                                }       

                            ]

                        }

                        

                    ]

                },

                //用于保存上一步的坐标(离开色块区域后)

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                }

            ]

        },

        "TTK2":{

            "Actions":[ 



                {

                    "$type": "Share.CConfigSetConditionProgress",

                    "ConditionID": 30060172,

                    "Progress": 1,

                    "ModifyType": "Add"

                }

            ]

        }

    }

}