Clever ! Thank you so much. So I make a trigger counting the amount of units player X has and than if the unit limit is reached I let it trigger a true or false variable. *I assume* I can use a booleon variable as a requirement for the units making action somewhere. Thank you for your reactions.
Usually in C&C - buildings require electricity - this is similar to the supply in SC.
Any thoughts on how I could achieve this? I saw there are 'custom resources' however I don't see that work.
- Buildings require X amount of Power
- Power plants add Power
- When Power plants get destroyed it should subtract that amount of power (in a sense like you kill supply depot etc.).
The way it used to be done in warcraft 3 was making power plants provide supply, and buildings require supply.
There's other options such as putting it in a dialog or repurposing vespane or something, but supply is the easiest.
@Sapphire_united: Go
Makes me wonder did they disable supply on units, if so how did they still kept the unit cap (to prevent game instability) ?
They disabled supply in order to not interfere with the power system.
Most of the cnc mods had no unit limit, and were susceptible to lag.
I think red alert is like 2000/players or something.
It would be easy to count all the units you own and disable production until some units have died.
Probably also possible to just make it a tech "requirement" that won't remove the units from a purchase panel, just disable them temporarily.
@Sapphire_united: Go
Clever ! Thank you so much. So I make a trigger counting the amount of units player X has and than if the unit limit is reached I let it trigger a true or false variable. *I assume* I can use a booleon variable as a requirement for the units making action somewhere. Thank you for your reactions.
Np,
And yes, you should be able to set the trianing limit to 0.
Search "unit limit" or similar in the trigger actions.