Ok. So in this map I'm making you have a limited number of X resource. You use these resources to increase the spawn amount of unit type Y threw the barracks and it spawns on the next wave. Well seeing as your X resource is limited to a fixed amount, if you want to change up what's spawning there you can click the decrease spawn button and get partial money back, X resource, and lower the spawn count by 1 per click.
What I don't understand is the marine one's decrease button does not show up/disappears when the base marine count is not altered or set back to base, but the other 3 the decrease button is there no matter what you do. I don't understand why. The only difference between the abilities/buttons is that the ones besides the marines have a requirement attached.
How can I make the buttons disappear when you can no longer decrease the spawn amount? I tried doing it with triggers, but couldn't find anything that would allow me to do this.
Ok. So in this map I'm making you have a limited number of X resource. You use these resources to increase the spawn amount of unit type Y threw the barracks and it spawns on the next wave. Well seeing as your X resource is limited to a fixed amount, if you want to change up what's spawning there you can click the decrease spawn button and get partial money back, X resource, and lower the spawn count by 1 per click.
What I don't understand is the marine one's decrease button does not show up/disappears when the base marine count is not altered or set back to base, but the other 3 the decrease button is there no matter what you do. I don't understand why. The only difference between the abilities/buttons is that the ones besides the marines have a requirement attached.
How can I make the buttons disappear when you can no longer decrease the spawn amount? I tried doing it with triggers, but couldn't find anything that would allow me to do this.
I figured out how. It's threw triggers:
Tech Tree - Disallow the Decrease Marauder Count ability for player 7