[Trigger] [Damage Type] Variable in Conditions

Status
Not open for further replies.
Level 2
Joined
Aug 22, 2009
Messages
19
If anyone can tell me in which ''condition'' type can I use [Damage Type] Variable? I cant seem to find it.. For Example in trigger:
_______________________________________________
Event: Unit Takes Damage
Condition: Damage source equals to Whatever_Unit
Action: Does something, isnt important for the example
_______________________________________________
I want to putt out that damage type of the damage source is physical damage and not magic or spell, so can anyone tell me how to make that kind of condition? In GUI ofcourse..
 
I have been looking for it too and I guess the only way would be to use a custom damage type detection like what Dr Super Good says.

I think basically you have a variable array (or maybe even just a local variable though you would need to set it every time the trigger runs) called damagetype and then you set the value for each unit in the map and then you can use that variable for your conditions. With this damage types are needed to be custom( you set them and not use the default damage types).

example:

Damagetype[Unit1] = Normal
Damagetype[Unit2] = Flame
etc.....

-->I just thought of this, I haven't tried it yet so I don't think if it will work or how to customize it.
 
If you're referring to
  • Unit - Cause (Triggering Unit) to damage (Picked Unit) for 500.00 of attack type (Normal) and Damage Type (<THIS>)
Then as far as I know, that part of the system wasn't implemented in the editor. As such, the damage type is completely non-existant and as such nothing detects it.

Adiktuz has a good method though by using Array Variables to make up your own damage types.
 
Status
Not open for further replies.
Back
Top