• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

1 item type for each individual slot

Status
Not open for further replies.

leonine

L

leonine

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?
 
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
 
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 ^^
 
Status
Not open for further replies.
Back
Top