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

[Spell] scale damage spell with targeting point

Status
Not open for further replies.
Level 6
Joined
Jan 2, 2015
Messages
171
Hi, i know how to scale damage of spell that targeting a unit and spell without target via trigger. but does anyone know how to increase damage from spell like shockwave when unit hp is lower? i use formula base spell damage* (1 - (current hp/max hp)). Any idea how to scale this showckwave damage via trigger?
 
Level 12
Joined
May 22, 2015
Messages
1,051
There are a bunch of ways to do this:
1) Projectile system - you can then build the shockwave ability using a custom projectile. You can make it do anything you want when it hits units.
2) Damage detection system - you can use a special dummy unit to cast shockwave, so when damage is dealt by a special dummy, you know it is from your special shockwave. You can modify the damage as you like at that point.
3) One-off piece of code that will likely be messy. It would basically be code to make, specifically, one projectile to be used for this one spell.

I don't think there is a particularly easy way to do this.
 
Status
Not open for further replies.
Top