• 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] Share control on leave

Status
Not open for further replies.
Level 6
Joined
Apr 14, 2008
Messages
172
Okay, I need a trigger like this for my map, right now mine seems to bug, dont ask me why

  • Leavers
    • Events
      • Player - Player 1 (Red) leaves the game
      • Player - Player 2 (Blue) leaves the game
      • Player - Player 3 (Teal) leaves the game
      • Player - Player 4 (Purple) leaves the game
      • Player - Player 5 (Yellow) leaves the game
      • Player - Player 6 (Orange) leaves the game
      • Player - Player 7 (Green) leaves the game
      • Player - Player 8 (Pink) leaves the game
      • Player - Player 9 (Gray) leaves the game
      • Player - Player 10 (Light Blue) leaves the game
      • Player - Player 11 (Dark Green) leaves the game
      • Player - Player 12 (Brown) leaves the game
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Has left the game
        • Then - Actions
          • Game - Grant shared vision and full shared unit control of Player 1 (Red) units with his/her allies
          • Game - Display to TeamGood for 30.00 seconds the text: |cff32cd32The Force...
        • Else - Actions
          • Custom script: call DoNothing()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 2 (Blue) slot status) Equal to Has left the game
        • Then - Actions
          • Game - Grant shared vision and full shared unit control of Player 2 (Blue) units with his/her allies
          • Game - Display to TeamGood for 30.00 seconds the text: |cff32cd32The Force...
        • Else - Actions
          • Custom script: call DoNothing()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 3 (Teal) slot status) Equal to Has left the game
        • Then - Actions
          • Game - Grant shared vision and full shared unit control of Player 3 (Teal) units with his/her allies
          • Game - Display to TeamGood for 30.00 seconds the text: |cff32cd32The Force...
        • Else - Actions
          • Custom script: call DoNothing()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 4 (Purple) slot status) Equal to Has left the game
        • Then - Actions
          • Game - Grant shared vision and full shared unit control of Player 4 (Purple) units with his/her allies
          • Game - Display to TeamGood for 30.00 seconds the text: |cff32cd32The Heroe...
        • Else - Actions
          • Custom script: call DoNothing()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 5 (Yellow) slot status) Equal to Has left the game
        • Then - Actions
          • Game - Grant shared vision and full shared unit control of Player 5 (Yellow) units with his/her allies
          • Game - Display to TeamGood for 30.00 seconds the text: |cff32cd32The Force...
        • Else - Actions
          • Custom script: call DoNothing()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 6 (Orange) slot status) Equal to Has left the game
        • Then - Actions
          • Game - Grant shared vision and full shared unit control of Player 6 (Orange) units with his/her allies
          • Game - Display to TeamGood for 30.00 seconds the text: |cff32cd32The Force...
        • Else - Actions
          • Custom script: call DoNothing()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 7 (Green) slot status) Equal to Has left the game
        • Then - Actions
          • Game - Grant shared vision and full shared unit control of Player 7 (Green) units with his/her allies
          • Game - Display to TeamEvil for 30.00 seconds the text: |cff32cd32The Armie...
        • Else - Actions
          • Custom script: call DoNothing()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 8 (Pink) slot status) Equal to Has left the game
        • Then - Actions
          • Game - Grant shared vision and full shared unit control of Player 8 (Pink) units with his/her allies
          • Game - Display to TeamEvil for 30.00 seconds the text: |cff32cd32The Armie...
        • Else - Actions
          • Custom script: call DoNothing()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 9 (Gray) slot status) Equal to Has left the game
        • Then - Actions
          • Game - Grant shared vision and full shared unit control of Player 9 (Gray) units with his/her allies
          • Game - Display to TeamEvil for 30.00 seconds the text: |cff32cd32The Armie...
        • Else - Actions
          • Custom script: call DoNothing()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 10 (Light Blue) slot status) Equal to Has left the game
        • Then - Actions
          • Game - Grant shared vision and full shared unit control of Player 10 (Light Blue) units with his/her allies
          • Game - Display to TeamEvil for 30.00 seconds the text: |cff32cd32The Armie...
        • Else - Actions
          • Custom script: call DoNothing()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 11 (Dark Green) slot status) Equal to Has left the game
        • Then - Actions
          • Game - Grant shared vision and full shared unit control of Player 11 (Dark Green) units with his/her allies
          • Game - Display to TeamEvil for 30.00 seconds the text: |cff32cd32The Heroe...
        • Else - Actions
          • Custom script: call DoNothing()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 12 (Brown) slot status) Equal to Has left the game
        • Then - Actions
          • Game - Grant shared vision and full shared unit control of Player 12 (Brown) units with his/her allies
          • Game - Display to TeamEvil for 30.00 seconds the text: |cff32cd32The Armie...
        • Else - Actions
          • Custom script: call DoNothing()
Sometimes it shares, sometimes it dont, other times there go 10-20 minutes before you get control, if someone could help me either fix this or create another trigger, I'd be very happy.
 
Status
Not open for further replies.
Top