• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Detect if the Hero's inventory is full

Status
Not open for further replies.
Level 11
Joined
Jan 23, 2015
Messages
788
Hi, I made an item in my map that works this way:

- It can only be picked from ground (can't be bought)
- When you pick it up it stacks with the other items of its type (if there are any)
- The item has an ability and you lose a charge when used

What I have done is: I made two versions of the item. One is rune-based, to serve only as a pick-up, so I can check if the hero already has this item and whether I am supposed to raise its charges or create the item, which is the second version of it that has the ability.

The problem is when the hero's inventory is full and he tries to pick the item, it just disappears and I am unable to re-create it because I can't detect when the hero's inventory is full..
 
Status
Not open for further replies.
Top