In order to create a more realistic and dynamic form of artificial intelligence, A State Machine that only affects the entities really is not going to cut it. After doing some research, a method I came across called "Goal Oriented Action Planning," or "GOAP" for short, is a way to create broad goals for the artificial intelligence to complete, as well as pre-defined actions that the AI can use to complete it's goal, and it will logically choose what action is best. For example, if the civilization is running low on food, it won't create a bunch of lumberjacks or build houses, it will build docks and fishing ships.

oh did I not mention fishing ships?

I am working on the newest update, and with school out for the year, I should be able to work on this project much more frequently.