Right - and for the custom critical strike (and/or evasion):
If they shall be based on the normal damage a unit does, use the normal critical strike (even has implemented evasion :O ). If not, i don't know what you mean.. you could do something like
If random integer number from 1 to 5 equal to 1
Then do *damage* x 2
-> 20% chance to hit the enemy for double damage
Problem: i can't figure out how to detect the damage a unit does (use the searchfunction)
Thx for trying... I think there is really no function to detect damage.
GetEventDamage()
, which responds to event EVENT_UNIT_DAMAGED
.