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

[Spell] Auto-Attack hit 2 enemies

Level 11
Joined
Aug 11, 2009
Messages
594
Hi!
Maybe this is in the wrong section but is there any easy way to make a ranged auto attack hit 2 enemies instead of 1?
Using Barrage ability does not work even when changing how many targets it should hit as it always hits multiple enemies for some reason.

Thanks in advance!
 
Level 20
Joined
Jun 27, 2011
Messages
1,864
According to the Warcraft 3 WE Ability Insight document:

Barrage:​

Tags: [Multi Attack Target]
Notes: Can be repurposed as a multi attack ability, Just make sure to change “Targets Allowed”
RawCode: Aroc
Latest tested version: 1.28.5.7680
  • “Damage Per Target” and “Maximum Total Damage” don't do anything. Probably deprecated in favor of using the attacks actual damage.
  • Maximum Number of Targets below 0 means no extra missiles.
  • By default it always causes the unit to shoot 3 projectiles, but if you put Max Targets to 1 and Max Damage to 2, Barrage will only affect 2 units (including primary target). (DracoL1ch)
  • If you set values of “Damage Per Target” and “Maximum Number of Targets” to 0, and “Maximum Total Damage” to X, then at most X additional projectiles will be launched. (Prometheus3375)
    • If X = 0, then the ability will target all enemies in its range. (Prometheus3375)
    • If X = 1, then the ability will target 1 enemy in its range but two projectiles appear due to the normal attack flying against the primary target. (Prometheus3375)
  • Area of Effect actually dictates the maximum range the missiles can target enemies.
    • No missiles if negative or 0.
  • Critical Strike Proc prevents barrage usage


Barrage is incredibly jank for the first three targets since it defaults to 3 targets. To simplify, to create an attack that hits two units, you need to set the Data - Maximum Number of Targets to 1 and the Data - Maximum Total Damage to 2.000. For an attack to hit three units, you need to set Data - Maximum Number of Targets to 1 and the Data - Maximum Total Damage to 0. For four units and onwards, just incrementally add 1 to the Data -Maximum Number of Targets (4 units = 2 max, 5 units = 3 max, etc).

I've attached a demo below.
 

Attachments

  • multishot.w3m
    14.8 KB · Views: 1
Level 11
Joined
Aug 11, 2009
Messages
594
According to the Warcraft 3 WE Ability Insight document:

Barrage:​

Tags: [Multi Attack Target]
Notes: Can be repurposed as a multi attack ability, Just make sure to change “Targets Allowed”
RawCode: Aroc
Latest tested version: 1.28.5.7680
  • “Damage Per Target” and “Maximum Total Damage” don't do anything. Probably deprecated in favor of using the attacks actual damage.
  • Maximum Number of Targets below 0 means no extra missiles.
  • By default it always causes the unit to shoot 3 projectiles, but if you put Max Targets to 1 and Max Damage to 2, Barrage will only affect 2 units (including primary target). (DracoL1ch)
  • If you set values of “Damage Per Target” and “Maximum Number of Targets” to 0, and “Maximum Total Damage” to X, then at most X additional projectiles will be launched. (Prometheus3375)
    • If X = 0, then the ability will target all enemies in its range. (Prometheus3375)
    • If X = 1, then the ability will target 1 enemy in its range but two projectiles appear due to the normal attack flying against the primary target. (Prometheus3375)
  • Area of Effect actually dictates the maximum range the missiles can target enemies.
    • No missiles if negative or 0.
  • Critical Strike Proc prevents barrage usage


Barrage is incredibly jank for the first three targets since it defaults to 3 targets. To simplify, to create an attack that hits two units, you need to set the Data - Maximum Number of Targets to 1 and the Data - Maximum Total Damage to 2.000. For an attack to hit three units, you need to set Data - Maximum Number of Targets to 1 and the Data - Maximum Total Damage to 0. For four units and onwards, just incrementally add 1 to the Data -Maximum Number of Targets (4 units = 2 max, 5 units = 3 max, etc).

I've attached a demo below.
That actually worked, thank you! And very useful information if i need to change how many it should hit :D
 
Top