• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Important question about GDD (how to detect ATTACK)

Status
Not open for further replies.
Level 18
Joined
Jun 2, 2009
Messages
1,276
Hello everyone. I have a skill like this in my map. It was working without any issues since today. When hero casts spell or uses item, this skills works for the spell and item because i have to adds something like "GDD damage source is ATTACKING" is there a way to prevent this issue?


  • Viceclaws
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
      • (Level of Viceclaws // for GDD_DamageSource) Greater than 0
      • (Facing of GDD_DamageSource) Greater than or equal to ((Facing of GDD_DamagedUnit) - 55.00)
      • (Facing of GDD_DamageSource) Less than or equal to ((Facing of GDD_DamagedUnit) + 55.00)
      • (GDD_DamagedUnit is A structure) Equal to False
      • (GDD_DamagedUnit is Mechanical) Equal to False
    • Actions
      • Trigger - Turn off (This trigger)
      • Set Viceclaws_Damage_Real = (80.00 x (Real((Level of Viceclaws // for GDD_DamageSource))))
      • Unit - Cause GDD_DamageSource to damage GDD_DamagedUnit, dealing Viceclaws_Damage_Real damage of attack type Spells and damage type Sonic
      • Special Effect - Create a special effect attached to the chest of GDD_DamagedUnit using Objects\Spawnmodels\Human\HumanBlood\HumanBloodKnight.mdl
      • Special Effect - Destroy (Last created special effect)
      • Trigger - Turn on (This trigger)
 
GDD is? It sounds like some sort of system but all details about that seem to be lacking from this thread...

Does the item use the same ability? If so consider making it a different ability and testing the level of that.
Here is the system. GUI-Friendly Damage Detection v1.2.1
Still we haven't tested it with items but we don't need the test because it has Shadow Strike ability and it deals extra damage from behind.
But i have created this spell for the "backstab with auto attacks" not with the spells.
 
Use a more modern damage detection system. The new natives give much better results and I think they support detecting ability damage.

Otherwise a work around for such legacy system would be to detect when the ability is cast and only enable the on damage trigger for the cast sequence. This might not be perfectly reliable as other damage sources during the time might trigger the on damage actions incorrectly but for most cases is good enough.
 
Use a more modern damage detection system. The new natives give much better results and I think they support detecting ability damage.

Otherwise a work around for such legacy system would be to detect when the ability is cast and only enable the on damage trigger for the cast sequence. This might not be perfectly reliable as other damage sources during the time might trigger the on damage actions incorrectly but for most cases is good enough.
Probably. But i am looking for the opposite if it is helps let me explain more.
I want to make it work if only hero is right clicking (attacking, auto attacking, a left click etc et) but NOT with the spells. Maybe it is possible with this system and still i couldn't find it yet..
 
Here's a Condition that may work in response to that Event:
  • (Damage From Normal Attack) Equal to True
But you should use Bribe's Damage Engine if you want a modern system that offers full control over everything damage event related.
 
Status
Not open for further replies.
Back
Top