I would have to have a look into the general naming system before I can do that.
That would be great!
We can handle the following right now:
Code:
<DCNCondition>
<DCNConditionCivic>NONE</DCNConditionCivic>
<DCNConditionOrCivic1>NONE</DCNConditionOrCivic1>
<DCNConditionOrCivic2>NONE</DCNConditionOrCivic2>
<DCNConditionReligion>NONE</DCNConditionReligion>
<DCNConditionNotReligion>NONE</DCNConditionNotReligion>
<DCNConditionVassalOf>CIVILIZATION_BYZANTIUM</DCNConditionVassalOf>
<DCNConditionGenericVassal>1</DCNConditionGenericVassal>
<DCNConditionMasterlOf>NONE</DCNConditionMasterlOf>
<DCNConditionGenericMasterl>0</DCNConditionGenericMasterl>
<DCNConditionAfterTurn>0</DCNConditionAfterTurn>
<DCNName>TXT_KEY_DN_ARA10</DCNName>
</DCNCondition>
So each civilization has new tags describing DCN (Dynamic Civ Names). The tag identify condition, that have to be satisfied for the civilization to assume the given name. A check for "change name" is triggered when a civilization founds/conquers/razes/trades a city, changes civics or changes vassal status.
Conditions are parsed one by one, top to bottom. The first condition that gets "satisfied" becomes the name for the civilization. Each condition has several tags that need to be ALL "satisfied" for the condition to be "satisfied".
- three or civics, if you are running any of the three civics, then all three are considered satisfied. If they are listed as "NONE", they are automatically satisfied regardless of what you are running.
- religion, you have to have the same state religion in order to satisfy this one. NOTE: "NONE" here doesn't mean no-state-religion, "NONE" means ANY religion, state or otherwise.
- not religion, you must have a different state religion to satisfy this one (this is used to more easily identify "Christian" vs "Muslim", religion: Islam -> Caliphate, not-religion: Islam -> Kingdom). NOTE: "NONE" here means it is automatically satisfied.
- VassalOf and GenericVassal are used together. You have to first set "GenericVassal" to 1, then set the specific master. NONE for the master means any master.
- Same for MasterOf and GenericMaster
- After Turn gets satisfied when you go pass that turn.
PS: Actually it's more than enough if you give me the names for the different conditions. I will put them in the xml
If some other category is needed, 3Miro said he will code it