• 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 to apply hero damage as spell?

Status
Not open for further replies.
Level 16
Joined
Oct 31, 2008
Messages
566
I had a problem. Need help. How do I apply a trigger with current hero damage in a spell? I show 2 examples below. If you helped me, I will very thankful for you.

Example:

attachment.php

Example Strike - Level 10
Melee
Instant


It will deals 350% of your hero damage to targeted enemy instantly.

attachment.php

Example Passive - Level 6
Passive


20% chance reflect 150% of enemy damage back to attacking unit.
Increase 200% of enemy damage to your damage. Last 5 seconds.
 

Attachments

  • Ability_hunter_sickem.png
    Ability_hunter_sickem.png
    6.9 KB · Views: 277
  • Ability_hunter_onewithnature.png
    Ability_hunter_onewithnature.png
    5.1 KB · Views: 254
Level 10
Joined
Jul 12, 2009
Messages
321
Because there is no direct way to get the base value of a unit's damage, and because the damage dealt by attacks varies a lot in game (natural randomness in the attack damage, possible criticals/bash, enemy armor type and amount, etc.), unless you keep a tally by triggers of the contributions from all auras, buffs, items, stats, etc. and thus can calculate the base damage from those factors, it's impractical to make an ability like that.

Of course, if you do that, more power to you. :grin:

You might want to consider basing it on an attribute instead of the attack damage, instead.

That said, you could approximate the first ability by adding a critical strike for one attack, and the second by basing it on damage taken, not on the enemy's base attack damage.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Do you know Tuskarr the DotA Hero ???
It uses a 4x damage when a certain condition occurs
IceFrog uses what kind of system to detect Tuskarr's current damage ?
I suppose he uses a tracking damage system for the last damage dealt by Tuskarr ?
And then, applies the 4x current damage as ability ?
 
Level 12
Joined
Apr 16, 2010
Messages
584
Maybe you could store the starting damage of hero to a variable, then when level of hero increases increase that damage...
But with this way you'll need to store each hero damage with another variable.
This might work. Use [self="http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=44516"]this[/self] tutorial to create a perfect formula of creating true damage into variable, there might be something that tells how to calculate damage.
Anyway good luck!
 
Status
Not open for further replies.
Top