Hi!
I'm currently using custom combat scripts (ootii's sword and shield), which has its own logic for hit detection, and the weapon to be wielded has a script of damage output. The plan is for ORK to process all the calculations and damage output.
My question is how can I take the final damage output calculated by ORK and set it to affect the enemy combatant?
I was thinking of getting the raw formulas (i.e. ATK - DEF), but since ORK validates a rather large amount of variables for the damage outcome (accuracy, blindness, etc.) I'm rather confused on where to go next.
Any help is much appreciated!
Thanks a ton
AbilityShortcut ability = user.Abilities.Get(id);
if(ability != null)
{
ability.Use(user, targets, false);
}
user is the Combatant using the ability (must know it), id is the ID/index of the ability, targets is a List containing all combatants who should be targeted.
false states that this only does the calculations and doesn't use the battle events of the ability to do animations, etc.
This call will do all the use cost and other status changes (status values, status effects, ...) on user and targets.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!