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

Adrenaline Rush Trigger

Status
Not open for further replies.
Level 2
Joined
Mar 27, 2011
Messages
23
I need a trigger that will make all footman type units on the map get bloodlust buff but only if their health gets beneath 45% of original health.PLS HELP
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
  • Adrenaline Rush
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Footman)) and do (Actions)
        • Loop - Actions
          • Set u = (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Percentage life of u) Less than or equal to 45.00
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (u has buff Bloodlust) Equal to True
                • Then - Actions
                • Else - Actions
                  • Set p = (Position of u)
                  • Unit - Create 1 Dummy for (Owner of u) at p facing Default building facing degrees
                  • Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
                  • Unit - Order (Last created unit) to Orc Shaman - Bloodlust u
                  • Custom script: call RemoveLocation(udg_p)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (u has buff Bloodlust) Equal to True
                • Then - Actions
                  • Unit - Remove Bloodlust buff from u
                • Else - Actions
Make sure that the Bloodlust duration is set to 0 for infinite amount of duration for the unit
 
Status
Not open for further replies.
Top