Im making a 'Garrison' system in the vein of 'Orc Burrow', but in addition to attacks, I need active abilities to be disabled when the Garrison is empty.
Currently, each Garrison type has an assigned index and associated ability.
- When unloaded/loaded, the ability is disabled/enabled
- This works fine, as long as each Garrison type only has 1 skill.
(eg. Index = 1 , Garrison(Index) = 'Spear Burrow', Skill(Index) = 'Throw Spear')
The problem is that I want various Garrisons to have varying numbers of skills (currently the number is small enough that I can make exception manually).
I could store each ability in a different index (eg. Skill1(Index) = 'Throw Spear', Skill2(Index) = 'Thrust Spear') and loop through them.
That said, Im trying to find a more elegant solution to disabling multiple abilities on a unit.
Currently, each Garrison type has an assigned index and associated ability.
- When unloaded/loaded, the ability is disabled/enabled
- This works fine, as long as each Garrison type only has 1 skill.
(eg. Index = 1 , Garrison(Index) = 'Spear Burrow', Skill(Index) = 'Throw Spear')
The problem is that I want various Garrisons to have varying numbers of skills (currently the number is small enough that I can make exception manually).
I could store each ability in a different index (eg. Skill1(Index) = 'Throw Spear', Skill2(Index) = 'Thrust Spear') and loop through them.
That said, Im trying to find a more elegant solution to disabling multiple abilities on a unit.