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

Detection of damage type?

Status
Not open for further replies.
Level 4
Joined
Jul 22, 2010
Messages
74
You can do damage with triggers.

Is there any way to detect the "damage type"?
like cold, fire, lightning.. ?

( I want to make a "element damage system" smilar to diablo 2 ... :D
or is there something smilar out there? )

so
for example if a

Code:
unit takes damage
   damagetype = fire
       then action ..

? :p
Help please :D
 
Last edited by a moderator:
Level 28
Joined
Jan 26, 2007
Messages
4,789
Blizzard never did anything with the majority of those damage types.
There are only 4 real damage types: Normal, Enhanced, Magic and Universal. The rest is useless.

So no: you cannot detect them. You'll have to create your own elemental system (as Blizzard never created one for Warcraft 3).
Simply create a variable (integer, probably) and set that variable to the elemental type (e.g.: fire is 0, lightning is 1, ice is 2, ...).
 
Level 5
Joined
Nov 7, 2007
Messages
134
If it specifically is damage type you want to fiddle with I can't help you, but with the triggers you can also decide on attack type, and these can be altered via the Gameplay Constants and Interface-thingy (shit, I can't even remember what the Interface-thingy is called xD). So that way you could change those into different elemental types.

Perhaps you meant something entirely different, but I'm saying this anyway.
 
Status
Not open for further replies.
Top