Code:
Mod for M2TW "Regions & Provinces" ver.3.38
ENG:
While playing this great mod, raised some problems in my HRE campaign. Thats why i now try to find out how the LOYALTY-SYSTEM works.
Nearly 1/3 of my Generals got rebels, that sucks!
The purpose of this project is to solve these kind of problems.
DE:
Beim Spielen des HRR sind arge Probleme mit der Loyalität einiger Generäle aufgetreten.
Dieses Projekt soll dazu dienen herauszufinden, was genau alles die Loyalität beeinflusst!
***************************
** PROJECT starts here: ***
***************************
NOTES (Eng)
Apparently, i forget the traits outside the "LOAYLTY-SECTION", thats why i have to check the EDT again to gather these datas too!
Bemarkungen (DE)
Scheinbar habe ich einige Traits übersehen. Ich muss daher nochmals die EDT checken und die Fehlenden noch erfassen.
********* LOYALTY UND AUTORITÄT SYSTEM (Eigenschaften) *********
Trait AuthorityCareer Characters family
Level Gauth1 Threshold 1 Effect Authority 2
Level Gauth2 Threshold 2 Effect Authority 4
Level Gauth3 Threshold 3 Effect Authority 6
Trait Lose authority Characters family
Level auth1 Threshold 1 Effect Unrest 1
Level auth2 Threshold 2 Effect Unrest 2
Level auth3 Threshold 3 Effect Unrest 4
Level auth4 Threshold 4 Effect Unrest 6
Level auth5 Threshold 5 Effect Unrest 8
Level auth6 Threshold 6 Effect Unrest 10
Level auth7 Threshold 7 Effect Unrest 12
Level auth8 Threshold 8 Effect Unrest 14
Level auth9 Threshold 9 Effect Unrest 16
Trait Near_Loyalty Characters family AntiTraits Far_Loyalty
Level Trusted Threshold 1 Effect Loyalty 1
Level Trusted1 Threshold 4 Effect Loyalty 2 Effect TroopMorale 1
Level Trusted2 Threshold 6 Effect Loyalty 3 Effect TroopMorale 1
Trait Far_Loyalty Characters family AntiTraits Near_Loyalty
Level Tempted Threshold 2 Effect Loyalty -1 Effect TroopMorale -1
Level Tempted1 Threshold 4 Effect Loyalty -2 Effect TroopMorale -2
Level Tempted2 Threshold 7 Effect Loyalty -4 Effect TroopMorale 2 Effect PersonalSecurity 1
Level Tempted3 Threshold 11 Effect Loyalty -6 Effect TroopMorale 3 Effect PersonalSecurity 2
Trait Obedient Characters family AntiTraits Disobedient
Level Obedient1 Threshold 1 Effect Loyalty 2
Level Obedient2 Threshold 2 Effect Loyalty 4 Effect Command 1
Trait Disobedient Characters family AntiTraits Obedient
Level Disob1 Threshold 1 Effect Command -2 Effect TroopMorale -2 Effect Unrest 2
Effect Law -5 Effect TaxCllctn -10 Effect Trading -10
Level Disobdnt2 Threshold 2 Effect Loyalty -10 Effect Law -200 Effect Unrest 250
Effect TaxCllctn -50 Effect Trading -10 Effect LocalPopularity -10
Effect MvmntPnts -15
Trait IDisobedient Characters family Ungehorsam
Level IDsbdnt1 Threshold 1 Effect Command -2 Effect TroopMorale -2 Effect Unrest 2
Effect Law -5 Effect TaxCllctn -10 Effect Trading -10
Level IDsbdnt2 Threshold 2 Effect Loyalty -10 Effect Law -200 Effect Unrest 250
Effect TxCllctn -50 Effect Trading -10 Effect LocalPopularity -10
Effect MovementPoints -15
Trait Locked Characters family
Level Locked Threshold 1 Effect MovementPoints -25
Trait ExRebel Characters family AntiTraits Gregarious
Level Rebelled Threshold 1 Effect Loyalty -1
Level Rebelious Threshold 2 Effect Loyalty -2
Level Turncoat Threshold 3 Effect Loyalty -3
Trait Stripped Characters family
Level Stripped Threshold 1 Effect Loyalty -1 Effect TroopMorale -2
Level Str.again Threshold 2 Effect Loyalty -4 Effect TroopMorale 2 Effect Command 1
Trait Off_To_Nobles Characters family
Level Off1 Threshold 1 Effect LocalPop -1
Level Off2 Threshold 2 Effect LocalPopularity -2
;------------------------------------------
Trait Hates_Father
Characters family
NoGoingBackLevel 1
AntiTraits Loves_Father
Level Hatedad1
Description Hatedad1_desc
EffectsDescription Hatedad1_effects_desc
Threshold 1
Effect Loyalty -1
Level Hatedad2
Description Hatedad2_desc
EffectsDescription Hatedad2_effects_desc
Threshold 3
Effect Loyalty -2
;------------------------------------------
Trait Royal_Blood_JEDE FRAKTION/ for every faction
Characters family
Level Royal_Blood_Armenia
Description Royal_Blood_Armenia_desc
EffectsDescription Royal_Blood_Armenia_effects_desc
Threshold 1
Effect Loyalty 1
;------------------------------------------
Trait Royal_Relation_HRE
Characters family
Level Royal_Relation_HRE
Description Royal_Relation_HRE_desc
EffectsDescription Royal_Relation_HRE_effects_desc
Threshold 1
Effect Loyalty -1
;------------------------------------------
Trait HouseMember
Characters family
Level HouseMember
Description HouseMember_desc
EffectsDescription HouseMember_effects_desc
Threshold 1
Effect Loyalty 1
Level ImperialHouseMember
Description ImperialHouseMember_desc
EffectsDescription ImperialHouseMember_effects_desc
Threshold 2
Effect Loyalty 1
Effect Authority 1
;------------------------------------------
Trait grlpower
Characters family
NoGoingBackLevel 1
Level grlp1
Description grlp1_desc
EffectsDescription grlp1_effects_desc
Threshold 1
Effect Loyalty -2
Level grlp2
Description grlp2_desc
EffectsDescription grlp2_effects_desc
Threshold 3
Effect Loyalty -3
;------------------------------------------
Trait Loves_Father
Characters family
NoGoingBackLevel 1
AntiTraits Hates_Father
Level Lovedad1
Description Lovedad1_desc
EffectsDescription Lovedad1_effects_desc
Threshold 1
Effect Loyalty 1
Level Lovedad2
Description Lovedad2_desc
EffectsDescription Lovedad2_effects_desc
Threshold 3
Effect Loyalty 2
;------------------------------------------
Trait Poulains
Characters family
ExcludeCultures middle_eastern, mesoamerican, greek
Level Poulains
Description Poulains_desc
EffectsDescription Poulains_effects_desc
Threshold 1
Effect Loyalty -1
;------------------------------------------
Trait Clergy_Edu
Characters family
Level Novice
Description Novice_desc
EffectsDescription Novice_effects_desc
Threshold 1
Effect Piety 1
Effect Loyalty 1
Level Ordination
Description Ordination_desc
EffectsDescription Ordination_effects_desc
Threshold 2
Effect Piety 3
Effect Loyalty -1
Effect TroopMorale 2
Effect Law 1
Effect BattleSurgery 10
;------------------------------------------
Trait Castle_Edu
Characters family
Level Squire
Description Squire_desc
EffectsDescription Novice_effects_desc
Threshold 1
Effect MovementPoints 5
Effect Loyalty 1
;------------------------------------------
Trait Cap_Edu
Characters family
Level Paige
Description Paige_desc
EffectsDescription Paige_effects_desc
Threshold 1
Effect Law 1
Effect Loyalty 1
;------------------------------------------
Trait Humane
Characters family
NoGoingBackLevel 1
AntiTraits Hardened
Level Humane
Description Humane_desc
EffectsDescription Humane_effects_desc
GainMessage Humane1_gain
Threshold 1
Effect Command -2
Effect HitPoints -1
Effect Piety 1
Effect BattleSurgery 5
Level Humane2
Description Humane2_desc
EffectsDescription Humane2_effects_desc
GainMessage Humane2_gain
Threshold 3
Effect Command -3
Effect TroopMorale -1
Effect Loyalty -1
Effect HitPoints -1
Effect Piety 3
Effect BattleSurgery 10
;-------------------------
Trait kingass
Characters family
AntiTraits kingall
Level kingass
Description kingass_desc
EffectsDescription kingass_effects_desc
GainMessage kingass_gain_desc
Threshold 1
Effect Loyalty -1
;------------------------------------------
Trait ail
Characters family
Hidden
Level basic_l_bonus
Description ail_desc
EffectsDescription ail_effects_desc
Threshold 1
Effect Loyalty 1
Effect TroopMorale 1 ;to slightly counter supply system.
;------------------------------------------
Trait EnviousOfHeir
Characters family
Level EnviousOfHeir
Description EnviousOfHeir_desc
EffectsDescription EnviousOfHeir_effects_desc
Threshold 1
Effect Loyalty -1
;------------------------------------------
Trait ImpEgg
Characters family
Level ImpEgg
Description ImpEgg_desc
EffectsDescription ImpEgg_effects_desc
Threshold 1
Effect Command 3
Effect TroopMorale 1
Effect Loyalty -10
;------------------------------------------
Trait ImpHatched
Characters family
Level ImpHatched
Description ImpHatched_desc
EffectsDescription ImpHatched_effects_desc
Threshold 1
Effect Loyalty -2
;------------------------------------------
Trait RivalConquer_Constantinople1
Characters family
ExcludeCultures greek
AntiTraits RivalConquer_Constantinople
Level RivalConquer_Constantinople1
Description RivalConquer_Constantinople1_desc
EffectsDescription RivalConquer_Constantinople1_effects_desc
GainMessage RivalConquer_Constantinople1_gain_desc
Threshold 1
Effect Command 2
Effect Authority 1
Effect TroopMorale 1
Effect Loyalty -1
;------------------------------------------
Trait GreekConquer_Constantinople1
Characters family
ExcludeCultures northern_european, southern_european, eastern_european, middle_eastern, mesoamerican
AntiTraits GreekConquer_Constantinople
Level GreekConquer_Constantinople1
Description GreekConquer_Constantinople1_desc
EffectsDescription GreekConquer_Constantinople1_effects_desc
GainMessage GreekConquer_Constantinople1_gain_desc
Threshold 1
Effect Command 1
Effect Authority 1
Effect Law 1
Effect TroopMorale 1
Effect Loyalty -1
;------------------------------------------
Trait Visit_Jerusalem2
Characters family
Level Visit_Jerusalem2
Description visit_Jerusalem2_desc
EffectsDescription Visit_Jerusalem2_effects_desc
GainMessage Visit_Jerusalem2_gain_desc
Threshold 1
Effect Piety -1
Effect Loyalty -1
;------------------------------------------
Trait Visit_Jedda2
Characters family
Level Visit_Jedda2
Description Visit_Jedda2_desc
EffectsDescription Visit_Jedda2_effects_desc
GainMessage Visit_Jedda2_gain_desc
Threshold 1
Effect Piety -1
Effect Loyalty -1
;------------------------------------------
Trait VanquisherRoman
Characters family
Level AlmostVanquisherRoman
Description AlmostVanquisherRoman_desc
EffectsDescription AlmostVanquisherRoman_effects_desc
Threshold 20
Level VanquisherRoman
Description VanquisherRoman_desc
EffectsDescription VanquisherRoman_effects_desc
Threshold 30
Effect Authority 1
Effect Command 1
Effect Loyalty -1
;------------------------------------------
Trait Fearsslave
Characters family
AntiTraits Hatesslave
Level Wary_of_Rebels
Description Wary_of_Rebels_desc
EffectsDescription Wary_of_Rebels_effects_desc
Threshold 1
Level Fears_Rebelling_Forces
Description Fears_Rebelling_Forces_desc
EffectsDescription Fears_Rebelling_Forces_effects_desc
Threshold 2
Effect TroopMorale -1
Level Terrified_of_Rebellion
Description Terrified_of_Rebellion_desc
EffectsDescription Terrified_of_Rebellion_effects_desc
Threshold 4
Effect Loyalty 1
Effect TroopMorale -2
;------------------------------------------
Trait Hatesslave
Characters family
NoGoingBackLevel 3
AntiTraits Fearsslave
Level Dislikes_Rebels
Description Dislikes_Rebels_desc
EffectsDescription Dislikes_Rebels_effects_desc
Threshold 1
Level Hates_Rebels
Description Hates_Rebels_desc
EffectsDescription Hates_Rebels_effects_desc
Threshold 2
Effect TroopMorale 1
Level Loathes_Rebelious_Scum
Description Loathes_Rebelious_Scum_desc
EffectsDescription Loathes_Rebelious_Scum_effects_desc
GainMessage Loathes_Rebelious_Scum_gain_desc
Threshold 4
Effect Loyalty 1
;------------------------------------------
Trait LoyaltyStarter
Characters family
Hidden
Level Loyalty_Starting_Value
Description Loyalty_Starting_Value_desc
EffectsDescription Loyalty_Starting_Value_effects_desc
Threshold 1
Effect Loyalty 5
;------------------------------------------
Trait Feck
Characters family
NoGoingBackLevel 2
AntiTraits Prim, RhetoricSkill
Level Strong_Language
Description Strong_Language_desc
EffectsDescription Strong_Language_effects_desc
Threshold 1
Effect Piety -1
Effect Command 1
Effect TroopMorale 1
Level Foul_Mouthed
Description Foul_Mouthed_desc
EffectsDescription Foul_Mouthed_effects_desc
Threshold 2
Effect Chivalry -1
Effect Piety -2
Effect Command 1
Effect TroopMorale 2
Level Spits_Venom
Description Spits_Venom_desc
EffectsDescription Spits_Venom_effects_desc
Threshold 3
Effect Chivalry -2
Effect Piety -3
Effect Loyalty -1
Effect Unrest 1
Effect TroopMorale 3
Level Utterly_Profane
Description Utterly_Profane_desc
EffectsDescription Utterly_Profane_effects_desc
GainMessage Utterly_Profane_gain_desc
Epithet Utterly_Profane_epithet_desc
Threshold 5
Effect Chivalry -4
Effect Piety -4
Effect Loyalty -2
Effect Unrest 2
Effect TroopMorale 4
;------------------------------------------
Trait PoliticsSkill
Characters family
NoGoingBackLevel 1
Level Political_Promise
Description Political_Promise_desc
EffectsDescription Political_Promise_effects_desc
Threshold 1
Effect Authority 1
Level Political_Animal
Description Political_Animal_desc
EffectsDescription Political_Animal_effects_desc
Threshold 6
Effect Loyalty -1
Effect Authority 1
Effect TrainingAgents 1
Level Perfect_Politician
Description Perfect_Politician_desc
EffectsDescription Perfect_Politician_effects_desc
Epithet Pol_epi
Threshold 12
Effect Loyalty -2
Effect Authority 1
Effect TrainingAgents 2
;------------------------------------------
Trait Stoic
Characters family
NoGoingBackLevel 2
AntiTraits Epicurean
Level Reserved
Description Reserved_desc
EffectsDescription Reserved_effects_desc
Threshold 1
Effect BribeResistance 10
Level Stone_Faced
Description Stone_Faced_desc
EffectsDescription Stone_Faced_effects_desc
Threshold 2
Effect Loyalty 1
Effect BribeResistance 20
Level Utterly_Stoic
Description Utterly_Stoic_desc
EffectsDescription Utterly_Stoic_effects_desc
Threshold 4
Effect Loyalty 2
Effect BribeResistance 30
;------------------------------------------
Trait Austere
Characters family
NoGoingBackLevel 2
AntiTraits ExpensiveTastes, Aesthetic
Level Severe
Description Severe_desc
EffectsDescription Severe_effects_desc
Threshold 1
Effect BribeResistance 10
Effect TaxCollection 2
Level Austere
Description Austere_desc
EffectsDescription Austere_effects_desc
Threshold 2
Effect Loyalty 1
Effect BribeResistance 20
Effect TaxCollection 5
Level Severely_Austere
Description Severely_Austere_desc
EffectsDescription Severely_Austere_effects_desc
Threshold 4
Effect Loyalty 2
Effect BribeResistance 30
Effect TaxCollection 10
;------------------------------------------
Trait DeceiverVirtue
Characters family
Level Convincing
Description Convincing_desc
EffectsDescription Convincing_effects_desc
Threshold 2
Effect Loyalty -1
Level Deceptive
Description Deceptive_desc
EffectsDescription Deceptive_effects_desc
Threshold 4
Effect Loyalty -2
Effect Authority 1
Level Total_Deceiver
Description Total_Deceiver_desc
EffectsDescription Total_Deceiver_effects_desc
Epithet Total_Deceiver_epithet_desc
Threshold 6
Effect Loyalty -3
Effect Authority 1
;------------------------------------------
Trait Upright
Characters family
NoGoingBackLevel 2
AntiTraits Corrupt, Embezzler, Liar, Girls, Drink, Perverted, ExpensiveTastes
Level Honest
Description Honest_desc
EffectsDescription Honest_effects_desc
Threshold 1
Effect Loyalty 1
Effect BribeResistance 10
Effect Law 2
Level Trustworthy
Description Trustworthy_desc
EffectsDescription Trustworthy_effects_desc
Threshold 2
Effect Loyalty 2
Effect BribeResistance 20
Effect Law 4
Level Utterly_Immaculate
Description Utterly_Immaculate_desc
EffectsDescription Utterly_Immaculate_effects_desc
Epithet Utterly_Immaculate_epithet_desc
Threshold 4
Effect Loyalty 3
Effect BribeResistance 30
Effect Law 6
;------------------------------------------
Trait Corrupt
Characters family
NoGoingBackLevel 2
AntiTraits Upright
Level Dubious
Description Dubious_desc
EffectsDescription Dubious_effects_desc
Threshold 1
Effect BribeResistance -2
Effect TaxCollection -10
Effect Law -1
Level Underhanded
Description Underhanded_desc
EffectsDescription Underhanded_effects_desc
Threshold 3
Effect Loyalty -1
Effect BribeResistance -4
Effect TaxCollection -20
Effect Law -2
Level Corrupt
Description Corrupt_desc
EffectsDescription Corrupt_effects_desc
Threshold 5
Effect Loyalty -2
Effect BribeResistance -6
Effect TaxCollection -30
Effect Law -3
;------------------------------------------
Trait Disloyal
Characters family
NoGoingBackLevel 3
AntiTraits Loyal
Level Speaks_of_Loyalty
Description Speaks_of_Loyalty_desc
EffectsDescription Speaks_of_Loyalty_effects_desc
Threshold 1
Effect Loyalty -1
Level Mixed_Loyalties
Description Mixed_Loyalties_desc
EffectsDescription Mixed_Loyalties_effects_desc
Threshold 2
Effect Chivalry -1
Effect Loyalty -2
Level Disloyal
Description Disloyal_desc
EffectsDescription Disloyal_effects_desc
Threshold 3
Effect Chivalry -2
Effect Loyalty -3
Level Actively_Disloyal
Description Actively_Disloyal_desc
EffectsDescription Actively_Disloyal_effects_desc
Threshold 4
Effect Chivalry -3
Effect Loyalty -4
;------------------------------------------
Trait Loyal
Characters family
NoGoingBackLevel 3
AntiTraits Disloyal
Level Generally_Loyal
Description Generally_Loyal_desc
EffectsDescription Generally_Loyal_effects_desc
Threshold 1
Effect Loyalty 1
Level Loyal
Description Loyal_desc
EffectsDescription Loyal_effects_desc
Threshold 3
Effect Chivalry 1
Effect Loyalty 2
Level Very_Loyal
Description Very_Loyal_desc
EffectsDescription Very_Loyal_effects_desc
Threshold 5
Effect Chivalry 2
Effect Loyalty 3
Level Loyal_Beyond_Question
Description Loyal_Beyond_Question_desc
EffectsDescription Loyal_Beyond_Question_effects_desc
Threshold 7
Effect Chivalry 3
Effect Loyalty 4
;------------------------------------------
Trait Just
Characters family
NoGoingBackLevel 2
AntiTraits Unjust, HarshJustice, LenientJustice, Perverted
Level A_Sense_of_Justice
Description A_Sense_of_Justice_desc
EffectsDescription A_Sense_of_Justice_effects_desc
Threshold 1
Effect Chivalry 1
Effect Law 1
Effect Loyalty 1
Level Just
Description Just_desc
EffectsDescription Just_effects_desc
Threshold 3
Effect Chivalry 2
Effect Law 2
Effect Loyalty 2
Level Serves_Justice
Description Serves_Justice_desc
EffectsDescription Serves_Justice_effects_desc
Epithet Serves_Justice_epithet_desc
Threshold 5
Effect Chivalry 3
Effect Law 3
Effect Loyalty 3
;------------------------------------------
Trait ContentGeneral
Characters family
AntiTraits DiscontentGeneral
Level Feels_Appreciated
Description Feels_Appreciated_desc
EffectsDescription Feels_Appreciated_effects_desc
Threshold 1
Effect Loyalty 1
Level Feels_Respected
Description Feels_Respected_desc
EffectsDescription Feels_Respected_effects_desc
Threshold 4
Effect Loyalty 2
Level Feels_Honoured
Description Feels_Honoured_desc
EffectsDescription Feels_Honoured_effects_desc
Threshold 8
Effect Loyalty 3
;------------------------------------------
Trait ContentGeneral
Characters family
AntiTraits DiscontentGeneral
Level Feels_Appreciated
Description Feels_Appreciated_desc
EffectsDescription Feels_Appreciated_effects_desc
Threshold 1
Effect Loyalty 1
Level Feels_Respected
Description Feels_Respected_desc
EffectsDescription Feels_Respected_effects_desc
Threshold 4
Effect Loyalty 2
Level Feels_Honoured
Description Feels_Honoured_desc
EffectsDescription Feels_Honoured_effects_desc
Threshold 8
Effect Loyalty 3
;------------------------------------------
Trait DiscontentGeneral
Characters family
AntiTraits ContentGeneral
Level Feels_Unappreciated
Description Feels_Unappreciated_desc
EffectsDescription Feels_Unappreciated_effects_desc
Threshold 1
Effect Loyalty -1
Level Feels_Disrespected
Description Feels_Disrespected_desc
EffectsDescription Feels_Disrespected_effects_desc
Threshold 4
Effect Loyalty -2
Level Feels_Dishonoured
Description Feels_Dishonoured_desc
EffectsDescription Feels_Dishonoured_effects_desc
Threshold 8
Effect Loyalty -3
;------------------------------------------
Trait MarriedAPrincess
Characters family
Level Royal_Ties
Description Royal_Ties_desc
EffectsDescription Royal_Ties_effects_desc
Threshold 1
Effect Loyalty 1
;------------------------------------------
Trait FamousPirate
Characters admiral
Level Dangerous_Captain
Description Dangerous_Captain_desc
EffectsDescription Dangerous_Captain_effects_desc
Threshold 1
Effect Loyalty -1
Effect NavalCommand 1
Level Famous_Pirate
Description Famous_Pirate_desc
EffectsDescription Famous_Pirate_effects_desc
Threshold 2
Effect Loyalty -2
Effect NavalCommand 2
Level Notorious_Pirate
Description Notorious_Pirate_desc
EffectsDescription Notorious_Pirate_effects_desc
Threshold 3
Effect Loyalty -3
Effect NavalCommand 3
******************************************************************
*** TRAIT SECTION END ************************
*** Ende des Abschnitts Charactermerkmale ************************
******************************************************************
*******************************************************************************************
********* LOYALTY- AND AUTORITY-SYSTEM TRIGGER (Auslöser) ********************************
** All Triggers below an chance of affect of 5% were igrnored! ****************************
** Alle Trigger mit einer Wahrscheinlichkeit von unter 5% wurden von mir ignoriert! *******
*******************************************************************************************
Trigger IRebel_returntolaw Wann: RndEnde Condition: IsGeneral, Trait IDisobedient = 2, Stripped > 0 ;strip him of titles
Affects IDisobedient -2 Chance 100
Trigger Civilwarcounter Wann: RndEnde Condition: Offensive_To_Nobles > 1, FactionLeaderTrait Offensive_To_Nobles < 12, FactionLeader, Spieler
Affects Offensive_To_Nobles 1 Chance 100
Trigger cleanup_the_king1 Wann: RndEnde Condition: FactionLeader, Obedient >= 1
Affects Disobedient 1 Chance 100
Trigger cleanup_the_king2 Wann: RndEnde Condition: FactionLeader, Disobedient >= 1
Affects Obedient 1 Chance 100
Trigger cleanup_the_king3 Wann: RndEnde Condition: FactionLeader, Loves_Father > 0
Affects Hates_Father 1 Chance 100
Trigger cleanup_the_king4 Wann: RndEnde Condition: FactionLeader, Hates_Father > 0
Affects Loves_Father 1 Chance 100
Trigger cleanup_the_king 5Wann: RndEnde Condition: FactionLeader, Stripped > 0
Affects Stripped -1 Chance 100
Trigger cleanup_the_king6 Wann: RndEnde Condition: FactionLeader, Near_Loyalty > 0
Affects Near_Loyalty -1 Chance 100
Trigger cleanup_the_king7 Wann: RndEnde Condition: FactionLeader, Far_Loyalty > 0
Affects Far_Loyalty -1 Chance 100
Trigger cleanup_the_king8 Wann: RndEnde Condition: FactionLeader, DiscontentGeneral > 0
Affects DiscontentGeneral -1 Chance 100
Trigger cleanup_the_king9 Wann: RndEnde Condition: FactionLeader, ContentGeneral > 0
Affects ContentGeneral -1 Chance 100
Trigger cleanup_the_king10 Wann: RndEnde Condition: FactionLeader, Loseauthority > 0, Offensive_To_Nobles = 0
Affects Loseauthority -1 Chance 100
Trigger cleanup_the_king11 Wann: RndEnde Condition: FactionLeader, grlpower > 0
Affects grlpower -1 Chance 100
Affects lackauth 1 Chance 66 ;transfer it to this instead perhaps
Trigger cleanup_the_king12
WhenToTest CharacterTurnEnd
Condition IsFactionLeader
and Trait kingass > 0
Affects kingass -1 Chance 100
;------------------------------------------
Trigger cleanup_the_king13
WhenToTest CharacterTurnEnd
Condition IsFactionLeader
and Trait kingall > 0
Affects kingall -1 Chance 100
;------------------------------------------
Trigger cleanup_the_king14
WhenToTest CharacterTurnEnd
Condition IsFactionLeader
and Trait Badblood > 0
Affects Badblood -1 Chance 100
;------------------------------------------
Trigger cleanup_the_heir6
WhenToTest CharacterTurnEnd
Condition IsFactionHeir
and Trait Near_Loyalty > 0
Affects Near_Loyalty -1 Chance 100
;------------------------------------------
Trigger cleanup_the_heir7
WhenToTest CharacterTurnEnd
Condition IsFactionHeir
and Trait Far_Loyalty > 0
Affects Far_Loyalty -1 Chance 100
;------------------------------------------
Trigger cleanup_the_nobility1
WhenToTest CharacterTurnEnd
Condition IsGeneral
and Trait Disobedient >= 1
and FactionLeaderTrait Offensive_To_Nobles < 1
Affects Obedient 1 Chance 100
;------------------------------------------
Trigger cleanup_the_nobility2
WhenToTest CharacterTurnEnd
Condition IsGeneral
and Trait Obedient >= 1
and FactionLeaderTrait Offensive_To_Nobles < 1
Affects Disobedient 1 Chance 100
;------------------------------------------
Trigger cleanup_the_nobility_that_went_gray
WhenToTest CharacterTurnEnd
Condition IsGeneral
and Trait Disobedient >= 1
and FactionType slave
Affects Obedient 1 Chance 100
;------------------------------------------
Trigger cleanup_the_nobility3
WhenToTest CharacterTurnEnd
Condition IsGeneral
and Trait Locked >= 1
and FactionLeaderTrait Offensive_To_Nobles < 1
Affects Locked -1 Chance 100
;------------------------------------------
Trigger cleanup_the_nobility4
WhenToTest CharacterTurnEnd
Condition IsGeneral
and Trait Locked >= 1
and Trait Disobedient < 2
Affects Locked -1 Chance 100
;------------------------------------------
Trigger lock_up_self_in_town
WhenToTest CharacterTurnEnd
Condition IsGeneral
and EndedInSettlement
and Trait Disobedient >= 2 ;must be full blown traitor... not just disobedient. Disob. is the warning level.
and not Trait Locked > 0
Affects Locked 1 Chance 100
;------------------------------------------
Trigger loyalty_check_bad_odds_penalty
WhenToTest PostBattle
Condition IsGeneral
and not WonBattle
and not WasAttacker
and not IsFactionLeader
and BattleSuccess >= average
and I_ConflictType Normal
and BattleOdds < 0.7
Affects DiscontentGeneral 1 Chance 100
****************************************************************************************************
*********************************unter 100% aber 50 und mehr ***************************************
****************************************************************************************************
;------------------------------------------
Trigger cLose_authority_1
WhenToTest GovernorCityRiots
Condition IsFactionLeader
and Attribute Authority > 1
and Trait Authority_career > 0
and FactionIsLocal
Affects Authority_career -1 Chance 95
;------------------------------------------
Trigger sGain_authority_2
WhenToTest GeneralCaptureSettlement
Condition IsGeneral
and IsFactionLeader
and Attribute Authority < 8
and Trait Offensive_To_Nobles < 1
and Trait Authority_career < 1
Affects Authority_career 1 Chance 90
;------------------------------------------
Trigger bGain_authority_1
WhenToTest PostBattle
Condition IsGeneral
and IsFactionLeader
and Attribute Authority < 8
and Trait Offensive_To_Nobles < 1
and Trait Authority_career < 1
and not Trait noaction = 1
and I_ConflictType Normal
and WonBattle
and I_BattleEnemyArmyNumberOfUnits > 4
Affects Authority_career 1 Chance 90
;------------------------------------------
Trigger loyalty_check2_good_odds_bonus
WhenToTest PostBattle
Condition IsGeneral
and WonBattle
and not IsFactionLeader
and I_ConflictType Normal
and BattleOdds >= 1.5
Affects ContentGeneral 1 Chance 90
;------------------------------------------
Trigger sGain_authority_1
WhenToTest GeneralCaptureSettlement
Condition IsGeneral
and IsFactionLeader
and Attribute Authority < 8
and Trait Offensive_To_Nobles < 1
and Trait Authority_career = 1
and not Trait noaction = 1
Affects Authority_career 1 Chance 75
;------------------------------------------
Trigger bLose_authority_1
WhenToTest PostBattle
Condition IsGeneral
and IsFactionLeader
and Attribute Authority > 1
and Trait Offensive_To_Nobles < 1
and Trait Authority_career > 0
and not WonBattle
and FactionIsLocal
Affects Authority_career -1 Chance 75
;------------------------------------------
Trigger loyalty_check9
WhenToTest BrotherAdopted
Condition not IsFactionHeir
Affects DiscontentGeneral 1 Chance 75
;------------------------------------------
Trigger king_redeems_his_honor ;The King fights a major battle to redeem his authority
WhenToTest PostBattle
Condition IsGeneral
and IsFactionLeader
and WonBattle
and I_BattleEnemyArmyNumberOfUnits > 9
and Trait Offensive_To_Nobles = 1
and BattleSuccess >= clear
Affects Offensive_To_Nobles -1 Chance 75 ;it might not work...
;------------------------------------------
Trigger king_screws_his_honor ;The King really screws up!
WhenToTest PostBattle
Condition IsGeneral
and IsFactionLeader
and FactionIsLocal ;players only
and not WonBattle
and Trait Offensive_To_Nobles = 1
Affects Offensive_To_Nobles 1 Chance 75 ;ouch
;------------------------------------------
Trigger loyalty_check8
WhenToTest GeneralPrisonersRansomedCaptor ;chivlrous characters do NOT like to execute
Condition RansomType execute
and NumCapturedSoldiers > 40
and Attribute Chivalry >= 4
and not IsFactionLeader
Affects DiscontentGeneral 1 Chance 66
;------------------------------------------
Trigger King_pardons ;The King may pardon the general if he comes to court or piss him off worse
WhenToTest CharacterTurnEnd
Condition IsGeneral
and Trait Disobedient = 1
and Trait IDisobedient = 0
and DistanceCapital <= 1 ;he's in the capitol
Affects Disobedient -1 Chance 66
Affects Disobedient 1 Chance 20
;------------------------------------------
Trigger King_pardonsI ;The King may pardon the general if he comes to court or piss him off worse
WhenToTest CharacterTurnEnd
Condition IsGeneral
and Trait IDisobedient = 1
and Trait Disobedient = 0
and DistanceCapital <= 1 ;he's in the capitol
Affects IDisobedient -1 Chance 66
Affects IDisobedient 1 Chance 20
;------------------------------------------
Trigger Near_Loyalty_trigger ;AI OK for this one
WhenToTest CharacterTurnEnd
Condition IsGeneral
and not IsFactionHeir
and not IsFactionLeader
and DistanceCapital < 45
and Trait Near_Loyalty < 6
and Trait Far_Loyalty < 1
and Trait Disobedient < 1
and not FactionType mongols
and not FactionType timurids
Affects Near_Loyalty 1 Chance 66
;------------------------------------------
Trigger Far_Loyalty_trigger
WhenToTest CharacterTurnEnd
Condition IsGeneral
and not IsOnCrusade
and not IsOnJihad
and not IsFactionHeir ;so send your King or his son on Crusade- not some noble! Once the crusade ends if you want to hold the region... need someone loyal.
and not IsFactionLeader
and FactionIsLocal
and DistanceCapital > 100
and Trait Far_Loyalty < 14
and Trait Near_Loyalty < 1
and Trait Loyal < 3
and not FactionType mongols
and not FactionType timurids
Affects Far_Loyalty 1 Chance 66
;------------------------------------------
Trigger loyalty_check8_extermination
WhenToTest ExterminatePopulation
Condition Attribute Chivalry >= 4
and not IsFactionLeader
Affects DiscontentGeneral 1 Chance 50
;------------------------------------------
Trigger bGain_authority_2
WhenToTest PostBattle
Condition IsGeneral
and IsFactionLeader
and Attribute Authority < 8
and Trait Offensive_To_Nobles < 1
and Trait Authority_career = 1
and not Trait noaction = 1
and I_ConflictType Normal
and WonBattle
and I_BattleEnemyArmyNumberOfUnits > 8
Affects Authority_career 1 Chance 50
;------------------------------------------
Trigger sGain_authority_3
WhenToTest GeneralCaptureSettlement
Condition IsGeneral
and IsFactionLeader
and Attribute Authority < 8
and Trait Offensive_To_Nobles < 1
and Trait Authority_career = 2
Affects Authority_career 1 Chance 50
****************************************************************************************************
********************************* unter 50% aber 10 und mehr ***************************************
****************************************************************************************************
;------------------------------------------
Trigger Civilwarender ;will end in roughly 5 turns more or so- so about 7 years (14 turns) is maximum average length of a civil war.
WhenToTest CharacterTurnEnd
Condition FactionLeaderTrait Offensive_To_Nobles = 12
and IsFactionLeader
Affects Offensive_To_Nobles -12 Chance 33
;------------------------------------------
Trigger Loyalstarta
WhenToTest CharacterTurnEnd
Condition FactionLeaderTrait Offensive_To_Nobles >= 1
and IsGeneral
and Trait Disobedient = 0 ;as this is the initial step- no returning back...
and Trait Obedient = 0
and Trait IDisobedient = 0
and Attribute Loyalty > 3
and not IsFactionLeader
Affects Obedient 1 Chance 30 ;tended this way
;------------------------------------------
Trigger Far_Loyalty_trigger_lose ;losing bad loyalty as closer
WhenToTest CharacterTurnEnd
Condition IsGeneral
and not IsOnCrusade
and not IsOnJihad
and not IsFactionHeir ;so send your King or his son on Crusade- not some nameless noble! Once the crusade ends if you want to hold the region... need someone loyal.
and not IsFactionLeader
and FactionIsLocal
and DistanceCapital < 75
and Trait Far_Loyalty > 0
and not FactionType mongols
and not FactionType timurids
and Trait Disobedient < 1 ;so not going down traitor route
Affects Far_Loyalty -1 Chance 25
;------------------------------------------
Trigger bGain_authority_3
WhenToTest PostBattle
Condition IsGeneral
and IsFactionLeader
and Attribute Authority < 8
and Trait Offensive_To_Nobles < 1
and Trait Authority_career = 2
and not Trait noaction = 1
and I_ConflictType Normal
and WonBattle
and I_BattleEnemyArmyNumberOfUnits > 12
Affects Authority_career 1 Chance 25
;------------------------------------------
Trigger Authority_Loss_Over_Time
WhenToTest CharacterTurnEnd
Condition IsFactionLeader
and Trait Offensive_To_Nobles > 1
Affects Loseauthority 1 Chance 20
;------------------------------------------
Trigger Rebelstarta
WhenToTest CharacterTurnEnd
Condition FactionLeaderTrait Offensive_To_Nobles >= 1
and IsGeneral
and Attribute Loyalty <= 3
and Trait Disobedient = 0
and Trait Obedient = 0
and Trait IDisobedient = 0
and not IsFactionLeader
Affects Disobedient 1 Chance 20 ;tended this way
;------------------------------------------
Trigger cGain_authority_4
WhenToTest CharacterTurnEnd
Condition IsFactionLeader
and Attribute Authority < 8
and Trait Offensive_To_Nobles < 1
and Trait Authority_career < 1
and not Trait noaction = 1
and GovernorTaxLevel > tax_high
Affects Authority_career 1 Chance 20
;------------------------------------------
Trigger loyalty_check3
WhenToTest CharacterTurnEnd
Condition FactionExcommunicated
and not IsFactionLeader
and IsGeneral
and Attribute Piety > 4
Affects DiscontentGeneral 1 Chance 20
;------------------------------------------
Trigger Loyalstart
WhenToTest CharacterTurnEnd
Condition FactionLeaderTrait Offensive_To_Nobles >= 1
and IsGeneral
and Trait Disobedient = 0 ;as this is the initial step- no returning...
and Trait Obedient = 0
and Trait IDisobedient = 0
and not IsFactionLeader
Affects Obedient 1 Chance 15
;------------------------------------------
Trigger Loyalend
WhenToTest CharacterTurnEnd
Condition FactionLeaderTrait Offensive_To_Nobles >= 2
and IsGeneral
and Trait Obedient = 1
and not Trait Disobedient >= 1
Affects Obedient 1 Chance 15 ;eventually you WILL gain it it's just a matter of time...
;------------------------------------------
Trigger Rebelstart
WhenToTest CharacterTurnEnd
Condition FactionLeaderTrait Offensive_To_Nobles >= 1
and IsGeneral
and Trait Disobedient = 0
and Trait Obedient = 0
and Trait IDisobedient = 0
and not IsFactionLeader
Affects Disobedient 1 Chance 15
;------------------------------------------
Trigger Rebelend
WhenToTest CharacterTurnEnd
Condition FactionLeaderTrait Offensive_To_Nobles >= 2
and IsGeneral
and Trait Disobedient = 1
and not Trait Obedient >= 1
Affects Disobedient 1 Chance 15 ;eventually you WILL gain it it's just a matter of time...
Trigger king_risks_his_honor ;The King is taking chances... a player ought to know better...
WhenToTest PostBattle
Condition IsGeneral
and IsFactionLeader
and WasAttacker
and FactionIsLocal ;players only
and not WonBattle
and Trait Offensive_To_Nobles < 2
Affects Offensive_To_Nobles 1 Chance 10
;------------------------------------------
Trigger King_administrates_his_way_out ;The King is trying to reverse things
WhenToTest CharacterTurnEnd
Condition IsFactionLeader
and Trait Offensive_To_Nobles = 1
and DistanceCapital <= 2 ;he's working in the capitol
and Attribute Authority >= 5 ;has to have some.
Affects Offensive_To_Nobles -1 Chance 10
;------------------------------------------
Trigger loyalty_check10_mutually_chivalrous
WhenToTest CharacterTurnEnd
Condition IsGeneral
and not IsFactionLeader
and Attribute Chivalry >= 3
and FactionLeaderAttribute Chivalry >= 3
Affects ContentGeneral 1 Chance 10
;------------------------------------------
Trigger loyalty_check11_not_mutually_chivalrous
WhenToTest CharacterTurnEnd
Condition IsGeneral
and not IsFactionLeader
and Attribute Chivalry >= 3
and FactionLeaderAttribute Chivalry <= -3
Affects DiscontentGeneral 1 Chance 10
;------------------------------------------
Trigger loyalty_check12_mutually_chivalrous
WhenToTest CharacterTurnEnd
Condition IsGeneral
and not IsFactionLeader
and Attribute Chivalry <= -3
and FactionLeaderAttribute Chivalry >= 3
Affects DiscontentGeneral 1 Chance 10
;------------------------------------------
Trigger Near_Loyalty_trigger_lose ;Losing GOOD LOYALTY FIRST
WhenToTest CharacterTurnEnd
Condition IsGeneral
and not IsFactionHeir
and not IsFactionLeader
and DistanceCapital > 100
and Trait Near_Loyalty > 0
and not FactionType mongols
and not FactionType timurids
Affects Near_Loyalty -1 Chance 10
;------------------------------------------
Trigger loyalty_check5
WhenToTest CharacterTurnEnd
Condition EndedInSettlement
and not GovernorBuildingExists >= stone_wall
and not GovernorBuildingExists >= castle
and Attribute Command > 3
and DistanceCapital > 50
and not IsFactionLeader
Affects DiscontentGeneral 1 Chance 10
;------------------------------------------
Trigger cGain_authority_1
WhenToTest CharacterTurnEnd
Condition IsFactionLeader
and Attribute Authority < 8
and Trait Authority_career < 1
and Trait Offensive_To_Nobles < 1
and not Trait noaction = 1
and GovernorTaxLevel >= tax_normal
Affects Authority_career 1 Chance 10
****************************************************************************************************
********************************* weniger als 10% **************************************************
****************************************************************************************************
;------------------------------------------
Trigger IRebelgo
WhenToTest CharacterTurnEnd
Condition IsGeneral
and Trait IDisobedient = 1 ;CAN be reversed when at level 1 by sending to capital
Affects IDisobedient 1 Chance 8
;------------------------------------------
Trigger king_faced_dishonor ;The King should be better prepared...
WhenToTest PostBattle
Condition IsGeneral
and IsFactionLeader
and not WasAttacker ;defending
and FactionIsLocal ;players only
and not WonBattle
and Trait Offensive_To_Nobles < 2
Affects Offensive_To_Nobles 1 Chance 5
;------------------------------------------
Trigger weaker_King_administrates_his_way_out ;The King is trying to reverse things
WhenToTest CharacterTurnEnd
Condition IsFactionLeader
and Trait Offensive_To_Nobles = 1
and DistanceCapital <= 2 ;he's working in the capitol
and Attribute Authority < 5
Affects Offensive_To_Nobles -1 Chance 5
;------------------------------------------
Trigger cGain_authority_2
WhenToTest CharacterTurnEnd
Condition IsFactionLeader
and Attribute Authority < 8
and Trait Authority_career = 1
and Trait Offensive_To_Nobles < 1
and not Trait noaction = 1
and GovernorTaxLevel >= tax_normal
Affects Authority_career 1 Chance 5
;------------------------------------------
Trigger Disgust_with_King's_Religiona ;The King is not looking out for the salvation of our souls
WhenToTest CharacterTurnEnd
Condition FactionExcommunicated
and IsFactionLeader
and Trait Offensive_To_Nobles = 0
and CharacterReligion catholic
and Attribute Piety <= 5 ;so it isn't just a political thing the Pope is perpetrating but truly, disgustingly, a deserved Excommunication!
and FactionIsLocal ;AI has a lesser chance
Affects Offensive_To_Nobles 1 Chance 5
;------------------------------------------
Trigger loyalty_check6
WhenToTest CharacterTurnEnd
Condition EndedInSettlement
and GovernorBuildingExists >= large_stone_wall
and Attribute Command > 4
and not IsFactionLeader
Affects ContentGeneral 1 Chance 5
;------------------------------------------
Trigger loyalty_check7
WhenToTest CharacterTurnEnd
Condition EndedInSettlement
and GovernorBuildingExists >= fortress
and Attribute Command < 6
and not IsFactionLeader
Affects ContentGeneral 1 Chance 5