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

Best way to make rescuable?

Status
Not open for further replies.
Well, instead of a specific reference to that Player, maybe this could happen:
  • Trigger
  • Events
    • Player - Player 1 (Red) leaves the game
    • Player - Player 2 (Blue) leaves the game
    • Player - ....
  • Conditions
  • Actions
    • Set Group = (Units owned by (Triggering player))
    • Unit Group - Pick up every unit in (Group) and do (Actions)
      • Loop - Actions
        • Unit - Make (Picked unit) rescuable by (All Allies of (Triggering Player))
    • Custom script: call DestroyGroup (udg_Group)
This won't work?
 
Level 10
Joined
Aug 15, 2008
Messages
720
  • Solution
    • Events
      • Compatibility - Player 1 (Red) Leaves
      • Compatibility - Player 2 (Blue) Leaves
      • Compatibility - Player 3 (Teal) Leaves
      • Compatibility - Player 4 (Purple) Leaves
      • Compatibility - Player 5 (Yellow) Leaves
      • Compatibility - Player 6 (Orange) Leaves
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Unit - Make (Picked unit) Rescuable by (All players))
Get JNGP (Jass NewGen Pack) and you can trigger twice easier with bonus triggers...
 
Status
Not open for further replies.
Top