• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Recode Death & Decay damage

Status
Not open for further replies.
Level 13
Joined
Aug 19, 2014
Messages
1,111
Hello guys is it possible to recode the damage of the Death & Decay ability? Like turn its damaged into piercing, normal, siege etc. If so can someone show me how? Also what kind of damage does default WC3 spells do?
 
Level 21
Joined
Nov 4, 2013
Messages
2,017
Also what kind of damage does default WC3 spells do?

Uhm... spells damage? It's a whole category by itself which normally deals 100% to all armours except on heroes which is just a 75% and divine which is just a mere 5%.
As for your main question, you can change the damage into piercing using triggers but I don't know how to pick the units within death and decay :/ I'm unable to pick the units in the AoE of a skill (yeah, those skills with a circle before you cast them).
 
Level 12
Joined
May 22, 2015
Messages
1,051
You would have to redo the whole spell with triggers. Ones like these are sort of complicated since you have to keep track of a bunch of variables over time (can get messy with GUI if you are not used to it).

If you use JASS, you could use a timer that damages all the units in the area every interval as long as the hero is still channelling the spell. You calculate the damage you need to deal based on each unit's maximum health and then deal that much damage with the damage type you want. You would have the radius in the timer function and you would just have to make it match the spell's radius.

In GUI, you could build it with two triggers. One to check when a unit casts the spell and another one to do the periodic effect. It would work basically the same as the JASS version except you would have to keep track of all the units casting it properly so that you don't break it when lots of units are casting it.
 
Status
Not open for further replies.
Top