Actually with the Income system it will take you like 6 or 7 triggers at most. Basically when you get a Beacon, you need to create a burrowed Zerg unit on it for this system to work. Zerglings will belong to Player 1, Hydras will belong to Player 2, etc. And the upgrade is represented by a building.
Trigger 1:
Trigger |
Conditions: |
¤ Countdown timer is exactly 0.
|
¤ Neutral Player controls exactly 0 Zergling. |
Actions: |
¤ Set Income.
|
¤ Wait for 1000 miliseconds.
|
¤ Clear Income.
|
¤ Set Income Check.
|
¤ Set countdown timer to 10 seconds.
|
¤ Give all Zerglings owned by Player 1 to Neutral Player.
|
¤ Preserve trigger. |
Trigger 2:
Trigger |
Conditions: |
¤ Income Check is Set.
|
¤ Player 1 commands exactly 0 Zerglings.
|
¤ Player 1 controls exactly 0 Upgrade. |
Actions: |
¤ Center location (called P1 Beacon) on all Zergling owned by Neutral Player at anywhere.
|
¤ Give 1 burrowed Zergling at P1 Beacon from Neutral Player to Player 1.
|
¤ Add 1 to gas for Player 1.
|
¤ Preserve trigger. |
Trigger 3:
Trigger |
Conditions: |
¤ Income Check is Set.
|
¤ Player 1 commands exactly 0 Zerglings.
|
¤ Player 1 controls exactly 1 Upgrade. |
Actions: |
¤ Center location (called P1 Beacon) on all Zergling owned by Neutral Player at anywhere.
|
¤ Give 1 burrowed Zergling at P1 Beacon from Neutral Player to Player 1.
|
¤ Add 2 to gas for Player 1.
|
¤ Preserve trigger. |
Trigger 4:
Trigger |
Conditions: |
¤ Income is set.
|
¤ Player 1 has at least 1 gas.
|
¤ Player 1 has at most 4 gas. |
Actions: |
¤ Subtract 1 gas from Player 1.
|
¤ Add 1 to ore for Player 1.
|
¤ Preserve trigger. |
Trigger 5:
Trigger |
Conditions: |
¤ Income is set.
|
¤ Player 1 has at least 5 gas.
|
¤ Player 1 has at most 40 gas. |
Actions: |
¤ Subtract 5 gas from Player 1.
|
¤ Add 5 to ore for Player 1.
|
¤ Preserve trigger. |
Trigger 1 sets the income and the income refresher when the timer runs out. Basically at 0, you get all your gas in minerals and then all the gas is refilled when the computer rechecks to see what you have.
Trigger 2 adds gas to your income for each beacon you have, without the upgrade.
Trigger 3 adds gas to your income for each beacon you have, with the upgrade.
Triggers 4 and 5 manage the income transfer.
There may be one trigger I'm missing, but that's the basic idea. And I know there's also an easier way to do some things in this, too (like the setting and clearing of the Income switch).