So I want to make a mini-mod that expands the dynamic names so you can have categories for vassals of all nations, like America or Japan. I traced the string from the text files to CvRhyes.cpp but don't know where to go from there. Any ideas?
Other RFC mods, such as Dawn of Civilization and Sword of Islam, moved the dynamic names to python, making them much easier for relatively inexperienced modders to work with. I suppose you could probably take DoC's system and add it to your version of RFC.
if iMaster == iMali and pMasterPlayer.getCivics(3) == con.iStateProperty:
self.setCivDesc(iPlayer, self.malicommieVassals[iPlayer])
return
self.malicommieVassals = {
iInca : "TXT_KEY_CIV_INCA_MALICOMMIE_VASSAL",
}
<TEXT>
<Tag>TXT_KEY_CIV_INCA_MALICOMMIE_VASSAL</Tag>
<English>Whatever you want as name</English>
</TEXT>
That should do it, but probably won't show up in game.