• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities 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 8
Joined
Feb 23, 2020
Messages
255
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:
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)
 
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.
Back
Top