• 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.

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

Status
Not open for further replies.
Level 10
Joined
Jul 2, 2004
Messages
690
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...
 
Level 6
Joined
May 13, 2005
Messages
164
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.
 
Status
Not open for further replies.
Top