ZenlessData/Data/HeavyStriker_EvadeManager.json
2024-11-04 02:05:40 -03:00

326 lines
9.4 KiB
JSON

{
"AbilityName": "HeavyStriker_EvadeManager",
"AbilitySpecials": {
"AS_BackIndex": {
"Value": 11,
"ValueType": "Integer"
},
"AS_EvadeProbability": {
"Value": 1,
"ValueType": "Float"
},
"AS_FrontIndex": {
"Value": 14,
"ValueType": "Integer"
},
"AS_LeftIndex": {
"Value": 12,
"ValueType": "Integer"
},
"AS_RightIndex": {
"Value": 13,
"ValueType": "Integer"
}
},
"AbilityStacking": "Unique",
"DefaultModifier": {
"OnCustomEventReceived": [
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 1,
"ParamName": "AS_EvadeProbability",
"ParamType": "Float",
"Predicates": [
{
"$type": "ByCustomEvent",
"EventKey": "HeavyStriker_InitEvadeManager"
}
]
}
]
},
"OnAbilityTrigger": [
{
"$type": "BranchOperator",
"Conditions": [
{
"$type": "ByAngleRange",
"AngleMax": 45,
"AngleMin": -45,
"CompareTarget": "SelfAttackTarget"
}
],
"FailureActions": [
{
"$type": "BranchOperator",
"Conditions": [
{
"$type": "ByAngleRange",
"AngleMax": -45,
"AngleMin": -135,
"CompareTarget": "SelfAttackTarget"
}
],
"FailureActions": [
{
"$type": "BranchOperator",
"Conditions": [
{
"$type": "ByAngleRange",
"AngleMax": 135,
"AngleMin": 45,
"CompareTarget": "SelfAttackTarget"
}
],
"FailureActions": [
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 14,
"ParamName": "AS_BackIndex",
"ParamType": "Integer"
},
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 13,
"ParamName": "AS_LeftIndex",
"ParamType": "Integer"
},
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 12,
"ParamName": "AS_RightIndex",
"ParamType": "Integer"
},
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 11,
"ParamName": "AS_FrontIndex",
"ParamType": "Integer"
}
],
"SuccessActions": [
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 13,
"ParamName": "AS_BackIndex",
"ParamType": "Integer"
},
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 11,
"ParamName": "AS_LeftIndex",
"ParamType": "Integer"
},
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 14,
"ParamName": "AS_RightIndex",
"ParamType": "Integer"
},
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 12,
"ParamName": "AS_FrontIndex",
"ParamType": "Integer"
}
]
}
],
"SuccessActions": [
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 12,
"ParamName": "AS_BackIndex",
"ParamType": "Integer"
},
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 14,
"ParamName": "AS_LeftIndex",
"ParamType": "Integer"
},
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 11,
"ParamName": "AS_RightIndex",
"ParamType": "Integer"
},
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 13,
"ParamName": "AS_FrontIndex",
"ParamType": "Integer"
}
]
}
],
"SuccessActions": [
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 11,
"ParamName": "AS_BackIndex",
"ParamType": "Integer"
},
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 12,
"ParamName": "AS_LeftIndex",
"ParamType": "Integer"
},
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 13,
"ParamName": "AS_RightIndex",
"ParamType": "Integer"
},
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Replace",
"Param": 14,
"ParamName": "AS_FrontIndex",
"ParamType": "Integer"
}
]
},
{
"$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": "%AS_FrontIndex",
"ParamName": "Int_AttackIndex",
"ParamType": 3
}
],
"SuccessActions": [
{
"$type": "RandomOperator",
"Odds": 0.5,
"OnFailure": [
{
"$type": "SetAnimCtrlerParamAction",
"IntVal": "%AS_RightIndex",
"ParamName": "Int_AttackIndex",
"ParamType": 3
}
],
"OnSuccess": [
{
"$type": "SetAnimCtrlerParamAction",
"IntVal": "%AS_LeftIndex",
"ParamName": "Int_AttackIndex",
"ParamType": 3
}
]
}
]
}
],
"SuccessActions": [
{
"$type": "SetAnimCtrlerParamAction",
"IntVal": "%AS_BackIndex",
"ParamName": "Int_AttackIndex",
"ParamType": 3
}
]
},
{
"$type": "SetAbilitySpecialAction",
"ModifyFunction": "Add",
"Param": -0.5,
"ParamName": "AS_EvadeProbability",
"ParamType": "Float"
}
]
}
]
}