HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit- Damage Area

05-07-2006, 07:04 PM#1
n7r3x
is there a way so it won't hurt self and allied units?
05-07-2006, 07:23 PM#2
Mystic Prophet
Yes there is. You add all units in that area to a unit group and instead use damage target with a condition.

Trigger:
blizzard
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Blizzard
Collapse Actions
Set temp_point = (Target point of ability being cast)
Set temp_group = (units within 200.00 of temp_point)
Collapse Unit Group - Pick every unit in (temp_group) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit)) Equal to True)) and do (Actions)
Collapse Loop - Actions
Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
Custom script: call RemoveLocation (udg_temp_point)
Custom script: call DestroyGroup (udg_temp_group)
05-07-2006, 07:34 PM#3
n7r3x
Ok. thanks. though i already know this solution. does this means damage area is kinda.. useless?

anyway for your trigger. doesn't unit group leak?
05-07-2006, 07:36 PM#4
Captain Griffen
Yes, his unit group leaks. Damage area isn't useless. Almost useless, though.
05-07-2006, 07:46 PM#5
Mystic Prophet
There leak fixed. still new with working on leaks. so I tend to miss them.
05-07-2006, 07:55 PM#6
n7r3x
wee. nice. eh.. where is the memory leak guide? removed? i can't seem to find it anywhere.
05-07-2006, 07:59 PM#7
Mystic Prophet
right here.

http://wc3campaigns.com/showthread.php?t=80072
05-07-2006, 08:01 PM#8
blu_da_noob
http://www.wc3campaigns.net/showthread.php?t=55022
http://www.wc3campaigns.net/showthread.php?t=80072

Edit: Cross posted
05-07-2006, 08:52 PM#9
n7r3x
thanks a bunch guys =D

p/s : does anyone knows the pathway for the effects on tree of ages/eternity, they look like leaves and butterflies tht float around.