Hello I am making a game based on survival and resource management inspired by games like Surviving Mars and Planet Base. I want to make a building give X amount of resources one time only not every tick. For Example,
Recruitment Agency gives 10 workers per Recruitment Agency Purchased.
It was pretty simple to do on the old IGM format but I am unsure of how to do it on the new format. Any help would be appreciated.
I have figured out how to do it but when i click the building it gives 10 workers even though I don't have the required resources to purchase the building. so I added the req line which stops me being able to spam workers even without required resources. I know it has something to do with my req line. can someone please show me how to do. Here is my code.
desc:Agencies provide workers used to gather resources.<//>Effect:
<.>gives 10 Workers for each agency.
cost:4 Steel, 4 BioPlastic
on click:gain 10 Workers
How to make it so the building doesn't disappear when I don't have 4 steel and 4 bioplastic.