*Completed*
Okay what I want is a system that tells how much income your getting when the player says -income and it tells their gold and lumber income
Here is my Income Trigger
Thx!
*EDIT*
I today just realized how to do it so yeah...
So for people who are wondering what I got and stuff later on Here is what I got!
Okay what I want is a system that tells how much income your getting when the player says -income and it tells their gold and lumber income
Here is my Income Trigger
-
Income
-
Events
-
Time - Every 60.00 seconds of game time
-
-
Conditions
-
Actions
-
-------- ZOMBIE--------------------------------------------------------- --------
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Pile of Flesh) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 25 to (Owner of (Picked unit)) Current gold
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Advanced Pile of Flesh) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 50 to (Owner of (Picked unit)) Current gold
-
-
Else - Actions
-
-
-
-
-------- LUMBER--------------------------------------------------------- --------
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Lumber Mill) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 100 to (Owner of (Picked unit)) Current lumber
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Efficient Lumber Mill) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 225 to (Owner of (Picked unit)) Current lumber
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Highly Efficient Lumber Mill) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 350 to (Owner of (Picked unit)) Current lumber
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Supremely Efficient Lumber Mill) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 525 to (Owner of (Picked unit)) Current lumber
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Efficiently Effective Lumber Mill) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 850 to (Owner of (Picked unit)) Current lumber
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Extrapolator Lumber Mill) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 1350 to (Owner of (Picked unit)) Current lumber
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Wood Extractor) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 2200 to (Owner of (Picked unit)) Current lumber
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Robotic Wood Extractor) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 3000 to (Owner of (Picked unit)) Current lumber
-
-
Else - Actions
-
-
-
-
-------- GOLD--------------------------------------------------------- --------
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Market) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 125 to (Owner of (Picked unit)) Current gold
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Spacious Market) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 300 to (Owner of (Picked unit)) Current gold
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Exotic Market) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 500 to (Owner of (Picked unit)) Current gold
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type International Market) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 750 to (Owner of (Picked unit)) Current gold
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Exotic International Market) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 1000 to (Owner of (Picked unit)) Current gold
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Exotic Cultural Market) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 1300 to (Owner of (Picked unit)) Current gold
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Ore Extractor) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 1900 to (Owner of (Picked unit)) Current gold
-
-
Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Robotic Ore Extractor) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) controller) Equal to User
-
-
Then - Actions
-
Player - Add 2750 to (Owner of (Picked unit)) Current gold
-
-
Else - Actions
-
-
-
-
-
*EDIT*
I today just realized how to do it so yeah...
So for people who are wondering what I got and stuff later on Here is what I got!
-
Income Command
-
Events
-
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
-
Player - Player 11 (Dark Green) types a chat message containing -income as An exact match
-
Player - Player 12 (Brown) types a chat message containing -income as An exact match
-
-
Conditions
-
Actions
-
Set Trigger_Player = (Player group((Triggering player)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering player) Not equal to Player 10 (Light Blue)
-
(Triggering player) Not equal to Player 11 (Dark Green)
-
(Triggering player) Not equal to Player 12 (Brown)
-
-
Then - Actions
-
-------- GOLD --------
-
Set IncomeUnit[1] = (Number of units in (Units owned by (Triggering player) of type Market))
-
Set IncomeAmount[1] = (IncomeUnit[1] x 125)
-
Set IncomeUnit[2] = (Number of units in (Units owned by (Triggering player) of type Spacious Market))
-
Set IncomeAmount[2] = (IncomeUnit[2] x 300)
-
Set IncomeUnit[3] = (Number of units in (Units owned by (Triggering player) of type Exotic Market))
-
Set IncomeAmount[3] = (IncomeUnit[3] x 500)
-
Set IncomeUnit[4] = (Number of units in (Units owned by (Triggering player) of type International Market))
-
Set IncomeAmount[4] = (IncomeUnit[4] x 750)
-
Set IncomeUnit[5] = (Number of units in (Units owned by (Triggering player) of type Exotic International Market))
-
Set IncomeAmount[5] = (IncomeUnit[5] x 1000)
-
Set IncomeUnit[6] = (Number of units in (Units owned by (Triggering player) of type Exotic Cultural Market))
-
Set IncomeAmount[6] = (IncomeUnit[6] x 1300)
-
Set IncomeUnit[7] = (Number of units in (Units owned by (Triggering player) of type Ore Extractor))
-
Set IncomeAmount[7] = (IncomeUnit[7] x 1900)
-
Set IncomeUnit[8] = (Number of units in (Units owned by (Triggering player) of type Robotic Ore Extractor))
-
Set IncomeAmount[8] = (IncomeUnit[8] x 2750)
-
Set IncomeTotal = (IncomeAmount[1] + (IncomeAmount[2] + (IncomeAmount[3] + (IncomeAmount[4] + (IncomeAmount[5] + (IncomeAmount[6] + (IncomeAmount[7] + IncomeAmount[8])))))))
-
-------- LUMBER --------
-
Set IncomeUnit[9] = (Number of units in (Units owned by (Triggering player) of type Lumber Mill))
-
Set IncomeAmount[9] = (IncomeUnit[9] x 100)
-
Set IncomeUnit[10] = (Number of units in (Units owned by (Triggering player) of type Efficient Lumber Mill))
-
Set IncomeAmount[10] = (IncomeUnit[10] x 225)
-
Set IncomeUnit[11] = (Number of units in (Units owned by (Triggering player) of type Highly Efficient Lumber Mill))
-
Set IncomeAmount[11] = (IncomeUnit[11] x 350)
-
Set IncomeUnit[12] = (Number of units in (Units owned by (Triggering player) of type Supremely Efficient Lumber Mill))
-
Set IncomeAmount[12] = (IncomeUnit[12] x 525)
-
Set IncomeUnit[13] = (Number of units in (Units owned by (Triggering player) of type Efficiently Effective Lumber Mill))
-
Set IncomeAmount[13] = (IncomeUnit[13] x 850)
-
Set IncomeUnit[14] = (Number of units in (Units owned by (Triggering player) of type Extrapolator Lumber Mill))
-
Set IncomeAmount[14] = (IncomeUnit[14] x 1350)
-
Set IncomeUnit[15] = (Number of units in (Units owned by (Triggering player) of type Wood Extractor))
-
Set IncomeAmount[15] = (IncomeUnit[15] x 2200)
-
Set IncomeUnit[16] = (Number of units in (Units owned by (Triggering player) of type Robotic Wood Extractor))
-
Set IncomeAmount[16] = (IncomeUnit[16] x 3000)
-
Set IncomeTotal2 = (IncomeAmount[9] + (IncomeAmount[10] + (IncomeAmount[11] + (IncomeAmount[12] + (IncomeAmount[13] + (IncomeAmount[14] + (IncomeAmount[15] + IncomeAmount[16])))))))
-
Game - Display to Trigger_Player the text: (|cffffcc00Gold Income|r: + (String((Integer((Real(IncomeTotal)))))))
-
Game - Display to Trigger_Player the text: (|cff008000Lumber Income|r: + (String((Integer((Real(IncomeTotal2)))))))
-
-
Else - Actions
-
Set IncomeUnit[1] = (Number of units in (Units owned by (Triggering player) of type Pile of Flesh))
-
Set IncomeAmount[1] = (IncomeUnit[1] x 25)
-
Set IncomeUnit[2] = (Number of units in (Units owned by (Triggering player) of type Advanced Pile of Flesh))
-
Set IncomeAmount[2] = (IncomeUnit[2] x 50)
-
Set IncomeTotal = (IncomeAmount[1] + IncomeAmount[2])
-
Game - Display to Trigger_Player the text: (|cffffcc00Gold Income|r: + (String((Integer((Real(IncomeTotal)))))))
-
-
-
Custom script: call DestroyForce (udg_Trigger_Player)
-
-
Last edited: