• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

How to make aura that gives determined addonital dmg and not dmg by %

Status
Not open for further replies.
Level 3
Joined
Nov 12, 2018
Messages
43
This works, if only one unit has the aura.
  • Your Aura
    • Ereignisse
      • Zeit - Every 0.05 seconds of game time
    • Bedingungen
    • Aktionen
      • Set temp_LocationCaster = (Position of YourUnit)
      • Set Affected_Units = (Units within Aura_Range of temp_LocationCaster matching (((Matching unit) has buff Befehls-Aura) Gleich True))
      • Einheitengruppe - Pick every unit in Affected_Units and do (Actions)
        • Schleifen - Aktionen
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • ((Picked unit) has buff Befehls-Aura) Gleich True
            • 'THEN'-Aktionen
              • Einheit - Set Base Damage of (Picked unit) to ((Base Damage of (Picked unit) for weapon index 1) + 2) for weapon index: 1
              • Einheit - Set Base Damage of (Picked unit) to ((Base Damage of (Picked unit) for weapon index 2) + 2) for weapon index: 2
            • 'ELSE'-Aktionen
              • Einheit - Set Base Damage of (Picked unit) to (Base Damage of (Picked unit) for weapon index 1) for weapon index: 1
              • Einheit - Set Base Damage of (Picked unit) to (Base Damage of (Picked unit) for weapon index 2) for weapon index: 2
              • Einheitengruppe - Remove (Picked unit) from Affected_Units
      • Custom script: call RemoveLocation(udg_temp_LocationCaster)
If you want multiple units to use this aura at once, you have to add them to a UnitGroup and run the mentioned trigger per Position of PickedUnit.
However I wouldn't recomend to many units with this aura, as this solution gets laggy with masses of units.

(Sorry for some german words. My editor is german.)
 
Last edited:
Status
Not open for further replies.
Top