• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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?
 
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.
Back
Top