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

Only one type of item

Status
Not open for further replies.
Level 4
Joined
Jun 28, 2004
Messages
94
In my new map i have it so you pick up an item and they have a modafyed orcishbattlestanderd ablity but how would i make a trigger (or whatever) so they could only carry 1 wepon?
 
Level 13
Joined
May 5, 2004
Messages
1,330
Should be something like this:

Event
Unit - A unit acquires an item
Condition
Item being manipulated equal to [Item1]

Or (multi conditions)
  • (Item-type of (item carried by hero manipulating item in slot 1)) Equal to [Item2]
    (Item-type of (item carried by hero manipulating item in slot 2)) Equal to [Item2]
    (Item-type of (item carried by hero manipulating item in slot 3)) Equal to [Item2]
    (Item-type of (item carried by hero manipulating item in slot 4)) Equal to [Item2]
    (Item-type of (item carried by hero manipulating item in slot 5)) Equal to [Item2]
    (Item-type of (item carried by hero manipulating item in slot 6)) Equal to [Item2]

Action
Hero - Drop (item carried by hero manipulating item of type [Item2]) from hero manipulating item


I don't have WE open, but I think this is correct.
Do another trigger for the other item.
 
Status
Not open for further replies.
Top