building resource moddifier

Graptemys

Chieftain
Joined
Sep 26, 2011
Messages
3
I was wondering if there was a way to make buildings modify the amount of a strategic resource. Lets say I have a building and I want it to increase the amount of a strategic resource, say 25%. So before the building I have 4 of a strategic resource, and after I build the building, I will have 5 of the strategic resource. Is there a way to do this?
 
Is there a way in LUA to check for how many of a resource you have at the beginning of each turn, and then give more of that resource based upon how many you already have?

Is there a way to run a LUA that checks to see if you have a building, if that building is present the LUA counts how many of a resource you have. If you have x of the resource, it gives you y of the same resource. That way you wouldn't be doing it as a percent. If you have 4 of a resource, you get 1 more with the building.

I would think there would be away to accomplishment this by doing something similar to the building resources mod, but I know nothing of LUA coding.
 
Back
Top Bottom