I am trying to get an ability to only work when there are a certain number of units selected. It needs to work similar to the way the Warp Archon ability. I've looked at the ability and tried to mimic it and searched on the forums about it and it appears to be hard coded. I also didn't understand how it greyed out an ability icon when only 1 unit is selected and enable the icon when 2+ are selected.
How do I enable/disable an ability icon based on how many units I have selected?
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
I am going to have to agree with you here, I can not understand how the ability works, as there are no requirements of validators attatched.
I would be trying a requirement along the lines of "CountUnit(Unit,Total) && () == 3", but I'm not sure if thats going to work, I can't see anyway to count the number of units selected. may have to do it with triggers?
I am trying to get an ability to only work when there are a certain number of units selected. It needs to work similar to the way the Warp Archon ability. I've looked at the ability and tried to mimic it and searched on the forums about it and it appears to be hard coded. I also didn't understand how it greyed out an ability icon when only 1 unit is selected and enable the icon when 2+ are selected.
How do I enable/disable an ability icon based on how many units I have selected?
I am going to have to agree with you here, I can not understand how the ability works, as there are no requirements of validators attatched.
I would be trying a requirement along the lines of "CountUnit(Unit,Total) && () == 3", but I'm not sure if thats going to work, I can't see anyway to count the number of units selected. may have to do it with triggers?