1. Head to the 33rd Modeling Contest Poll and drink to your heart's desire.
    Dismiss Notice
  2. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  4. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  5. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  6. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Revive Hero Instantly

Discussion in 'Triggers & Scripts' started by Lord_Sauron, Jan 11, 2012.

  1. Lord_Sauron

    Lord_Sauron

    Joined:
    Nov 17, 2004
    Messages:
    273
    Resources:
    9
    Maps:
    9
    Resources:
    9
    For some reason I can't get the "Revive Hero Instantly" function to work. The trigger simply reads "Specific unit dies, revive that unit at point". I can't think of why it isn't working. Is there a custom script that could revive the hero? I'm using the Jass New Gen editor (if that's relevant). I've also tried it with the generic unit dies event.
     
  2. Arhowk

    Arhowk

    Joined:
    Aug 8, 2007
    Messages:
    2,752
    Resources:
    0
    Resources:
    0
    Post the trigger your using to revive him.
     
  3. Global_idiot

    Global_idiot

    Joined:
    Aug 16, 2007
    Messages:
    212
    Resources:
    0
    Resources:
    0
    • sdfds
      • Events
        • Unit - A unit Dies
      • Conditions
        • ((Triggering unit) is A Hero) Equal to True
      • Actions
        • Hero - Instantly revive (Triggering unit) at (Center of (Playable map area)), Hide revival graphics


    I think this should work.

    *yep it works, tested.
     
  4. DsDarkMaster

    DsDarkMaster

    Joined:
    May 4, 2010
    Messages:
    607
    Resources:
    0
    Resources:
    0
    but that leaks its best if your going to show someone something show them the correct way the above way is possible it will cause lag in games though
     
  5. SunTzu7387

    SunTzu7387

    Joined:
    Mar 28, 2009
    Messages:
    66
    Resources:
    0
    Resources:
    0
    • Events
    • Unit - A unit Dies
    • Conditions
    • ((Triggering unit) is A Hero) Equal to True
    • Actions
    • set - TempPoint = (center of (playable map area))
    • Hero - Instantly revive (Triggering unit) at TempPoint, Hide revival graphics
    • Custom script: call RemoveLocation(udg_TempPoint)


    this one doesnt leak
     
    Last edited: Jan 13, 2012
  6. Global_idiot

    Global_idiot

    Joined:
    Aug 16, 2007
    Messages:
    212
    Resources:
    0
    Resources:
    0
    Yeah, it leaks, but it shows the point how to make it.
     
  7. Lord_Sauron

    Lord_Sauron

    Joined:
    Nov 17, 2004
    Messages:
    273
    Resources:
    9
    Maps:
    9
    Resources:
    9
    I had been using that, but I think a map file may have been corrupted. I exported the directories for terrain and custom units to a blank new map and redid the triggers. It works now. Thanks everyone.