{

    "ID": 2010910, //开关1 （5,5）/（2,1）

    "EventTypeTag": [

        "Switch"

      ],

    "Events": {

        "OnStart": {

            "Actions": [

                //踩到开关，判断另一处坐标是不是替身，2种情况

                {

                    "$type":"Share.CConfigJump",

                    "Jump":"OnSwitch_1",

                    "Predicates":[                           

                                {

                                    "$type":"Share.CConfigEventByEventState",

                                    "X":5,

                                    "Y":3,

                                    "Position":"Absolute",

                                    "VisibleState":["Visible"],

                                    "State":["ShowEvent"],

                                    "Count":1,

                                    "CompareType":"Equal",

                                    "Radius":0,

                                    "EventID":[2010907] //替身

                                }

                    ]

                },

                //第二处机关

                {

                    "$type":"Share.CConfigJump",

                    "Jump":"OnSwitch_2",

                    "Predicates":[                           

                                {

                                    "$type":"Share.CConfigEventByEventState",

                                    "X":2,

                                    "Y":3,

                                    "Position":"Absolute",

                                    "VisibleState":["Visible"],

                                    "State":["ShowEvent"],

                                    "Count":1,

                                    "CompareType":"Equal",

                                    "Radius":0,

                                    "EventID":[2010907] //替身

                                }

                    ]

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnTips"

                }



                

            ]

        },

    "OnSwitch_1":{

        "Actions":[

            //下一处开关

            {

                "$type": "Share.CConfigEventModification",

                "X": 2,

                "Y": 3,

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                //"TargetEventID": [ 2010907 ],

                "TargetEventType": 1,

                "EventID": [ 2010909 ],//机关1

                "EventState": "ShowEvent",

                "VisibleState": "Visible"

            },

            {

                "$type": "Share.CConfigEventModification",

                "X": 2,

                "Y": 1,

                "Position": "Absolute",

                "Radius": 0,

                "ModificationNum": 1,

                "ModificationType": 1,

                //"TargetEventID": [ 2010907 ],

                "TargetEventType": 1,

                "EventID": [ 2010910 ],//机关2

                "EventState": "ShowEvent",

                "VisibleState": "Visible"

            },

            //标记机关1已开

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Switch.2010900",

                "Value": 1

            },

            {

                "$type": "Share.CConfigJump",

                "Jump": "OnEnd"

            }

        ]

    },

    "OnSwitch_2":{

        "Actions":[

            //终点出现

            {

                "$type": "Share.CConfigSetMapState",

                "X": 0,

                "Y": 1,

                "Position": "Absolute",

                "NodeType": "All",

                "Radius": 0,

                "Count": 1,

                "FromVisibleState": [

                    "VisibleByTriggerEvent"

                ],

                "ToVisibleState": ["Visible"]

            },

            //标记机关2已开

            {

                "$type": "Share.CConfigSetHollowVariable",

                "Key": "Switch.2010911",

                "Value": 1

            },

            {

                "$type": "Share.CConfigJump",

                "Jump": "OnEnd"

            }

        ]

    },

    "OnTips":{

        "Actions":[

            //tips提示要同时踩中

            {

                "$type": "Share.CConfigShowTip",

                "TipID": 201090103,//看来得两个机关同时启动

                "Type": "Duration",

                "Delay": 0

            },

            {

                "$type": "Share.CConfigShowTip",

                "TipID": 201090104,//好好利用那只奇怪的邦布吧

                "Type": "Duration",

                "Delay": 0

            },

            {

                "$type": "Share.CConfigJump",

                "Jump": "OnEnd"

            }



        ]

    },



    "OnEnd":{

        "Actions":[

            //tips提示要同时踩中

            {

                "$type": "Share.CConfigFinishEvent"

            }

        ]

    }

    }

}

