• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Spell] Breath of fire style ability

Status
Not open for further replies.
Level 4
Joined
May 11, 2020
Messages
43
I want to make an ability that works similar to breath of fire but deals extra damage (preferably over time) based on the caster's max hp amount. I just can't quite tell how this ability functions and how i should go about implementing the effects so any help will be appreciated
 
For non-damage over time it's quite simple: [Spell] - Making custom shockwave and custom stampede with hero attribute as damage
See Devault's first post for an example of how it can be done.

DoomBlade's first post in that thread shows a different approach using a Damage Engine, which is what I suggest if you really wanted the damage over time effect.

For damage over time you can use a simple Periodic trigger that picks through a Unit Group and periodically damages them. In order to determine how much damage should be dealt you can use Unit Indexing to store the damage amount to the target or a Hashtable for a similar effect. This would be used in conjunction with the Damage Engine.

So when a unit takes damage -> if Damage comes from your ability -> Add the damaged unit to the damage over time Unit Group, etc.

If you want the damage over time to stack then you need to use Dynamic Indexing.
 
Last edited:
Alternatively in the lastest versions you can change ability stats ingame by trigger. If you use Breath of Frost(Ice?) as a base instead that always deals damage over time (without drunken slur)

Then you could either periodically change it's stats by trigger or change them on cast - you can also change ability tooltips ingame too if you wanted to update that at all

Depends if you want to trigger the ability or trigger the abilities stats really
 
I see, thank you both, i didn't realize that the (neutral hostile) breath of fire also only triggers on targets with the other buff so that confused me
 
Status
Not open for further replies.
Back
Top