{ "AbilityName": "HeavyStriker_EvadeManager", "AbilitySpecials": { "AS_EvadeProbability": { "Value": 1, "ValueType": "Float" } }, "AbilityStacking": "Unique", "DefaultModifier": { "OnCustomEventReceived": [ { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": 1, "ParamName": "AS_EvadeProbability", "ParamType": "Float", "Predicates": [ { "$type": "ByCustomEvent", "EventKey": "HeavyStriker_InitEvadeManager" } ] } ] }, "OnAbilityTrigger": [ { "$type": "RandomOperator", "Odds": "%AS_EvadeProbability", "OnSuccess": [ { "$type": "SetAnimCtrlerParamAction", "ParamName": "Trigger_PressAttackA", "ParamType": 1 }, { "$type": "BranchOperator", "Conditions": [ { "$type": "ByOr", "Predicates": [ { "$type": "ByDistance", "CompareTarget": "SelfAttackTarget", "CompareType": "Less", "Distance": 3 }, { "$type": "ByAnd", "Predicates": [ { "$type": "ByDistance", "CompareTarget": "SelfAttackTarget", "CompareType": "Less", "Distance": 4.5 }, { "$type": "ByIsInZoneTags", "Tags": [ "Boss" ] } ] } ] } ], "FailureActions": [ { "$type": "BranchOperator", "Conditions": [ { "$type": "ByOr", "Predicates": [ { "$type": "ByDistance", "CompareTarget": "SelfAttackTarget", "CompareType": "Less", "Distance": 8 }, { "$type": "ByAnd", "Predicates": [ { "$type": "ByDistance", "CompareTarget": "SelfAttackTarget", "CompareType": "Less", "Distance": 12 }, { "$type": "ByIsInZoneTags", "Tags": [ "Boss" ] } ] } ] } ], "FailureActions": [ { "$type": "SetAnimCtrlerParamAction", "IntVal": 14, "ParamName": "Int_AttackIndex", "ParamType": 3 } ], "SuccessActions": [ { "$type": "RandomOperator", "Odds": 0.5, "OnFailure": [ { "$type": "SetAnimCtrlerParamAction", "IntVal": 13, "ParamName": "Int_AttackIndex", "ParamType": 3 } ], "OnSuccess": [ { "$type": "SetAnimCtrlerParamAction", "IntVal": 12, "ParamName": "Int_AttackIndex", "ParamType": 3 } ] } ] } ], "SuccessActions": [ { "$type": "SetAnimCtrlerParamAction", "IntVal": 11, "ParamName": "Int_AttackIndex", "ParamType": 3 } ] }, { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Add", "Param": -0.5, "ParamName": "AS_EvadeProbability", "ParamType": "Float" } ] } ] }