HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

make custom summoned units die after time expires

11-18-2002, 04:30 AM#1
Guest
Hi,
I am able to replace summoned units with custom summoned units but I cannot figure out how to make them die. When I try to use a wait and a kill it only kills one of the summoned units in the group. Here is what I have so far.
Events:
Unit - A unit owned by (Player (Triggering Player) ) Is summoned
Conditions:
Unit-type of triggering unit equal to treant
Actions:
Unit - replace summoned unit with a dark treant using new unit defaults
Wait 30 secs
Unit - kill summoned unit

Any help is appreciated.
-AZ
11-18-2002, 04:49 AM#2
ph33rb0
Best way to do it is to add each unit to a unit group array (so you don't get it mixed up with other players) and then wait 30 seconds, then Unit Group - Pick every unit in unit group DarkTreants[x] and do Kill (Picked Unit)
11-18-2002, 05:22 AM#3
Guest
unit group arrays don't work...
11-18-2002, 05:47 AM#4
Guest
replace the .slk-file?
People bitch a lot about it increasing the file size, but you can get one of those fancy packers and it'll fit under 50k, or so i heard.
11-18-2002, 07:00 AM#5
Guest
Try hiding the summoned units instead of killing them, and wait until they expire. I haven't tested it out myself, but I think they'll produce an event even though they're hidden.

You can also try using the Old Unit's relative life and mana. That might also assign the "Summoned" time onto the replacing unit.

I do know of a pretty sure-fire way of doing it with 12 triggers, but you may not want to go through that. It involves an array of units and an array of Timers (since Waits have problems).
11-18-2002, 08:25 PM#6
Guest
But don't the new WE have a trigger like life timer or something? Maybe u can use life timer then summon time.
11-18-2002, 10:03 PM#7
Scio
yes my editor has a action called unit - Apply life timer, which make the unit act as a summoned unit, ie the little bar that goes down till it dies
11-19-2002, 02:16 AM#8
Guest
Where do you find the "unit - Apply life timer" option? I can't find that anywhere.
Thanks
-AZ
11-19-2002, 02:26 AM#9
Scio
did you download my editor?? UMSWE? see my sig for link
11-19-2002, 03:25 AM#10
Myster Mystery
Just wondering Scio, for timed life, there is something there like Buff ID or something I seem to remember, and I couldn't figure out what it actually does... Could you tell me?
11-19-2002, 06:25 PM#11
Scio
nope haven't figured it out yet:////
11-20-2002, 06:26 PM#12
Guest
abilitydata.slk only makes my map 50k bigger, just use mpq2k, nothing fancy