I want to create an item that blocks incomming damage and throws it back to the attacker. I have done the blocking part with combat damage response. Does anyone know how to do the backthrowing part?
I tried to do it with triggers, but the problem is that if the item blocks the damage i cant detect that damage was done with triggers, so i have no starting point for my "Throwdamageback" trigger.
You could heal the unit right afterwards, the main issue then is how you interact with lethal blows and especially attacks that deal more damage than your max health.
I assume this item is intended for heroes, meaning there won't be many of these in play at a time. In that case you could add a Damage Response with the "lethal" flag checked which heals the owner to full health, combined with a trigger that stores the current health after the damage has been handled. This still won't solve one-hit kills, and it will mess with attacks that deal damage based on target vitals (especially League Of Legends style %current health damage); There are data solutions for negating lifesteal though.
I want to create an item that blocks incomming damage and throws it back to the attacker. I have done the blocking part with combat damage response. Does anyone know how to do the backthrowing part? I tried to do it with triggers, but the problem is that if the item blocks the damage i cant detect that damage was done with triggers, so i have no starting point for my "Throwdamageback" trigger.
I Have started working on my map again and still would like to know how this works, so if someone has found out how to do it by now please let me know
Sounds like a standard thorns aura to me. I believe there are even data assets for that.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
The standart thorn aura doesnt block the damage. My problem is that you cant throw back damage with triggers if the damage never occured.
You could heal the unit right afterwards, the main issue then is how you interact with lethal blows and especially attacks that deal more damage than your max health.
I assume this item is intended for heroes, meaning there won't be many of these in play at a time. In that case you could add a Damage Response with the "lethal" flag checked which heals the owner to full health, combined with a trigger that stores the current health after the damage has been handled. This still won't solve one-hit kills, and it will mess with attacks that deal damage based on target vitals (especially League Of Legends style %current health damage); There are data solutions for negating lifesteal though.
For fatal you could always use a mimic of the attacking effect x number of % if whole numbers.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
im fairly sure triggering is the wrong way to go imo i would look more towards using the data editor instead thats my 2 cents