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

How do i make "Attack Damage" affect a spell?

Status
Not open for further replies.
Level 14
Joined
Mar 4, 2009
Messages
1,156
you can use action "unit - unit target" for that
but the problem is to detect damage

how long is the cooldown for that spell?
how much of heroes that have that ability could be in your map?
(it would be good if only one max for each palyer)
is it ok if delay is 0.5 - 1 second? (depends how fast attack your hero has)
while that 0.5-1 seconds your hero cannot do anything else or the damage detection fails

anyway i could make it so it happens after 0.5...
 
Level 4
Joined
Feb 23, 2009
Messages
99
White-Lion, what kind of spell do you actually want? Something like DotA's Omnislash or Blink Strike?
 
Level 7
Joined
Dec 18, 2008
Messages
400
sorry didnt see thoose last comment :p

I was just wondering how the trigger would look like.
The spell should be very simple just the hero damagin the target dealing X*Damage
 
Level 11
Joined
Jun 21, 2007
Messages
505
So you need that X set to the Hero's damage he deals? And do you know that damage is often random?

There's no certain way.
But the idea of seeing how much damage the hero often does, and storing that damage to a variable to use in the spell, is pretty suitable.

Maybe you could use Mirror Image ability - set Data - Damage dealt to 100%
Then you force the hero to cast Mirror Image ability to create his clone, then you teleport his clone to the target of the spell, and order him to attack?
 
Status
Not open for further replies.
Top