• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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 28
Joined
Feb 18, 2014
Messages
3,580
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