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

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