Work on the v. 098 is moving forwards. For instance, I've reviewed the triggers for PublicFaith, inherited from the base SS (or maybe even earlier).
The previous version:
Code:
;========================================================================================= Spreading own faith;----- Spreading own faith ------------------------------
;------------------------------------------
;character is spreading the faith in lands of the heretics
Trigger contemplative_lifestyle
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= small_church
and PopulationOwnReligion < 50
Affects PublicFaith 1 Chance 5
;------------------------------------------
;character is spreading the faith in lands of the heretics
Trigger contemplative_lifestyle1
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= small_church_o
and PopulationOwnReligion < 50
Affects PublicFaith 1 Chance 5
;------------------------------------------
;character is spreading the faith in lands of the heretics
Trigger contemplative_lifestyle2
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= small_masjid
and PopulationOwnReligion < 50
Affects PublicFaith 1 Chance 5
;------------------------------------------
;character is spreading the faith in lands of the heretics
Trigger contemplative_lifestyle3
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= small_chapel
and PopulationOwnReligion < 50
Affects PublicFaith 1 Chance 5
;------------------------------------------
;character is spreading the faith in lands of the heretics
Trigger contemplative_lifestyle4
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= small_chapel_o
and PopulationOwnReligion < 50
Affects PublicFaith 1 Chance 5
;------------------------------------------
;character is spreading the faith in lands of the heretics
Trigger contemplative_lifestyle5
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= c_small_masjid
and PopulationOwnReligion < 50
Affects PublicFaith 1 Chance 5
;------------------------------------------
Trigger selfperpetuating69
WhenToTest CharacterTurnEnd
Condition Trait PublicAtheism >= 1
and PopulationOwnReligion < 33
and not AtSea ; might be needed because sea has no religion ReligionShift and the condition fails altogether (is ignored as a condition) and he therefore gets the trait when at sea
Affects PublicAtheism 1 Chance 4
The new version:
Code:
;========================================================================================= PublicFaith: Spreading own faith
;------------------------------------------------------ Catholic
Trigger PublicFaith_OwnReligion_City_Catholic
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= church ; T2 level (higher levels don't make much change, and even if - it'd to into worse)
and TimeInRegion > 2 ; not just visiting or resting
and RemainingMPPercentage > 90 ; has time for thinking
and Trait Pragmatic < 2
and Trait Intelligence < 8
and Trait CounterOfBattles < 5 ; has not yet seen too many bad things to be contemplative
and Trait Officeholder < 1 ; as above
and not FactionExcommunicated ; only for Catholics
and RandomPercent > 50 ; = 2.5% per turn
Affects PublicFaith 1 Chance 5
;------------------------------------------
Trigger PublicFaith_SpreadingFaith_City_Catholic
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= small_church ; T1 level
and PopulationOwnReligion < 50 ; the very spreading of faith strenghtens it too
and TimeInRegion > 2
and RemainingMPPercentage > 90
and Trait Xenophilia < 1 ; if you understand the others, you don't get too religious
and Trait Pragmatic < 2
and Trait Intelligence < 8
and Trait CounterOfBattles < 5
and Trait Officeholder < 1
and not FactionExcommunicated
and RandomPercent > 50 ; it stacks with the previous: altogher 5% per turn
Affects PublicFaith 1 Chance 5
;------------------------------------------
Trigger PublicFaith_OwnReligion_Castle_Catholic
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= chapel
and TimeInRegion > 2
and RemainingMPPercentage > 90
and Trait Pragmatic < 2
and Trait Intelligence < 8
and Trait CounterOfBattles < 5
and Trait Officeholder < 1
and not FactionExcommunicated
and RandomPercent > 50
Affects PublicFaith 1 Chance 5
;------------------------------------------
Trigger PublicFaith_SpreadingFaith_Castle_Catholic
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= small_chapel
and PopulationOwnReligion < 50
and TimeInRegion > 2
and RemainingMPPercentage > 90
and Trait Xenophilia < 1
and Trait Pragmatic < 2
and Trait Intelligence < 8
and Trait CounterOfBattles < 5
and Trait Officeholder < 1
and not FactionExcommunicated
and RandomPercent > 50
Affects PublicFaith 1 Chance 5
;------------------------------------------------------ Orthodox
Trigger PublicFaith_OwnReligion_City_Orthodox
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= church_o
and TimeInRegion > 2
and RemainingMPPercentage > 90
and Trait Pragmatic < 2
and Trait Intelligence < 8
and Trait CounterOfBattles < 5
and Trait Officeholder < 1
and RandomPercent > 50
Affects PublicFaith 1 Chance 5
;------------------------------------------
Trigger PublicFaith_SpreadingFaith_City_Orthodox
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= small_church_o
and PopulationOwnReligion < 50
and TimeInRegion > 2
and RemainingMPPercentage > 90
and Trait Xenophilia < 1
and Trait Pragmatic < 2
and Trait Intelligence < 8
and Trait CounterOfBattles < 5
and Trait Officeholder < 1
and RandomPercent > 50
Affects PublicFaith 1 Chance 5
;------------------------------------------
Trigger PublicFaith_OwnReligion_Castle_Orthodox
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= chapel_o
and TimeInRegion > 2
and RemainingMPPercentage > 90
and Trait Pragmatic < 2
and Trait Intelligence < 8
and Trait CounterOfBattles < 5
and Trait Officeholder < 1
and RandomPercent > 50
Affects PublicFaith 1 Chance 5
;------------------------------------------
Trigger PublicFaith_SpreadingFaith_Castle_Orthodox
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= small_chapel_o
and PopulationOwnReligion < 50
and TimeInRegion > 2
and RemainingMPPercentage > 90
and Trait Xenophilia < 1
and Trait Pragmatic < 2
and Trait Intelligence < 8
and Trait CounterOfBattles < 5
and Trait Officeholder < 1
and RandomPercent > 50
Affects PublicFaith 1 Chance 5
;------------------------------------------------------ Muslim
Trigger PublicFaith_OwnReligion_City_Muslim
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= masjid
and TimeInRegion > 2
and RemainingMPPercentage > 90
and Trait Pragmatic < 2
and Trait Intelligence < 8
and Trait CounterOfBattles < 5
and Trait Officeholder < 1
and RandomPercent > 50
Affects PublicFaith 1 Chance 5
;------------------------------------------
Trigger PublicFaith_SpreadingFaith_City_Muslim
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= small_masjid
and PopulationOwnReligion < 50
and TimeInRegion > 2
and RemainingMPPercentage > 90
and Trait Xenophilia < 1
and Trait Pragmatic < 2
and Trait Intelligence < 8
and Trait CounterOfBattles < 5
and Trait Officeholder < 1
and RandomPercent > 50
Affects PublicFaith 1 Chance 5
;------------------------------------------
Trigger PublicFaith_OwnReligion_Castle_Muslim
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= c_masjid
and TimeInRegion > 2
and RemainingMPPercentage > 90
and Trait Pragmatic < 2
and Trait Intelligence < 8
and Trait CounterOfBattles < 5
and Trait Officeholder < 1
and RandomPercent > 50
Affects PublicFaith 1 Chance 5
;------------------------------------------
Trigger PublicFaith_SpreadingFaith_Castle_Muslim
WhenToTest CharacterTurnEndInSettlement
Condition SettlementBuildingExists >= c_small_masjid
and PopulationOwnReligion < 50
and TimeInRegion > 2
and RemainingMPPercentage > 90
and Trait Xenophilia < 1
and Trait Pragmatic < 2
and Trait Intelligence < 8
and Trait CounterOfBattles < 5
and Trait Officeholder < 1
and RandomPercent > 50
Affects PublicFaith 1 Chance 5
;------------------------------------------------------ Other situations
; a few situations are coded elsewhere - but they were not yet reviewed
;------------------------------------------
Trigger PublicFaith_Selfperpetuation_PublicFaith
WhenToTest CharacterTurnEnd
Condition Trait PublicFaith > 1 ; this is little: perhaps 1 pt in life
and RandomPercent > 80
Affects PublicFaith 1 Chance 5
;------------------------------------------
Trigger PublicFaith_Senile
WhenToTest CharacterTurnEnd
Condition Trait PublicAtheism < 1
and Trait Senile > 0
Affects PublicFaith 1 Chance 5
;========================================================================================= PublicAtheism
; very few triggers for this trait, should be modded to have'm more
;------------------------------------------
Trigger PublicFaith_Selfperpetuation_PublicAtheism
WhenToTest CharacterTurnEnd
Condition Trait PublicAtheism > 1 ; this is little: perhaps 1 pt in life
and RandomPercent > 80
Affects PublicAtheism 1 Chance 5
;------------------------------------------
Trigger PublicFaith_PublicAtheism
WhenToTest CharacterTurnEnd
Condition Trait PublicAtheism > 0
and Trait Senile > 0
Affects PublicFaith 1 Chance 5 ; effects of old age are equivocal for the atheists
Affects PublicAtheism 1 Chance 10