How to Damage Dealer's calculate step via script? ORK.Game.ActiveLea I want to call my original calculate method from mecanim animation event. I can't found calculate. e.g. ORK.Game.ActiveGroup.Leader.Actions.calculate()(?)
E.g. to use the calculation of a combatant's ability: AbilityShortcut ability = user.Abilities.Get(id); if(ability != null) { ability.Use(user, targets, false); } user is the user combatant (e.g. ORK.Game.ActiveGroup.Leader for the player). id is the ID/index of the ability in the editor. targets is a List containing all targets. The last paremeter determines if the ability is just calculated, or using an actual battle action to animate it.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
AbilityShortcut ability = user.Abilities.Get(id);
if(ability != null)
{
ability.Use(user, targets, false);
}
user is the user combatant (e.g. ORK.Game.ActiveGroup.Leader for the player).
id is the ID/index of the ability in the editor.
targets is a List containing all targets.
The last paremeter determines if the ability is just calculated, or using an actual battle action to animate it.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
this question is solved.
■iOS
https://itunes.apple.com/us/app/id679133055
■Android
https://play.google.com/store/apps/details?id=com.WabiPlant.SAMURAI100SlashLite
New ORK Battle Game
■iOS
https://itunes.apple.com/jp/app/id1403510381
■Android
https://play.google.com/store/apps/details?id=com.Company.AgentFight