- Joined
- Apr 19, 2011
- Messages
- 447
Hi everyone.
I need some help to make an upgrade for a custom race I'm working on. Basicly, if this upgrade has been researched, when a worker leaves wood in a lumberyard, the player receives a 20% additional amount of wood. As far as I know, there's no default upgrade with this effect, so this has to be triggered.
I have two main questions:
- How can I detect when a worker leaves wood in a lumberyard? This is really important, because the upgrade only works if the wood is gathered in lumberyards (it's one the race's buildings), not in the main buildings. I think I know how to check when a worker leaves wood, but I don't know how to check what's the type of the building where's being left.
- How can I detect the amount of wood that's being left in the lumberyard? This is also important, because the race has upgrades that increase the amount of wood the workers can gather.
Maybe this is easier than I think, but right now I can't think of a way of doing it...
Thanks for your attention.
Kind Regards
I need some help to make an upgrade for a custom race I'm working on. Basicly, if this upgrade has been researched, when a worker leaves wood in a lumberyard, the player receives a 20% additional amount of wood. As far as I know, there's no default upgrade with this effect, so this has to be triggered.
I have two main questions:
- How can I detect when a worker leaves wood in a lumberyard? This is really important, because the upgrade only works if the wood is gathered in lumberyards (it's one the race's buildings), not in the main buildings. I think I know how to check when a worker leaves wood, but I don't know how to check what's the type of the building where's being left.
- How can I detect the amount of wood that's being left in the lumberyard? This is also important, because the race has upgrades that increase the amount of wood the workers can gather.
Maybe this is easier than I think, but right now I can't think of a way of doing it...
Thanks for your attention.
Kind Regards