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

Anti pickup more than 1 item system ...

Status
Not open for further replies.
Level 4
Joined
Oct 15, 2008
Messages
83
Yo, i need help making a trigger that prevents units from picking up items when they already got 1 of that type of item so you only can carry 1 sort of that weapon/random item at a time.

Ideas >:D?
 
Level 4
Joined
May 31, 2009
Messages
109
may be this could help
  • Untitled Trigger 001
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • ((Hero manipulating item) has (Last dropped item)) Equal to True
    • Actions
      • Hero - Drop (Last created item) from (Hero manipulating item)
if it doesnt work pls ask someone else to help you bec im not good at making triggers:hohum:
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
It's this condition:
  • ((Hero manipulating item) has an item of type (Item-type of (Item being manipulated))) Equal to True
(Huge difference: your trigger won't work :p)

If the hero buys the item, use the event:
  • Unit - A unit Sells an item (from shop)
(Then remove the item and you can give the gold back...).
 
Status
Not open for further replies.
Top