• 🏆 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 reduction point, not percent?

Status
Not open for further replies.
Level 3
Joined
May 24, 2008
Messages
53
Well, i need to make a system to reduce damage based on armour like this:
37 armor = 37 damage reduction
NOT PERCENT
i tried changing some stuff but didn't make it xD
how can i do something like that??
 
Level 18
Joined
Mar 7, 2005
Messages
824
If there's an option to disable normal Wc3 Armor System with Percentage Damage Reduction (should be under Advanced-Gameplay Constants), then you might trigger that "point" Dmg reduction. Like taking the damage and removing the armor points from it.

Saw some Armor System in the Spell Section, but dunno if this could help ^^ just want to mention it :)
 
Level 3
Joined
May 24, 2008
Messages
53
There is the Combat - Armor Damage Reduction Multiplier
but i don't know how does it work...
the armour points should be the amount of damage it reduces..
and it depends on the items the unit has...
the amount of armour should always stay the same, if the hero stays with the same items..
for example: i have a rope with +5 def
and a helm with +15 def
also a chestpiece with +25 def
all adds up 45 def..
when a unit takes dmg, reduce the dmg done to it by 45 points...

THanks!
 
Level 11
Joined
May 26, 2009
Messages
760
I can only think of fully triggered systems. Either make a custom attack system and remove the normal attack. Or you could set the damage of units to 0 or 1 and then trigger the rest, but would not be very aesthetically attractive.

Yours,
Chizume
 
Level 3
Joined
May 24, 2008
Messages
53
Maybe if i can get to "stop" the dmg done to that unit and then add the dmg i whant based on stats and stuff..
but how can i do the first part? :/
 
Level 11
Joined
Sep 12, 2008
Messages
657
no 1 bothers ehh..?
there is a armor detection system made..
its not 100% percent leak/bugless.. but it does caculate item defence, changed defence, etc. all you gotta do is do life before attack, life after attack (or damage detection system), and do it - armor variable from the armor system.. if you want it heres the link:

http://www.hiveworkshop.com/forums/spells-569/armor-system-v-1-1-a-172682/
 
Level 3
Joined
May 24, 2008
Messages
53
The maximum damage reducted is 80 or so...
so i guess it should work..
but how can i upgrade it depending on the armour the hero has?
because there are lots of armours with +1, +2, +4, etc..
also helms and shields.
 
Level 6
Joined
May 5, 2008
Messages
210
You could manually add hardened skin whith many levels to units, for exampls 45 means level 45 hardened skin. To hide icon make in in a spellbook ( if ya dan't know hoe look it up in tutorial section). There isn'T a maximum damage anyway, if the editor resets you numbers, just ctrl click on the ability.
In jass you are able to find amount of armor, in GUI you have to listen al abilitys buffs and base armor up to get armor(rly anoying)
 
Just set value to 0!
attachment.php
 

Attachments

  • untitled.PNG
    untitled.PNG
    87.9 KB · Views: 284
Status
Not open for further replies.
Top