Hmm, I guess that for me it would still be my silly ''a bit like civilization but not really'' strategy ''engine''.
The game's divided into days, which function as turns.
-Every day you gain Production, Food, Research, Gold - every variable is calculated on the spot and depends on the number of buildings, number of citizens, technology level and event modifiers. Then some food is consumed by the population (again, depends on how many citizens you have and how much you feed them).
- Additionally Happiness / Unrest, Hygiene / Pollution, Security / Danger is calculated. Again, depends on everything.
- Every day you also generate resources like wood, stone, etc. Depends on random chance for things like gems, number of woodcutters for wood.
- There is a chance that you will get additional citizen(s) every day. Then you assign them jobs, like Harvester or Explorer. Most buildings require X workers to function. The birth chance depends, again, on a pile of factors like hygiene, housing, etc.
- At last events are picked from a pool, they depend on the previously mentioned stats - if your pollution is high, there may be a magical explosion. If your danger is high, mutants may invade and kill some of your people, etc.
Now, what do you do with those things?
- Use resources and production to build buildings. Place whatever you want wherever you want on the world map. Then you can enjoy the passive benefits or use them (like shops).
- Use research to unlock technologies (there is a proper tech tree) that in turn give you access to new buildings, new classes, equipment and other stuff.
- Use Gold to bribe your way through events, diplomacy and trade. Also buy your explorers new equipment and useful gear.
- Use leftover food for expeditions that will give you treasure in return, most of the time.
And where does the RPG element come into play?
Well, some of your citizens are explorers, meaning that they are your usual actors in an RPG game. They level up, fight, do all that stuff. You also pick their names, classes, gendrers, all that stuff. On top of that there are some special premade characters that may eventually join you. All characters can die forever though, so be careful, but at the same time they can all be replaced...
Took me a lot time to get it to work but the whole package functions pretty well at this stage.
The coolest part? It's all evented. Only scripts I'm using are lighting, combat, ''use item on event'' (since it can't really be evented well) and better dialogue.