{ "ID": 2011004, //推箱子 全局事件2 "Specials": { "turnlock":0 }, "Events":{ "OnHollowCreated":{ "Actions":[ //清除全部HollowVariable { "$type":"Share.CConfigSetHollowVariable", "Key":"boxPos_x1", "Value": 0 }, { "$type":"Share.CConfigSetHollowVariable", "Key":"boxPos_y1", "Value": 0 }, { "$type":"Share.CConfigSetHollowVariable", "Key":"finalPos_x3", "Value": 0 }, { "$type":"Share.CConfigSetHollowVariable", "Key":"finalPos_y3", "Value": 0 }, { "$type":"Share.CConfigSetHollowVariable", "Key":"Delta_Final_X", "Value": 0 }, { "$type":"Share.CConfigSetHollowVariable", "Key":"Delta_Final_Y", "Value": 0 }, { "$type": "Share.CConfigSwitchServer", "Switch": [ { "Weight": 10, "Actions": [ { "$type": "Share.CConfigJump", "Jump": "OnCreateBox1" } ] } ] } ] }, "OnCreateBox1":{ "Actions":[ { "$type": "Share.CConfigEventModification", "X":3, "Y":1, "Position":"Absolute", "Radius":0, "ModificationNum":1, "ModificationType":1, "TargetEventID": [ 1003 ], "TargetEventType":1, "EventID":[ 2011003 ], "EventState":"ShowEvent", "VisibleState":"Visible" } ] }, "OnPlayerMove":{ "Actions":[ //刚才走过的格子设置为unstable { "$type": "Share.CConfigSetMapState", "X": "scenevar(playerPos_x2)", "Y": "scenevar(playerPos_y2)", "Position": "Absolute", "NodeType": "All", "Radius": 0, "Count": 1, "FromState": ["Finished"], "ToState": ["Unstable"], "ExcludePlayerPos":true } ] }, "OnNextHollow":{ "Actions":[ { "$type":"Share.CConfigSetSpecial", "SpecialName":"turnlock", "SpecialValue":1 }, //把箱子改成终点 { "$type": "Share.CConfigCameraMoveV2", "StretchKey": "Target", "Type": "TriggerPosition", "PositionOffsetType":"Absolute", "PositionOffsetX":5, "PositionOffsetY":6, "RadiusX":0, "RadiusY":0, "CanControl":false, "UseStretchZ":true, "FreezeZ":true }, { "$type": "Share.CConfigWaitSeconds", "Time": 1 }, { "$type": "Share.CConfigEventModification", "ModificationNum":1, "ModificationType":1, "Position":"Absolute", "X":5, "Y":6, "TargetEventID": [ 2011003 ], "TargetCoreNode":0, "TargetEventType":1, "EventID":[ 2011002 ], "EventState":"ShowEvent", "VisibleState":"Visible" }, { "$type": "Share.CConfigWaitSeconds", "Time": 0.5 }, { "$type": "Share.CConfigCameraMoveV2", "StretchKey": "Back", "Type": "Back", "CanControl":true, "UseStretchZ":false } ] }, "OnTurn":{ "Actions":[ //更新玩家的坐标 { "$type":"Share.CConfigSetHollowVariable", "Key":"playerPos_x2", "Value": "playerpos(X)" }, { "$type":"Share.CConfigSetHollowVariable", "Key":"playerPos_y2", "Value": "playerpos(Y)" }, //设置过终点了,走OnEnd { "$type": "Share.CConfigJump", "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "turnlock", "Param": 0, "CompareType":"NotEqual" } ], "Jump": "OnEnd" }, { "$type": "Share.CConfigJump", "Jump": "OnEnd", "Predicates":[ { "$type":"Share.CConfigEventBySpecials", "ParamName":"Y", "Param":"playerpos(Y)", "CompareType":"NotEqual" } ] }, { //在给定的位置创建1个箱子 "$type": "Share.CConfigEventModification", "X":"scenevar(boxPos_x1)", "Y":"scenevar(boxPos_y1)", "Position":"Absolute", "Radius":0, "ModificationNum":1, "ModificationType":1, "TargetEventID": [ //2011005, 1003,2011003,2011002 ], "TargetEventType":1, "EventID":[ 2011003 ], "EventState":"ShowEvent", "VisibleState":"Visible" }, //创建终点相关 { "$type":"Share.CConfigSetHollowVariable", "Key":"Delta_Final_X", "Value": 0 }, { "$type":"Share.CConfigSetHollowVariable", "Key":"Delta_Final_Y", "Value": 0 }, { "$type":"Share.CConfigSetHollowVariable", "Key":"Delta_Final_X", "Value": "scenevar(boxPos_x1)-scenevar(finalPos_x3)" }, { "$type":"Share.CConfigSetHollowVariable", "Key":"Delta_Final_Y", "Value": "scenevar(boxPos_y1)-scenevar(finalPos_y3)" }, { "$type": "Share.CConfigJump", "Predicates":[ { "$type": "Share.CConfigEventByHollowVariable", "Key": "Delta_Final_X", "CompareType": "Equal", "Count": 0 }, { "$type": "Share.CConfigEventByHollowVariable", "Key": "Delta_Final_Y", "CompareType": "Equal", "Count": 0 }, { "$type": "Share.CConfigEventBySpecials", "ParamName": "turnlock", "Param": 0, "CompareType":"Equal" } ], "Jump": "OnNextHollow" } ] }, "OnEnd":{ "Actions":[] } } }