Spray-
Member
- Reaction score
- 1
Yo, ive got a problem with my trigger, it Should work by my calculations but somehow doesnt, anyone able to shed some light on this problem?
This should heal him when attacking an unit by his strength x level of the ability, it shows the special effect but does not heal.
Thanks in advance for any help!
EDIT: Silly mistake i just found out i had a integer set to attacked/attacking unit on the wrong trigger of both spells, nevermind ^^
Code:
Unit - A unit Is attacked
(Attacking unit) Equal to Paladin 0080 <gen>
(Level of Grace for Paladin 0080 <gen>) Greater than or equal to 1
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 5) Equal to 1
Then - Actions
Unit - Set life of Paladin 0080 <gen> to ((Life of Paladin 0080 <gen>) + ((Real((Strength of Paladin 0080 <gen> (Include bonuses)))) x (Real((Level of Grace for (Attacked unit))))))
Special Effect - Create a special effect attached to the chest of Paladin 0080 <gen> using Abilities\Spells\Human\Heal\HealTarget.mdl
Else - Actions
Do nothing
This should heal him when attacking an unit by his strength x level of the ability, it shows the special effect but does not heal.
Thanks in advance for any help!
EDIT: Silly mistake i just found out i had a integer set to attacked/attacking unit on the wrong trigger of both spells, nevermind ^^