Attacking Spell

SoupNBread

New Member
Reaction score
2
Ok, so I'm having trouble with a spell.
What I want it to do is this. The unit casts the spell, then it takes the hero's Strength (Including Bonuses) and deals that much damage to the enemy.

The current trigger I have isn't working. The spell casts, but no damage is done.

Code:
Swing
    Events
        Unit - A unit Finishes casting an ability
    Conditions
        (Ability being cast) Equal to Swing 
    Actions
        Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (Real((Strength of (Casting unit) (Include bonuses)))) damage of attack type Hero and damage type Normal

Could it be that the ability is based off of Thunder Clap? Would you suggest any other instant spells to use?
 
F

Fame.

Guest
Create an ability based off of storm bolt. (because its a target unit)

then change the animation of the spell.. this little guy right here

Code:
Art - Animation - Attack

delete the missle art, the buff, and the missle speed/homing enable

Code:
Art - Missle Art - NOTHING!
etc.


Now go to your triggers and do this!

Code:
Swing
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Swing 
    Actions
        Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((Real((Strength of (Casting unit) (Exclude bonuses)))) x 5.00) damage of attack type Hero and damage type Force

oh btw if you want your hero to make it look like he is punching the guy make the cast range into 100

Code:
Level 1 - Stats - Cast Range - 100

do this to all your levels

Hopefully this is correct now try it!
 

SoupNBread

New Member
Reaction score
2
Hmmm, I may be stuck with this. I mainly wanted a keyboard only map (no clicking), but I may be forced to use targeted spells. Thanks for the help guys. :)
 

Omni

Ultra Cool Member
Reaction score
37
ok, neither use
-unit starts casting an ability
because that way you can just press the "stop"button and the trigger will run
anyway without the ability really having been cast
(ever stopped a half cast flame strike?)

-unit finishes casting an ability
because depending on the ability used, it will take longer (about 2 secs)
for the trigger to run afer having cast the ability

instead use
-unit starts the effect of an ability
because, the unit is casting it at that moment and cant be stopped anymore
and the trigger will run at the right moment<3
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top