Awesome! I've now submitted this feature. It's a big one, and I hope you guys enjoy it once it's published on PC Games N. I'll drop the link in here when it's ready.
Thank you all for your help. It's been really enlightening trying to wrap my head around the basics of how scripts, the DLL, and mods in general work in Civ 6, and crucially I hope that someone at Firaxis pays attention to the piece and makes life a little easier for you guys working with the game down the line.
Thanks for your work ktek78.
Unfortunately I have not a lot of hopes for seeing more being released
The game is probably not being maintained as closely as it used to at this stage.
I am modding for the CivPlayerLeague (CPL, a mostly American-centric competitive Multi-player league for Civilization), and those mods (Better Balanced Game, Better Balanced Start, Better Spectator Mod and lately multiplayer helper) are staples of most Civ6 esports tournaments (e.g. CivWorldCup, CCC, Zlan, Zaty's cup).
However in spite of a good relationship with Firaxis, our querries to have access to the source code have always been denied, and recently our flagging of game breaking exploits had less follow up from their devs (hopefully that's because they are busy on an expansion or a new civ).
It is a problem because we have to build patch from the lua end to fix something that need to be address from down below (e.g. Pantheon exploit, GG bugs)... That's ok in most instances but sometimes it leads to clumsy solutions. For instances in big casted games we had to fudge the numbers for the cultural victory in the game UI to exclude the casters (i.e. the game mechanic is based on the number of players in the game, but for the final of the US vs. Russia CWC we had 2 English casters, a Russian caster and a French caster) or force the casters to vote in the world congress to offset their impact...