• 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 please!!!

Status
Not open for further replies.
Level 2
Joined
Feb 24, 2012
Messages
8
Hi guys, can someone please tell me how can I make this trigger?

Let's say 3 Players choose their favorite hero, but the Player locations are different from each other.
How can I make a trigger that knows if a Hero dies (the dying hero is owned by X Player) it will then revive the Hero at it (owned X Player Location) or Region?

Thank you.
 
Level 9
Joined
Jul 30, 2018
Messages
445
There are some good tutorials right here in Hive for triggers. Like Basics of Triggers.

Here's an example of the trigger you wanted:

  • Hero Revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Set TempPoint = ((Owner of (Triggering unit)) start location)
      • Hero - Instantly revive (Triggering unit) at TempPoint, Show revival graphics
      • Custom script: call RemoveLocation(udg_TempPoint)
 
Level 9
Joined
Sep 20, 2015
Messages
385
The hero is summoned with an altar or picked in some other way?

You have to create x number of regions, one for every player. Like RevivePoint_Red, RevivePoint_Blue...etc. Then when a hero dies you check for the owning player and revive the hero at the corresponding region
 
Level 2
Joined
Feb 24, 2012
Messages
8
Thank you so much for Dying Unit it works perfectly.
But what about for the Killing Unit? Can I do the same thing?
 
Last edited:

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
2,010
Can you stop being afraid of buttons and actually check what they do, their purpose, and read?
All your questions can be simply answered by trying, and even trial and error. Get your hands on the job and don't be lazy. If you get stuck then you ask your questions.
 
Status
Not open for further replies.
Top