Settings
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Dialog - Create a dialog button for Settings_Dialog labelled Units
Set Button_Dialog[1] = (Last created dialog Button)
Dialog - Create a dialog button for Settings_Dialog labelled Food
Set Button_Dialog[2] = (Last created dialog Button)
Dialog - Create a dialog button for Settings_Dialog labelled Gold
Set Button_Dialog[3] = (Last created dialog Button)
Dialog - Create a dialog button for Settings_Dialog labelled Structures
Set Button_Dialog[4] = (Last created dialog Button)
-------- --------
Dialog - Change the title of Settings_Dialog to Set income
Dialog - Show Settings_Dialog for Player 1 (Red)
Trigger - Turn on SettingsChosen <gen>
SettingsChosen
Events
Dialog - A dialog button is clicked for Settings_Dialog
Conditions
Actions
-------- This Function of the Trigger is When the Dialog buttons is Clicked

--------
-------- It makes a Boolean True and The Boolean has mutch to say

--------
Set PlayerForce = (All players controlled by a User player)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Set CounterPlayer = (Picked player)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Button_Dialog[1]
Then - Actions
Set Unit[(Player number of CounterPlayer)] = True
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Button_Dialog[2]
Then - Actions
Set Food[(Player number of CounterPlayer)] = True
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Button_Dialog[3]
Then - Actions
Set Gold[(Player number of CounterPlayer)] = True
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Button_Dialog[4]
Then - Actions
Set Structures[(Player number of CounterPlayer)] = True
Else - Actions
Trigger - Turn on IncomeTimer <gen>
Custom script: call DestroyForce(udg_PlayerForce)
IncomeTimer
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
-------- You can easily change the income timer. Default is 30 seconds. --------
-------- --------
-------- --------
-------- First of all i pick all players --------
Set Income_PlayerForce = (All players controlled by a User player)
Player Group - Pick every player in Income_PlayerForce and do (Actions)
Loop - Actions
-------- Here i set the player variable --------
Set Player[(Player number of (Picked player))] = (Picked player)
-------- Im setting the income --------
Set Income[(Player number of (Picked player))] = (Count[(Player number of (Picked player))] x 10)
-------- Then i give the player his income --------
Player - Add Income[(Player number of (Picked player))] to (Picked player) Current gold
-------- And last, i show the income of all players in use --------
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Picked player)) + ('s income: + (String(Income[(Player number of (Picked player))]))))
Custom script: call DestroyForce(udg_Income_PlayerForce)
Counter
Events
Time - Every 0.47 seconds of game time
Conditions
Actions
-------- Basiccly What this Does is Counting All the Things over and over again to Make the Counter Right

--------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Unit[(Player number of CounterPlayer)] Equal to True
Then - Actions
Set Count[(Player number of CounterPlayer)] = (Count non-structure units controlled by CounterPlayer (Exclude incomplete units))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Food[(Player number of CounterPlayer)] Equal to True
Then - Actions
Set Count[(Player number of CounterPlayer)] = (CounterPlayer Food used)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Gold[(Player number of CounterPlayer)] Equal to True
Then - Actions
Set Count[(Player number of CounterPlayer)] = ((CounterPlayer Current gold) / 20)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Structures[(Player number of CounterPlayer)] Equal to True
Then - Actions
Set Count[(Player number of CounterPlayer)] = (Count structures controlled by CounterPlayer (Exclude incomplete structures))
Else - Actions