• 🏆 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!

[Trigger] AOE Damage not applying sometimes

Status
Not open for further replies.
Level 8
Joined
Jul 10, 2018
Messages
383
  • AAbility 2
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Divinity
    • Actions
      • Unit - Pause |cff80ff80Ancient Tree Of The Old Lords|r 0438 <gen>
      • Floating Text - Create floating text that reads |cff80ff80Oh Heaven... above |cff80ff80Ancient Tree Of The Old Lords|r 0438 <gen> with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
      • Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
      • Sound - Play Warning <gen>
      • Sound - Play ReviveNightElf <gen>
      • Special Effect - Create a special effect at (Position of (Triggering unit)) using Soul Beam.mdx
      • Special Effect - Set Scale of (Last created special effect) to 15.00
      • Special Effect - Destroy (Last created special effect)
      • For each (Integer A) from 1 to 20, do (Actions)
        • Loop - Actions
          • Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by (((Real((Integer A))) x 100.00), 0.00)) using Objects\Spawnmodels\NightElf\NECancelDeath\NECancelDeath.mdl
          • Special Effect - Set Scale of (Last created special effect) to 5.00
          • Special Effect - Destroy (Last created special effect)
          • Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by (((Real((Integer A))) x -100.00), 0.00)) using Objects\Spawnmodels\NightElf\NECancelDeath\NECancelDeath.mdl
          • Special Effect - Set Scale of (Last created special effect) to 5.00
          • Special Effect - Destroy (Last created special effect)
          • Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by (0.00, ((Real((Integer A))) x 100.00))) using Objects\Spawnmodels\NightElf\NECancelDeath\NECancelDeath.mdl
          • Special Effect - Set Scale of (Last created special effect) to 5.00
          • Special Effect - Destroy (Last created special effect)
          • Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by (0.00, ((Real((Integer A))) x -100.00))) using Objects\Spawnmodels\NightElf\NECancelDeath\NECancelDeath.mdl
          • Special Effect - Set Scale of (Last created special effect) to 5.00
          • Special Effect - Destroy (Last created special effect)
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units within 800.00 of ((Position of (Triggering unit)) offset by (((Real((Integer A))) x 100.00), 0.00)) matching (((Matching unit) belongs to an enemy of Player 10 (Light Blue)) Equal to True)) and do (Actions)
            • Loop - Actions
              • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 850000.00 damage of attack type Chaos and damage type Normal
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units within 800.00 of ((Position of (Triggering unit)) offset by (((Real((Integer A))) x -100.00), 0.00)) matching (((Matching unit) belongs to an enemy of Player 10 (Light Blue)) Equal to True)) and do (Actions)
            • Loop - Actions
              • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 850000.00 damage of attack type Chaos and damage type Normal
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units within 800.00 of ((Position of (Triggering unit)) offset by (0.00, ((Real((Integer A))) x 100.00))) matching (((Matching unit) belongs to an enemy of Player 10 (Light Blue)) Equal to True)) and do (Actions)
            • Loop - Actions
              • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 850000.00 damage of attack type Chaos and damage type Normal
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units within 800.00 of ((Position of (Triggering unit)) offset by (0.00, ((Real((Integer A))) x -100.00))) matching (((Matching unit) belongs to an enemy of Player 10 (Light Blue)) Equal to True)) and do (Actions)
            • Loop - Actions
              • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 850000.00 damage of attack type Chaos and damage type Normal
      • Unit - Unpause |cff80ff80Ancient Tree Of The Old Lords|r 0438 <gen>
It sometimes doesn't do damage although if i put "Pick every unit within 800 range it works if i put it 100 it doesn't
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,503
You're leaking a little over 160 Points :p So you probably want to use a Point variable and clean that up.

But leaks aside, it looks like it should work fine. I mean if it works with 800 radius but doesn't work with 100 radius then I imagine it's because the enemy units are out of range. 100 radius is pretty damn small after all.
 
Level 8
Joined
Jul 10, 2018
Messages
383
You're leaking a little over 160 Points :p So you probably want to use a Point variable and clean that up.

But leaks aside, it looks like it should work fine. I mean if it works with 800 radius but doesn't work with 100 radius then I imagine it's because the enemy units are out of range. 100 radius is pretty damn small after all.
well yes 100 radius is pretty low but i made the offset higher so it can dmg enemies in a line and not AOE like
 
Status
Not open for further replies.
Top