• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Specific units to pick up specific items.

Status
Not open for further replies.
Level 5
Joined
Nov 3, 2007
Messages
113
The map I'm working on has several towns to be restored via items, these towns vary between different races.

I want to be sure only specific races can restore specific towns.

So basicly I want that ONLY specfiic heroes can pick up specific items. It looks like a simple trigger when you say it like this but I can't get it to work// :goblin_cry:
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
  • Trigger
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Unit-type of (Triggering unit)) Not equal to Paladin
              • (Unit-type of (Triggering unit)) Not equal to Archmage
          • Or - Any (Conditions) are true
            • Conditions
              • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
              • (Item-type of (Item being manipulated)) Equal to Crown of Kings +5
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Triggering unit)
        • Else - Actions
You will need a trigger like this for all of your towns. Hope this works!
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
I think a proper system is needed in this case, since you would require tons of checks per acquire item, don't you think so Mr. Bean ?
I would use Hashtable for this.

It really depends on your quantity of items, if it's few, just make that simple trigger check, well if it's a lot... you might need more decent and advance system.
 
Status
Not open for further replies.
Top