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

[General] Disconnect Function?

Status
Not open for further replies.
Level 7
Joined
Nov 18, 2012
Messages
272
Hey I want to make a map check if all the players are online and pass the controls.
This is the startup
  • Events
    • Map initialization
  • Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Player 2 (Blue) slot status) Not equal to Is playing
      • (Player 3 (Teal) slot status) Not equal to Is playing
      • (Player 4 (Purple) slot status) Not equal to Is playing
    • Then - Actions
      • Unit - Change ownership of Wisp 0010 <gen> to Player 1 (Red) and Change color
      • Unit - Change ownership of Wisp 0000 <gen> to Player 1 (Red) and Change color
      • Unit - Change ownership of Wisp 0002 <gen> to Player 1 (Red) and Change color
      • Player - Set Player 1 (Red) Current gold to 800
      • Player - Set Player 1 (Red) Current lumber to (stlumb x 4)
    • Else - Actions
      • Player - Set Player 1 (Red) Current lumber to stlumb
      • Player - Set Player 2 (Blue) Current lumber to stlumb
      • Player - Set Player 3 (Teal) Current lumber to stlumb
      • Player - Set Player 4 (Purple) Current lumber to stlumb
      • Player - Set Player 3 (Teal) Current gold to 200
      • Player - Set Player 2 (Blue) Current gold to 200
      • Player - Set Player 1 (Red) Current gold to 200
      • Player - Set Player 4 (Purple) Current gold to 200
And this is a periodic event.
  • Events
    • Time - Elapsed game time is 60.00 seconds
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Proceed Equal to True
      • Then - Actions
        • Trigger - Turn off (This trigger)
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Player 2 (Blue) slot status) Equal to Is unused
                • (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
          • Else - Actions
            • Do nothing
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Player 1 (Red) slot status) Equal to Is unused
                • (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
          • Else - Actions
            • Do nothing
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Player 3 (Teal) slot status) Equal to Is unused
                • (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
          • Else - Actions
            • Do nothing
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Player 4 (Purple) slot status) Equal to Is unused
                • (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
          • Else - Actions
            • Do nothing
The triggers, however, do not work.

Edit: NVM, it works, just not in the editor test run.
 
Status
Not open for further replies.
Top