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
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.
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%
Impac7
#5
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.
Heroes do not leave a corpse behind so you cant revive by picking units in the region. Just create a units where the hero died and if the spell is casted and the unit is in the region, the dead hero is revived at the position of the unit. Remember to remove the unit.