Well the title summarizes my question quite well... I'd simply like to get the Action cost of an ability by script. As a matter of fact, I'm resorting to script because I didn't find a way to get it with a formula or some node in a battle event.

Is there some way?
  • Works like this:
    AbilityShortcut ability = combatant.Abilities.Get(index);
    if(ability != null)
    {
    ActiveAbility level = ability.GetActiveLevel();
    if(level != null)
    {
    float cost = level.GetActionCost(combatant, null, ability.GetSelectedData());
    }
    }

    combatant is the Combatant who's ability you want to access, index is the ID/index of the ability.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Thanks! It works.
Sign In or Register to comment.