• 🏆 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!

Class Only Item

Status
Not open for further replies.
Level 1
Joined
Feb 20, 2015
Messages
4
Hey guys I made an item staff for necromancer and I got necromancer hero but I want that item only be pickable by Necromancer hero and when the other type of heroes pick that item it will drop it on the ground but I cant do it and I need help can someone write me that trigger ? Thank you.
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
That actualy is very simple...

  • StaffOfNecromancy
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Staff Of Necromancy
      • (Unit-type of (Triggering unit)) Not equal to Necromancer
    • Actions
      • Hero - Drop (Item being manipulated) from (Triggering unit)
 
Level 1
Joined
Feb 20, 2015
Messages
4
That actualy is very simple...

  • StaffOfNecromancy
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Staff Of Necromancy
      • (Unit-type of (Triggering unit)) Not equal to Necromancer
    • Actions
      • Hero - Drop (Item being manipulated) from (Triggering unit)

Oh Mate i made a mistake but i already done it yeah its working thanks for your answer mate +rep
 
Status
Not open for further replies.
Top