• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[Trigger] ''Rescue from Jail''

Status
Not open for further replies.
Level 2
Joined
Oct 9, 2007
Messages
15
How can i make like on kodo tags that jail rescue thing example when i die i transform to flag on the jail and when someone of my allies comes rescue me i reborn:cry:
 
Level 19
Joined
Sep 4, 2007
Messages
2,826
Here is a trigger for putting runners in jail.
  • Runner Dies
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Runner
    • Actions
      • Unit - Create 1 Flag for (Owner of (Triggering unit)) at (Center of Jail <gen>) facing Default building facing degrees
Here is one for rescuing your allies.
  • Rescue
    • Events
      • Unit - A unit enters Jail <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Runner
    • Actions
      • Unit Group - Pick every unit in (Units in Jail <gen>) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to Flag
            • Then - Actions
              • Player - Add ((Number of units in (Units of type Flag)) x 50) to (Owner of (Entering unit)) Current gold
              • Unit - Remove (Picked unit) from the game
              • Unit - Create 1 Runner for (Owner of (Picked unit)) at (Center of Jail <gen>) facing Default building facing degrees
            • Else - Actions
 
Last edited:
Status
Not open for further replies.
Top