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

Second effect for Breath of Darkness

Status
Not open for further replies.
Level 4
Joined
Apr 28, 2017
Messages
112
Here's the trigger. Now all you need to change in it are range in "Set tempGroup = (Units within 700.00 of locCaster matching...." to match the range of your breath, and angles to match the angles of your breath. You can create custom curse ability or just use default one if it will only have 1 lvl.


  • Breath of Darkness
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Breath of Darkness
    • Actions
      • Set locCaster = (Position of (Triggering unit))
      • Set targetPoint = (Target point of ability being cast)
      • Set tempGroup = (Units within 700.00 of locCaster matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))
      • Unit Group - Pick every unit in tempGroup and do (Actions)
        • Loop - Actions
          • Set tempLoc = (Position of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Angle from locCaster to tempLoc) Greater than or equal to ((Angle from locCaster to targetPoint) - 30.00)
              • (Angle from locCaster to tempLoc) Less than or equal to ((Angle from locCaster to targetPoint) + 30.00)
            • Then - Actions
              • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at tempLoc facing Default building facing degrees
              • Unit - Add CustomCurse to (Last created unit)
              • Unit - Set level of CustomCurse for (Last created unit) to (Level of Breath of Darkness for (Triggering unit))
              • Unit - Order (Last created unit) to Undead Banshee - Curse (Picked unit)
              • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
            • Else - Actions
          • Custom script: call RemoveLocation(udg_tempLoc)
      • Custom script: call DestroyGroup(udg_tempGroup)
      • Custom script: call RemoveLocation(udg_targetPoint)
      • Custom script: call RemoveLocation(udg_locCaster)


EDIT: P.S you can use orb of darkness icon for your breath of darkness, just a suggestion
 
Last edited:
Status
Not open for further replies.
Top