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

[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