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!
I want to create an ability that deals damage based in target's armor, but I can't find anything like a real or integer for armor in gui and I don't know absolutely nothing about jass.
Would it be possible to damage the unit with physical damage, using a DDS, calculating the reduction and reverting the units health. I tried it once using Bribe's damage engine and it worked really nice, but there are obviously some downsides to it. A damage event will be fired, which usually would not happen, so you have to make sure, that it does no conflict with other triggers.
Some abilities (mana shield, spirit link, spiked carrapace, ...) do not work with this method, but I think you could design your map, so that it still works.
The problem though is, that it's not reliable, because it won't work with etheral units for example.
I guess calculating armor from upgrades/buffs/items/abilities/base armor could work, but it requires a lot of work to store all this data.
GUI can do the same exact thing JASS & vJASS can do. GUI just doesn't have every native readily available in a function and vJASS just makes coding a little more convenient. Neither will introduce brand spanking new natives like memory hack.
It is possible with a damage detection system and using armor formula. It's just a lot more involved than a simple getArmor
Algorithm:
1) Remember unit's HP
2) Set unit to full HP
3) Deal 1 damage with chaos type damage
4) Measure unit's hp difference
5) Set to old HP
6) Calculate armor based on armor formula and damage taken based on percent of 1
I was already trying to create a system, but no success. I tried your idea but I got stuck in the "4) Measure unit's hp difference" then I don't know what I did that crashed the game. Would be asking a lot if you could send a print or something showing of how this trigger should be?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.