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

[Solved] The "Add ability" action

Status
Not open for further replies.
Level 1
Joined
Oct 27, 2011
Messages
4
Hi! I'm new to triggering and having an issue regarding the use of "Unit - Add Ability". I'm trying to make a trigger that grants an ability to a unit carrying a certain item. Both the trigger below and one using "Unit aquires item" as event fail to add the ability to the specified unit. Adding, for example, a special effect instead of an ability with the trigger below works as intended. What's wrong?

Thanks in advance
Kebur


  • Untitled Trigger 003
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) has an item of type Doomhammer) Equal to True
            • Then - Actions
              • Unit - Add HammerFall to (Picked unit)
            • Else - Actions
              • Do nothing
 
Last edited:
Level 1
Joined
Oct 27, 2011
Messages
4
Problem solved. Apparently the add ability trigger won't function as long as the picked up item itself has the ability you want to grant the unit (don't ask me why it did). Thanks anyway though!
 
Status
Not open for further replies.
Top