[BUG?] <EffectType>CulturePerTurn* doesn't work in ColonizeEventDefs.xml

I'm seeing what I'm thinking might be a bug with colonizeventdefs & cultureperturnbene/pragma/merc, specifically you get nothing if you try to set it.  The only place that it seems to be used is improvementdefs.xml giving me the idea that there are probably more effecttypes other than instant that won't work in colonizeeventdefs.   Has anyone been able to make this work or find a way to spawn a specific improvement from colonizeventdefs choices on the planet.   It looks like PerformAction might allow one/the other/or both, but I can't seem to figure out a way to gwet it past the syntax checker without any examples to pull from in the xml :(  Has anybody gotten something like this to work?

 

 

<Choice>
<Type>Benevolent</Type>
<Description>SentientPlanetEvent_Benevolent_Bonus_Name</Description>
<BonusDescription>SentientPlanetEvent_Benevolent_Bonus_Dec</BonusDescription>
<Trigger>
<OnEvent>OnEventChoice</OnEvent>
<Target>
<TargetType>Faction</TargetType>
</Target>
<Lifetime>Instant</Lifetime>
<Modifier>
<EffectType>CulturePerTurnBenevolent</EffectType>
<Target>

<TargetType>Faction</TargetType>
</Target>
<BonusType>Flat</BonusType>
<Value>35</Value>
</Modifier>
</Trigger>
<Trigger>
<OnEvent>OnEventChoice</OnEvent>
<Target>
<TargetType>Planet</TargetType>
</Target>
<Lifetime>Target</Lifetime>
<Modifier>
<EffectType>Research</EffectType>
<Target>
<TargetType>Colony</TargetType>
</Target>
<BonusType>Multiplier</BonusType>
<Value>0.2</Value>
</Modifier>
</Trigger>
</Choice>

End of quote

 

Originally I was trying a number <1, but I even tried bumping it to 35 just in case something too small to notice was happening.

 

 

6,850 views 3 replies
Reply #1 Top

This seems to produce the result you want. Although, I just checked and it is tied to the faction and remains in effect for the faction even after change of ownership of the planet.

<OnEvent>OnEventChoice</OnEvent>
        <Target>
          <TargetType>Faction</TargetType>
        </Target>
        <Lifetime>Target</Lifetime>
        <Modifier>
          <EffectType>CulturePerTurnMerciless</EffectType>
          <Target>
            <TargetType>Faction</TargetType>
          </Target>
          <BonusType>Flat</BonusType>
          <Value>20</Value>
        </Modifier>

Reply #2 Top

Quoting Moogle65535, reply 1

This seems to produce the result you want. Although, I just checked and it is tied to the faction and remains in effect for the faction even after change of ownership of the planet.

<OnEvent>OnEventChoice</OnEvent>
        <Target>
          <TargetType>Faction</TargetType>
        </Target>
        <Lifetime>Target</Lifetime>
        <Modifier>
          <EffectType>CulturePerTurnMerciless</EffectType>
          <Target>
            <TargetType>Faction</TargetType>
          </Target>
          <BonusType>Flat</BonusType>
          <Value>20</Value>
        </Modifier>
End of Moogle65535's quote

 

Thank you very much for the help, I appreciate it after spending the last couple days frantically looking for (and later recovering) my lost dog.  It looks like that in addition to <Lifetime>Target</Lifetime>, that <Lifetime>Source</Lifetime> also works.  That also doesn't update with a change in ownership, at least not from simply trading the planet away to the first ai I met.  The fact that it works at all is more important right now than the fact that it doesn't transfer with the planet

Reply #3 Top

It's not targeting the planet, it's targeting the faction.  You can try changing the target to 'colony' or 'planet'... but I don't think those are valid targets for cultureperturn bonuses.