• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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,248
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