- Joined
- Feb 20, 2007
- Messages
- 338
This is what I am trying to do.
None of my buildings give "food" instead the player has to raise farmers who can plant crops and harvest crops. Further I have other sources of food in the form of chickens and sheep.
Ideally the set up will be to where if the number of food is below the number of units that eat (living units) that randomly picked nonhero units will be leaving the game map (converting them to a neutral team as they walk away to a point where they are removed) and where no new units can be trained until the food supply is able to sustain them.
I have fields of corn (crops) which are destructible (see picture).
My first question related to how the corn does not go away when it is "killed". The corn remains now pathless but there is still corn. Is there away to remove the image/art/model of the corn once it dies?
2. I have it based on a tree destructible - unfortunately harvesting stacks in the lumber. Right now I have a secondary trigger that adds -10 lumber each time a corn dies (its HP gives it one trip to the barn or lumber processing station.) It then adds 1 food to the player's food - which in turn is being "eaten" a minus of 1 food per living unit (non building, non mechanical) at 19:00 (supper time) in another trigger.
Is there a better way to make my crops not add to the lumber but still have my units harvesting crops? While having trees add lumber as usual (need lumber, gold and food)?
Any suggestions, ideas or directions welcomed.
None of my buildings give "food" instead the player has to raise farmers who can plant crops and harvest crops. Further I have other sources of food in the form of chickens and sheep.
Ideally the set up will be to where if the number of food is below the number of units that eat (living units) that randomly picked nonhero units will be leaving the game map (converting them to a neutral team as they walk away to a point where they are removed) and where no new units can be trained until the food supply is able to sustain them.
I have fields of corn (crops) which are destructible (see picture).
My first question related to how the corn does not go away when it is "killed". The corn remains now pathless but there is still corn. Is there away to remove the image/art/model of the corn once it dies?
2. I have it based on a tree destructible - unfortunately harvesting stacks in the lumber. Right now I have a secondary trigger that adds -10 lumber each time a corn dies (its HP gives it one trip to the barn or lumber processing station.) It then adds 1 food to the player's food - which in turn is being "eaten" a minus of 1 food per living unit (non building, non mechanical) at 19:00 (supper time) in another trigger.
Is there a better way to make my crops not add to the lumber but still have my units harvesting crops? While having trees add lumber as usual (need lumber, gold and food)?
Any suggestions, ideas or directions welcomed.