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

Help Inventory (Item)

Status
Not open for further replies.
Level 3
Joined
Apr 29, 2013
Messages
20
I need help In Picking up Items:

For Example
A Hero Picks Up *Boots Of Speed*
How can I Prevent the Hero from picking up the Same Item again (Boots of Speed)
..What I want to Happen if he tries to pick up the same item it will auto Drop

Thanks in Advanced :wink:
 
Level 20
Joined
Apr 14, 2012
Messages
2,901
How about you set a boolean to true when the hero picks up that item.

Use an If-Then-Else to check if the boolean you will use is false. If it is true that means the hero has the item, but at default a Boolean is false, so for the Then actions set it to True then that'll prevent the hero from picking up the same item. Then for the Else actions you make the hero drop the item.

If this doesn't make sense I can show a trigger.
 
Status
Not open for further replies.
Top