
Hello all. I'm trying to create a grand-strategy game for my friend group and I'd really like to set up some sort of automated resource calculator. For example, each player will make a certain amount of gold per turn that is added to their treasury. Is there some script or code API wizardry I could add to my game that automates and keeps track of this for me and assigns each player an inventory? I need a flexible and easy to understand system in which i can change a player's income of resources on the fly e.g. if a town of their's is destroyed, the rate of gold the make is decreased. I'd also like it to be easily adjustable in case more resources are added than just gold. Are there any pre-existing addons/scripts like this?