Originally Posted by
eyelurker
Oops sorry. The corrupt bad trait normally would recieve from having inn to recruit spy.
So if i build my tavern in castle or city with no ports i shouldn't get the bad traits from inn right?
that's more complicated:
Code:
;========================================================================================= Corrupt Embezzler Upright;-------- CORRUPTION --------------------------------
; the main difference betweeen Embezzler and Corrupt is that the former is about money, while the latter about all dishonesty
; can be acquired only in a settlement
; always with TimeInRegion > 2 as getting corrupted requires building up a network of "friends" beforehand
; starts in cities (in towns only for ports and mines)
; Teenagers, Unfit immune
; depends on the buildings present and on the traits
; there're some triggers in the other parts for Bribery,
;--------------------------------------------------------
;-- level 3 of Upright is NoGoingBack, so condition not needed
;----- Corruption in large empire -------------------------
;-------------------------------------------------------
;------------------------------------------
Trigger Corruption_FarAway_NotHonest_KingNOTCrowned
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 3
and Trait FitForOffice > 1
and Trait Upright < 1
and FactionLeaderTrait Crownholder < 3
and DistanceCapital > 80
and RandomPercent > 50
Affects Corrupt 1 Chance 2
;------------------------------------------
Trigger Corrupt_FarAway_KingNOTCrowned
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 3
and Trait FitForOffice > 1
and Trait Upright < 1
and FactionLeaderTrait Crownholder < 3
and DistanceCapital > 100
and RandomPercent > 50
Affects Embezzler 1 Chance 2
;------------------------------------------
Trigger Corruption_FarAway_Trustworthy
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 3
and Trait FitForOffice > 1
and Trait Upright < 2
and DistanceCapital > 120
and RandomPercent > 50
Affects Corrupt 1 Chance 2
Affects Embezzler 1 Chance 2
;----- Corrupt from staying in a City -------------------
;--------------------------------------------------------
;-----------------------------------------
Trigger Corruption_Tavern
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 2
and Trait Wantschool < 1
and Trait FitForOffice > 1
and SettlementBuildingExists = tavern
and RandomPercent > 50
Affects Corrupt 1 Chance 2
;-----------------------------------------
Trigger Corruption_CoachingHouse
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 2
and Trait Wantschool < 1
and Trait FitForOffice > 1
and SettlementBuildingExists = coaching_house
and RandomPercent > 50
Affects Corrupt 1 Chance 3
;-----------------------------------------
Trigger Corruption_PleasurePalace
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 2
and Trait Wantschool < 1
and Trait FitForOffice > 1
and SettlementBuildingExists = pleasure_palace
and RandomPercent > 50
Affects Corrupt 1 Chance 4
;-----------------------------------------
Trigger Corruption_Mines
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 3
and Trait Wantschool < 1
and Trait FitForOffice > 1
and FactionLeaderTrait Crownholder < 3
and SettlementBuildingExists = mines1
and RandomPercent > 50
Affects Corrupt 1 Chance 2
;-----------------------------------------
Trigger Corruption_Shaft_Mines
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 3
and Trait Wantschool < 1
and Trait FitForOffice > 1
and FactionLeaderTrait Crownholder < 3
and SettlementBuildingExists = mines3
and RandomPercent > 50
Affects Corrupt 1 Chance 2
;----- Embezzler from trade buildings -------------------
;--------------------------------------------------------
;-----------------------------------------
Trigger Corruption_Port
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 2
and Trait Wantschool < 1
and Trait FitForOffice > 1
and SettlementBuildingExists = port
and RandomPercent > 50
Affects Embezzler 1 Chance 2
;-----------------------------------------
Trigger Corruption_Shipwright
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 2
and Trait Wantschool < 1
and Trait FitForOffice > 1
and SettlementBuildingExists = shipwright
and RandomPercent > 50
Affects Embezzler 1 Chance 3
;-----------------------------------------
Trigger Corruption_Dockyard
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 2
and Trait Wantschool < 1
and Trait FitForOffice > 1
and SettlementBuildingExists >= dockyard
and RandomPercent > 50
Affects Embezzler 1 Chance 4
;-----------------------------------------
Trigger Corruption_fairground
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 2
and Trait Wantschool < 1
and Trait FitForOffice > 1
and SettlementBuildingExists = fairground
and RandomPercent > 50
Affects Embezzler 1 Chance 2
;-----------------------------------------
Trigger Corruption_great_market
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 2
and Trait Wantschool < 1
and Trait FitForOffice > 1
and SettlementBuildingExists >= great_market
and RandomPercent > 50
Affects Embezzler 1 Chance 2
;-----------------------------------------
Trigger Corruption_Slavemarket
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 2
and Trait Wantschool < 1
and Trait FitForOffice > 1
and SettlementBuildingExists >= slavemarket
and RandomPercent > 50
Affects Embezzler 1 Chance 2
;-----------------------------------------
Trigger Corruption_MerchantBank
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 2
and Trait Wantschool < 1
and Trait FitForOffice > 1
and SettlementBuildingExists >= money3
and RandomPercent > 50
Affects Embezzler 1 Chance 2
;-----------------------------------------
Trigger Corruption_Italian_Trader_Quarters
WhenToTest CharacterTurnEndInSettlement
Condition not IsFactionLeader
and TimeInRegion > 2
and Trait Wantschool < 1
and Trait FitForOffice > 1
and SettlementBuildingExists >= italian_trader_quarters
and RandomPercent > 50
Affects Embezzler 1 Chance 2
;-------------------------------------------------------- self-perpetuation
;------------------------------------------
Trigger Corrupt_Selfperpetuating_NotPious
WhenToTest CharacterTurnEndInSettlement
Condition Trait Corrupt > 0
and Attribute Piety < 3
and Trait Upright < 1
and Trait FitForOffice > 1
and RandomPercent > 50
Affects Corrupt 1 Chance 2
;------------------------------------------
Trigger Corrupt_Selfperpetuating_NotLoyal
WhenToTest CharacterTurnEndInSettlement
Condition Trait Corrupt > 0
and Attribute Loyalty < 3
and Trait Upright < 1
and Trait FitForOffice > 1
and FactionLeaderTrait Crownholder < 3
and RandomPercent > 50
Affects Corrupt 1 Chance 1
;------------------------------------------
Trigger Embezzler_Selfperpetuating_NotPious
WhenToTest CharacterTurnEndInSettlement
Condition Trait Embezzler > 0
and Attribute Piety < 3
and Trait Upright < 1
and Trait FitForOffice > 1
and RandomPercent > 50
Affects Embezzler 1 Chance 2
;------------------------------------------
Trigger Embezzler_Selfperpetuating_NotLoyal
WhenToTest CharacterTurnEndInSettlement
Condition Trait Embezzler > 0
and Attribute Loyalty < 3
and Trait Upright < 1
and Trait FitForOffice > 1
and FactionLeaderTrait Crownholder < 3
and RandomPercent > 50
Affects Embezzler 1 Chance 2
;------------------------------------------------------- Old age consequences
Trigger Embezzler_Corrupt_OldAge_Loss
WhenToTest CharacterTurnEndInSettlement
Condition Trait Senile > 1
Affects Corrupt -1 Chance 10
Affects Embezzler -1 Chance 10
Affects Upright 1 Chance 3
;------------------------------------------------------- NoGoingBack
;------------------------------------------
Trigger Upright_NoGoingBack
WhenToTest CharacterTurnEnd
Condition Trait Upright < 4
and Trait Upright > 2
Affects Upright 10 Chance 100