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

[Solved] Requesting Help - Revival Trigger

Status
Not open for further replies.
Level 4
Joined
Jun 29, 2009
Messages
28
In a Life of a Peasant map I've been working on for maybe a year now, I've had some recent troubles in regards to my revival triggers. Now, this may sound as if I have triggered it wrong in some way, but I haven't. The past few versions of this map that I have been working on have worked perfectly. Since then, I have never changed or updated the revival triggers or anything related.

Here's a picture for inference:
picturerp.jpg

I have separate triggers for every players' revival.

I've double checked to make sure nothing could be messing with the triggers. However, in a recent playtest, nobody would revive after dying for some odd peculiar reason. However, it should be taken note that in this most recent playtest, there were many more players than ever before tested, to my luck. I don't know if it has anything to do with the number of triggers on the map, or if my reviving system was incorrectly built.

If anybody could help in any way, it would be greatly appreciated.
Thanks, ~AngryMurloc
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
First of all: you can copy triggers straight from the World Editor to the hive.
You can do this by right-clicking the trigger's name above "Events" and selecting "Copy as text".
Then go here, type trigger] (press CTRL + V here) [/trigger]

That trigger fails because of the "Dying unit", you should use "Triggering unit" instead.
It's because the value of "dying unit" is lost because of the wait (waits ruin everything, except for "triggering [...]" values).

You should also remove the "Do Nothing" (why would you ever create an action that literally doesn't do anything?)
And to enhance it a bit more, you only need 1 trigger for all players (not 1 per player).
 
Level 9
Joined
Apr 23, 2010
Messages
312
This is pretty much all you will need. I use this for my maps, usually they are a bit more complex.
  • Hero Revival
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Camera - Pan camera for (Triggering player) to (Center of Hero_Re_spawn <gen>) over 1.00 seconds
      • Hero - Instantly revive (Triggering unit) at (Center of Hero_Re_spawn <gen>), Show revival graphics
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Don't worry, using Wait to refer to a (Triggering unit) does not tarnish the good name of MUI at all.
Wait can be related with (Triggering unit) only as it is referred as automatically a "local variable" that the trigger can work MUI-ly in a single trigger
Just add Wait 20.00 seconds action in 13oot-Me trigger above the Camera action and it will work finely and put the rest of your own trigger below the Camera action.
 
Status
Not open for further replies.
Top