HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Specific Unit - Takes Damage Event

01-27-2004, 08:45 PM#1
Kolibri
Didn't Attacking Unit use to work with that event?
01-27-2004, 08:52 PM#2
BlackLotus
Attacked Unit - Unit that is attacked by another
Attacking Unit - Unit that attacks another

MfG
B~L~
01-27-2004, 10:20 PM#3
xxxSpikexxx
problem is that this is one of the dumb functions that don't allow variables ... and also don't have a list of triggering unit... entering unit ... and such stuff.

all functions in the units specific group can only be used on units that are pastet on the map from the start ...

and if you want to find the attacking unit you have to use the "unit is attacked event" not "units takes damage"

I hope I it helped you :ggani:
01-27-2004, 10:28 PM#4
Kolibri
Dangit, I was hoping to make a life steal ability, without using the ability.
01-27-2004, 10:34 PM#5
xxxSpikexxx
what shall it do exactly? make attacks steal life? or what?
01-27-2004, 10:37 PM#6
Kolibri
Yes.

The reason is that Life Steal doesn't work with the Orb of Lightning(new) ability.
01-27-2004, 10:39 PM#7
xxxSpikexxx
more detailed ... is it a hero or a unit? does it matter how much damage it does?
01-27-2004, 10:44 PM#8
Kolibri
It's a hero which has the following ability:

Icy Rage
The Frozen Death chops at the closest enemies, draining life from each hit.
Mana cost: 75
Cooldown: 15 seconds
Level 1: Max. 3 units hit. 40% of damage healed.
Level 2: Max. 4 units hit. 45% of damage healed.
Level 3: Max. 5 units hit. 50% of damage healed.
Level 4: Max. 6 units hit. 55% of damage healed.
Level 5: Max. 7 units hit. 60% of damage healed.
01-28-2004, 06:21 AM#9
Xinlitik
Two words: Vampiric Aura.

Just add a 0 range vampiric aura with the given values using if/then functions for levels.

I believe that with the new custom buffs, the same aura can stack as long as it has a different buff, too.

Edit: Reread your post-- I'm not sure if you mean life from an ability like you do the dmg with storm bolt and steal the life with a trigger. At first glance, I thought you meant he just straight out attacks the units. So, if that was right, this should work. If not, oh well.
01-28-2004, 01:40 PM#10
Vexorian
Use the ability used by the Vampiric Mask
01-28-2004, 02:10 PM#11
xxxSpikexxx
Quote:
Originally posted by Kolibri
Yes.

The reason is that Life Steal doesn't work with the Orb of Lightning(new) ability.

i think thats why kolibri did not do this ... i don't know about an orb of lightning bug anyway emote_confused
01-28-2004, 02:17 PM#12
Vexorian
Quote:
Originally posted by Vexorian
Use the ability used by the Vampiric Mask


Also never forget that orb abilities don't work with channeling abilities / no unit target abilities
01-28-2004, 03:09 PM#13
Darimus
Event: Unit is Attacked

Actions: Set Counter=Counter + 1
Set Attacked[Counter] = Attacked Unit

Add New Event to trigger DamageCheck: Specific Unit (Attacked)[Counter] takes damage

DamageCheck:

Actions: anything
01-28-2004, 04:04 PM#14
Kolibri
Quote:
Originally posted by Darimus
Event: Unit is Attacked

Actions: Set Counter=Counter + 1
Set Attacked[Counter] = Attacked Unit

Add New Event to trigger DamageCheck: Specific Unit (Attacked)[Counter] takes damage

DamageCheck:

Actions: anything


That is sort of what I do right now, it just doesn't work very well.