View Full Version : Spiritual Trait Modding Help


Silence101
Nov 20, 2007, 02:28 PM
I'm doing some modding on the leader traits and I've hit a bit of a speed bump with the Spiritual Trait. Spiritual adds a production bonus to all temples, which is fine of itself, but I would also like to add a production bonus to all monasteries and cathedrals as well.

The problem I'm running into is that I can't find how the game knows to give Spiritual a production bonus to temples. It doesn't appear to be defined through the Buildinginfos XML like most trait production bonuses. I can add the trait production bonus to the various individual monasteries and cathedrals through the Buildinginfos XML but it displays each religious building separately in the Pedia entry which is annoying.

So basically, the short of it is that I want to model the Spiritual trait's production bonus on temples to monasteries and cathedrals in the same manner. Does anyone know how to do this?

Cybah
Nov 20, 2007, 02:44 PM
<BuildingInfo>

<ProductionTraits>
<ProductionTrait>
<ProductionTraitType>TRAIT_SPIRITUAL</ProductionTraitType>
<iProductionTrait>100</iProductionTrait>
</ProductionTrait>
</ProductionTraits>


...for each building. I know this is annoying. ;-)


But I don't know any other possibilities.

Silence101
Nov 20, 2007, 03:06 PM
<BuildingInfo>

<ProductionTraits>
<ProductionTrait>
<ProductionTraitType>TRAIT_SPIRITUAL</ProductionTraitType>
<iProductionTrait>100</iProductionTrait>
</ProductionTrait>
</ProductionTraits>


...for each building. I know this is annoying. ;-)


But I don't know any other possibilities.

Thanks, but I know how to do this - The Spiritual production bonus to temples isn't defined this way... I'm not sure how it's being defined, and that's more what I'm asking.

Cybah
Nov 20, 2007, 03:32 PM
oh so u've tried it already this way? hm...

snipperrabbit!!
Nov 21, 2007, 04:46 AM
Those are special building also. It might be where lie your problem.