• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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