Warcraft III resources & community, 2003–2006 · archived

1 item type for each individual slot

4 posts
#1

1 item type for each individual slot

How can I make it so that only one type of item can be carried in an inventory? Like sword in one, sheild or sword in other, helmet in 3rd, armor in 4th, etc. Does anyone know how to do it?
#2
well, what you can do is the following:

Events:
Item - unit aquires item

Conditions:
Item type of item being manipulated is equal to (sword)

Actions:
if-item - number of items carried by hero of type (sword) = 0
then-Item - move item to inventory slot X
else-remove item being manipulated from the game
#3
Well.. I would have changed the last trigger part there to: Make unit drop item... But that is if you don't want too destroy the item u pick up like:

You have the weakest sword in the map and finds the best one, and you forget to drop the weak one before u try to pick up the good one, its better then that the good one drop on the ground under the hero than it get removed from game ^^
#4
instead of removing it, you can move the item to the position of the triggering unit, then it drops on the ground underneath the hero.