Warcraft III resources & community, 2003–2006 · archived

Revival spell help

2 posts
#1

Revival spell help

Hello again. I've got another spell I could use some help with. I'm trying to make it so when my Hero dies, he has a % chance to revive. I think I've got the integer part right, but my Hero won't revive... I lost the trigger I made, but I know it went something like:

Events
Event - A unit dies

Conditions

Actions
If
Level of (Ability) for (Dying unit) is equal to 1
Then
If
Random integer between 1 and 100 is less than or equal to 8
Then
Instantly revive (Dying unit) at (DeathPoint)
Else
Do nothing


DeathPoint is the Point variable that equals the Position of (Hero). Is there any way I can fix this spell? Even better, is there a better way to write it? Sorry if this is confusing, I can try to make it clearer if it is.
#2
Put the sentence Level of (Ability) for (Dying unit) is equal to 1 on condition trigger, and make sure you set variable death point on the first action that was executed by that trigger.