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

Immune to Chaos Damage? Possible?

Status
Not open for further replies.
Level 24
Joined
Jun 26, 2020
Messages
1,928
If you are in latest versions you can use Damage Engine 5.A.0.0 to you can compare the integer value DamageEventAttackT:
  • Inmune to chaos
    • Events
      • Game - PreDamageEvent becomes Equal to 1.00
    • Conditions
      • DamageEventTarget Equal to <Your unit>
      • DamageEventAttackT Equal to ATTACK_TYPE_CHAOS
    • Actions
      • Set VariableSet DamageEventAmount = 0.00
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,876
You could make one of the Armor Types immune to Chaos damage:
1692663937749.png


Also, to add to what Herly said, you don't necessarily need Damage Engine:
  • Damage Event
    • Events
      • Unit - A unit Takes damage
    • Conditions
    • Actions
      • Custom script: if BlzGetEventAttackType() == ATTACK_TYPE_CHAOS then
      • -------- DO STUFF --------
      • Custom script: endif
It's generally much smarter to use Damage Engine since it has so many useful features. However, if you're using this Damage Event sparingly then Damage Engine might be overkill as it comes with a decent bit of overhead and many variables.
 
Status
Not open for further replies.
Top