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

[Solved] Attatchment Problem

Status
Not open for further replies.
Level 7
Joined
Feb 23, 2020
Messages
253
Hello guys, how come this only works for 1 player/unit. How do i make this work on multiple units?
And the reason i have "turn off" is because i dont want it to stack the ablility, or does it work that way?

Note: The "Add armor (Blacksmith)" is an attatchment ability.

  • Armor Gear up
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Upgrade Armor
    • Actions
      • Unit - Add Armor (Blacksmith) to (Learning Hero)
      • Trigger - Turn off (This trigger)
 
Last edited:
Level 30
Joined
Feb 18, 2014
Messages
3,636
You could just use special effects instead of attachment ability. Anyway, The reason why it works for one unit only is because of the "turn off" trigger which disables the trigger after the first unit learns the skill. To make it work for multiples units remove the "turn off" or do this :
  • Armor Gear Up
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Upgrade Armor
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Armor (Blacksmith) for (Learning Hero)) Greater than 0
        • Then - Actions
        • Else - Actions
          • Unit - Add Armor (Blacksmith) to (Learning Hero)
 
Level 7
Joined
Feb 23, 2020
Messages
253
You could just use special effects instead of attachment ability. Anyway, The reason why it works for one unit only is because of the "turn off" trigger which disables the trigger after the first unit learns the skill. To make it work for multiples units remove the "turn off" or do this :
  • Armor Gear Up
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Upgrade Armor
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Armor (Blacksmith) for (Learning Hero)) Greater than 0
        • Then - Actions
        • Else - Actions
          • Unit - Add Armor (Blacksmith) to (Learning Hero)
Aaah yes man, thank you! The "add" should be in then instead of else. :)
 
Status
Not open for further replies.
Top