Im using a income system, that i foud on this forum, triggers are:
i need a leaderboard for this system. Someone please help!
Trigger:
- Income
- Events
- Unit - A unit enters (Playable map area)
- Conditions
- ((Triggering unit) is A structure) Equal to False
- Actions
- If ((Unit-type of (Entering unit)) Equal to Peon) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 1)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Grunt) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 2)) else do (Do nothing)
- Skip remaining actions
- Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + (Point-value of (Entering unit)))
- Events
Trigger:
- Incomeadd
- Events
- Time - Every 20.00 seconds of game time
- Conditions
- Actions
- For each (Integer A) from 1 to 10, do (Actions)
- Loop - Actions
- Player - Add Income[(Integer A)] to (Player((Integer A))) Current gold
- Loop - Actions
- For each (Integer A) from 1 to 10, do (Actions)
- Events
Trigger:
- IncomeReport
- Events
- Time - Every 20.00 seconds of game time
- Player - Player 1 (Red) types a chat message containing -income as An exact match
- Player - Player 2 (Blue) types a chat message containing -income as An exact match
- Player - Player 3 (Teal) types a chat message containing -income as An exact match
- Player - Player 4 (Purple) types a chat message containing -income as An exact match
- Player - Player 5 (Yellow) types a chat message containing -income as An exact match
- Player - Player 6 (Orange) types a chat message containing -income as An exact match
- Player - Player 7 (Green) types a chat message containing -income as An exact match
- Player - Player 8 (Pink) types a chat message containing -income as An exact match
- Player - Player 9 (Gray) types a chat message containing -income as An exact match
- Player - Player 10 (Light Blue) types a chat message containing -income as An exact match
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Triggering player) Equal to (Triggering player)
- Then - Actions
- Game - Display to (Player group((Triggering player))) the text: (Income: + (String(Income[(Player number of (Triggering player))])))
- Else - Actions
- For each (Integer A) from 1 to 10, do (Actions)
- Loop - Actions
- Game - Display to (Player group((Player((Integer A))))) the text: (Income: + (String(Income[(Integer A)])))
- Loop - Actions
- For each (Integer A) from 1 to 10, do (Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
i need a leaderboard for this system. Someone please help!