• 🏆 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] Triggered DDS Cleaving attack not working

Status
Not open for further replies.
Level 9
Joined
Jun 10, 2013
Messages
473
hey I've been trying to make a custom cleaving attack that deals 25% (plus an additional 5% on level 2 and 3 (25/30/35%)) of the attacking units dealt damage to units around the attacked unit however I can't seem to get it working.

  • Battle Rage
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
    • Actions
      • Set tempGroup1 = (Units within 200.00 of TempPoint matching (((Matching unit) belongs to an enemy of (Owner of GDD_DamageSource)) Equal to True))
      • Set TempPoint = (Position of GDD_DamagedUnit)
      • Unit Group - Pick every unit in tempGroup1 and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (GDD_DamageSource has buff Battle Rage ) Equal to True
            • Then - Actions
              • Unit - Cause GDD_DamageSource to damage (Picked unit), dealing (GDD_Damage x (0.20 + (0.05 x (Real((Level of Battle Rage for GDD_DamageSource)))))) damage of attack type Normal and damage type Universal
            • Else - Actions
 
Level 9
Joined
Jun 10, 2013
Messages
473
Ok I've rearranged the trigger as follows:

  • Battle Rage
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
      • (GDD_DamageSource has buff Battle Rage ) Equal to True
    • Actions
      • Set TempPoint = (Position of GDD_DamagedUnit)
      • Set tempGroup1 = (Units within 200.00 of TempPoint matching (((Matching unit) belongs to an enemy of (Owner of GDD_DamageSource)) Equal to True))
      • Unit Group - Pick every unit in tempGroup1 and do (Actions)
        • Loop - Actions
          • Unit - Cause GDD_DamageSource to damage (Picked unit), dealing (GDD_Damage x (0.20 + (0.05 x (Real((Level of Battle Rage for GDD_DamageSource)))))) damage of attack type Normal and damage type Universal
      • Custom script: call RemoveLocation (udg_TempPoint)
      • Custom script: call DestroyGroup (udg_tempGroup1)
However as soon as he attacks while using the ability the game crashes (No error message, just terminates)
 
Status
Not open for further replies.
Top