• 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 can I increase spell damage based on hero level?

Status
Not open for further replies.
Level 8
Joined
Jul 17, 2004
Messages
283
I want to have a "Magic Power" type ability on my heroes, where their spells will increase based on example: Storm Bolt + Magic Power = DMG. How can I do this?
 
damage = base damage + ( level * increase damage)

The above is a simple formula used for increasing damage based on the level of the ability for that unit.

base damage is the amount of damage that the spell starts with. Lets say 100.
increase damage is the damage to increase per level. So lets say 20.
So the formula looks like this.
damage = 100 + (level * 20)

level 1 damage = 120
level 2 damage = 140
level 3 damage = 160
and so on.
 
Level 8
Joined
Jul 17, 2004
Messages
283
deathismyfriend, it isn't my own spell. It's the default Storm Bolt ability.

Veritas 117, so if I were to use that DDS, how would I go about detecting the damage from Storm Bolt and then adding another amount to it?
 
Level 14
Joined
Nov 17, 2010
Messages
1,266
You would have to follow the example he has given. I believe it is along the lines of

Event - Damage Event becomes equal to 1.00

Actions - If, Then, Else
If - DamageType equal to SPELLS
Then - set amount = amount + extra damage

Take a look at the example map and you should have a better idea. I'm sure there are other things you would have to add like the unit that is using the spell and I'm not sure if there is a way to differentiate which spell it is. Feel free to post in the spell's thread or as looking_for_help. He is very helpful.

The only reason I would suggest this method is because I think you would rather have the damage occur when the storm bolt hits rather than as soon as you cast the spell. If you don't care about that then you can simply trigger the entire spell.
 
Status
Not open for further replies.
Top