• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[General] Enter the Items(informative)

Status
Not open for further replies.
want to ask if this is the right way to check if item is used :D and if the the action part is right? I never before made triggers for items.
  • PotionE
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Tome of Experience
    • Actions
      • Unit Group - Pick every unit in (Units within 150.00 of (Target point of ability being cast)) and do (Actions)
        • Loop - Actions
 
want to ask if this is the right way to check if item is used :D and if the the action part is right? I never before made triggers for items.
  • PotionE
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Tome of Experience
    • Actions
      • Unit Group - Pick every unit in (Units within 150.00 of (Target point of ability being cast)) and do (Actions)
        • Loop - Actions

Yes, this should run if a unit is using an item of Tome of Experience.
 
Triggers can fire off of item abilities the same way they do from normal abilities (I.E. "Event - A unit starts the effect of an ability", "Condition - Ability being cast = Item Experience Gain").

If you use "A unit uses an item" instead, you won't be able to get "Target point/unit of ability being cast". For instant use (no target) items, either way works fine.
 
Status
Not open for further replies.
Back
Top