• 🏆 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!

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