Warcraft III resources & community, 2003–2006 · archived

How to make a unit unable to hold 2 equipments at 1 time?

5 posts
#1

How to make a unit unable to hold 2 equipments at 1 time?

How do you make a unit unable to hold equipments like swords and shields at 1 time?
#2
Remove Unit Inventory or Hero Inventory. Depending if it is a Unit/Hero. If this is not what you asked, then make the hero drop shield, sword using triggers.

-Rui
#3
How do i do the triggers???
#4
Rui: i think he meant like for RPG maps. so you dont get bonuses from 2 "weapons"

you just use item checks and check if the hero has any sustaining items. and etc...
#5
Yeah, like in RPG maps, you can only hold a weapon, an armor, a shield, etc.

I made a trigger that when the Hero gets the sword, he drops all types of swords he has and then return him the sword that he picked up. For example, I created Sword 1, Sword 2, and Sword 3. When the hero acquires sword 1 but has sword 2, he drops all types of sword he has and then gets back the sword that he picked.

Trigger in detail:

Event-
Unit acquires an item

Condition-
Item type of (item being manipulated) equal to sword 1

Actions-
Set SWORD to (item being manipulated)

If (hero manipulating item) has item type of item sword 1 OR sword 2 OR sword 3

Then, drop item type of item sword 1, sword 2 and sword 3 from (hero manipulating item)

Else Do Nothing.

Give SWORD to (hero manipulating item)


:x This did help, but the Hero cannot drop the (item being manipulated) unless he gets another sword. Then the next sword cant be dropped until he gets another, pls help, THX.