• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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