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

Reduce damage taken by a %

Status
Not open for further replies.

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
(IDK if I already asked this before, I can't find the thread, so probably not. But...)... How to ? Should I use Damage Detection system ? If yes, how could I do this ?

EDIT: Plz, no Jass or vJass (for now).
 

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
Yes, I want for all kind of damage, and as you said I have to use damage detection. but how can I use DD to do this ?

And I use Weep's DDS. For no reason I didin't like bribe one, and I hate Jass vJass, and Weep is jass, and bribe isn't. (wtf, i'm insane)
 

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
Yeh... I know... I should use DDS... I have DDS, but how can I use DD to reduce the damage taken by %? ... ?
 
Using Bribe's, it would be something like this (untested):
  • Damage Reduction
    • Events
      • Game - DamageModifierEvent Equal to 1.00
    • Conditions
      • DamageEventTarget Equal to <Your Unit>
    • Actions
      • Set DamageEventAmount = DamageEventAmount - (DamageEventAmount * 0.40)
For example, that would reduce damage by 40%. Let's say <Your Unit> takes 250 damage. 40% of 250 is 100, so the end result is 250 - (0.4*250) = 250 - (100) = 150.

In the end, the unit will take 150 damage instead of 250 damage (a 40% damage reduction). Try it out! You'll be surprised at how powerful these DDS systems can be (and all the fun you can have with them). Read through the "How to use" part, and take a look at the demo map.

If this is for a spell, you can add the unit to a unit group, and then change the condition to check if the unit is in that unit group. When the spell/buff is over, just remove the unit from the unit group and it is all good to go!
 
  • Like
Reactions: hdm
If you want it to be an ability on the unit itself, you can use Berserk and put a negative number in "Damage Taken Increase"

If you want it to be an ability that's cast on a unit however, you'll need to use what pred1980 suggested.

This nullifies all damage taken even if the field value is above -1.00. I've tried it before.
 
Status
Not open for further replies.
Top