• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Revival spell help

Status
Not open for further replies.
Level 2
Joined
Jun 5, 2005
Messages
22
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.
 
Status
Not open for further replies.
Top