HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Making specific player remove/kill random units?

04-17-2003, 11:05 PM#1
Redesh
I've been working on my progect but I've come across a problem with triggering. I really can't trigger at all... Anyways I was wunderin' how can I get a specific player's units get randomley killed but not all of 'em jus like 25% of his/her units. Heres the event of the Trigger

Player 1 (Red) Wood equals 0. Of sumethin' like that. PLEASE HELP PLEASE HELP PLEASE HELP PLEASE HELP PLEASE MEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
04-17-2003, 11:13 PM#2
DaKaN
well if im understanding you right.. you want it when thier wood becomes 0, kill 25% of thier units?

E-
Player Property - PlayerX's "resourse" becomes "operator" to "value"

C-
None

A-
Unit Group - Pick every unit in "Playable map area" and do "Set (Integer Varible) = (arthmatic (Integer varible) + 1)

For Each Integer A 1 to (Integer Varible) do (Unit - Remove (Random Unit in Unit Group (Units Owned by PlayerX))

that should do it...