foreach(AbilityShortcut ability in abilities)It does grey out the buttons we need but when we click on the ability left we have this error :
{
if (ability.GetShortName() != "abilityname")
{
ability.Setting.useableIn = UseableIn.None;
}
}
NullReferenceException: Object reference not set to an instance of an objectIt seems probably not the best approach since I am trying to change temporarily the way the abilities can be used.
ORKFramework.Combatants.CombatantAbilities.GetStatusChanges (ORKFramework.StatusPreviewInformation& info) (at :0)
ORKFramework.Combatants.CombatantStatus.GetStatusChanges (ORKFramework.StatusPreviewInformation& info) (at :0)
ORKFramework.Combatants.CombatantStatus.ResetStatus (System.Boolean checkDeath) (at :0)
ORKFramework.Combatants.CombatantStatus.Tick (System.Single time) (at :0)
ORKFramework.Combatant.Tick (System.Single time, System.Single battleTime) (at :0)
ORKFramework.CombatantHandler.Tick () (at :0)
ORKFramework.ORKCore.FireTick () (at <8f6deff85b39442eaccd50a0d7f3d6e3>:0)
ORKFramework.ORKHandler.Update () (at <8f6deff85b39442eaccd50a0d7f3d6e3>:0)
It looks like you're new here. If you want to get involved, click one of these buttons!
The easiest way I see to do this, without having to set up individual blocking variables/conditions for each ability, would be to have click-blocking HUDs displayed above the other buttons ...
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!