Missle (Line) and Artillery (Line)

Status
Not open for further replies.
Level 6
Joined
Aug 12, 2007
Messages
201
I have a unit I want to be able to hit with it's basic attack all enemy units in a line. Of course the first thing I thought of was this weapon type, but for some reason I can't get it to function the way I imagine the attack was intended to function. What exactly do these weapon types do and how do I make my intended attack work?

EDIT: I've come to the understanding that this cannot be done with a simple attack, but with triggers. Say every time it attacks, instead of attacking, it casts a shockwave at the target enemy. My only qualm about this is while it 'works', it also looks incredibly ugly and hacked together in that the unit will have a mana-less shockwave on his que-card, and his own personal attack damage will read as very little or nothing at all. Is there any way to hide the ability while still letting him cast it via triggers, preferably without creating a dummy but if that is the only way I am not completely adverse to it, as for his own damage however I'm not sure how to make it appear he does say 60-70 damage but not actually ever do the damage as the damage should be dealt via the Shockwave. If he really did do that damage, his target of attack would take twice as much damage as anyone else.
 
Level 10
Joined
Feb 22, 2008
Messages
619
First thing I would do would be to create a new unit, make it's art the missle you want, when the attacking unit attacks it cancels attack and creates this unit at the attacking unit and orders the last created unit to the attacked unit, also you should give the unit the immolation ability (edited a whole bunch including buffs) then the unit will be like a missle, the only problem is is that it's a unit. If you don't like that idea get Jass, that will do it for sure, and if you want a dummy spell casting maybe you should do crushing wave. Sorry if this wasen't what you wanted and sorry if it doesn't help you but I tried.
 
Level 6
Joined
Aug 12, 2007
Messages
201
Thanks DeadZero, I'll probably go with a Dummy in the end as I've done them before with reasonable success.
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
Is there any way to hide the ability while still letting him cast it via triggers

There is. And it is very simple. Just do this:

This trigger disables ''Shockwave'' for all players. Use this if your event isn't said below.
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • Player - Enable <Shockwave> for (Player((Integer A)))
    • -------- --------
    • -------- --------
    • -------- Your Actions --------
    • -------- --------
    • -------- --------
      • Do Multiple ActionsFor each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Player - Disable <Shockwave> for (Player((Integer A)))
If your event is ''Unit - A Unit Finishes/Begins/Starts an Effect of Ability'' do this:

  • Actions
    • Player - Enable <Shockwave> for (Owner of (Triggering unit))
    • -------- --------
    • -------- Your Actions --------
    • -------- --------
    • Player - Disable <Shockwave> for (Owner of (Triggering unit))
But if your event is ''Unit - A Unit is Attacked'' do this:
  • Actions
    • Player - Enable <Shockwave> for (Owner of (Attacking unit))
    • -------- --------
    • -------- Your Actions --------
    • -------- --------
    • Player - Disable <Shockwave> for (Owner of (Attacking unit))
 
Status
Not open for further replies.
Top