HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Detecting orb of slow cast effects

10-08-2005, 08:35 PM#1
Mezzer
Like i said, i wanna know if its at all possible to detect when an ability is cast via an orb of slow type ability, cause as far as i know it aint, but it'd be really useful if it was
10-08-2005, 11:10 PM#2
Vexorian
IT is impossible, the best solution is to make the orb yourself ×_×
10-09-2005, 03:49 PM#3
Mezzer
I dont suppose u know a good way of detecting when a unit is actually hit instead of just attacked?
10-09-2005, 05:13 PM#4
Tim.
You mean when the unit does not 'evade'? Trigger the evasion spell instead of using the default Warcraft III one.
10-09-2005, 06:14 PM#5
Mezzer
No i mean attacks, cause the Unit is attacked event doesnt take into acount missing of any kind (terrain or ability) and the unit can be order to attack, the trigger fires and then ordered to move before it ever attacked. So thats why...
10-10-2005, 01:12 AM#6
divine_peon
can you try this? (i haven't tried it yet, but i think it will work)

make an orb ability with 100% chance to cast a certain ability.
then make a trigger that randomizes an integer like 1 to 10 whenever the hero attacks.
then check if that integer hits any number.
then if it hits that number, add the orb ability to the attacking unit.
display a text message.
and after a few seconds, remove the ability.
10-10-2005, 05:44 PM#7
Tim.
Quote:
Originally Posted by Mezzer
No i mean attacks, cause the Unit is attacked event doesnt take into acount missing of any kind (terrain or ability) and the unit can be order to attack, the trigger fires and then ordered to move before it ever attacked. So thats why...

Just do a check to see if the unit has taken damage. If it was damaged, the attack was succesful and the trigger should procede, else end the trigger.
10-14-2005, 07:15 PM#8
Gandalf2349
Quote:
Originally Posted by Mezzer
No i mean attacks, cause the Unit is attacked event doesnt take into acount missing of any kind (terrain or ability) and the unit can be order to attack, the trigger fires and then ordered to move before it ever attacked. So thats why...

That's if you use this:

Code:
Events
 -Unit - Issued Order Targeting an Object
Conditions
 -Or (Multiple Conditions)
  -Order = 'attack'
  -And (Multiple Conditions)
   -Order = 'smart'
   -Owner of (Target Unit of (Issued Order)) is an enemy of (Owner of (Ordered Unit)

If you use the event
Code:
Event
 -Unit - A Unit is attacked
My understanding is that it fires every time the a unit attacks another unit, but disregards evasion apparently.

So if you click your guy, and right click on enemy guy, and your unit attacks 5 times, and then you move him away, the trigger should fire 5 times each time your guy swings, not just when you click.
10-14-2005, 08:12 PM#9
Vexorian
Even The closest way to detect attacks hit (and its damage) is not bullet proof, I would like to thank blizzard for this limitation