I'm working on creating a change that works alongside Gedemon's historical spawn dates mod (https://forums.civfanatics.com/threads/historical-spawn-dates.614266/). I have a few ideas and currently I'm trying to code so that when a player spawns nearby cities flip over (like Rhye's and Fall). It's not too complicated if I were to add a massive loyalty buff to the palace but the problem is how to disable it after 5 turns or so? Would a lua function be able to disable the xml database file that updates the palace?
Here's the code so far:
Any ideas or is it not possible?
Here's the code so far:
Code:
<GameInfo>
<BuildingModifiers>
<Row BuildingType="BUILDING_PALACE" ModifierId="PALACE_LOYALTY"/>
</BuildingModifiers>
<Modifiers>
<Row>
<ModifierId>PALACE_LOYALTY</ModifierId>
<ModifierType>MODIFIER_SINGLE_CITY_ADJUST_IDENTITY_PER_TURN</ModifierType>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>PALACE_LOYALTY</ModifierId>
<Name>Amount</Name>
<Value>50</Value>
</Row>
</ModifierArguments>
Any ideas or is it not possible?