{ "AbilityName": "Spray_Default_BulletVer", "AbilityStacking": "Unique", "DefaultModifier": { "OnAdded": [ { "$type": "MoleMole.ApplyModifier", "ModifierName": "Searchlight_Idle", "Target": "Self" }, // { // "$type": "MoleMole.ApplyModifier", // "ModifierName": "TriggerFieldModifier", // "Target" : "Self" // }, ], }, "Modifiers": { "Searchlight_Idle": { "ModifierStacking": "Unique", "Duration": 1000, //ModifierMixin与Modifier同生共死 "IgnoreTimeScale": false, "OnAdded": [ { "$type": "MoleMole.LogStringAction", "LogStr": "ability测试启动!!!!" } ], "ModifierMixins": [ { "$type": "MoleMole.FieldRangeMixin", "TotalDuration": 1000, //有效时长 //"StartEffectPattern": "Eff_Buddy_Field_Electric_Start", "LoopEffectPattern": "Eff_Buddy_Field_Electric_Start", "EndEffectPattern": "Eff_Buddy_Field_Electric_End", "IsFollow": false, //力场初始位置 "FieldInitPosRot": { "CoordsOption": "Self", "NeedRaycastGround": true, //"RaycastGroundOffset": 0.0, "TargetOption": { "$type": "MoleMole.ConfigPosRotReferTarget", "OffsetReferTarget": "Self", }, "Offset": { "PositionOffset": { "x": 0.0, "y": 0.0, "z": 0.0 }, "AngleOffset": { "x": 0.0, "y": 0.0, "z": 0.0 }, "IsUseRotationY": false, "IsUseRotationXZ": false, }, }, "ColliderConfig": { "ColliderType": "Sphere", "SphereColliderRadius": 5, "ColliderPosOffset": { "x": 0.0, "y": 0.0, "z": 0.0 }, "ColliderAngleOffset": { "x": 0.0, "y": 0.0, "z": 0.0 }, }, //进入时 "FieldEnterActions": [ { //进入的若是敌人且当前未激动,则启动激活 "$type": "MoleMole.ApplyModifier", "ModifierName": "SearchLight_Active", "Target": "Self", // "Predicates": [ // { // "$type": "MoleMole.ByRelativeCampType", // "Relationship": "Enemy", // "Target": "Target", // }, // { // "$type": "MoleMole.ByAbilitySpecial", // "ParamName": "IsActive", // "Target": "Self", // "ParamType": "int", // "CompareType": "Equal", // "Param": 0 // }, // ] }, // { //如果进入的是玩家,则无论是否激活都将玩家进入的变量设置为1 // "$type": "MoleMole.SetAbilitySpecialAction", // "Target": "Self", // "ParamName": "IsEnter", // "ParamType": "int", // "ModifyFunction": "Replace", // "Param": 1, // "Predicates": [ // { // "$type": "MoleMole.ByRelativeCampType", // "Relationship": "Enemy", // "Target": "Target", // } // ] // }, { //移除倒计时的modifier "$type": "MoleMole.RemoveModifier", "ModifierName": "SearchLight_UnactiveCountDown", "Target": "Self" }, { "$type": "MoleMole.LogStringAction", "LogStr": "fuck!!!!" }, ], //退出时 "FieldExitActions": [ // { //如果退出的是玩家,则无论是否激活都将玩家进入的变量设置为0 // "$type": "MoleMole.SetAbilitySpecialAction", // "Target": "Self", // "ParamName": "IsEnter", // "ParamType": "int", // "ModifyFunction": "Replace", // "Param": 0, // "Predicates": [ // { // "$type": "MoleMole.ByRelativeCampType", // "Relationship": "Enemy", // "Target": "Target", // } // ] // }, // { //添加关闭陷阱的倒计时countdown // "$type": "MoleMole.ApplyModifier", // "ModifierName": "SearchLight_UnactiveCountDown", // "Target": "Self", // "Predicates": [ // { // "$type": "MoleMole.ByRelativeCampType", // "Relationship": "Enemy", // "Target": "Target", // }, // { // "$type": "MoleMole.ByAbilitySpecial", // "ParamName": "IsActive", // "Target": "Self", // "ParamType": "int", // "CompareType": "Equal", // "Param": 1 // } // ] // }, { "$type": "MoleMole.RemoveModifier", "ModifierName": "SearchLight_Active", "Target": "Self", } ], //结束时 "FieldStopActions": [ { "$type": "MoleMole.LogStringAction", "LogStr": "END!!!!" } ] } ] }, "SearchLight_Active": { //激活,释放打击帧,并一直刷新陷阱倒计时 "ModifierStacking": "Unique", "Duration": 100, "ThinkInterval": 0.25, "OnThinkInterval": [ { "$type": "MoleMole.ApplyAbilityAction", "AbilityName": "Searchlight_Bullet", "IsAutoTrigger": true, // "Target": "Self" // "AttachPoint" : "Self", // "YOffset" :0 }, ], "OnAdded": [ // //加激活的特效 // { // "$type": "MoleMole.FireEffect", // "EffectPattern": "Eff_Avatar_LevelUp", // "Target": "Self", // }, ], "OnRemoved": [ //移除激活特效 { "$type": "MoleMole.FireEffect", "EffectPattern": "Eff_Avatar_LevelUp", "Target": "Self", } ] }, "SearchLight_UnactiveCountDown": { //remove且陷阱内无玩家时将陷阱设置为关闭 "ModifierStacking": "Refresh", "Duration": 10, //暂定区域内无人10秒关闭陷阱 "OnRemoved": [ { "$type": "MoleMole.RemoveModifier", "ModifierName": "SearchLight_Active", "Target": "Self", "Predicates": [ { "$type": "MoleMole.ByAbilitySpecial", "ParamName": "IsEnter", "Target": "Self", "ParamType": "int", "CompareType": "Equal", "Param": 0 } ] } ] }, "AbilitySpecials": { "IsActive": { //标记陷阱是否处于激活状态。0为非激活,1为激活 "value": 0, }, "IsEnter": { //标记当前状态的陷阱范围内是否有玩家。0为无玩家,1为有玩家 "value": 0, }, }, } }