{

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

    "Specials": {

        //玩家当前坐标

        "Xn":0,

        "Yn":0,

        //玩家上一步坐标

        "X":0,

        "Y":0,



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

        "Color":0,



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

        "Combo":1

    },

    "Events": {

        "OnHollowCreated": {

            "Actions": [

                //检测是够留色彩的标记

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "CountIn.2010521",

                    "Value": 0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "CountOut.2010522",

                    "Value": 0

                },

                //判断父与子事件是否保留用

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "FAS.2010524",

                    "Value": 0

                },

                //进入父与子事件的次数

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "InCount.201052402",

                    "Value": 0

                },

                //随机初始颜色

                {

                    "$type": "Share.CConfigSwitchServer",

                    "Switch": [

                        {   //初始红色1

                            "Weight": 50,

                            "Actions": [

                                {

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"Color",

                                    "SpecialValue":0

                                }

                            ]

                        },

                        //黄色开局能直接走到终点，故ban掉

                        // {   //初始黄色

                        //     "Weight": 50,

                        //     "Actions": [

                        //         {

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

                        //             "SpecialName":"Color",

                        //             "SpecialValue":1

                        //         }

                        //     ]

                        // },

                        {   //初始蓝色

                            "Weight": 50,

                            "Actions": [

                                {

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"Color",

                                    "SpecialValue":2

                                }

                            ]

                        },

                        {   //初始红色2

                            "Weight": 50,

                            "Actions": [

                                {

                                    "$type":"Share.CConfigSetSpecial",

                                    "SpecialName":"Color",

                                    "SpecialValue":3

                                }

                            ]

                        }

                    ]

                }

            ]

        },

        "OnPlayerMove": {

            "Actions": [

                //判断是否还原父与子事件

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "DadSon",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "FAS.2010524",

                            "CompareType": "Equal",

                            "Count": 9

                        }

                    ]

                },

                //拿到玩家当前位置

                {

                    "$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

                            ]

                          }

                    ]

                },

                //观测任务：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.CConfigEventByHollowVariable",

                            "Key": "CountOut.2010522",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

                },

                //判断玩家位置结束

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "ColorStep_End",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Xn",

                            "Param": 3,

                            "CompareType": "Equal"

                        },

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Yn",

                            "Param": 5,

                            "CompareType": "Equal"

                        },

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "CountOut.2010522",

                            "CompareType": "Equal",

                            "Count": 0

                        }

                    ]

                },

                //判断玩家位置开始

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "ColorStep_1",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Xn",

                            "Param": 3,

                            "CompareType": "Equal"

                        },

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Yn",

                            "Param": 9,

                            "CompareType": "Equal"

                        },

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "CountIn.2010521",

                            "CompareType": "Equal",

                            "Count": 0

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "ColorStep_2",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "CountIn.2010521",

                            "CompareType": "Equal",

                            "Count": 1

                        },

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "CountOut.2010522",

                            "CompareType": "Equal",

                            "Count": 0

                        }

                    ]

                },

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

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                }



            ]

        },



        "ColorStep_1":{

            "Actions":[



                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "CountIn.2010521",

                    "Value": 1

                },

                //更新玩家坐标

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                }

            ]

        },

        "ColorStep_End":{

            "Actions":[



                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "CountOut.2010522",

                    "Value": 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": "Blue",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Color",

                            "Param": 2,

                            "CompareType": "Equal"

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "Red2",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "Color",

                            "Param": 3,

                            "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)"

                }

            ]

        },

        "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)"

                }

            ]

        },

        "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":3

                },

                //更新玩家坐标

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                }

            ]

        },

        "Red2":{

            "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":0

                },

                //更新玩家坐标

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"X",

                    "SpecialValue":"playerpos(X)"

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Y",

                    "SpecialValue":"playerpos(Y)"

                }

            ]

        },

        "DadSon": {

            "Actions": [

                {

                    "$type": "Share.CConfigSetMapState",

                    "Position": "Absolute",

                    "NodeType": "All",

                    "X": 3,

                    "Y": 5,

                    "Radius": 0,

                    "Count": 1,

                    "FromState": [

                        "ShowEvent"

                    ],

                    "ToState": ["Finished"]

                    

                }

            ]

        },

        "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"

                }

            ]

        }

    }

}