- Joined
- Jun 9, 2005
- Messages
- 49
Hello, Im currently trying to get a trigger to work when A unit is inside a farm, then every 60 seconds a 1000 wood (or food in this case) is given to all the players, but I want this only work if the farm has at least one person in, and the effect is increased per person inside the farm.
I made a small effort but its been doing my head in.
--------
Farm Mill
Events
Unit - A unit Is loaded into a transport
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Transporting unit)) Equal to Farm Mill
((Unit-type of (Triggering unit)) Equal to Slave) or ((Unit-type of (Targeted unit)) Equal to Villager)
Actions
Trigger - Turn on Generate <gen>
--------
Generate
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
Player - Add 1000 to Player 1 (Red) Current lumber
Player - Add 1000 to Player 2 (Blue) Current lumber
Player - Add 1000 to Player 3 (Teal) Current lumber
Player - Add 1000 to Player 4 (Purple) Current lumber
Player - Add 1000 to Player 5 (Yellow) Current lumber
Player - Add 1000 to Player 6 (Orange) Current lumber
Player - Add 1000 to Player 7 (Green) Current lumber
Player - Add 1000 to Player 8 (Pink) Current lumber
Player - Add 1000 to Player 9 (Gray) Current lumber
Player - Add 1000 to Player 10 (Light Blue) Current lumber
Player - Add 1000 to Player 11 (Dark Green) Current lumber
Player - Add 1000 to Player 12 (Brown) Current lumber
--------
I made a small effort but its been doing my head in.
--------
Farm Mill
Events
Unit - A unit Is loaded into a transport
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Transporting unit)) Equal to Farm Mill
((Unit-type of (Triggering unit)) Equal to Slave) or ((Unit-type of (Targeted unit)) Equal to Villager)
Actions
Trigger - Turn on Generate <gen>
--------
Generate
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
Player - Add 1000 to Player 1 (Red) Current lumber
Player - Add 1000 to Player 2 (Blue) Current lumber
Player - Add 1000 to Player 3 (Teal) Current lumber
Player - Add 1000 to Player 4 (Purple) Current lumber
Player - Add 1000 to Player 5 (Yellow) Current lumber
Player - Add 1000 to Player 6 (Orange) Current lumber
Player - Add 1000 to Player 7 (Green) Current lumber
Player - Add 1000 to Player 8 (Pink) Current lumber
Player - Add 1000 to Player 9 (Gray) Current lumber
Player - Add 1000 to Player 10 (Light Blue) Current lumber
Player - Add 1000 to Player 11 (Dark Green) Current lumber
Player - Add 1000 to Player 12 (Brown) Current lumber
--------