- Joined
- May 15, 2009
- Messages
- 192
Hello fellow Hive members. Oddly it has been a while since I asked for help in creating a trigger/ability for my map. However, I am now in need of some help.
This time around I've tried to create a custom shield spell(Like anti-magic shell, but this should work for all kinds of damage) that will absorb a set amount of damage per level.
Ofc I needed to see how much damage was dealt to the hero(in order to "heal" it) so I found myself using the (Unit takes damage) event. I heard some talk saying that the event was triggered before the damage was dealt - or something, and that might be my problem. But here is the triggers.
This time around I've tried to create a custom shield spell(Like anti-magic shell, but this should work for all kinds of damage) that will absorb a set amount of damage per level.
Ofc I needed to see how much damage was dealt to the hero(in order to "heal" it) so I found myself using the (Unit takes damage) event. I heard some talk saying that the event was triggered before the damage was dealt - or something, and that might be my problem. But here is the triggers.
-
Death Shroud Apply
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Death Shroud
-
Actions
- Set DeathShroud_Value = ((((Level of Death Shroud for (Triggering unit)) x 100) x (Integer(0.70))) + 30)
-
Events
-
Death Shroud Damage
-
Events
- Unit - Underworld Knight 0043 <gen> Takes damage
-
Conditions
- ((Triggering unit) has buff Death Shroud ) Equal to True
-
Actions
- Set DeathShroud_Value = (DeathShroud_Value - (Integer((Damage taken))))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- DeathShroud_Value Greater than 0
-
Then - Actions
- Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (Damage taken))
-
Else - Actions
- Unit - Remove Death Shroud buff from (Triggering unit)
-
If - Conditions
-
Events