• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Revive heroes in a random point of a region

Status
Not open for further replies.
Level 2
Joined
Mar 1, 2009
Messages
9
Hey, I need your help, please.

HOW CAN I REVIVE THE HEROES IN A RANDOM POINT OF A REGION?

I'm using GUI, but is having bugs. Sometimes the heroes not revive.

Could you show me how it's done in Custom Script?
 
Level 3
Joined
Feb 10, 2013
Messages
40
  • Hero rez
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Wait 2.00 seconds
      • Set LeaklessLocation = (Random point in (Playable map area))
      • Hero - Instantly revive (Triggering unit) at LeaklessLocation, Show revival graphics
      • Custom script: call RemoveLocation(udg_LeaklessLocation)
There you go ! :) You may change "Playable map area" to your region, as well as customize waiting time to something depending on your hero's level or whatever. You can also add conditions to revive different players to different places, let me know if you still need help.
 
Last edited:
Level 2
Joined
Mar 1, 2009
Messages
9
I already did it in GUI, but I need at Custom Script.

Look at this:
call HeroReviveLoc(udg_TempUnit, udg_TempReal, udg_TempLoc, udg_TempEff)

The problem is that this is to position the unit.

I need to relive the hero in a random point of a region.
 
Status
Not open for further replies.
Top