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

Beam Attacks?

Status
Not open for further replies.
Level 45
Joined
Feb 27, 2007
Messages
5,578
Give the units max projectile speed and use a Damage Detection System to determine when one of these beam units attacks/damages a new target (in this instance you might be able to get away with the generic "a unit is attacked" event instead of a DDS despite it normally being a horrible idea to use). After that you have two choices:
  1. Create an infinite duration drain life ability for the beam unit that can affect spell-immune targets, and when they find a new target just order them to cast it on that target. This method will show an ability on the command card of the beam unit, no way around that, and the beam units will not be able to move while attacking.
  2. Make your own damage over time system with lightning effects, which will be more effort but enable the units to move while attacking and won't show anything on the command card.
 
Level 6
Joined
Mar 19, 2016
Messages
113
Give the units max projectile speed and use a Damage Detection System to determine when one of these beam units attacks/damages a new target (in this instance you might be able to get away with the generic "a unit is attacked" event instead of a DDS despite it normally being a horrible idea to use). After that you have two choices:
  1. Create an infinite duration drain life ability for the beam unit that can affect spell-immune targets, and when they find a new target just order them to cast it on that target. This method will show an ability on the command card of the beam unit, no way around that, and the beam units will not be able to move while attacking.
  2. Make your own damage over time system with lightning effects, which will be more effort but enable the units to move while attacking and won't show anything on the command card.
I'm not too good with triggers.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
That's quite a less helpful "help"
I gave you a very specific idea and then explicitly stated which one is easier, and you didn't even try. The trigger is LITERALLY THIS:
  • Events
    • Unit - A unit is attacked
    • -------- BEFORE ANYONE GIVES ME SHIT FOR THIS EVENT: in this case it doesn't matter, since the beam attack should be instant upon entering range anyway --------
  • Conditions
    • Unit type of (attacking unit) equal to YOUR BEAM UNIT
  • Actions
    • Unit - Order (attacking unit) to (Neutral Dark Ranger - Drain Life) (triggering unit)
Persistent Beam v3.2
 
Level 48
Joined
Jul 29, 2008
Messages
9,839
Give the units max projectile speed and use a Damage Detection System to determine when one of these beam units attacks/damages a new target (in this instance you might be able to get away with the generic "a unit is attacked" event instead of a DDS despite it normally being a horrible idea to use). After that you have two choices:
  1. Create an infinite duration drain life ability for the beam unit that can affect spell-immune targets, and when they find a new target just order them to cast it on that target. This method will show an ability on the command card of the beam unit, no way around that, and the beam units will not be able to move while attacking.
  2. Make your own damage over time system with lightning effects, which will be more effort but enable the units to move while attacking and won't show anything on the command card.
Noice tip.

Spellbook?
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
You cant even order units to do so if the spell book isnt disabled.
However, adding it to a spell book is not the only way of adding a hidden ability to a unit.
Ever tried to set the y value of the icon to -11?
(This however crashes for macs, but there was a number (in about minus 2 million) that worked for mac as well.)
 
Level 48
Joined
Jul 29, 2008
Messages
9,839
If you order a unit to use an ability that it has but is inside a spell book, does it work? My comment about not being able to remove the icon kind of stems from drain life being a channeled ability so if you remove/disable it mid cast it'll just stop.
AFAIK. That's kinda the point of Spellbook witchcraft; hidden spells of all kinds.

You cant even order units to do so if the spell book isnt disabled.
Huh, really? Seems counter-intuitive.

Wietlol said:
However, adding it to a spell book is not the only way of adding a hidden ability to a unit.
Ever tried to set the y value of the icon to -11?
(This however crashes for macs, but there was a number (in about minus 2 million) that worked for mac as well.)
Woah, never thought of that. I've never cared about Macs, so I'm good there. xD

Does that work for all abilities?
 
Status
Not open for further replies.
Top