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

Need some help with unstackable items system

Status
Not open for further replies.
Level 3
Joined
Dec 27, 2012
Messages
36
So i want to make it so that when a unit that has "claws of attack" picks up the same item it will drop that item and keep only 1. I dont know JASS so i used triggers.

  • Items
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Item being manipulated) is owned) Equal to True
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
          • Game - Display to (All players) for 2.00 seconds the text: ((Name of (Owner of (Triggering unit))) + you allready have this item!)
        • Else - Actions
          • Do nothing
 
Status
Not open for further replies.
Top