• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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