• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Target of used item?

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,296
Events
Unit - A unit is attacked
Conditions
((Attacking unit) is A Hero) Equal to True
((Attacking unit) has an item of type ######) Equal to True

###### is your items type name.
That should explain what you are after.
Now uses | attacked unit | to refer to the unit that is under attack by the hero.

Warning If hero has area effect + that item ît may causes the game to crash attack if it's attack is not targeting a unit directly! (attacking ground)
 
Level 8
Joined
Apr 3, 2004
Messages
507
Assuming you want what you mentioned in your thread title, Dr Super Good's method is not accurate.

Using an item is largely just like having whatever ability the item has on the hero that's using it. Therefore, make a trigger that detects when your item ability is used, as long as it's separate from any unit abilities.
 
Status
Not open for further replies.
Top