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

multiboard victory

Status
Not open for further replies.
Level 2
Joined
Jun 15, 2007
Messages
30
im doing a capture the flag map and the multiboard for points work and everything but i can't get it to enforce victory when on team gets 5 points.
Help please!:eekani:
 
  • Trigger0
  • Events
    • (Your event)
  • Conditions
  • Actions
    • If/ Then/ Else
      • If (Conditions)
        • e.g.: (Owner of (Triggering unit)) is in (Group1) [Group1 is a player group that defines the team1 of your game) Equal to True
      • Then (Actions)
        • Set IntegerVictory[1] = (IntegerVictory + 1)
        • Set Team1 = True
      • Else
        • Set IntegerVictory[2] = (IntegerVictory + 1)
        • Set Team2 = True
  • Trigger
  • Events
    • Time - Every 1.00 seconds of game-time
  • Conditions
    • Or - Any (Conditions)
    • IntegerVictory[1] Equal to 5
    • IntegerVictory[2] Equal to 5
  • Actions
    • If/ Then/ Else
      • If (Conditions)
        • Team1 Equal to True
      • Then
        • For each (Integer A) from 1 to 6
          • Loop - Actions
            • Player - Victory Player (IntegerA) (show dialogs, show scores)
      • Else
        • For each (Integer B) from 7 to 12
          • Loop - Actions
            • Player - Victory Player (IntegerA) (show dialogs, show scores)
The 1-6 IntegerA refers to team 1, and the 7-12 to Team 2; it is up to how your teams are organised.
 
Last edited:
Level 2
Joined
Jun 15, 2007
Messages
30
is Group1 a variable that i need to create?

{EDIT}
I'm sorry I'm a noob when it comes to variables and all that jazz. could you please tell me what variables i need to make. Thanks
 
Last edited by a moderator:
Level 2
Joined
Jun 15, 2007
Messages
30
i'm sorry but i'm really stumped on that victory action. i know there's the "game - victory" trigger but that one you have is clearly a player group action and i can't find a victory action for that. help?:confused:
-- aw shee-it i got it!
thanks for your help man, i really appreciate it!:thumbs_up:
-- okay so it isn't working. can't figure out why. now i have a question: whats the index for "set IntegerVictory[1] = (IntegerVictory+1)"? when i set the variable for (IntegerVctory+1) it asks for a index. is it 1?
 
Last edited:
Status
Not open for further replies.
Top