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

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