1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. 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.