• 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.

Ending a Game

Status
Not open for further replies.
Level 4
Joined
Apr 11, 2012
Messages
66
How Can i End a Game Using Team Kills ?
How Can Put Score Board ?








#Thanks For Those People Who Answers My Question :D
It is My First Time That I Will Create an Own Map
 
Level 12
Joined
Oct 16, 2010
Messages
680
based on your other post about spell importing ..
well you have to do this all in trigger editor

if you know how to use it either in jass or GUI

You have to make a trigger with Unit Dies event , check who killed it and which team it belongs to , then rise the teams global variable which counts the kills

when a team reaches the kill limit the game ends.

easy task but you need to learn editing triggers

about the score board , little bit harder but the same, you need to know triggering
 
Level 5
Joined
Jan 12, 2010
Messages
132
I will show you the basic things you can do.For pro job you need to learn and work.
Where Team_group is a variable "Player group type" .Add this thoose goups members of teams.
  • Untitled Trigger 006
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • Temp_integer[1] Equal to 100
          • Temp_integer[2] Equal to 100
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Temp_integer[1] Equal to 100
        • Then - Actions
          • Player Group - Pick every player in Team_group1 and do (Actions)
            • Loop - Actions
              • Game - Victory (Picked player) (Show dialogs, Show scores)
          • Player Group - Pick every player in Team_group2 and do (Actions)
            • Loop - Actions
              • Game - Defeat (Picked player) with the message: Defeat!
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Temp_integer[2] Equal to 100
        • Then - Actions
          • Player Group - Pick every player in Team_group2 and do (Actions)
            • Loop - Actions
              • Game - Victory (Picked player) (Show dialogs, Show scores)
          • Player Group - Pick every player in Team_group1 and do (Actions)
            • Loop - Actions
              • Game - Defeat (Picked player) with the message: Defeat!
        • Else - Actions
  • Untitled Trigger 007
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled ScoreBoard
      • Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label Team one and value 0
      • Leaderboard - Add Player 2 (Blue) to (Last created leaderboard) with label Team two and value 0
      • Leaderboard - Show (Last created leaderboard)
  • Untitled Trigger 008
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to Temp_integer[1]
      • Leaderboard - Change the value for Player 2 (Blue) in (Last created leaderboard) to Temp_integer[2]
 
Level 4
Joined
Apr 11, 2012
Messages
66
based on your other post about spell importing ..
well you have to do this all in trigger editor

if you know how to use it either in jass or GUI

You have to make a trigger with Unit Dies event , check who killed it and which team it belongs to , then rise the teams global variable which counts the kills

when a team reaches the kill limit the game ends.

easy task but you need to learn editing triggers

about the score board , little bit harder but the same, you need to know triggering


How can i put an global variable that counts the team kills
is there's an tutorial how to do it ?
 
Level 4
Joined
Apr 11, 2012
Messages
66
I will show you the basic things you can do.For pro job you need to learn and work.
Where Team_group is a variable "Player group type" .Add this thoose goups members of teams.
  • Untitled Trigger 006
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • Temp_integer[1] Equal to 100
          • Temp_integer[2] Equal to 100
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Temp_integer[1] Equal to 100
        • Then - Actions
          • Player Group - Pick every player in Team_group1 and do (Actions)
            • Loop - Actions
              • Game - Victory (Picked player) (Show dialogs, Show scores)
          • Player Group - Pick every player in Team_group2 and do (Actions)
            • Loop - Actions
              • Game - Defeat (Picked player) with the message: Defeat!
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Temp_integer[2] Equal to 100
        • Then - Actions
          • Player Group - Pick every player in Team_group2 and do (Actions)
            • Loop - Actions
              • Game - Victory (Picked player) (Show dialogs, Show scores)
          • Player Group - Pick every player in Team_group1 and do (Actions)
            • Loop - Actions
              • Game - Defeat (Picked player) with the message: Defeat!
        • Else - Actions
  • Untitled Trigger 007
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled ScoreBoard
      • Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label Team one and value 0
      • Leaderboard - Add Player 2 (Blue) to (Last created leaderboard) with label Team two and value 0
      • Leaderboard - Show (Last created leaderboard)
  • Untitled Trigger 008
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to Temp_integer[1]
      • Leaderboard - Change the value for Player 2 (Blue) in (Last created leaderboard) to Temp_integer[2]

can i download that trigger ?
 
Status
Not open for further replies.
Top