• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Hero revival trigger?

Status
Not open for further replies.
Level 13
Joined
Oct 16, 2010
Messages
731
So i've got an idea for a trigger but i've tried it a few times and it's failed every time.

So the trigger would be basically to revive a hero THROUGH an altar. But the hero is not a specific hero. So basically the trigger will say "If player has a dead hero, revive dead hero from random altar".

This trigger would only be there for an AI system. So the trigger would only select computer players.
 
Ok.Might sound weird but here is a way of doing it.First of all,create a fake altar that makes units.2)Place 3 altars,for example on the map.make a trigger with event - when a hero dies.Create a variable as Integer.As action,set variable X(integer) = random integer nr. between 1 and 3.wait 0,01 seconds.Then make the thing" if all conditions are true,then do actions etc" .Careful to select the one with multiple possible conditions and actions.We will name it A so it would be simple to understand(in talking).Set as conditions of A to "integer = 1) .As action ,make one of the fake altars,whichever u want train a unit that has time equal to the revive time of the hero.I asume you know how to make conditions and actions depending on the hero level,but this is not really important,for you can make the revive instant and just add special effects and stuff.So revive hero at the altar's region.Next,make a copy of the A in the same trigger and place a B.Set the exact same things but with integer = 2,another altar etc.Damn long
 
Status
Not open for further replies.
Top