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

Trigger Request

Status
Not open for further replies.
Level 3
Joined
Sep 25, 2008
Messages
50
Hi Hive, I have a trigger request :eek:
It's a hero revival system thing kind of.
Well its like this when a hero dies a wisp will spawn. The player will then send the wisp back to the base to a Circle of Power and then the hero will revive and the wisp will die. I have tried making a few triggers but none of them have worked

Here's the map
 

Attachments

  • LightAndDarkness.w3x
    379.5 KB · Views: 65
Last edited:
Well, her you got the triggers, think they should work. Just modify some things to suit your hero and such:

  • Trigger 1
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Unit - Create 1 Wisp for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Default building facing degrees
  • Trigger 2
    • Events
      • Unit - A unit comes within 80.00 of "Your Circle of Power"
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Wisp
    • Actions
      • Unit - Kill (Triggering unit)
      • Unit - Create 1 "Your Hero" for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
 
Level 3
Joined
Sep 25, 2008
Messages
50
The first trigger works but the second works but not the way I want it. It revives the hero and kills the wisp but treats it as a second hero starting at level 1. I want it to be revived just like in dota, except the wisp just has to come to the circle of power.I spent hours on this trigger but nothing came to me yet :[
 
Ah, sorry about that, forgot it :p
  • Trigger 1
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Set Variable_DyingHero = (Dying unit)
      • Unit - Create 1 Wisp for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Default building facing degrees
  • Trigger 2
    • Events
      • Unit - A unit comes within 80.00 of "Your Circle of Power"
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Wisp
    • Actions
      • Unit - Kill (Triggering unit)
      • Hero - Instantly revive Variable_DyingHero at (Position of (Triggering unit)), Show revival graphics
And add an "Array" to the variable with the amount of players, and you have a trigger for each player.
 
Status
Not open for further replies.
Top