• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Ability Triggering On Hit

Status
Not open for further replies.
Level 6
Joined
Jul 3, 2006
Messages
102
I'm generally having problems creating spells that trigger on hit. In this one I want to have something like the s&y maim effect of dota but with trigger.
I want the trigger to start when an enemy unit takes damage, but only from normal attack and not a spell.

Any ideas on how to make this spell apart from using orb of lightning ability?
 
I really have no idea about jass so I cant understand how to make this work.

I made the trigger with the attack-damage detection system, but it requires KaTTaNas Local Handle Variables. I visited a site where KaTTaNa is supposed to be posting his script but I'm not sure which of the code shown there is the one I need.

So can someone point me out to exactly what to do to implement the attack-damage detection engine from here?
 
  • Attack
    • Events
      • Unit - A unit Is attacked
This isn't triggered by spells is it? I'm pretty certain you can just use this. Refer to Attacked unit-Attacking Unit. Spells use
  • Spells
    • Events
      • Unit - A unit Starts the effect of an ability
      • Unit - A unit Begins casting an ability
      • Unit - A unit Stops casting an ability
      • Unit - A unit Finishes casting an ability
 
Well, lets put it this way. He wants his unit to cast a spell sometimes on attack. Lets say your using a damage detection system. Then you would be able to move your unit away before the arrows hits and screw up the skill that is suppose to cast. This is just a funny example: you cast lightning on attack. You shoot an arrow turn your back on the enemy and 5 seonds later a lightning bolt shoots out your butt lol.
 
The easiest thing to do is to use orbs...
Like orb of lightning of slow and etc.
If you don't want to use orbs then use damage detection systems.
 
Last edited:
Status
Not open for further replies.
Back
Top