• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Damage Detection Questions

Status
Not open for further replies.
Level 3
Joined
Sep 9, 2009
Messages
658
Let's say I wanted to make a spell where you make a barrier around yourself that blocks incoming damage. How do I do that if I'm using Weep's GDD Engine?

I tried it first by increasing the damaged unit's life by twice the amount of the damage taken only to realize that's not the best way to do it. The unit still takes damage from the first attack and still dies when it takes damage greater than it's max life.
 
Level 10
Joined
Jun 6, 2007
Messages
392
As far as I know, GDD doesn't have support for blocking damage (although it can be done). I'd suggest you to use Bribe's damage engine instead. With it you can simply use the damage modifier event and set the damage to 0. (Don't forget to copy that cheat death ability)
 
Level 3
Joined
Sep 9, 2009
Messages
658
If I understand what your question is than can't you just base it off divine shield?

Because then that would make the unit invulnerable. I'm trying to make a spell like the antimagic shield (new) which can block a set amount of damage.

As far as I know, GDD doesn't have support for blocking damage (although it can be done). I'd suggest you to use Bribe's damage engine instead. With it you can simply use the damage modifier event and set the damage to 0. (Don't forget to copy that cheat death ability)

I'll check it out. I haven't tried that system out yet.
 
Status
Not open for further replies.
Top