clausewitz77
Tillito77
I am pretty new to modding, but in Civ5, I had created a mod which changed the names of some civilizations when a new era had started. Let's say, Rome became Italy in the industrial era. I want to do the same in Civ6. I think I found out everything I need, except the most basic:
How can I dynamically, I guess in lua, rename a civilization?
In Civ5, I could do:
civInfo.ShortDescription = Locale.ConvertTextKey(newKey)
But here, even after hours of reading posts and looking through other mods, I did not find out how to achieve this in Civ6. The closest I found, was to rename a city, where (in the Rosetta Dynamic City Name mod), I found:
pCity:SetName("New name")
But this exist for cities only, not for civilizations, from what I read.
So, in the end, I would like to change the name for Rome from LOC_CIVILIZATION_ROME_NAME to LOC_CIVILIZATION_ROME_NAME_INDUSTRIAL. Same for Description and Adjective.
For example, is it possible to trigger an SQL update script (SQL file) by lua during the game? Maybe this is done with "criteria" in the project settings? If so, how is it done?
I am really stuck and would be happy about any hint that can point me into the right direction.
How can I dynamically, I guess in lua, rename a civilization?
In Civ5, I could do:
civInfo.ShortDescription = Locale.ConvertTextKey(newKey)
But here, even after hours of reading posts and looking through other mods, I did not find out how to achieve this in Civ6. The closest I found, was to rename a city, where (in the Rosetta Dynamic City Name mod), I found:
pCity:SetName("New name")
But this exist for cities only, not for civilizations, from what I read.
So, in the end, I would like to change the name for Rome from LOC_CIVILIZATION_ROME_NAME to LOC_CIVILIZATION_ROME_NAME_INDUSTRIAL. Same for Description and Adjective.
For example, is it possible to trigger an SQL update script (SQL file) by lua during the game? Maybe this is done with "criteria" in the project settings? If so, how is it done?
I am really stuck and would be happy about any hint that can point me into the right direction.
Last edited: