HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to limit the maximum no. of units owned by XXX ?

08-23-2003, 09:43 AM#1
Pret
Besides using the train trigger or limiting the food ?
08-23-2003, 09:46 AM#2
Draco
What is wrong with the food cap? When or how do you want it stopped. Don't be too general.
08-23-2003, 09:50 AM#3
Pret
Does reducing food cap work for limiting neutral hostile units ?

If so, I want to know are there other ways to do so.
08-23-2003, 10:30 AM#4
cideh
Event: A unit enters (Playable map area)
Condition: Player owner of (Triggering unit) equal to (Player X)
Condition: Count units in (Units owner by (Owner of (Triggering unit))) greater than or equal to X
Action: Unit - Remove (Triggering unit) from the game

There are some problems with this, such as not giving the gold back...

You can use any actions besides from remove, such as making the unit type of the triggering unit "untrainable"
08-23-2003, 12:02 PM#5
TheZaCrew
you do it by
event - unit starts training unit

action - if(number of units owned by player xxx is less or equal to xxx do nothing els cancel training unit