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

Resurrection Spell

Status
Not open for further replies.
Level 8
Joined
Feb 17, 2007
Messages
368
I want to make a resurrection spell for a hero thats in my game. I want it to take 5 seconds to cast, and it must be uninterruptable. I want it to display the amount of seconds left for casting above the caster.

The spell would have to target the corpses of the heroes on the ground and would not work if a certain spell which makes the user invulnerable was in progress.

Can anyone setup a spell like this for me?
 
You can't make spell uninterruptable, that's simply impossible. Each stun interrupts, the same with silence. You'd have to give the caster spell imunity in order to avoid this, making him immune to the damage aswell. Another thing are the corpses. If you accept a point order, then you could pick the nearest dead unit (a hero, they decay quite long, don't they?). If you realy want to make them clickable, you've to create dummy units. Displaying stuff above something are text tags (floating texts). This is pretty "much" stuff but everything quite easy, did you try anything on your own?
 
Level 8
Joined
Feb 17, 2007
Messages
368
When I said uninterruptable I meant that in order for it to be succesfully cast, it must not be interrupted by any stun or spell which would otherwise cancel the resurrect spell.

If any of you have played a map called Impossible Bosses, the priest in that game basically has the resurrect spell that I want. When you rez someone, you have to target the corpse of the dead hero. They dont stay there forever, however, they eventually decay.

So I would need a dummy unit? Can someone set me up with a sample trigger?
 
Level 8
Joined
Dec 9, 2009
Messages
397
Well the easiest thing to do would be to make something spawn where a hero dies, that can't attack is invul, and has no collision. Then trigger it so when the rez spell is cast on that unit it respawns the players hero.

Make sure the event is "Starts the effect of an ability" not "begins casting a spell" so you know that the spell ended.
 
Level 8
Joined
Dec 9, 2009
Messages
397
When I said Invul? I mean the unit that spawns when a hero dies, it just acts as a target for the rez spell, you don't want your target to die, it represents a corpse.
 
Level 8
Joined
Feb 17, 2007
Messages
368
Here you go. I didn't quite understand the invulnerability thing, could you explain it in a bit more detail?

Hey thanks a lot dude. :thumbs_up: What I meant about the invulnerable thing is that when a spell which causes the user to be invulnerable to all physical and magical damage is active, the resurrect spell would not work. Is that clear enough? An example is in the map Impossible Bosses, where when you cast mystic veil as priest, you are unable to revive anyone using the resurrect spell.
 
Level 8
Joined
Feb 17, 2007
Messages
368
That should be fairly easy to add as a condition in the trigger that catches the begin of channeling. Can you pull it off yourself?

Yeah I think I can do that part. What I'm trying to do now is to change your system to corpses, rather than gravestones. I'm creating a corpse at the point at which the player dies, and I changed the spells targets to allied and dead, but whenever I try to cast it, it says must target a corpse. Shouldn't there be a corpse there when I created one?

I'd rather have corpses because I don't want you to be able to rez a player for the whole fight, I want the corpse to decay over a specified length of time and you would have to rez the player before their corpse disappears.
 
Status
Not open for further replies.
Top