• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

1 item type for each individual slot

Status
Not open for further replies.
Level 9
Joined
Sep 8, 2004
Messages
633
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.
Top