I have a few questions about previewing ability stats in custom tooltips.
1) What would be the best way to grab status value changes previews and other ability information in these two cases?:
A) Ability is selected and targeting a combatant, so a custom tooltip will appear with status change|AP cost and other information similar to Battle Settings->Target Settings ->Target information Dialogue.
B) Ability is not selected, and I want to grab same information from ability shortcut. For example to display in a tooltip, when I'm hovering over ability icon in custom shortcut slot system.
I tried looking into Target information Dialogue source code, but I'm having trouble recreating it's behavior and when I can, I'm getting different results.
2) Is there a way to get Item/Abilities action cost for specific battle, regardless of whether that battle is currently running? I'm using this code, but this gives me 0AP if battle is not currently running.
public static int AbilityAPCost(ORKFramework.AbilityShortcut _IShortcut, ORKFramework.Combatant _Combatant)
int _Cost = 0;
_Cost = (int)((_IShortcut.GetActiveLevel().GetActionCost(_Combatant, null, null)));
else if (ORKFramework.ORK.BattleSystem.turnBased.actionsPerTurn.ownAbilityCost)
_Cost = (int)(ORKFramework.ORK.BattleSystem.turnBased.actionsPerTurn.defaultAbilityCostSetting.GetCost(_Combatant));
_Cost = (int)(ORKFramework.ORK.BattleSystem.turnBased.actionsPerTurn.defaultActionCostSetting.GetCost(_Combatant));