HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Damage Type

01-09-2006, 01:30 PM#1
Belphegor666
Trigger:
Actions
Unit - Order (Triggering unit) to damage (Triggering unit) for 500.00 using attack type Chaos and damage type Sonic.

What are these damage types and how do they effect units. For example will sonic do more damage to buildings or something simmilar ?
01-09-2006, 01:54 PM#2
Vexorian
actually there are many names of damage types but there are only 4 kinds of damage types.

magical Most of the damage types make the damage be magical, cause more damage to etherial units, no damage to spell inmune or vulnerable units
phisical Few of the damage types make the damage be phisical, cause no damage to etherial or vulnerable units
universal I think only the 'universal' damage type works for this, cause more damage to etherial units, and able to damage spell inmune too. But doesn't affect invulnerable units
super I think only the 'unknown' damage type does this , it always works no matter if the unit is invulnerable

For the record: fire, cold are magical and Slow poison, Demolish are phisical those are the only ones I remember as being phisical, most of the other are magical like lightning for example.

But in game there is no difference between fire and lightning, both are just magical damage
01-09-2006, 05:01 PM#3
Belphegor666
Can those be programed (JASS) so that sonic for instance deals additional damage to giant etc... And then give units that damage type?
01-09-2006, 07:07 PM#4
Naakaloh
Well, you could write a function DealSonicDamage or something that deals a certain amount of damage modifies it by a certain factor or amount depending on the type of unit or unit classification, but it depends on what you're doing; if you only need if for one effect, I wouldn't bother with it and just have the condition as part of the trigger, but if you're planning to make a system or something, it might be worth it. As Vexorian said, changing the value between fire, cold, sonic, lightning, or whatever other magical type doesn't really have any implication other than having a different. Not as it is anyway.
01-11-2006, 01:37 PM#5
Mystic Prophet
Well. If you want to deal adittional damage to a certain unit, I'd use custom attack types. such as hero piercing etc. and a custom armor type. So you could have giant armor and whatever attack type you wanted to deal extra damage to it.

I don't really think damage types can be edited too effectively, but i could be wrong. Better off going with attack types.