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:
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.
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.