• 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 makign spell :)

Status
Not open for further replies.
Level 2
Joined
Sep 6, 2008
Messages
7
Can any give me advice! i want to make a spell that can revive heros after they are dead from their corpse. and how do i make their corpse like permanant? until they revive or something?
 
Level 6
Joined
May 13, 2009
Messages
260
  • Corpse trigger
    • Events
      • Unit - A unit Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Dying unit)) Equal to Footman
          • (Owner of (Dying unit)) Equal to Player 1 (Red)
    • Actions
      • Set Anti_leak_location = (Center of (Playable map area))
      • Unit - Create a permanent Fleshy (Unit-type of (Dying unit)) corpse for (Owner of (Dying unit)) at Anti_leak_location facing (Random angle) degrees
      • Custom script: call RemoveLocation( udg_Anti_leak_location )
 
Level 4
Joined
Feb 23, 2009
Messages
99
well srry i dont know how to use the trigger tag, so..

to do this, you need to make dying hero has a "corpse" :

1.)when your hero's health reaches 2%(for example) make him invulnerable and play his death animation. pause him too.(do this via triggers)

2.)make a spell based on war stomp(but I recommend Fan Of Knives), trigger that if that spell is cast nearby the hero "corpse" he will be restored to full health and mana, reset his animation, unpause him and make him vulnerable. He is "revived".

problem solved!
 
Status
Not open for further replies.
Top