Originally Posted by
faroo
I'm looking into your save. First, it's an impressive empire, thanks for sharing!
Second, I still haven't found the issue.
Coding seems ok:
Code:
;------------------------------------------- 0->1
Trigger Crown_rum_Fit
WhenToTest CharacterTurnEndInSettlement
Condition FactionIsLocal
and FactionType rum
and IsFactionLeader
and SettlementName Constantinople
and SettlementBuildingExists >= jama
and not IsUnderSiege
and GovernorLoyaltyLevel > loyalty_disillusioned
and Treasury > 20000
and Trait Crownholder > 1
and Trait Crownholder < 4
Affects Fit_Crown_rum 1 Chance 100
Code:
;========== Crown of RUM SULTANATE ==============================
Trigger crown_rum_Lands_Conquered_Anatolia
WhenToTest CharacterTurnEndInSettlement
Condition Trait Fit_Crown_rum > 0
and FactionType rum
and I_SettlementOwner Attaleia = rum
and I_SettlementOwner Konya = rum
and I_SettlementOwner Angora = rum
and I_SettlementOwner Sinope = rum
and I_SettlementOwner Caesarea = rum
and I_SettlementOwner Nicaea = rum
and I_SettlementOwner Smyrna = rum
and I_SettlementOwner Constantinople = rum
and I_SettlementOwner Sives = rum
and I_SettlementOwner Malatya = rum
and I_SettlementOwner Edessa = rum
and I_SettlementOwner Sis = rum
AcquireAncillary crown_iconium chance 100
;------------------------------------------
Trigger crown_rum_Lands_Conquered_Ottoman
WhenToTest CharacterTurnEndInSettlement
Condition Trait Fit_Crown_rum > 0
and FactionType rum
and I_SettlementOwner Attaleia = rum
and I_SettlementOwner Konya = rum
and I_SettlementOwner Angora = rum
and I_SettlementOwner Sinope = rum
and I_SettlementOwner Caesarea = rum
and I_SettlementOwner Nicaea = rum
and I_SettlementOwner Smyrna = rum
and I_SettlementOwner Constantinople = rum
and I_SettlementOwner Sives = rum
and I_SettlementOwner Thessalonica = rum
and I_SettlementOwner Sredets = rum
and I_SettlementOwner Adrianople = rum
and I_SettlementOwner Tarnovo = rum
AcquireAncillary crown_iconium chance 100
;------------------------------------------
Trigger crown_rum_Legacy
WhenToTest CharacterTurnEndInSettlement
Condition Trait Fit_Crown_rum > 0
and FactionType rum
and Trait Crownholder > 2
and Trait Crownholder < 4
AcquireAncillary crown_iconium chance 100
EDIT: ok, I've found the problem. I've misspelled the code name of one city: Sinope should be Sinop. The script is read only once by the game engine, you can't fix this problem for you game. You're able to fix it - open EDA and edit. It'll be fixed for the next issue of mod. I'm sorry, my fault (well, it lingers like 3 years in the code...). Thanks for pointing at this problem, the future players will be able to get this crown.
You still can get the crown, but it might be very difficult. You need to trigger this:
;------------------------------------------Trigger crown_rum_Legacy
WhenToTest CharacterTurnEndInSettlement
Condition Trait Fit_Crown_rum > 0
and FactionType rum
and Trait Crownholder > 2
and Trait Crownholder < 4
AcquireAncillary crown_iconium chance 100
this means your FL should make great feats to give his son a legacy, and his son would be able to get this crown.
Code:
;------------------------------------------- 1->3
Trigger Fit_for_crown_Legacy
WhenToTest CharacterTurnEnd
Condition IsFactionLeader
and FactionIsLocal
and Trait Crownholder > 0
and Trait Crownholder < 2
and Trait FathersLegacy > 1
and Trait Usurper < 1
and Trait FactionRegent < 1
and not FactionExcommunicated
Affects Crownholder 2 Chance 100[/QUOTE]
[QUOTE];========================================================;------- Proud Legacy ---------------------
;------------------------------------------
Trigger Dads_ProudLegacy_FactionKiller
WhenToTest CharacterComesOfAge
Condition FatherTrait FactionKiller > 0
Affects FathersLegacy 2 Chance 100
;------------------------------------------
Trigger Dads_ProudLegacy_Command
WhenToTest CharacterComesOfAge
Condition FatherAttribute Command > 9
Affects FathersLegacy 1 Chance 100
Affects LogisticalSkill 1 Chance 5
Affects Disciplinarian 1 Chance 30
;------------------------------------------
Trigger Dads_Proudlegacy_Piety
WhenToTest CharacterComesOfAge
Condition FatherAttribute Piety > 9
Affects FathersLegacy 1 Chance 100
Affects Disciplinarian 1 Chance 30
;------------------------------------------
Trigger Dads_Proudlegacy_Authority
WhenToTest CharacterComesOfAge
Condition FatherAttribute Authority > 9
Affects FathersLegacy 1 Chance 100
;------------------------------------------
Trigger Dads_Proudlegacy_GreatVictor3
WhenToTest CharacterComesOfAge
Condition FatherTrait Vanquisher > 2
Affects FathersLegacy 1 Chance 100
;------------------------------------------
Trigger Dads_Proudlegacy_GreatVictor7
WhenToTest CharacterComesOfAge
Condition FatherTrait Vanquisher > 6
Affects FathersLegacy 1 Chance 100
Affects LogisticalSkill 1 Chance 5
;------------------------------------------
Trigger Dads_Proudlegacy_Crusade
WhenToTest CharacterComesOfAge
Condition FatherTrait CrusaderHistory > 2
Affects FathersLegacy 1 Chance 100
Affects LogisticalSkill 1 Chance 5
;------------------------------------------
Trigger Dads_Proudlegacy_Jihad
WhenToTest CharacterComesOfAge
Condition FatherTrait JihadHistory > 2
Affects FathersLegacy 1 Chance 100
Affects LogisticalSkill 1 Chance 5
;------------------------------------------
Trigger Faction_Excommunicated
WhenToTest CharacterComesOfAge
Condition FatherTrait Excommunication > 0
Affects FathersLegacy -1 Chance 100
;------------------------------------------
Trigger Dad_is_Crowned_King
WhenToTest CharacterComesOfAge
Condition FatherTrait Crownholder > 3
Affects FathersLegacy 2 Chance 100
;------------------------------------------
Trigger Dad_got_Crowned_King1
WhenToTest CharacterTurnEnd
Condition FatherTrait Crownholder > 3
and not Trait FathersLegacy > 0
Affects FathersLegacy 2 Chance 100
;------------------------------------------
Trigger Dad_got_Crowned_King2
WhenToTest CharacterTurnEnd
Condition FatherTrait Crownholder > 3
and Trait FathersLegacy > 0
and Trait FathersLegacy < 2
Affects FathersLegacy 1 Chance 100