You need a Requirement that counts the charges and only returns true if less than 4. As you mentioned use the vulture one as inspiration.
Contribute to the wiki (Wiki button at top of page)
Considered easy altering of the unit textures?
http://static.sc2mapster.com/content/attachments/15/252/Screenshot2011-04-17_09_16_21.jpg
For my public assets look here!
http://www.sc2mapster.com/forums/resources/data-assets/46733-the-assets-of-evil/#1
samourai23 Regular ShmoeHello everyone, yeah I know my title is pretty weird, but here the point :
In the mod I'm working on, I made it so heroes are playable with new customed abilities. Actually, Raynor is playable and can use his Grenades/Plasma Rifle/Chrono-charge. I managed to make a way to buy ammunitions (charges) by using the same ability the vulture uses with his spider mines. But now, I want this ability to become unusable (so the button should go grey) as soon as the number of charges is maxed. Respectively : 5,3,1.
Basically, to be more clear, Raynor as a button on menu 1, that leads to menu 2. In menu 2 there is 4 buttons, 1 to buy a charge from each ability and one to exit the menu. If I have let's say 4,0,1, I want to be able to buy one more grenade, 3 more plasma charges and I want the button to buy a chrono charge to become grey. Until I use the ability "Chrono-Faille (in french)".
Regarding how my mod actually is, I can still buy them, but the number of charges being maxed, I litterally pay for nothing.
I guess it's gonna be a validator thing, which I absolutely don't know about (I tried to read tutoriels, but the fact is, I don't even know in which section of the validator should I look so....
Anyone can help ?
Thanks in advance !! :)