HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit is attacked trigger

05-26-2006, 03:29 PM#1
Siphonized
I have a ranged hero that has a "trigger skill" that deals damage when a unit is attacked... problem is, my hero shoots a missile, and the triggers deals damage instantly.. so the trigger damage arrives before the missile itself, thus, making my floating text pop up too soon...

Anyone got a good idea how to fix this so the trigger occurs on missile impact, without "wait" ?
05-26-2006, 05:32 PM#2
moyack
I don't know if I undertood this ability, if it's an special attack with a target unit, custom missile and shows damage, you could use a custom ability based on shadow strike.

BTW, are you using this event??
Trigger:
"Your ablility" Starts
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to "your ability"
Because, it only is triggered when the target unit receive the spell, and (in theory) this is the solution.
05-26-2006, 06:33 PM#3
Siphonized
I want it to trigger on impact for the Hero normal attack 1, which is a "Missile".

Note: Impact. It triggers as soon as the attack starts (the Missile is launched) which result in the damage-dealing trigger occuring too soon (before impact).
05-26-2006, 06:36 PM#4
emjlr3
create a trigger when the unit attacks another that register the event of the attacked unit being damaged, check your conditions, and do your damage acordingly, remember to destroy your trigger too incase u interupt your attack command
05-26-2006, 09:28 PM#5
Siphonized
Don't know how to register that.

Nor destroy.
05-26-2006, 11:38 PM#6
The)TideHunter(
You need a attack detection system, nobody or nothing can predict when the attack is going to hit it exactly.
So i would recommend using Vexs attack detection or another detection system to know precisly when a unit is attacked.
The link is here:
http://www.wc3campaigns.net/showthread.php?t=79545