- Joined
- Oct 30, 2005
- Messages
- 51
Hi all. . .i created this spell called block. But it aint working very right to me. The whole idea is basically, a unit gets attacked and he blocks the attack. The attack does not deal any damage to him. Here is my trigger:
Event:
A unit is attacked
Condition:
Attacked unit equal to captain
Actions:
If-
All conditions are true (Random unit between 0-100 is less than or equal to 80)
Then do-
Actions:
Wait 0.2 seconds
PLay attacked unit's defend animation
wait o.25 seconds
rest attacked unit's animation
Else-
Do nothing
Here's my problem. i dont know what action to do to prevent the blocking unit's health from going down. I thought of adding in under actions: set attacked unit's life to (attacked unit's life) + (damage taken)
but it doesnt work. Can anyone help?
Event:
A unit is attacked
Condition:
Attacked unit equal to captain
Actions:
If-
All conditions are true (Random unit between 0-100 is less than or equal to 80)
Then do-
Actions:
Wait 0.2 seconds
PLay attacked unit's defend animation
wait o.25 seconds
rest attacked unit's animation
Else-
Do nothing
Here's my problem. i dont know what action to do to prevent the blocking unit's health from going down. I thought of adding in under actions: set attacked unit's life to (attacked unit's life) + (damage taken)
but it doesnt work. Can anyone help?