TK_civftcs
Chieftain
Hello people, halp halp pls
Edit: Solved. I didnt need to change .xml:s, but the ingame database. Doing that is somewhat limited, but on some cases possible.
I have been unable to find this information so far: is it possible to edit .xml files with lua scripts during a running game?
I wish to create a script that would allow me to create a city state out of an already existing major civ city, and the issue is I can't possibly predefine the correct citystate properties inside an xml before loading the mod. This script has to work for any city and civ in play.
Example of desired functionality: the end of Roman empire has come, Mediolanum decides "fukk-a-this, I'm-a citystate-a now #yolo #solo" and breaks free. They become a new citystate: I have enabled all 40ish citystates possible in the pregame and made them not have a single city until now. I pick from the list of citystates, and modify its xml entry to "The Best CS of Mediolanum" and change the ownership of the city Mediolanum to the citystate. The CS loads its information from the .xml files which have been modified, showing as "Mediolanum."
-TK
Edit: Solved. I didnt need to change .xml:s, but the ingame database. Doing that is somewhat limited, but on some cases possible.
I have been unable to find this information so far: is it possible to edit .xml files with lua scripts during a running game?
I wish to create a script that would allow me to create a city state out of an already existing major civ city, and the issue is I can't possibly predefine the correct citystate properties inside an xml before loading the mod. This script has to work for any city and civ in play.
Example of desired functionality: the end of Roman empire has come, Mediolanum decides "fukk-a-this, I'm-a citystate-a now #yolo #solo" and breaks free. They become a new citystate: I have enabled all 40ish citystates possible in the pregame and made them not have a single city until now. I pick from the list of citystates, and modify its xml entry to "The Best CS of Mediolanum" and change the ownership of the city Mediolanum to the citystate. The CS loads its information from the .xml files which have been modified, showing as "Mediolanum."
-TK