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