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

[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