//普通战斗 { "ID": 2020532, "Specials": { //Patrol_2020530 //Difficult_2020530 //TopDir_2020530 //MidDir_2020530 //BottomDir_2020530 //战斗位置 0-top/1-mid/2-bottom "offset_Y":0, //战斗强度 1-normal/2-elite "difficult":2, //当前位置 "Cur_PosX":0, "Cur_PosY":0, //有效区域AABB "BoundX1":3, "BoundY1":2, "BoundX2":7, "BoundY2":4, "Gold": 300, "Stamina": 20, "Hp": 10, "ShowGold": 900001, "ShowStamina": 900002, "ShowHp": 900003 }, "Events": { "OnCreate":{ "Actions":[ //提取公共参数 { "$type": "Share.CConfigSetSpecial", "SpecialName": "Cur_PosX", "SpecialValue": "getpos(X,2)" }, { "$type": "Share.CConfigSetSpecial", "SpecialName": "Cur_PosY", "SpecialValue": "getpos(Y,2)" }, //逻辑跳转 { "$type": "Share.CConfigJump", "Jump": "Top", "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "offset_Y", "Param":0, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigJump", "Jump": "Mid", "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "offset_Y", "Param":1, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigJump", "Jump": "Bottom", "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "offset_Y", "Param":2, "CompareType":"Equal" } ] } ] }, "Top":{ "Actions":[ //取Dir试探 { "$type": "Share.CConfigSetHollowVariable", "Key": "TopDir_2020530", "Value": 2, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosX", "Param":"specials(BoundX1)", "CompareType":"Equal" } ] }, { "$type": "Share.CConfigSetHollowVariable", "Key": "TopDir_2020530", "Value": 1, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosX", "Param":"specials(BoundX2)", "CompareType":"Equal" } ] }, //成功则直接modified,需要屏蔽玩家位置 //失败则改变方向,然后以新方向modified,需要屏蔽玩家位置 { "$type": "Share.CConfigEventModification", "ID":101, "X": "specials(Cur_PosX)-1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020531 ], "TargetEventType": 1, "TargetEventState": ["Locked"], //"TargetVisibleState": "Visible", "EventID": [ 2020536], "EventState": "Locked", "VisibleState": "Visible", "ExcludePlayerPos":true, "Predicates":[ { "$type":"Share.CConfigEventByHollowVariable", "Key":"TopDir_2020530", "Count":1, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigEventModification", // "ID":101, "X": "specials(Cur_PosX)-1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020531 ], "TargetEventType": 1, "TargetEventState": ["Unstable"], //"TargetVisibleState": "Visible", "EventID": [ 2020536], "EventState": "Unstable", "VisibleState": "Visible", "ExcludePlayerPos":true, "Predicates":[ { "$type":"Share.CConfigEventByHollowVariable", "Key":"TopDir_2020530", "Count":1, "CompareType":"Equal" } ] }, //如果是玩家位置&方向正确,则记录,等到global进行修改 { //战斗计数器+1 "$type": "Share.CConfigSetHollowVariable", "Key": "Glitch_2020532", "Value": 1, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosX", "Param":"playerpos(X)+1", "CompareType":"Equal" }, { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosY", "Param":"playerpos(Y)", "CompareType":"Equal" }, { "$type":"Share.CConfigEventByHollowVariable", "Key":"TopDir_2020530", "Count":1, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigEventModification", "ID":102, "X": "specials(Cur_PosX)+1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020531 ], "TargetEventType": 1, "TargetEventState": ["Locked"], //"TargetVisibleState": "Visible", "EventID": [ 2020536], "EventState": "Locked", "VisibleState": "Visible", "ExcludePlayerPos":true, "Predicates":[ { "$type":"Share.CConfigEventByHollowVariable", "Key":"TopDir_2020530", "Count":2, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigEventModification", // "ID":102, "X": "specials(Cur_PosX)+1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020531 ], "TargetEventType": 1, "TargetEventState": ["Unstable"], //"TargetVisibleState": "Visible", "EventID": [ 2020536], "EventState": "Unstable", "VisibleState": "Visible", "ExcludePlayerPos":true, "Predicates":[ { "$type":"Share.CConfigEventByHollowVariable", "Key":"TopDir_2020530", "Count":2, "CompareType":"Equal" } ] }, //如果是玩家位置&方向正确,则记录,等到global进行修改 { //战斗计数器+1 "$type": "Share.CConfigSetHollowVariable", "Key": "Glitch_2020532", "Value": 1, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosX", "Param":"playerpos(X)-1", "CompareType":"Equal" }, { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosY", "Param":"playerpos(Y)", "CompareType":"Equal" }, { "$type":"Share.CConfigEventByHollowVariable", "Key":"TopDir_2020530", "Count":2, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigJump", "Jump": "ModifyEnd" } ] }, "Mid":{ "Actions":[ //取Dir试探 { "$type": "Share.CConfigSetHollowVariable", "Key": "MidDir_2020530", "Value": 2, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosX", "Param":"specials(BoundX1)", "CompareType":"Equal" } ] }, { "$type": "Share.CConfigSetHollowVariable", "Key": "MidDir_2020530", "Value": 1, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosX", "Param":"specials(BoundX2)", "CompareType":"Equal" } ] }, //成功则直接modified,需要屏蔽玩家位置 //失败则改变方向,然后以新方向modified,需要屏蔽玩家位置 { "$type": "Share.CConfigEventModification", "ID":111, "X": "specials(Cur_PosX)-1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020531 ], "TargetEventType": 1, "TargetEventState": ["Locked"], //"TargetVisibleState": "Visible", "EventID": [ 2020537], "EventState": "Locked", "VisibleState": "Visible", "ExcludePlayerPos":true, "Predicates":[ { "$type":"Share.CConfigEventByHollowVariable", "Key":"MidDir_2020530", "Count":1, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigEventModification", // "ID":111, "X": "specials(Cur_PosX)-1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020531 ], "TargetEventType": 1, "TargetEventState": ["Unstable"], //"TargetVisibleState": "Visible", "EventID": [ 2020537], "EventState": "Unstable", "VisibleState": "Visible", "ExcludePlayerPos":true, "Predicates":[ { "$type":"Share.CConfigEventByHollowVariable", "Key":"MidDir_2020530", "Count":1, "CompareType":"Equal" } ] }, //如果是玩家位置&方向正确,则记录,等到global进行修改 { //战斗计数器+1 "$type": "Share.CConfigSetHollowVariable", "Key": "Glitch_2020532", "Value": 2, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosX", "Param":"playerpos(X)+1", "CompareType":"Equal" }, { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosY", "Param":"playerpos(Y)", "CompareType":"Equal" }, { "$type":"Share.CConfigEventByHollowVariable", "Key":"MidDir_2020530", "Count":1, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigEventModification", "ID":112, "X": "specials(Cur_PosX)+1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020531 ], "TargetEventType": 1, "TargetEventState": ["Locked"], //"TargetVisibleState": "Visible", "EventID": [ 2020537], "EventState": "Locked", "VisibleState": "Visible", "ExcludePlayerPos":true, "Predicates":[ { "$type":"Share.CConfigEventByHollowVariable", "Key":"MidDir_2020530", "Count":2, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigEventModification", // "ID":112, "X": "specials(Cur_PosX)+1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020531 ], "TargetEventType": 1, "TargetEventState": ["Unstable"], //"TargetVisibleState": "Visible", "EventID": [ 2020537], "EventState": "Unstable", "VisibleState": "Visible", "ExcludePlayerPos":true, "Predicates":[ { "$type":"Share.CConfigEventByHollowVariable", "Key":"MidDir_2020530", "Count":2, "CompareType":"Equal" } ] }, //如果是玩家位置&方向正确,则记录,等到global进行修改 { //战斗计数器+1 "$type": "Share.CConfigSetHollowVariable", "Key": "Glitch_2020532", "Value": 2, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosX", "Param":"playerpos(X)-1", "CompareType":"Equal" }, { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosY", "Param":"playerpos(Y)", "CompareType":"Equal" }, { "$type":"Share.CConfigEventByHollowVariable", "Key":"MidDir_2020530", "Count":2, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigJump", "Jump": "ModifyEnd" } ] }, "Bottom":{ "Actions":[ //取Dir试探 { "$type": "Share.CConfigSetHollowVariable", "Key": "BottomDir_2020530", "Value": 2, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosX", "Param":"specials(BoundX1)", "CompareType":"Equal" } ] }, { "$type": "Share.CConfigSetHollowVariable", "Key": "BottomDir_2020530", "Value": 1, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosX", "Param":"specials(BoundX2)", "CompareType":"Equal" } ] }, //成功则直接modified,需要屏蔽玩家位置 //失败则改变方向,然后以新方向modified,需要屏蔽玩家位置 { "$type": "Share.CConfigEventModification", "ID":121, "X": "specials(Cur_PosX)-1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020531 ], "TargetEventType": 1, "TargetEventState": ["Locked"], //"TargetVisibleState": "Visible", "EventID": [ 2020538], "EventState": "Locked", "VisibleState": "Visible", "ExcludePlayerPos":true, "Predicates":[ { "$type":"Share.CConfigEventByHollowVariable", "Key":"BottomDir_2020530", "Count":1, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigEventModification", // "ID":121, "X": "specials(Cur_PosX)-1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020531 ], "TargetEventType": 1, "TargetEventState": ["Unstable"], //"TargetVisibleState": "Visible", "EventID": [ 2020538], "EventState": "Unstable", "VisibleState": "Visible", "ExcludePlayerPos":true, "Predicates":[ { "$type":"Share.CConfigEventByHollowVariable", "Key":"BottomDir_2020530", "Count":1, "CompareType":"Equal" } ] }, //如果是玩家位置&方向正确,则记录,等到global进行修改 { //战斗计数器+1 "$type": "Share.CConfigSetHollowVariable", "Key": "Glitch_2020532", "Value": 3, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosX", "Param":"playerpos(X)+1", "CompareType":"Equal" }, { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosY", "Param":"playerpos(Y)", "CompareType":"Equal" }, { "$type":"Share.CConfigEventByHollowVariable", "Key":"BottomDir_2020530", "Count":1, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigEventModification", "ID":122, "X": "specials(Cur_PosX)+1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020531 ], "TargetEventType": 1, "TargetEventState": ["Locked"], //"TargetVisibleState": "Visible", "EventID": [ 2020538], "EventState": "Locked", "VisibleState": "Visible", "ExcludePlayerPos":true, "Predicates":[ { "$type":"Share.CConfigEventByHollowVariable", "Key":"BottomDir_2020530", "Count":2, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigEventModification", // "ID":122, "X": "specials(Cur_PosX)+1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020531 ], "TargetEventType": 1, "TargetEventState": ["Unstable"], //"TargetVisibleState": "Visible", "EventID": [ 2020538], "EventState": "Unstable", "VisibleState": "Visible", "ExcludePlayerPos":true, "Predicates":[ { "$type":"Share.CConfigEventByHollowVariable", "Key":"BottomDir_2020530", "Count":2, "CompareType":"Equal" } ] }, //如果是玩家位置&方向正确,则记录,等到global进行修改 { //战斗计数器+1 "$type": "Share.CConfigSetHollowVariable", "Key": "Glitch_2020532", "Value": 3, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosX", "Param":"playerpos(X)-1", "CompareType":"Equal" }, { "$type": "Share.CConfigEventBySpecials", "ParamName": "Cur_PosY", "Param":"playerpos(Y)", "CompareType":"Equal" }, { "$type":"Share.CConfigEventByHollowVariable", "Key":"BottomDir_2020530", "Count":2, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigJump", "Jump": "ModifyEnd" } ] }, "ModifyEnd":{ "Actions":[ { "$type":"Share.CConfigLog", "Message":"=======战斗创建=========", "ShowVariables":"All" }, { "$type": "Share.CConfigFinishEvent" } ] }, "OnStart": { "Actions": [ //------观测任务----- { "$type": "Share.CConfigSetHollowVariable", "Key": "Discovered_2020532", "Value":1 }, { "$type":"Share.CConfigSetConditionProgress", "ConditionID":30060120, "Progress":1, "ModifyType":"Add" }, { "$type":"Share.CConfigSetConditionProgress", "ConditionID":30060121, "Progress":1, "ModifyType":"Add" }, //----------------- //发出死亡信号 { "$type":"Share.CConfigEmpty" }, { "$type": "Share.CConfigSetHollowVariable", "Key": "TopDie_2020532", "Value": 1, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "offset_Y", "Param":0, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigSetHollowVariable", "Key": "MidDie_2020532", "Value": 1, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "offset_Y", "Param":1, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigSetHollowVariable", "Key": "BottomDie_2020532", "Value": 1, "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "offset_Y", "Param":2, "CompareType":"Equal" } ] }, { //normal "$type":"Share.CConfigDropBattleID", "Type":[100], "SpecialName":"BattleID", "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "difficult", "Param":1, "CompareType":"Equal" } ] }, { //elite "$type":"Share.CConfigDropBattleID", "Type":[102], "SpecialName":"BattleID", "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "difficult", "Param":2, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigTriggerBattle", "BattleID": "specials(BattleID)", "OnSuccess": "BattleNormal", "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "difficult", "Param":1, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigTriggerBattle", "BattleID": "specials(BattleID)", "OnSuccess": "BattleElite", "Predicates":[ { "$type": "Share.CConfigEventBySpecials", "ParamName": "difficult", "Param":2, "CompareType":"Equal" } ] } //处理战斗相关的逻辑 ] }, "BattleNormal":{ "Actions":[ { "$type": "Share.CConfigPreset", "PerformKey" : "Chessboard_BattleEnd_None" }, { "$type": "Share.CConfigJump", "Jump": "OnBattleEnd" } ] }, "BattleElite":{ "Actions":[ { "$type": "Share.CConfigPreset", "PerformKey" : "Chessboard_BattleEnd_Pre" }, { "$type": "Share.CConfigChoiceServer", "OptionsMode": "Normal", "ShowMode": "Event", "Choices": [ { "OptionText": "Event_Common_RecoverHp", "OptionItemID1": "specials(ShowHp)", "OptionDesc1": "Event_Common_RecoverHp_Des", "TitleText": "Item_TeamMedicineHp_02_name", "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigModifyProperty", "Property": "Hp", "Count": "property(HpMax_Battle)*specials(Hp)*0.01" }, { "$type": "Share.CConfigJump", "Jump": "Elite_End" } ] } ] }, { "OptionText": "Event_Common_GetCoin", "OptionItemID1": "specials(ShowGold)", "OptionDesc1": "Event_Common_GetCoin_Des", "TitleText": "Item_RL_Purse_03_name", "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigAddItem", "ItemID": 1, "Count": "specials(Gold)" }, { "$type": "Share.CConfigJump", "Jump": "Elite_End" } ] } ] }, { "OptionText": "Event_Common_StaminaDown", "OptionItemID1": "specials(ShowStamina)", "OptionDesc1": "Event_Common_StaminaDown_Des", "TitleText": "Item_TeamMedicinePr_03_name", "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigModifySceneProperty", "Property": "Stamina", "Count": "-specials(Stamina)" }, { "$type": "Share.CConfigJump", "Jump": "Elite_End" } ] } ] } ] } ] }, "Elite_End":{ "Actions":[ { "$type": "Share.CConfigPreset", "PerformKey" : "Chessboard_BattleEnd_After" }, { "$type": "Share.CConfigJump", "Jump": "OnBattleEnd" } ] }, "OnBattleEnd":{ "Actions":[ //把左右的glitch干掉 { "$type": "Share.CConfigEventModification", "X": "specials(Cur_PosX)+1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020538,2020536,2020537 ], "TargetEventType": 1, "TargetEventState": ["Locked"], //"TargetVisibleState": "Visible", "EventID": [ 2020531], "EventState": "Locked", "VisibleState": "Visible", "ExcludePlayerPos":true }, { "$type": "Share.CConfigEventModification", "X": "specials(Cur_PosX)+1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020538,2020536,2020537 ], "TargetEventType": 1, "TargetEventState": ["Unstable"], //"TargetVisibleState": "Visible", "EventID": [ 2020531], "EventState": "Unstable", "VisibleState": "Visible", "ExcludePlayerPos":true }, //* { "$type": "Share.CConfigEventModification", "X": "specials(Cur_PosX)-1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020538,2020536,2020537 ], "TargetEventType": 1, "TargetEventState": ["Locked"], //"TargetVisibleState": "Visible", "EventID": [ 2020531], "EventState": "Locked", "VisibleState": "Visible", "ExcludePlayerPos":true }, { "$type": "Share.CConfigEventModification", "X": "specials(Cur_PosX)-1", "Y": "specials(Cur_PosY)", "Position": "Absolute", "Radius": 0, "ModificationNum": 1, "ModificationType": 1, "TargetEventID": [ 2020538,2020536,2020537 ], "TargetEventType": 1, "TargetEventState": ["Unstable"], //"TargetVisibleState": "Visible", "EventID": [ 2020531], "EventState": "Unstable", "VisibleState": "Visible", "ExcludePlayerPos":true }, { "$type": "Share.CConfigFinishEvent" } ] } } }