- Joined
- Apr 1, 2009
- Messages
- 201
Income Trigger
Not sure what is wrong with it but it only player red gets income, If it seems like I'm missing something please tell me. Any help at all would be greatly appreciated. (For setting up the integers 1-8 is for the gold income and 9-18 is for the lumber income)
-
Actions
-
For each (Integer B) from 1 to 8, do (Actions)
-
Loop - Actions
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type IncomeUNIT_TYPE[(Integer B)]) and do (Actions)
-
Loop - Actions
-
Player - Add IncomeMoney[(Integer B)] to (Owner of (Picked unit)) Current gold
-
-
-
-
-
For each (Integer B) from 9 to 18, do (Actions)
-
Loop - Actions
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type IncomeUNIT_TYPE[(Integer B)]) and do (Actions)
-
Loop - Actions
-
Player - Add IncomeMoney[(Integer B)] to (Owner of (Picked unit)) Current lumber
-
-
-
-
-
-
Actions
-
Set IncomeUNIT_TYPE[1] = Tavern
-
Set IncomeMoney[1] = 125
-
Set IncomeUNIT_TYPE[2] = Temple
-
Set IncomeMoney[2] = 300
-
Set IncomeUNIT_TYPE[3] = Holy Temple
-
Set IncomeMoney[3] = 500
-
Set IncomeUNIT_TYPE[4] = Market
-
Set IncomeMoney[4] = 750
-
Set IncomeUNIT_TYPE[5] = Castle Keep
-
Set IncomeMoney[5] = 1000
-
Set IncomeUNIT_TYPE[6] = Royal Castle
-
Set IncomeMoney[6] = 1300
-
Set IncomeUNIT_TYPE[7] = Nuclear Power Plant
-
Set IncomeMoney[7] = 1900
-
Set IncomeUNIT_TYPE[8] = Trade Center
-
Set IncomeMoney[8] = 2750
-
Set IncomeUNIT_TYPE[9] = Pile of Flesh
-
Set IncomeMoney[9] = 25
-
Set IncomeUNIT_TYPE[10] = Advanced Pile of Flesh
-
Set IncomeMoney[10] = 50
-
Set IncomeUNIT_TYPE[11] = Farm
-
Set IncomeMoney[11] = 100
-
Set IncomeUNIT_TYPE[12] = Lumber Mill
-
Set IncomeMoney[12] = 225
-
Set IncomeUNIT_TYPE[13] = Efficient Lumber Mill
-
Set IncomeMoney[13] = 350
-
Set IncomeUNIT_TYPE[14] = Quarry
-
Set IncomeMoney[14] = 525
-
Set IncomeUNIT_TYPE[15] = Blacksmith
-
Set IncomeMoney[15] = 850
-
Set IncomeUNIT_TYPE[16] = Windmill
-
Set IncomeMoney[16] = 1350
-
Set IncomeUNIT_TYPE[17] = Advanced Windmill
-
Set IncomeMoney[17] = 2200
-
Set IncomeUNIT_TYPE[18] = Solar Pannel Network
-
Set IncomeMoney[18] = 3000
-
-
Events
-
Time - Every 1.00 seconds of game time
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
IncomeTime Equal to 1
-
-
Then - Actions
-
Set IncomeTime = 45
-
Trigger - Run Income <gen> (checking conditions)
-
-
Else - Actions
-
Set IncomeTime = (IncomeTime - 1)
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
SecondTime Equal to 59
-
-
Then - Actions
-
Set SecondTime = 0
-
Set MinuteTime = (MinuteTime + 1)
-
-
Else - Actions
-
Set SecondTime = (SecondTime + 1)
-
-
-
Multiboard - Set the text for Multiboard item in column 3, row 1 to (String(IncomeTime))
-
Multiboard - Set the text for Multiboard item in column 5, row 1 to (String(MinuteTime))
-
Multiboard - Set the text for Multiboard item in column 6, row 1 to (String(SecondTime))
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Multiboard - Set the text for Multiboard item in column 5, row ((Player number of (Picked player)) + 2) to (String(((Picked player) Current gold)))
-
Multiboard - Set the text for Multiboard item in column 6, row ((Player number of (Picked player)) + 2) to (String(((Picked player) Current lumber)))
-
-
-
-
Not sure what is wrong with it but it only player red gets income, If it seems like I'm missing something please tell me. Any help at all would be greatly appreciated. (For setting up the integers 1-8 is for the gold income and 9-18 is for the lumber income)
Last edited: