- Joined
- Aug 2, 2007
- Messages
- 69
I'm having trouble with the leaderboard adding points. The game is where one unit enters the goal region with the ball. Once he enters that region, that team gets 1 point.
Here are the triggers I have in play, I can't seem to figure out what I'm doing is wrong:
Leaderboard:
Here are the triggers I have in play, I can't seem to figure out what I'm doing is wrong:
Leaderboard:
-
Create
-
Events
-
Time - Elapsed game time is 5.00 seconds
-
Conditions
-
Actions
-
Leaderboard - Create a leaderboard for (All Players) titled 5 Goals to Win
-
Leaderboard - Show (Last created leaderboard)
-
Leaderboard - Add Player 1(Red) to (Last created leaderboard) with label Red Team and value RedScore
-
Leaderboard - Add Player 2(Blue) to (Last created leaderboard) with label Red Team and value BlueScore
-
Player 3 Scores
-
Events
-
Unit - A unit enters Blue Goal <gen>
-
Conditions
-
(Owner of(Triggering Unit)) Equal to Player 3(Teal)
-
Actions
-
Set Player3Goals = (Player3Goals + 1)
-
Red Team Total
-
Events
-
Time - Every 2.00 seconds of game time
-
Conditions
-
Actions
-
Set RedScore = (Player3Goals + (Player4Goals + (Player5Goals + (Player7Goals))))
-
Player 3 Scores
-
Conditions
-
(Owner of (Triggering Unit)) Equal to Player 3 (Teal)) and ((Item carried by (Triggering Unit) in slot 1) Equal to Ball)