- Joined
- Mar 8, 2009
- Messages
- 975
Edit: Updated.
alright, the problem with my passive mana Shield, is that the trigger happens before the damage is dealt, so when the target unit has full hp, bot life and mana gets damaged.
I'm trying to make it to heal after the damage is done only IF the target unit has full hp, but it doesnt works :/
here are my actual triggers:
alright, the problem with my passive mana Shield, is that the trigger happens before the damage is dealt, so when the target unit has full hp, bot life and mana gets damaged.
I'm trying to make it to heal after the damage is done only IF the target unit has full hp, but it doesnt works :/
here are my actual triggers:
-
Faith Protection 1
-
Events
- Game - GDD_Event becomes Equal to 0.00
-
Conditions
- (GDD_DamagedUnit has buff Faith Protection ) Equal to (==) True
-
Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Life of GDD_DamagedUnit) Equal to (==) (Max life of GDD_DamagedUnit)
-
Then - Actions
- Trigger - Turn on Faith Protection 2 <gen>
-
Else - Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GDD_Damage Less than or equal to (<=) (Mana of GDD_DamagedUnit)
-
Then - Actions
- Unit - Set life of GDD_DamagedUnit to ((Life of GDD_DamagedUnit) + GDD_Damage)
- Unit - Set mana of GDD_DamagedUnit to ((Mana of GDD_DamagedUnit) - GDD_Damage)
- Special Effect - Create a special effect attached to the origin of GDD_DamagedUnit using Abilities\Spells\Human\Defend\DefendCaster.mdl
- Special Effect - Destroy (Last created special effect)
-
Else - Actions
- Unit - Set life of GDD_DamagedUnit to ((Life of GDD_DamagedUnit) + (GDD_Damage - (Mana of GDD_DamagedUnit)))
- Unit - Set mana of GDD_DamagedUnit to 0.00
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Faith Protection 2
-
Events
- Time - (Create a periodic One-shot timer lasting 0.00) expires
- Conditions
-
Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GDD_Damage Less than or equal to (<=) (Mana of GDD_DamagedUnit)
-
Then - Actions
- Unit - Set life of GDD_DamagedUnit to ((Life of GDD_DamagedUnit) + GDD_Damage)
- Unit - Set mana of GDD_DamagedUnit to ((Mana of GDD_DamagedUnit) - GDD_Damage)
- Special Effect - Create a special effect attached to the origin of GDD_DamagedUnit using Abilities\Spells\Human\Defend\DefendCaster.mdl
- Special Effect - Destroy (Last created special effect)
-
Else - Actions
- Unit - Set life of GDD_DamagedUnit to ((Life of GDD_DamagedUnit) + (GDD_Damage - (Mana of GDD_DamagedUnit)))
- Unit - Set mana of GDD_DamagedUnit to 0.00
-
If - Conditions
- Trigger - Turn off (This trigger)
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
well, i made this simple trigger to make a Passive Mana Shield.
I think the triggers are right, but it doesnt work >_<
if its helps, the conditions works because the Special Effect is played, but none mana is removed never, nor the damage gets reduced :/
i hope you can help me fixing it, thanks in advance
I think the triggers are right, but it doesnt work >_<
if its helps, the conditions works because the Special Effect is played, but none mana is removed never, nor the damage gets reduced :/
i hope you can help me fixing it, thanks in advance
-
Faith Protection 1
-
Events
- Unit - A unit Is attacked
-
Conditions
- ((Attacked unit) has buff Faith Protection ) Equal to (==) True
-
Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Damage taken) Less than or equal to (<=) (Mana of (Attacked unit))
-
Then - Actions
- Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) + (Damage taken))
- Unit - Set mana of (Attacked unit) to ((Mana of (Attacked unit)) - (Damage taken))
- Special Effect - Create a special effect attached to the origin of (Attacked unit) using Abilities\Spells\Human\Defend\DefendCaster.mdl
- Special Effect - Destroy (Last created special effect)
-
Else - Actions
- Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) + ((Damage taken) - (Mana of (Attacked unit))))
- Unit - Set mana of (Attacked unit) to 0.00
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Last edited: