• 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.

Item ability with triggers

Status
Not open for further replies.
Level 7
Joined
Aug 17, 2012
Messages
256
So, i am working on an item ability with triggers.

How can i do that, because i don't see a condition like "Used item equal to Item" and i exactly need something like this so the trigger knows to activate when i use the item.


I hope someone understands my grammar. :ogre_rage:
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
Do it like this

Or did i misunderstud?

  • Event
    • Unit - A unit Uses an item
  • Conditions
    • (item-type of (item begin manipulated)) Equal to Symphony's Dagger (Or any item that is can be used (Note: if you wan't to make a item like this Check the Actively Used on the item in the object editor)
  • Actions
    • Special Effect - Create a special effect attached to the overhead of (Hero manipulating item) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
    • //(do your actions here for my case this is mine)
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
Then do this
  • Events
    • Unit - Warrior 0007 <gen> Uses an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Bottle of Firewater
  • Actions
    • Camera - Sway camera source for (Owner of (Hero manipulating item)) with magnitude 10.0 and velocity 0.00
 
Status
Not open for further replies.
Top