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

Detecting Damage from Back [Removing Block Chance]

Status
Not open for further replies.
Level 2
Joined
Oct 28, 2010
Messages
14
Title is confusing, but here we go.

So I have this item on my hero that gives him the passive ability "Hardened Skin" that has a 20% chance of proccing and reducing all damage done to him by 100%--so basically, it blocks the attack. The ability is, as was said, attached to the item itself, NOT the hero.

I have this trigger system that detects damage from the back of the unit in a 180-degree angle, dealing the original damage of the unit to the hero if the attacking unit hurts them from behind.

34htovd.jpg


Problem is, because Hardened Skin is attached to the item itself, it sometimes procs even if the attacking unit is hitting my hero from the back, negating all the damage.

I'm requesting that if the hero is attacked from the back, that hardened skin cannot proc whatsoever. Otherwise, everywhere else is good.

My only idea of how to achieve this is to replace the current item with a replica that just doesn't have the Hardened Skin ability attached to it when the unit is attacked, although I have no idea how to implement that smoothly, as well as not knowing if that is the only/right solution.
 
Don't use item ability in the first place. Let the item by just a dummy with text.

Its ability should have been triggered from the very begining, checking the angle between xy of attacker and xy of attacked.
This way, you won't be needing to manipulate item at all, just check if it's being carried by given unit.

And as suggested, such things are best done with help of DDS.
 
Status
Not open for further replies.
Top