{ //凯撒防守反击 "AbilityName" : "Caesar_SpecialSkill", "AbilityStacking": "Unique", "DefaultModifier" : { "OnAdded" : [ { "$type": "MoleMole.SetUIArrowAction", "position": 40, "IsVisible": true, } ], }, "AbilityMixins" : [ //全程均有DefenseBuffModifier(防御力提升效果),包括格挡开始、格挡循环、格挡受击、格挡反击 //流弹不会触发格挡受击(流弹:即枪兵的子弹,Guardian的子弹) //格挡时有ReduceDamageModifier(针对正面攻击或远程攻击的百分比伤害减免效果,对流弹有大幅百分比伤害减免) //格挡开始前20帧有DamageTakeRatioModifier_01(百分比伤害减免效果),期间受击则触发完美格挡 //完美格挡时,额外附加PerfectGuardSuccessModifier(反击伤害提升效果)与DamageTakeRatioModifier_02(百分比伤害减免效果),持续到格挡受击动作结束(格挡受击动作共80帧) { "$type" : "MoleMole.AttachStateWithModifierMixin", "ConfigList": [ { "AnimatorStateName": "Attack_Branch_01_Guard_Start", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 1.0, "ModifierNameList": [ "GuardModifier", "DefenseBuffModifier", "ReduceDamageModifier", "AudioModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_Guard_Start", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 0.244, //此处仍然是定值,不受专属卡牌影响(超出20帧没有完美格挡减伤) "ModifierNameList": [ "DamageTakeRatioModifier_01", ] }, { "AnimatorStateName": "Attack_Branch_01_Guard_Loop", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 1.0, "IsLoop": true, "ModifierNameList": [ "GuardModifier", "DefenseBuffModifier", "ReduceDamageModifier", "AudioModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_Guard_Hit_F_Perfect", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 1.0, "ModifierNameList": [ "GuardModifier", "RemovePerfectGuardSuccessModifier", "DefenseBuffModifier", "ReduceDamageModifier", "AudioModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_Guard_Hit_F", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 1.0, "ModifierNameList": [ "GuardModifier", "RemovePerfectGuardSuccessModifier", "DefenseBuffModifier", "ReduceDamageModifier", "AudioModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_CounterAttack_01", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 0.75, "ModifierNameList": [ "RemovePerfectGuardSuccessModifier", "DefenseBuffModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_CounterAttack_02", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 0.7, "ModifierNameList": [ "RemovePerfectGuardSuccessModifier", "DefenseBuffModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_CounterAttack_03_01_01", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 0.7, "ModifierNameList": [ "RemovePerfectGuardSuccessModifier", "DefenseBuffModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_CounterAttack_03_01_02", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 0.7, "ModifierNameList": [ "RemovePerfectGuardSuccessModifier", "DefenseBuffModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_CounterAttack_03_02", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 0.7, "ModifierNameList": [ "RemovePerfectGuardSuccessModifier", "DefenseBuffModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_CounterAttack_04_01", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 0.7, "ModifierNameList": [ "RemovePerfectGuardSuccessModifier", "DefenseBuffModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_CounterAttack_04_02", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 0.7, "ModifierNameList": [ "RemovePerfectGuardSuccessModifier", "DefenseBuffModifier", ] }, //发动盾击时,伤害提升(至多连续发动2次) { "AnimatorStateName": "Attack_Branch_01_CounterAttack_03_01_01", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 1.0, "ModifierNameList": [ "AttackStackingModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_CounterAttack_03_01_02", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 1.0, "ModifierNameList": [ "AttackStackingModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_CounterAttack_03_02", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 1.0, "ModifierNameList": [ "AttackStackingModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_CounterAttack_04_01", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 1.0, "ModifierNameList": [ "AttackStackingModifier", ] }, { "AnimatorStateName": "Attack_Branch_01_CounterAttack_04_02", "LayerIndex": 0, "NormalizedTimeLow": 0.0, "NormalizedTimeHigh": 1.0, "ModifierNameList": [ "AttackStackingModifier", ] }, ] }, //监听能量,设置状态机参数(是否能够发动盾击) { "$type": "MoleMole.ActionsOnPropertyChangeMixin", "PropertyActions": [ { "PropertyType": "CurSP", // "CustomPropertyType": "EnhanceNum", "ReferMaxPropertyType": "MaxSP", // "CustomReferMaxPropertyType": "MaxEnhanceNum", "IsUsePercentage": false, "ValueRangeActions": [ { "Val": 40, "LowToValueActions": [ { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 2, "ParamName" : "Bool_EnoughEnergy", "Target" : "Self", "BoolVal" : true }, ], }, { "Val": 40, "ValueToLowActions": [ { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 2, "ParamName" : "Bool_EnoughEnergy", "Target" : "Self", "BoolVal" : false }, ], }, ], }, ], }, ], "Modifiers" : { "GuardModifier": { "ModifierStacking": "Unique", "Duration": -1, "IgnoreTimeScale" : false, "OnBeingHit" : [ { "$type":"MoleMole.ApplyModifier", "ModifierName":"PerfectGuardModifier", "Target":"Self", "Predicates" : [ { "$type": "MoleMole.ByOr", "Target" : "Self", "Predicates": [ { "$type": "MoleMole.ByAnimatorStateNormalizedTime", "AnimatorStateName": "Attack_Branch_01_Guard_Start", "LayerIndex": 0, "NormalizedTimeLow" : 0.0, "NormalizedTimeHigh" : "%AS_NormalizedTime_Start", "Target":"Self", }, { "$type": "MoleMole.ByAnimatorStateNormalizedTime", "AnimatorStateName": "Attack_Branch_01_Guard_Loop", "LayerIndex": 0, "NormalizedTimeLow" : 0.0, "NormalizedTimeHigh" : "%AS_NormalizedTime_Loop", "IsLoop": true, "Target":"Self", }, ] }, { "$type": "MoleMole.ByNot", "Predicates": [ { "$type" : "MoleMole.ByAnimTagList", "TagList" : [ "Stray" ] } ] } ] }, { "$type":"MoleMole.ApplyModifier", "ModifierName":"NormalGuardModifier", "Target":"Self", "Predicates" : [ { "$type": "MoleMole.ByNot", "Target" : "Self", "Predicates": [ { "$type": "MoleMole.ByOr", "Target" : "Self", "Predicates": [ { "$type": "MoleMole.ByAnimatorStateNormalizedTime", "AnimatorStateName": "Attack_Branch_01_Guard_Start", "LayerIndex": 0, "NormalizedTimeLow" : 0.0, "NormalizedTimeHigh" : "%AS_NormalizedTime_Start", "Target":"Self", }, { "$type": "MoleMole.ByAnimatorStateNormalizedTime", "AnimatorStateName": "Attack_Branch_01_Guard_Loop", "LayerIndex": 0, "NormalizedTimeLow" : 0.0, "NormalizedTimeHigh" : "%AS_NormalizedTime_Loop", "IsLoop": true, "Target":"Self", }, ] }, ] }, { "$type": "MoleMole.ByNot", "Predicates": [ { "$type" : "MoleMole.ByAnimTagList", "TagList" : [ "Stray" ] } ] } ] }, //触发状态机Trigger { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 1, "ParamName" : "Trigger_GuardHit_Perfect", "Target" : "Self", "BoolVal" : true, "Predicates" : [ { "$type": "MoleMole.ByOr", "Target" : "Self", "Predicates": [ { "$type": "MoleMole.ByAnimatorStateNormalizedTime", "AnimatorStateName": "Attack_Branch_01_Guard_Start", "LayerIndex": 0, "NormalizedTimeLow" : 0.0, "NormalizedTimeHigh" : "%AS_NormalizedTime_Start", "Target":"Self", }, { "$type": "MoleMole.ByAnimatorStateNormalizedTime", "AnimatorStateName": "Attack_Branch_01_Guard_Loop", "LayerIndex": 0, "NormalizedTimeLow" : 0.0, "NormalizedTimeHigh" : "%AS_NormalizedTime_Loop", "IsLoop": true, "Target":"Self", }, ] }, { "$type": "MoleMole.ByNot", "Predicates": [ { "$type" : "MoleMole.ByAnimTagList", "TagList" : [ "Stray" ] } ] } ] }, { "$type" : "MoleMole.SetAnimCtrlerParamAction", "ParamType" : 1, "ParamName" : "Trigger_GuardHit_Normal", "Target" : "Self", "BoolVal" : true, "Predicates" : [ { "$type": "MoleMole.ByNot", "Target" : "Self", "Predicates": [ { "$type": "MoleMole.ByOr", "Target" : "Self", "Predicates": [ { "$type": "MoleMole.ByAnimatorStateNormalizedTime", "AnimatorStateName": "Attack_Branch_01_Guard_Start", "LayerIndex": 0, "NormalizedTimeLow" : 0.0, "NormalizedTimeHigh" : "%AS_NormalizedTime_Start", "Target":"Self", }, { "$type": "MoleMole.ByAnimatorStateNormalizedTime", "AnimatorStateName": "Attack_Branch_01_Guard_Loop", "LayerIndex": 0, "NormalizedTimeLow" : 0.0, "NormalizedTimeHigh" : "%AS_NormalizedTime_Loop", "IsLoop": true, "Target":"Self", }, ] }, ] }, { "$type": "MoleMole.ByNot", "Predicates": [ { "$type" : "MoleMole.ByAnimTagList", "TagList" : [ "Stray" ] } ] } ] }, //强制旋转朝向 { "$type": "MoleMole.ApplyLogicMoveAction", "Target": "Self", "RotationConfig" : { "$type" : "MoleMole.ConfigRotationToTarget", "Duration" : 0.1, "TargetPosRot" : { "CoordsOption" : "Relative", "TargetOption" : { "$type" : "MoleMole.ConfigPosRotReferTarget", "OffsetReferTarget" : "Other", "BackupOffsetReferTarget" : "None" }, "Offset" : { "PositionOffset" : {"x":0.0, "y":0.0, "z":0.0}, "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0}, } }, "RotateType" : "Instant", "RotateSpeed" : 1, "TargetUpdateMode" : "OnStart", "ReachTargetStop" : true }, "Predicates" : [ { "$type": "MoleMole.ByNot", "Predicates": [ { "$type" : "MoleMole.ByAnimTagList", "TagList" : [ "Stray" ] } ] } ] }, ], }, "NormalGuardModifier": { "ModifierStacking": "MultipleRefresh", "Duration": 0.1, "IgnoreTimeScale" : false, "OnAdded" : [ { "$type" : "MoleMole.FireEffect", "EffectPattern" : "Eff_Caesar_Guard_Hit_01", "Target" : "Self", }, ], }, "PerfectGuardModifier": { "ModifierStacking": "MultipleRefresh", "Duration": 0.1, "IgnoreTimeScale" : false, "OnAdded" : [ { "$type" : "MoleMole.FireEffect", "EffectPattern" : "Eff_Caesar_Guard_Hit_03", "Target" : "Self", }, { "$type": "MoleMole.RecoverSPAction", "Target" : "Self", "Percentage": 0, "Amount": "%AS_RecoverSp", "IgnoreRatio": false, }, { "$type":"MoleMole.ApplyModifier", "ModifierName":"PerfectGuardSuccessModifier", "Target":"Self", } ], }, "PerfectGuardSuccessModifier": { "ModifierStacking": "Refresh", "Duration": -1, "IgnoreTimeScale" : false, "OnAdded" : [ //目前完美格挡时直接触发反击,反击动作本身无敌,DamageTakeRatioModifier_02必要性不高(2021.07.20) { "$type":"MoleMole.ApplyModifier", "ModifierName":"DamageTakeRatioModifier_02", "Target":"Self", }, { "$type": "MoleMole.SetAbilitySpecialAction", "Target": "Self", "ParamName": "PerfectDamageRatio_Cur", "ParamType": "abilitySpecial_float", "ModifyFunction": "Replace", "Param": "PerfectDamageRatio" }, ], "OnRemoved" : [ { "$type" : "MoleMole.RemoveModifier", "ModifierName" : "DamageTakeRatioModifier_02", "Target" : "Self" }, { "$type": "MoleMole.SetAbilitySpecialAction", "Target": "Self", "ParamName": "PerfectDamageRatio_Cur", "ParamType": "float", "ModifyFunction": "Replace", "Param": 1.0 }, ], "OnHitOther": [ { "$type": "MoleMole.ModifyAttackDataAction", "Target" : "Self", "PropertyKey": "Actor_AddedDamageRatio", "PropertyValue": "%AS_AddedDamageRatio_Perfect", "Predicates" : [ { "$type" : "MoleMole.ByAnimatorEventIDs", "AnimatorEventIDs" : [ "Caesar_Attack_Branch_01_Counter_01_AttackProperty_01", "Caesar_Attack_Branch_01_Counter_01_AttackProperty_02", "Caesar_Attack_Branch_01_Counter_02_AttackProperty_01", "Caesar_Attack_Branch_01_Counter_02_AttackProperty_02", "Caesar_Attack_Branch_01_Counter_03_AttackProperty_01", "Caesar_Attack_Branch_01_Counter_04_AttackProperty_01", "Caesar_Attack_Branch_01_Counter_04_AttackProperty_02", ] } ] }, { "$type": "MoleMole.ModifyAttackDataAction", "Target" : "Self", "PropertyKey": "BreakLevel_Delta", "PropertyValue": 2, "Predicates" : [ { "$type" : "MoleMole.ByAnimatorEventIDs", "AnimatorEventIDs" : [ "Caesar_Attack_Branch_01_Counter_01_AttackProperty_01", "Caesar_Attack_Branch_01_Counter_01_AttackProperty_02", "Caesar_Attack_Branch_01_Counter_02_AttackProperty_01", "Caesar_Attack_Branch_01_Counter_02_AttackProperty_02", "Caesar_Attack_Branch_01_Counter_03_AttackProperty_01", "Caesar_Attack_Branch_01_Counter_04_AttackProperty_01", "Caesar_Attack_Branch_01_Counter_04_AttackProperty_02", ] } ] } ] }, "RemovePerfectGuardSuccessModifier": { "ModifierStacking": "Unique", "Duration": -1, "IgnoreTimeScale" : false, "OnRemoved": [ { "$type" : "MoleMole.RemoveModifier", "ModifierName" : "PerfectGuardSuccessModifier", "Target" : "Self" } ] }, "DefenseBuffModifier": { "ModifierStacking": "Refresh", "Duration": -1, "IgnoreTimeScale" : false, "Buff": { "BuffID" : 115000, "IsOverrideDuration" : true } }, //正面攻击或远程攻击,百分比伤害减免 //对流弹有大幅百分比伤害减免 "ReduceDamageModifier": { "ModifierStacking":"Refresh", "Duration": -1, "IgnoreTimeScale" : false, "OnBeingHitPre": [ { "$type": "MoleMole.ModifyAttackDataAction", "Target" : "Self", "PropertyKey": "Actor_DamageTakeRatio", "PropertyValue": "%AS_DamageTakeRatio_Common", "Predicates": [ { "$type": "MoleMole.ByOr", "Target" : "Self", "Predicates" : [ { "$type": "MoleMole.ByHitAngleRange", "AngleMin": 0, "AngleMax": 180 }, { "$type": "MoleMole.ByHitDataType", "TheHitDataType": "Range" } ], }, { "$type": "MoleMole.ByNot", "Target" : "Self", "Predicates" : [ { "$type" : "MoleMole.ByAnimTagList", "TagList" : [ "Stray" ] } ], }, ] }, { "$type": "MoleMole.ModifyAttackDataAction", "Target" : "Self", "PropertyKey": "Actor_DamageTakeRatio", "PropertyValue": "%AS_DamageTakeRatio_Stray", "Predicates": [ { "$type" : "MoleMole.ByAnimTagList", "TagList" : [ "Stray" ] } ] }, ] }, "DamageTakeRatioModifier_01": { "ModifierStacking":"Refresh", "Duration": -1, "IgnoreTimeScale" : false, "Properties" : { "Actor_DamageTakeRatio" : "%AS_DamageTakeRatio_Perfect" } }, "DamageTakeRatioModifier_02": { "ModifierStacking":"Refresh", "Duration": -1, "IgnoreTimeScale" : false, "Properties" : { "Actor_DamageTakeRatio" : "%AS_DamageTakeRatio_Perfect" } }, "AudioModifier": { "ModifierStacking":"Unique", "Duration": -1, "IgnoreTimeScale" : false, "OnAdded" : [ { "$type" : "MoleMole.FireAudio", "AudioPattern" : "Set_Volume_Monster_Impact", }, ], "OnRemoved" : [ { "$type" : "MoleMole.FireAudio", "AudioPattern" : "Reset_Volume_Monster_Impact", }, ], }, //发动盾击时,伤害提升(至多连续发动2次) "AttackStackingModifier": { "ModifierStacking":"Unique", "Duration": -1, "IgnoreTimeScale" : false, "OnAdded" : [ { "$type": "MoleMole.SetAbilitySpecialAction", "ParamName": "AS_AddedDamageRatio_Stack_Current", "ParamType": "float", "ModifyFunction": "Replace", "Param": 0 }, ], "OnHitOtherResolved": [ { "$type": "MoleMole.SetAbilitySpecialAction", "ParamName": "AS_AddedDamageRatio_Stack_Current", "ParamType": "abilitySpecial_float", "ModifyFunction": "Add", "Param": "AS_AddedDamageRatio_Stack", "Predicates" : [ { "$type" : "MoleMole.ByAnimatorEventIDs", "Target" : "Self", "AnimatorEventIDs" : [ "Caesar_Attack_Branch_01_Counter_03_AttackProperty_01", ] } ], }, ], "OnHitOther": [ { "$type": "MoleMole.ModifyAttackDataAction", "Target" : "Self", "PropertyKey": "Actor_AddedDamageRatio", "PropertyValue": "%AS_AddedDamageRatio_Stack_Current", "Predicates" : [ { "$type" : "MoleMole.ByAnimatorEventIDs", "AnimatorEventIDs" : [ "Caesar_Attack_Branch_01_Counter_03_AttackProperty_01", "Caesar_Attack_Branch_01_Counter_04_AttackProperty_01", "Caesar_Attack_Branch_01_Counter_04_AttackProperty_02", ] } ] } ], }, }, "AbilitySpecials" : { //完美格挡时,增加后继伤害(1.0 = 增伤100%) "AS_AddedDamageRatio_Perfect" : { "Value" : 1.0 }, //完美格挡窗口中及完美格挡发动后,百分比伤害减免 "AS_DamageTakeRatio_Perfect": { "Value" : -1.0 }, //格挡时常驻,针对正面攻击与远程攻击,百分比伤害减免 "AS_DamageTakeRatio_Common": { "Value" : -0.5 }, //格挡时常驻,针对流弹,百分比伤害减免 "AS_DamageTakeRatio_Stray": { "Value" : -1.0 }, //完美格挡额外回复SP "AS_RecoverSp" : { "Value" : 0 }, //连续攻击额外增伤(每次盾击提升50%), //目前与完美格挡增伤之间是加算 //举例(按临时配置值): //0次盾击:非完美35*2,完美68*2,不消耗能量 //1次盾击:非完美35+51*2,完美68+85*2,消耗40点能量 //2次盾击:非完美35+51+68*2,完美68+85+102*2,消耗80点能量 "AS_AddedDamageRatio_Stack" : { "Value" : 0.5 }, //实际值(脚本计算用,无需修改) "AS_AddedDamageRatio_Stack_Current" : { "Value" : 0.0 }, //按临时配置值: //0次盾击:非完美35*2,完美68*2,不消耗能量 //1次盾击:非完美35+51*2,完美68+85*2,消耗40点能量 //2次盾击:非完美35+51+68*2,完美68+85+102*2,消耗80点能量 //专属卡牌效果,直接触发完美格挡 "AS_NormalizedTime_Start" : { "Value" : 0.244 }, "AS_NormalizedTime_Loop" : { "Value" : 0.0 }, } }