- Joined
- Oct 6, 2006
- Messages
- 293
Ok on my map im trying to make peasants spawn up to my max food cap. Every trigger I try trigures the peasants every 30 seconds but it goes past the cap and makes it red. Any suggestions? Currently just tried
Events
Time - Every 30.00 seconds of game time
Conditions N/A
Actions
If all conditions are true then do actions else do actions.
If - condtions
Player 1 Red food max Not Equal to number of living peasants owned by player 1.
Then- actions
Unit - Create 1 Peasant for Player 1(red) at random point in north Town center <gen> facting defualt building degree's.
Else actions
Do nothing
Made with triggers no jass. It seems so simple and Im sure it is but just cant make them stop spawning once the amount of peasants equals my food cap. Ive tried other triggers messing with the food cap and max etc.
Events
Time - Every 30.00 seconds of game time
Conditions N/A
Actions
If all conditions are true then do actions else do actions.
If - condtions
Player 1 Red food max Not Equal to number of living peasants owned by player 1.
Then- actions
Unit - Create 1 Peasant for Player 1(red) at random point in north Town center <gen> facting defualt building degree's.
Else actions
Do nothing
Made with triggers no jass. It seems so simple and Im sure it is but just cant make them stop spawning once the amount of peasants equals my food cap. Ive tried other triggers messing with the food cap and max etc.