• 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] Help me with Hero Revival

Status
Not open for further replies.
Level 3
Joined
Jun 18, 2008
Messages
30
Hey again guys :]
I need help finishing this trigger for my new ORPG.
Okay:


  • Unit Revival
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Game - Display to (All players) the text: |cffff0000A comrade...
      • Wait 20.00 seconds
      • Hero - Instantly revive (Dying unit) at (Center of Revival Spot <gen>), Show revival graphics
I can't figure out this other condition. I added a group of players to a player group:

  • Player Group
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Add Player 1 (Red) to AlliancePlayerGroup
      • Player Group - Add Player 2 (Blue) to AlliancePlayerGroup
      • Player Group - Add Player 3 (Teal) to AlliancePlayerGroup
      • Player Group - Add Player 4 (Purple) to AlliancePlayerGroup
      • Player Group - Add Player 5 (Yellow) to AlliancePlayerGroup
      • Player Group - Add Player 6 (Orange) to AlliancePlayerGroup
      • Player Group - Add Player 7 (Green) to AlliancePlayerGroup
      • Player Group - Add Player 8 (Pink) to AlliancePlayerGroup
but I cant find the condition that would allow it for only players in that player groups hero to revive. I hope this makes since, because It hurts my head :[
 
Level 6
Joined
Jun 8, 2008
Messages
256
I'm using this, which also works.
  • Events
    • Unit - A unit owned by Player 1 (Red) Dies
    • Unit - A unit owned by Player 2 (Blue) Dies (and so on with all players you want)
  • etc
  • Conditions
    • ((Triggering unit) is A Hero) Equal to True
  • Actions
    • Wait X.XX seconds
    • Hero - Instantly revive (Triggering unit) at (Center of RevivalRegion <gen>), Show revival graphics
 
Status
Not open for further replies.
Top