HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Item limit

07-03-2009, 04:38 PM#1
Rihmakala
Hey!

How can do that, units cant carry more than 1 damage item, and 1 armor item etc...?

i hope you can help me
07-03-2009, 04:45 PM#2
0zyx0
If you are using GUI, make an itemtype array and put all damage items in it, and one with all armour in it. When a unit picks up an item, check if the gained item is in one of those arrays, and if it is, check if the unit has another item type that appears in that array. Then, remove the item from the unit somehow.

If you are using JASS, there are thousands of possible answers. Check the resource section, I believe you would find something useful there.
07-03-2009, 04:55 PM#3
Rihmakala
thanks for answer!
that helped a lot :)
Item limit - Wc3C.net