Murkatal
New Member
- Reaction score
- 3
For gold and Lumber income is it a trigger like, for every 1 (building) add 10 gold every 15 seconds, or is it something that is included in the game and is changed in editor?
Okay, I'll edit this post in a sec.
Edit: Done...
Trigger:
- Map Init
- Events
- Time - Elapsed game time is 0.01 seconds
- Conditions
- Actions
- Set Gold_Income_Integer = 0
- Set Lumber_Income_Integer = 0
- -------- Change these if you want a starter income. --------
Trigger:
- Income
- Events
- Time - Every 30.00 seconds of game time
- Conditions
- Actions
- Player - Add Gold_Income_Integer to Player 1 (Red) Current gold
- Player - Add Lumber_Income_Integer to Player 1 (Red) Current lumber
Trigger:
- Each farm
- Events
- Unit - A unit Finishes construction
- Conditions
- (Unit-type of (Constructed structure)) Equal to Farm
- Actions
- Set Gold_Income_Integer = (Gold_Income_Integer + 10)
- -------- Change the "10" to whatever increase for each farm you want. --------
- Set Lumber_Income_Integer = (Lumber_Income_Integer + 10)
If you need help with finding any of the "functions" used for each thing, like "(Gold_Income_Integer + 10)" is done through "Arithmetic" (Since I had these problems when asking for help. )
Oh sorry!this will work for only player 1 thought: keep that in mind!