- Joined
- Feb 24, 2018
- Messages
- 71
Hello there! I'm trying to make an ability where my hero has x chance on melee hit to deal 5% of target's maximum hp as damage on lvl 1 / 10% on level 2 / 15 % on level 3. But it does a lot more than that. Is something wrong with the trigger ?
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-

If - Conditions
-


(Level of Obliterate for GDD_DamageSource) Greater than 0
-
-

Then - Actions
-


Set unit[1] = GDD_DamageSource
-


Set unit[2] = GDD_DamagedUnit
-


Trigger - Run SETTINGS FOR OBLITERATE <gen> (checking conditions)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Random integer number between 1 and 100) Less than or equal to 50
-
-



Then - Actions
-




Unit - Cause unit[1] to damage unit[2], dealing real[12] damage of attack type Normal and damage type Normal
-




Special Effect - Create a special effect attached to the chest of unit[2] using Abilities\Spells\Undead\FrostArmor\FrostArmorDamage.mdl
-




Special Effect - Destroy (Last created special effect)
-
-



Else - Actions
-
-
-

Else - Actions
-
-
SETTINGS FOR OBLITERATE
-

Events
-

Conditions
-

Actions
-


-------- DMG --------
-


Set real[12] = (0.05 x (Max life of unit[2]))
-


Set real[12] = (real[12] x (Real((Level of Obliterate for unit[1]))))
-
-
