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

[Trigger] attack spell trigger

Status
Not open for further replies.
Level 3
Joined
Dec 17, 2007
Messages
28
i want a spell at position of attack order named attack that will attack position infront of casting unit...

basicly I want an attack spell
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
change Animation field to attack

Edit: Nvm I got what you mean
pick units in front of caster and damage them
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
hmm w8 HEY ELEANDOR WE NEED YOU HERE
w8 until he comes

What foolish mortal summoned me!

:wscrolleyes:

Ofcourse it depends on what spell you use as a dummy, but I'm assuming it's a no-target spell.

  • Events
    • Unit casts an ability
  • Conditions
    • Ability being cast = "Attack"
  • Actions
    • Set "TempPoint" = Position of casting unit
    • Set "TempPoint2" = Temppoint offset by 100 towards (facing of casting unit) degrees
    • Set "TempUnitGroup" = Units within 100 of TempPoint2
    • Unit - damage units in TempUnitGroup
    • call RemoveLocation (udg_TempPoint)
    • call RemoveLocation (udg_TempPoint2)
    • call DestroyGroup (udg_TempUnitGroup)
If that's what you want...
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
eleanodor that thing will damage allies, you should make "for group".

i want a spell at position of attack order named attack that will attack position infront of casting unit...

basicly I want an attack spell
He never asked an attack for enemies only, so I never considered making one that only attacks enemies.
 
Status
Not open for further replies.
Top