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

Need help

Status
Not open for further replies.
Level 2
Joined
Jun 28, 2010
Messages
6
im trying to add multiple events to the win/lose conditions. I need someone to tell me how i can make it so you need to complete multiple events
(destroy object, kill 4 units) in order to win. when i set multiple events,it ends up making it so that if any of those things are completed, that team wins,but i dont want that. i want it so multiple events must be completed in order to win. can someone explain how to do this?
 
Level 5
Joined
Mar 27, 2008
Messages
107
  • KillUnit
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Footman
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
          • (Owner of (Killing unit)) Equal to Player 1 (Red)
          • (Owner of (Killing unit)) Equal to Player 2 (Blue)
        • Then - Actions
          • Set Team1Count = (Team1Count + 1)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Owner of (Killing unit)) Equal to Player 3 (Teal)
                  • (Owner of (Killing unit)) Equal to Player 4 (Purple)
            • Then - Actions
              • Set Team2Count = (Team2Count + 1)
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • Team2Count Greater than or equal to 4
              • Team2CountObject Greater than or equal to 1
        • Then - Actions
          • Game - Defeat Player 1 (Red) with the message: Defeat!
          • Game - Defeat Player 2 (Blue) with the message: Defeat!
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • Team1Count Greater than or equal to 4
              • Team1CountObject Greater than or equal to 1
        • Then - Actions
          • Game - Defeat Player 4 (Purple) with the message: Defeat!
          • Game - Defeat Player 3 (Teal) with the message: Defeat!
        • Else - Actions
  • DestroyObject
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Castle
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
          • (Owner of (Killing unit)) Equal to Player 1 (Red)
          • (Owner of (Killing unit)) Equal to Player 2 (Blue)
        • Then - Actions
          • Set Team1CountObject = (Team1CountObject + 1)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Owner of (Killing unit)) Equal to Player 3 (Teal)
                  • (Owner of (Killing unit)) Equal to Player 4 (Purple)
            • Then - Actions
              • Set Team2CountObject = (Team2CountObject + 1)
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • Team2Count Greater than or equal to 4
              • Team2CountObject Greater than or equal to 1
        • Then - Actions
          • Game - Defeat Player 1 (Red) with the message: Defeat!
          • Game - Defeat Player 2 (Blue) with the message: Defeat!
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • Team1Count Greater than or equal to 4
              • Team1CountObject Greater than or equal to 1
        • Then - Actions
          • Game - Defeat Player 4 (Purple) with the message: Defeat!
          • Game - Defeat Player 3 (Teal) with the message: Defeat!
        • Else - Actions
They're really big, I'm pretty sure that u can make them alot smaller.. they work tho :)
 
Last edited:
Status
Not open for further replies.
Top