- Joined
- Mar 31, 2016
- Messages
- 657
I need help writing triggers for a hunting system and a farming system.
I'm using @ZiBitheWand3r3r 's Harvest Resource System for harvestable resources. It works for lumber as well as custom resources harvested from destructibles.
Food (gold) is harvested from plants\crops (berry bush, wheat, corn, etc), corpses of animals, and fish (just like in Age of Empires. Crops, corpses and fish are all destructibles and everything except fish and certain plants are spawned via triggers. After an animal finishes death animation and begins decay animation, the unit should turn into a certain sized destructible corpse (bigger animals have bigger corpses and more meat). Crops are the tricky part although I've seen it done before in Dark Deeds and Medieval Villagers. Make a 'Plow Farmland' ability to turn grass terrain into farm terrain (should not work on mountain terrain) + seed items will be used exclusively on farm terrain to spawn crops. Crops grow in stages - first a baby crop, then matures into a full sized crop after a minute. Another feature should also be that mature crops reproduce each minute spawning baby crops nearby only if there is free space (so if there is already a farm full of crops, they wont reproduce because its already crowded).
Appreciate any help and advice. Also if anybody can rip trigger(s) off Dark Deeds/Medieval Villagers, I can re-implement them to my map - that could get the job done.
I'm using @ZiBitheWand3r3r 's Harvest Resource System for harvestable resources. It works for lumber as well as custom resources harvested from destructibles.
Food (gold) is harvested from plants\crops (berry bush, wheat, corn, etc), corpses of animals, and fish (just like in Age of Empires. Crops, corpses and fish are all destructibles and everything except fish and certain plants are spawned via triggers. After an animal finishes death animation and begins decay animation, the unit should turn into a certain sized destructible corpse (bigger animals have bigger corpses and more meat). Crops are the tricky part although I've seen it done before in Dark Deeds and Medieval Villagers. Make a 'Plow Farmland' ability to turn grass terrain into farm terrain (should not work on mountain terrain) + seed items will be used exclusively on farm terrain to spawn crops. Crops grow in stages - first a baby crop, then matures into a full sized crop after a minute. Another feature should also be that mature crops reproduce each minute spawning baby crops nearby only if there is free space (so if there is already a farm full of crops, they wont reproduce because its already crowded).
Appreciate any help and advice. Also if anybody can rip trigger(s) off Dark Deeds/Medieval Villagers, I can re-implement them to my map - that could get the job done.
Last edited: