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

Ressing heroes etc.

Status
Not open for further replies.
Level 3
Joined
Jul 18, 2010
Messages
26
Good morning! seems like i encountered another problem with my Molten core map which i have been unable to fix and is now facing a dead end. Played the map yesterday with some friends and found the problem when a hero died they had to ress at the start with the main building then run all the way back to us, wasting time and experience in the process, so i thought if it was possible to make a spell which can ressurect a hero so they don't have to run that long way or make the hero revive at the spot he/she died after 45/60 seconds?

I hope i can also get some great help from the kind people at hive with this matter.

Best regards
-Fera
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Revives at the dying location:

  • Untitled Trigger 065
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is A Hero) Equal to True
        • Then - Actions
          • Wait 10.00 seconds
          • Set point = (Position of (Triggering unit))
          • Hero - Instantly revive (Triggering unit) at point, Show revival graphics
          • Custom script: call RemoveLocation(udg_point)
        • Else - Actions
 
Level 3
Joined
Jul 18, 2010
Messages
26
Thanks for the useful trigger, however i just tried to remake it into my own map but i can't seem to find the action "Set point = (Position of (Triggering unit))" wondered if that also was a custom script you made or is it only the last script that is custom made?

once again thanks for the help, i highly appreciate it

Best regards
-Fera
 
Level 5
Joined
Sep 1, 2010
Messages
168
http://world-editor-tutorials.thehelper.net/revive.php
I'd suggest you use google next time for such an often done request...
me thinks you only need to modify the 3rd line from bottom to loc (with loc being the position of your unit, which you'll have to set directly before).

Should do the job -> I've used many of the SD-Ryoko tuts and they're a great help for getting started (though some contain leaks).

EDIT: @maker's trigger: Set point = (Position of (Triggering unit)) is the "set value" standard code... just make a point variable, then set it to the desired value.
And: though it's read 'custom script' call RemoveLocation() is a standard function found somewhere in your warcraft 3 mpq file.
 
Status
Not open for further replies.
Top