HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Selecting only 9 units

10-20-2002, 07:35 PM#1
element_5
Okay, I'm trying to make it so that someone can only select 9 units instead of the normal 12. I finally got it to work, but the problem is, it's slow... What happens is, the player selects a bunch of units, and then my trigger deselects a random unit unitil there are only 9 selected. In the time it's taking to deselect the units, the player can still give all 12 units a command, or put them all in a group... now, this is annoying for the player to do, but it's still exploitable. If you know a better way of doing this, please post. Here is my trigger:

Code:
Remove Units From Selection
-Events:
-----Player 1 (Red) Selects a unit
-Conditions:
-Actions:
-----Trigger - Turn off (This trigger)
-----If ((Number of units in (Units currently selected by (Triggering Player))) Greater than 9) then do (Selection - Remove (Random unit from (Units currently selected by (Triggering Player))) from selection) else do (Do nothing)
-----...ABOVE ACTION REPEATED TWICE
-----Trigger - Turn on (This trigger)
10-21-2002, 12:32 AM#2
Guest
nggg, why would that be useful? more is often better....
10-21-2002, 02:24 AM#3
Guest
i agree a lot of times i want to be able to select more like 18-24 units
10-21-2002, 04:53 AM#4
element_5
Sigh... do I have to explain this EVERY TIME I post? I am doing a WC2 Mod, and am trying to be true to the WC2 style. That's why, so now on with the ideas...