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

Need help making a ressurection trigger!

Status
Not open for further replies.
Level 11
Joined
Jul 25, 2005
Messages
573
I've been trying my hardest to make a ressurection trigger.

How it is supposed to go is that if the hero dies it creates a marker at the heroes corpse. Another hero with a ressurection spell can cast it on the marker and it revives the hero at the location of the casting hero.

I've spent alot of time trying to get this to work on my map I'm working on, but with no luck :(

Anyone know how to do what I'm talking about?
 
Level 5
Joined
Jun 17, 2006
Messages
114
create an immovable unit at the hero's corpse when he dies. then use some dummy spell like holy light (with custom animation i would assume) that triggers the revive hero trigger for playerHero(player number of (owner of unit(target unit of ability being cast))) assuming, of course, that each player only has 1 hero and you have defined a variable to keep track of that hero for each player.

the way i made my own resurrection spell was to check which players were dead whenever the spell was cast (the spell is a "no target" spell like thunderclap) and their names would appear on a button in a dialogue that popped up. it's a bit more complicated though and took me a few tests to work out the bugs. also, this allows you to resurrect someone anywhere on the map, regardless of where they died.
 
Level 11
Joined
Jul 25, 2005
Messages
573
It still isn't working the spell casts on the object but nothing happens after that. Heres how my trigger looks so far (Only putting part of it cause the rest is just a small change in the Set Life %)


-Events: A unit finishes casting an ability.

-Conditions: (Ability being cast} equal to "Ressurection"

-Actions: -If (All conditions are true) then do (Then actions) else do (Else actions)
-If conditions: (Level of "Ressurection" for (Casting Unit)) Equal to 1
-Then actions: Unit group - Pick every unit in (Units owned by (Owner of (Target unit of ability being cast)) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) is dead) Equal to true))) and do (Actions)
-Loop actions: Hero - Insantly revive (Picked unit) at (Position of (Casting unit)), Show revival graphics
........................Unit - Set life of (Picked unit) to 10.00%
 
Level 7
Joined
Feb 4, 2005
Messages
289
Im not sure, but finishes casting if the ability is not channeling and duration heri and unit is 00.00 doesnt work. Try aerial shackles, still use the areal (caster) buff so as to remove the net, and remove lighting effects etc, create your own buff with no animation or no buff.
 
Status
Not open for further replies.
Top