HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Remove too many units?

11-06-2005, 07:08 AM#1
StRoNgFoE_2000
I am creating a tower wars type map, but unfortunately it suffers having too many units summoned at one time. What I want to do is lets say 100 units owned by player 12 enters a region, to preferable kill 50 of the units in that region. If to kill them is impossible, maybe remove them from the region. Is this trigger possible?
11-06-2005, 05:55 PM#2
PCPharaoh
If I understand you correctly, you want a trigger similar to this:

Events
Unit - A unit enters Region1 <gen>
Conditions
(Number of units in (Units in Region1 <gen>)) Greater than or equal to 100
Actions
Unit Group - Pick every unit in (Random 50 units from (Units in Region1 <gen>)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game