Is it possible to use the supply limit of multiple races? my map only has 2 units that take up supply, I would like them both to have their own supply limit that shows at the top right like normal supply. Currently they both take up terran supply.
Also is there an easy way to make a unit take up supply when it is queued instead of only after it is built?
Just add to an integer everytime a specific unit is created, and subtract everytime a specific unit dies, then show that value with a label/button on a dialog. That's the simpliest way I believe.
Abaion> It does not already do that, the supply is only taken AFTER the unit is created. I will need to figure out how to +a point to the new supply variables when a unit is in the queue now though with raydudes suggestion.
I have a slight problem though. How would I stop a player from clicking the unit build button when the supply i create is maxed out? I would just auto destroy the unit if its full, but I don't want to be spamming destroy unit when I can just stop the unit from being created in the first place.. any ideas?
Is it possible to use the supply limit of multiple races? my map only has 2 units that take up supply, I would like them both to have their own supply limit that shows at the top right like normal supply. Currently they both take up terran supply.
Also is there an easy way to make a unit take up supply when it is queued instead of only after it is built?
uhhhhhhhhhhhhh....................................................................................................................................
"terran supply"???
The only diffrence between the races supply is.... the icon?
@Grimshad: Go
As far as I know, the only way to make a multi-supply system is to design it yourself, complete with the custom ui.
It already does that.
Just add to an integer everytime a specific unit is created, and subtract everytime a specific unit dies, then show that value with a label/button on a dialog. That's the simpliest way I believe.
Thank you Raydude, I think I will do that.
Abaion> It does not already do that, the supply is only taken AFTER the unit is created. I will need to figure out how to +a point to the new supply variables when a unit is in the queue now though with raydudes suggestion.
I have a slight problem though. How would I stop a player from clicking the unit build button when the supply i create is maxed out? I would just auto destroy the unit if its full, but I don't want to be spamming destroy unit when I can just stop the unit from being created in the first place.. any ideas?