//全局

{

    "ID": 2011308,

    "Specials":{

        //empty(占位符)

        "empty":0,

        //goto跳转返回

        "Return":0,

        //是否主动相撞

        "Trigger":0,

        //是否被动相撞

        "BeTriggered":0,

        //复活标记

        "Relive":0,

        //循环控制

        "Init":0,

        "Loop":0,

        "ite":0,

        "CurIdx":0,

        "NxtIdx":0,

        "Event":2011310, //战斗base

        "EvtID":0,

        //相撞相合记录

        "ID":0,

        "CurrentIndex":0,

        "NextIndex":0,

        //战斗强度变更

        "PrevBattleType":0,

        //1重生&2再次移动

        "flag1":0,

        //玩家位置&reset，用于踩到战斗后格子修复

        "PrevPlayerIdx":0,

        "GridFix":0,

        "movecount":0

        //***GRP1***

        //CurIdx20113_1

        //NxtIdx20113_1

        //CurIdx20113_2

        //NxtIdx20113_2

        //CurIdx20113_3

        //NxtIdx20113_3

        //***GRP2***

        //CurIdx20113_4

        //NxtIdx20113_4

        //CurIdx20113_5

        //NxtIdx20113_5

        //***GRP3***

        //CurIdx20113_6

        //NxtIdx20113_6

        //CurIdx20113_7

        //NxtIdx20113_7

        //***GRP4***

        //CurIdx20113_8

        //NxtIdx20113_8

        //CurIdx20113_9

        //NxtIdx20113_9

        //***GRP5***

        //CurIdx20113_10

        //NxtIdx20113_10

        //***ability触发***

        //AbilityTrigger_20113

        //AbilityTrigger_ID_201113

        //***每个单位的方向***

        //HDir_{ID}

        //VDir_{ID}

        //***当前战斗强度***

        //BattleType_20113

        //***relive标记（OnTurn结束时清理）***

        //Relive_20113

        //***等待标记（OnTurn结束时清理）***

        //Wait_20113

        //***事件触发标记***

        //EventTriggered_20113



    },

    "Events": {

        "Skip":{

            "Actions":[

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"empty",

                    "SpecialValue":0

                },

				{

                    //脚下是巡逻怪

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"movecount",

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

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByEventState",

                            "X":0,

                            "Y":0,

                            "Position":"Relative",

                            "EventTags":[

                                "Patrol"

                            ],

                            "Radius":0,

                            "VisibleState":["Visible"],

                            "Count":1,

                            "CompareType":"Equal"

                        }

                    ]

				},

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"movecount",

					"SpecialValue":0,

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(movecount)",

                            "Param2":2,

                            "CompareType":"Equal"

                        }



                    ]

				},

                {

                    "$type":"Share.CConfigGoto",

                    "GotoID":"specials(Return)",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(movecount)",

                            "Param2":0,

                            "CompareType":"Equal"

                        }



                    ]

                }



            ]

        },

        "OnPlayerMove": {

            "Actions": [

                //***主动触发，推迟巡逻时间***

				// {

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

				// 	"SpecialName":"Return",

				// 	"SpecialValue":1

				// },

				// {

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

				// 	"Jump": "Skip",

                //     "Predicates":[

                //         {

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

                //             "Param1":"specials(movecount)",

                //             "Param2":0,

                //             "CompareType":"Equal"

                //         }

                //     ]

				// },

                // {

                //     //CConfigEmpty

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

                //     "SpecialName":"empty",

                //     "SpecialValue":0,

				// 	"ID":1

                // },

				// {

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

				// 	"SpecialName":"movecount",

				// 	"SpecialValue":0

				// },

                //老格子修复（用于解决相撞后格子置为finished）

                //--设置reset为true

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"GridFix",

                    "SpecialValue":1,

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "EventTriggered_20113",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

                },

                {

                    //战斗计数器+1

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "EventTriggered_20113",

                    "Value": 0

                },

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"Return",

					"SpecialValue":1100

				},

				{

					"$type": "Share.CConfigJump",

					"Jump": "GridFix",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(GridFix)",

                            "Param2":1,

                            "CompareType":"Equal"

                        }

                    ]

				},

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"empty",

                    "SpecialValue":0,

					"ID":1100

                },



                //初始化标记

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"ID",

                    "SpecialValue":0

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"CurrentIndex",

                    "SpecialValue":0

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"NextIndex",

                    "SpecialValue":0

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"BeTriggered",

                    "SpecialValue":0

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Trigger",

                    "SpecialValue":0

                },

                {

                    //初始化

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "AbilityTrigger",

                    "Value":0

                },

                {

                    //初始化

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "AbilityTrigger_ID",

                    "Value":0

                },



                //***GRP1***

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"Return",

					"SpecialValue":1101

				},

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Init",

                    "SpecialValue":1

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Loop",

                    "SpecialValue":3

                },

				{

					"$type": "Share.CConfigJump",

					"Jump": "GrpControl",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Area1_2011302",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

				},

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"empty",

                    "SpecialValue":0,

					"ID":1101

                },

                //***GRP2***

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"Return",

					"SpecialValue":1102

				},

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Init",

                    "SpecialValue":4

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Loop",

                    "SpecialValue":2

                },

				{

					"$type": "Share.CConfigJump",

					"Jump": "GrpControl",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Area2_2011302",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

				},

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"empty",

                    "SpecialValue":0,

					"ID":1102

                },

                //***GRP3***

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"Return",

					"SpecialValue":1103

				},

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Init",

                    "SpecialValue":6

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Loop",

                    "SpecialValue":2

                },

				{

					"$type": "Share.CConfigJump",

					"Jump": "GrpControl",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Area3_2011302",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

				},

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"empty",

                    "SpecialValue":0,

					"ID":1103

                },

                //***GRP4***

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"Return",

					"SpecialValue":1104

				},

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Init",

                    "SpecialValue":8

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Loop",

                    "SpecialValue":2

                },

				{

					"$type": "Share.CConfigJump",

					"Jump": "GrpControl",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Area4_2011302",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

				},

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"empty",

                    "SpecialValue":0,

					"ID":1104

                },

                //***GRP5***

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"Return",

					"SpecialValue":1105

				},

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Init",

                    "SpecialValue":10

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Loop",

                    "SpecialValue":1

                },

				{

					"$type": "Share.CConfigJump",

					"Jump": "GrpControl",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Area5_2011302",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

				},

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"empty",

                    "SpecialValue":0,

					"ID":1105

                },



                //处理相撞相合

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"Return",

					"SpecialValue":1201

				},

				{

					"$type": "Share.CConfigJump",

					"Jump": "OnTrigger",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(CurrentIndex)",

                            "Param2":"specials(NextIndex)",

                            "CompareType":"NotEqual"

                        }

                    ]

				},

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"empty",

                    "SpecialValue":0,

					"ID":1201

                }

            ]

        },

        "GrpControl":{

            "Actions":[

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"ite",

					"SpecialValue":0

				},

                {

                    "$type":"Share.CConfigGoto",

                    "ID":101,

                    "GotoID":"specials(Return)",

                    "Predicates": [

                        {

                            "$type": "Share.CConfigEventByCompareParam",

							"Param1":"specials(ite)",

							"Param2":"specials(Loop)",

							"CompareType":"GreaterEqual"

                        }

                    ]

                },

                //***正常移动***

                //取全局变量

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"CurIdx",

					"SpecialValue":"scenevar(CurIdx20113_{specials(Init)+specials(ite)})"

				},

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"NxtIdx",

					"SpecialValue":"scenevar(NxtIdx20113_{specials(Init)+specials(ite)})"

				},

                //计算ID

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"EvtID",

					"SpecialValue":"specials(Event)+specials(Init)+specials(ite)"

				},

                {

                    //抹除

                    "$type": "Share.CConfigEventModification",

                    "ModificationNum":1,

                    "ModificationType":1,

                    "IndexList":[

                        "specials(CurIdx)"

                    ],

                    "TargetCoreNode":0,

                    "TargetEventType":1,

                    "EventID":[

                        1003

                    ],

                    "EventState":"Unstable",

                    "VisibleState":"Visible",

                    "Predicates":[

                        //如果玩家和巡逻兵不相撞

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(CurIdx)",

                            "Param2":"getindex(0,0,0,0,0)",

                            "CompareType":"NotEqual"

                        },

                        //如果玩家和巡逻兵目的地不相合

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(NxtIdx)",

                            "Param2":"getindex(0,0,0,0,0)",

                            "CompareType":"NotEqual"

                        }

                    ]

                },

                {

                    //新建

                    "$type": "Share.CConfigEventModification",

                    "ModificationNum":1,

                    "ModificationType":1,

                    "IndexList":[

                        "specials(NxtIdx)"

                    ],

                    "TargetCoreNode":0,

                    "TargetEventType":1,

                    "EventID":[

                        "specials(EvtID)"

                    ],

                    "EventState":"ShowEvent",

                    "VisibleState":"Visible",

                    "Predicates":[

                        //如果玩家和巡逻兵不相撞

                        {

                            "$type": "Share.CConfigEventByCompareParam",

							"Param1":"specials(CurIdx)",

							"Param2":"getindex(0,0,0,0,0)",

							"CompareType":"NotEqual"

                        },

                        //如果玩家和巡逻兵目的地不相合

                        {

                            "$type": "Share.CConfigEventByCompareParam",

							"Param1":"specials(NxtIdx)",

							"Param2":"getindex(0,0,0,0,0)",

							"CompareType":"NotEqual"

                        }

                    ]

                },

                //***碰撞单位标记***

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"ID",

					"SpecialValue":"specials(Init)+specials(ite)",

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByNot",

                            "Predicates":

                            [

                                //如果玩家和巡逻兵不相撞

                                {

                                    "$type": "Share.CConfigEventByCompareParam",

                                    "Param1":"specials(CurIdx)",

                                    "Param2":"getindex(0,0,0,0,0)",

                                    "CompareType":"NotEqual"

                                },

                                //如果玩家和巡逻兵目的地不相合

                                {

                                    "$type": "Share.CConfigEventByCompareParam",

                                    "Param1":"specials(NxtIdx)",

                                    "Param2":"getindex(0,0,0,0,0)",

                                    "CompareType":"NotEqual"

                                }

                            ]

                        }

                    ]

				},

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"NextIndex",

					"SpecialValue":"specials(NxtIdx)",

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByNot",

                            "Predicates":

                            [

                                //如果玩家和巡逻兵不相撞

                                {

                                    "$type": "Share.CConfigEventByCompareParam",

                                    "Param1":"specials(CurIdx)",

                                    "Param2":"getindex(0,0,0,0,0)",

                                    "CompareType":"NotEqual"

                                },

                                //如果玩家和巡逻兵目的地不相合

                                {

                                    "$type": "Share.CConfigEventByCompareParam",

                                    "Param1":"specials(NxtIdx)",

                                    "Param2":"getindex(0,0,0,0,0)",

                                    "CompareType":"NotEqual"

                                }

                            ]

                        }

                    ]

				},

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"CurrentIndex",

					"SpecialValue":"specials(CurIdx)",

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByNot",

                            "Predicates":

                            [

                                //如果玩家和巡逻兵不相撞

                                {

                                    "$type": "Share.CConfigEventByCompareParam",

                                    "Param1":"specials(CurIdx)",

                                    "Param2":"getindex(0,0,0,0,0)",

                                    "CompareType":"NotEqual"

                                },

                                //如果玩家和巡逻兵目的地不相合

                                {

                                    "$type": "Share.CConfigEventByCompareParam",

                                    "Param1":"specials(NxtIdx)",

                                    "Param2":"getindex(0,0,0,0,0)",

                                    "CompareType":"NotEqual"

                                }

                            ]

                        }

                    ]

				},

                //***循环逻辑***

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"ite",

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

				},

                {

                    "$type":"Share.CConfigGoto",

                    "GotoID":101

                }

            ]

        },

        "OnTrigger":{

            "Actions":[

                //如果玩家位置是cur，pass

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"BeTriggered",

                    "SpecialValue":1,

                    "Predicates":[

                        //如果玩家和巡逻兵目的地相合

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(NextIndex)",

                            "Param2":"getindex(0,0,0,0,0)",

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Trigger",

                    "SpecialValue":1,

                    "Predicates":[

                        //如果玩家和巡逻兵目的地相合

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(CurrentIndex)",

                            "Param2":"getindex(0,0,0,0,0)",

                            "CompareType":"Equal"

                        }

                    ]

                },

                //如果是相合，需要借助ability

				{

					"$type": "Share.CConfigJump",

					"Jump": "RunEvent",

                    "Predicates":[

                        //如果玩家和巡逻兵目的地相合

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(BeTriggered)",

                            "Param2":1,

                            "CompareType":"Equal"

                        }

                    ]

				},

                //否则直接返回

                {

                    "$type":"Share.CConfigGoto",

                    "ID":201,

                    "GotoID":"specials(Return)"

                }

            ]

        },

        "RunEvent":{

            "Actions":[

                

                {

                    //需要触发战斗

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "AbilityTrigger_20113",

                    "Value":1

                },

                {

                    //触发的战斗ID

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "AbilityTrigger_ID_20113",

                    "Value":"specials(Event)+specials(ID)"

                }

            ]

        },

        "GridFix":{

            "Actions":[

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"GridFix",

                    "SpecialValue":0,

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(PrevPlayerIdx)",

                            "Param2":"getindex(0,0,0,0,0)",

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    //新建

                    "$type": "Share.CConfigEventModification",

                    "ModificationNum":1,

                    "ModificationType":1,

                    "IndexList":[

                        "specials(PrevPlayerIdx)"

                    ],

                    "TargetCoreNode":0,

                    "TargetEventType":1,

                    "EventID":[

                        1003

                    ],

                    "EventState":"Unstable",

                    "VisibleState":"Visible",

                    "ExcludePlayerPos":true

                },

                {

                    "$type":"Share.CConfigGoto",

                    "GotoID":"specials(Return)"

                }

            ]

        },



        "OnTurn":{

            "Actions":[

                {

                    //日志

                    "$type":"Share.CConfigLog",

                    "Message":"OnTurn开始执行"

                },

                //战斗难度是否提高（表现）

                {

                    "$type":"Share.CConfigGoto",

                    "GotoID":1305,

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"scenevar(BattleType_20113)",

                            "Param2":"specials(PrevBattleType)",

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"PrevBattleType",

                    "SpecialValue":"scenevar(BattleType_20113)"

                },

                //***GRP1***

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"Return",

					"SpecialValue":1301

				},

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Init",

                    "SpecialValue":1

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Loop",

                    "SpecialValue":3

                },

				{

					"$type": "Share.CConfigJump",

					"Jump": "ChangeLevel",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Area1_2011302",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

				},

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"empty",

                    "SpecialValue":0,

					"ID":1301

                },

                //***GRP2***

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"Return",

					"SpecialValue":1302

				},

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Init",

                    "SpecialValue":4

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Loop",

                    "SpecialValue":2

                },

				{

					"$type": "Share.CConfigJump",

					"Jump": "ChangeLevel",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Area2_2011302",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

				},

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"empty",

                    "SpecialValue":0,

					"ID":1302

                },

                //***GRP3***

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"Return",

					"SpecialValue":1303

				},

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Init",

                    "SpecialValue":6

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Loop",

                    "SpecialValue":2

                },

				{

					"$type": "Share.CConfigJump",

					"Jump": "ChangeLevel",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Area3_2011302",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

				},

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"empty",

                    "SpecialValue":0,

					"ID":1303

                },

                //***GRP4***

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"Return",

					"SpecialValue":1304

				},

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Init",

                    "SpecialValue":8

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Loop",

                    "SpecialValue":2

                },

				{

					"$type": "Share.CConfigJump",

					"Jump": "ChangeLevel",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Area4_2011302",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

				},

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"empty",

                    "SpecialValue":0,

					"ID":1304

                },

                //***GRP5***

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"Return",

					"SpecialValue":1305

				},

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Init",

                    "SpecialValue":10

                },

                {

                    //初始化设置

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"Loop",

                    "SpecialValue":1

                },

				{

					"$type": "Share.CConfigJump",

					"Jump": "ChangeLevel",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Area5_2011302",

                            "CompareType": "Equal",

                            "Count": 1

                        }

                    ]

				},

                {

                    //CConfigEmpty

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"empty",

                    "SpecialValue":0,

					"ID":1305

                },

                //是否需要再次触发OnPlayerMove（表现）

                //是否需要重生（表现），已知ID

                {

                    //重生

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"flag1",

                    "SpecialValue":0

                },

                {

                    //重生

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"flag1",

                    "SpecialValue":1,

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"scenevar(Relive_20113)",

                            "Param2":1,

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    //等待

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"flag1",

                    "SpecialValue":2,

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"scenevar(Wait_20113)",

                            "Param2":1,

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    //仅记录

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"flag1",

                    "SpecialValue":3,

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"scenevar(Wait_20113)",

                            "Param2":2,

                            "CompareType":"Equal"

                        }

                    ]

                },

                //--clear--

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Wait_20113",

                    "Value":0

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Relive_20113",

                    "Value":0

                },

                //--最后的跳转处理--

				{

					"$type": "Share.CConfigJump",

					"Jump": "Relive",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(flag1)",

                            "Param2":1,

                            "CompareType":"Equal"

                        }

                    ]

				},

				{

					"$type": "Share.CConfigJump",

					"Jump": "MoveAgain",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(flag1)",

                            "Param2":2,

                            "CompareType":"Equal"

                        }

                    ]

				},

				{

					"$type": "Share.CConfigJump",

					"Jump": "MoveAgain",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(flag1)",

                            "Param2":3,

                            "CompareType":"Equal"

                        }

                    ]

				},

                {

                    //日志

                    "$type":"Share.CConfigLog",

                    "Message":"OnTurn执行---空"

                }

            ]

        },

        "ChangeLevel":{

            "Actions":[

                //相机居中

                //等待

                //循环，更改curidx的事件至对应level（屏蔽relive.ID）

                //等待

                //完成后返回

                {

                    "$type":"Share.CConfigGoto",

                    "GotoID":"specials(Return)"

                }

            ]

        },

        "MoveAgain":{

            "Actions":[

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"PrevPlayerIdx",

                    "SpecialValue":"getindex(0,0,0,0,0)"

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.5

                },

				{

					"$type": "Share.CConfigJump",

					"Jump": "OnPlayerMove",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByCompareParam",

                            "Param1":"specials(flag1)",

                            "Param2":2,

                            "CompareType":"Equal"

                        }

                    ]

				}

            ]

        },

        "Relive":{

            "Actions":[

                //记录当前玩家位置PrevPlayerIdx

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"PrevPlayerIdx",

                    "SpecialValue":"getindex(0,0,0,0,0)"

                },

                //*******************

                //取得nxt

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"NxtIdx",

					"SpecialValue":"scenevar(NxtIdx20113_{specials(ID)})"

				},

                //计算事件ID

				{

					"$type":"Share.CConfigSetSpecial",

					"SpecialName":"EvtID",

					"SpecialValue":"specials(Event)+specials(ID)"

				},

                //fairy

                {

                    "$type": "Share.CConfigShowTip",

                    "TipID": 201130801

                },

                //相机移动

                {

                    "$type": "Share.CConfigCameraMoveV2",

                    "StretchKey": "Target",

                    "Type": "CustomBound",

                    "BoundIndexX":"specials(NxtIdx)-1",

                    "BoundIndexY":"specials(NxtIdx)+1",

                    "CanControl":false,

                    "UseStretchZ":true,

                    "FreezeZ":true

                },

                //等待

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.5

                },

                //设置为事件

                {

                    //新建

                    "$type": "Share.CConfigEventModification",

                    "ModificationNum":1,

                    "ModificationType":1,

                    "IndexList":[

                        "specials(NxtIdx)"

                    ],

                    "TargetCoreNode":0,

                    "TargetEventType":1,

                    "EventID":[

                        "specials(EvtID)"

                    ],

                    "EventState":"ShowEvent",

                    "VisibleState":"Visible"

                },

                //等待

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 1

                },

                //相机归位

                {

                    "$type": "Share.CConfigCameraMoveV2",

                    "StretchKey": "Back",

                    "Type": "Back",

                    "CanControl":true,

                    "UseStretchZ":false,

                    "FreezeZ":true

                },

                {

                    //日志

                    "$type":"Share.CConfigLog",

                    "Message":"OnTurn执行---复活"

                }

            ]

        }

    }

}

