Warcraft III resources & community, 2003–2006 · archived

Block

4 posts
#1

Block

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?
#2
With unit is attacked event you can NEVER do that spell.
You need to make a spificic unit is damaged event when the captin is created and simplaly add real/GetDamageDelt (or what ever it is called in GUI) to the captians current HP.
#3
Good lord. . .I have no idea how to use gui. . .haha. . .Uh. . .is there any triggering that can be done to perform this kinda spell? Cos i desperately need it for my map.
#4
Look I told you a way to do the spell its not my fault you do not know how to trigger.

Also this topic is a REQUEST thus should go in the request fourm.

This spell is obovously beyond your triggering capabilites since the method I mentioned would be the easy replacement and a propper can only be done in JASS thus you should remove it till a later date comes when you know how to make it.