Modifiers for Historical Spawn Dates Mod

MAHRana

Prince
Joined
May 22, 2010
Messages
324
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:
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?
 
You could add/remove a temporary building using lua.
 
Back
Top Bottom