NotTheHelper
Yeah, its under your bed.
- Reaction score
- 23
Could someone check these triggers for me...they are malfunctioning.
First the timer for the crees waves is messed up...it makes like 5 copies of timer on top of screen
Next is my lives trigger
and last is my kills in leaderboard
Ty
First the timer for the crees waves is messed up...it makes like 5 copies of timer on top of screen
Code:
Creep Spawns
Events
Time - Elapsed game time is 10.00 seconds
Player - Player 11 (Dark Green)'s Food used becomes Equal to 0.00
Player - Player 12 (Brown)'s Food used becomes Equal to 0.00
Conditions
Actions
Set CreepCount = (CreepCount + 1)
Set Gold_income = (Gold_income + 10)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CreepCount Equal to 51
Then - Actions
Wait 2.00 seconds
Player Group - Pick every player in PlayerInGame and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Else - Actions
Countdown Timer - Create a timer window for Timer_Variable with title Next Wave...
Countdown Timer - Start Timer_Variable as a One-shot timer that will expire in 10.00 seconds
Set Timer_Window = (Last created timer window)
Countdown Timer - Show Timer_Window
Player Group - Pick every player in PlayerInGame and do (Actions)
Loop - Actions
Player - Add Gold_income to (Picked player) Current gold
Timer expires
Events
Time - Timer_Variable expires
Conditions
Actions
Countdown Timer - Destroy Timer_Window
For each (Integer A) from 1 to 40, do (Actions)
Loop - Actions
Wait 1.00 seconds
Player Group - Pick every player in PlayerInGame and do (Actions)
Loop - Actions
Unit - Create 1 Creep_Array[CreepCount] for Player 11 (Dark Green) at (Center of Start <gen>) facing Default building facing degrees
Unit - Create 1 Creep_Array[CreepCount] for Player 12 (Brown) at (Center of Start <gen>) facing Default building facing degrees
Next is my lives trigger
Code:
Lives
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for PlayerInGame titled Kill Count
Player Group - Pick every player in PlayerInGame and do (Actions)
Loop - Actions
Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
Leaderboard - Add Player 12 (Brown) to (Last created leaderboard) with label Lives Left and value Lives
Leaderboard - Show (Last created leaderboard)
Lives Lost
Events
Unit - A unit enters Finish <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 11 (Dark Green)
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Unit - Kill (Entering unit)
Set Lives = (Lives - 1)
Leaderboard - Change the value for Player 12 (Brown) in (Last created leaderboard) to Lives
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Lives Equal to 0
Then - Actions
Wait 2.00 seconds
Player Group - Pick every player in PlayerInGame and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Sucks for you.
Else - Actions
and last is my kills in leaderboard
Code:
Counting Kills
Events
Unit - A unit Dies
Conditions
(Owner of (Dying unit)) Equal to Player 11 (Dark Green)
(Owner of (Dying unit)) Equal to Player 12 (Brown)
Actions
Set Kills_Count[(Player number of (Owner of (Killing unit)))] = ((Player number of (Owner of (Killing unit))) + 1)
Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Kills_Count[(Player number of (Owner of (Killing unit)))]
Ty