Hello Leoreth,
Once again I've been researching the codes for the Democratic Caliphate (rev 707) and I stumbled upon DynamicCivs.py. Python is my weakest of the 3 (I have to learn C++ in college and XML is trivial).
But my question here isn't related to the python code itself (I guess), but rather to when the name checks are done.
I have seen that on the end of the file there are some functions related to when to check the civ names, these are:
I'd like to know a few things:
1- Are these the only conditions to check Civ Names? Or are there others in other files?
2- Is there a cpp file related to Dynamic Civ Names? If so which is(are) it(they)?
3- If I try to toy a bit with the python code and create new functions or only new conditions inside existing functions to check names, is this enough for them to work? If this isn't trivial don't bother to explain me how, I understand you don't have time to teach anyone here with doubts on CIV's programming stuff.
4- If the previous question is true (or not), is it also trivial to add a new entry to DynamicNames_
Civ.XML to be used in the .py? E.g. If I want England to have a specific name when it adopts Islam (in rev 707 that doesn't exist, not sure in newer revs), and assuming I did change the .py to have a condition to check that, can I create an entry like TXT_KEY_CIV_ENGLAND_BRITISH_SULTANATE in the XML and use it on DynamicCivs.py?
Sorry to be asking about a really old revision again, I'd love to bring the Democratic Caliphate to a newer revision but I fear this is impossible, and I really don't want to abandon this amazing story on S&T.