Choose Great Person screen?

In what context? I was sitting with the policy-files right now so I can say there's an attribute for the policy called IncludesOneShotFreeUnits, so adding that screen for other policies or making new ones with it should be as easy as pie.

If you want to make something more custom there's the ChooseFreeItem.lua-file. Going through it it doesn't seem complicated, what's hard might be making some event for when you'll get that option to choose a free person.

Though if you just want it on say turn 100 or after 10 won battles you can use existing events and maybe even call some function from the ChooseFreeItem.lua-file. I'd love to say there's a complete manual with all the events, but the search-function in Windows is really nice when looking for things in the Civ 5-files. Typing *.lua is great for when you're not sure what the file could be called (like when I was looking for the free-items-file).
 
There's the Building_FreeUnits-table that links to the Buildings-table (just search for "free" in the game files and see what comes up). There you can type whatever unit you'll get, probably on completion though I'm actually not sure.

If there's no screen in-game that pops up at say when other buildings complete you'll probably need to use LUA to copy it from somewhere else.
 
Back
Top Bottom