| 08-23-2005, 02:21 AM | #1 |
I am trying to add an ability to all units of player matching condition, but I can't figure out how to do it. Am I doing the action part right? NE bonus Gui Events Unit - A unit comes within 126.00 of Alchemist 0126 <gen> Unit - A unit comes within 126.00 of Demon Hunter 0080 <gen> Unit - A unit comes within 126.00 of Priestess of the Moon 0079 <gen> Unit - A unit comes within 126.00 of Keeper of the Grove 0078 <gen> Unit - A unit comes within 126.00 of Warden 0624 <gen> Unit - A unit comes within 126.00 of Naga Sea Witch 0625 <gen> Conditions And - All (Conditions) are true Conditions totalHeros[playerIndex] Equal to 5 pureRacialBonus[playerIndex] Equal to 3 Actions Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Unit - Add Damage Bonus (+15) to (Picked unit)) |
| 08-23-2005, 02:41 AM | #2 |
Ok, so I ended up finding my problem. I replaced this Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Unit - Add Damage Bonus (+15) to (Picked unit)) with this Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit))) and do (Unit - Add Damage Bonus (+15) to (Picked unit)) Now is there anything else I will need to do with this to prevent lag? I thought I read something by Lord Vexorian about unit group triggers causing memory leaks and using DestroyForce. Would this work ok? Unit Group - Remove all units from (Last created unit group) |
| 08-23-2005, 03:15 AM | #3 |
to destroy the group itself im pretty sure you need to use custom script. |
| 08-23-2005, 11:55 AM | #4 |
Seeing as how this trigger probably runs only a couple of times in the course of one game, and it leaks only a single unit group each time, I would say don't bother about it. |
