• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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