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

[General] MPI Hero Respawn Trigger

Status
Not open for further replies.
Event: unit dies
condition: triggering unit is a hero
wait 5 seconds
create unit of type of triggering unit at your_location

That would be a unit respawn/revive trigger, he wants one for heroes.

This should work and is MUI:

  • revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Custom script: local unit u = GetTriggerUnit()
      • Wait 20.00 seconds
      • Custom script: set udg_unitvar = u
      • Hero - Instantly revive unitvar at (Center of (Playable map area)), Show revival graphics
The unitvar and custom scripts may be unnecessary.
 

Chaosy

Tutorial Reviewer
Level 41
Joined
Jun 9, 2011
Messages
13,241
Even with custom scripts you could reduce it to:
revive
  • joinminus.gif
    events.gif
    Events
    • line.gif
      joinbottom.gif
      unit.gif
      Unit - A unit Dies
  • joinminus.gif
    cond.gif
    Conditions
    • line.gif
      joinbottom.gif
      if.gif
      ((Triggering unit) is A Hero) Equal to True
  • joinbottomminus.gif
    actions.gif
    Actions
    • empty.gif
      join.gif
      page.gif
      Custom script: local unit udg_unitvar = GetTriggerUnit()
    • empty.gif
      join.gif
      zzz.gif
      Wait 20.00 seconds
    • empty.gif
      joinbottom.gif
      hero.gif
      Hero - Instantly revive unitvar at (Center of (Playable map area)), Show revival graphics
 
Level 5
Joined
Oct 16, 2015
Messages
132
That would be a unit respawn/revive trigger, he wants one for heroes.

This should work and is MUI:

  • revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Custom script: local unit u = GetTriggerUnit()
      • Wait 20.00 seconds
      • Custom script: set udg_unitvar = u
      • Hero - Instantly revive unitvar at (Center of (Playable map area)), Show revival graphics
The unitvar and custom scripts may be unnecessary.

What if I have 2 different respawn locations? Do I have to create 2 triggers?
 
Status
Not open for further replies.
Top