Potential Heir feature allows the player to take the Heir title away from a character without the negative benefits - as long as it happens the same round the Heir title was granted.
The goal is to allow the player to choose the new Heir after the leader dies without imposing negative effects on the character the game promotes to Heir.
This feature was developed for the Roman Leadership mod by Marcus Camillus but with few modifications can be used in any other mod.
Here is how it works:
There are 2 new traits (if anyone can think of a better names, let me know):
- Potential Heir (Candidate Princeps Senatus for romans)
- Potentially Disinherited
When you switch the Heir, the new Heir gets the trait Potential Heir and the current Heir gets the trait Potentially Disinherited. You may switch Heirs as much as you like during the turn - without any negative or positive effects being imposed.
Once the turn ends, the new title assignments will be resolved and the effects will take place.
Installation
Since this mod is rather intended for usage in other mods, instead of releasing any installer here is a description of how to mod it into the 4tpy mod.
FILE: Data\export_descr_character_traits.txt
Add the following traits to this file. Make sure you insert them before the triggers.
Code:
;------------------------------------------
Trait Potentialexheir
Characters family
ExcludeCultures roman
AntiTraits Potentialheir
Level Potential_Exheir
Description Potential_Exheir_desc
EffectsDescription Potential_Exheir_effects_desc
Threshold 1
;------------------------------------------
Trait Potentialexheir_Roman
Characters family
ExcludeCultures barbarian, greek, eastern, egyptian, carthaginian
AntiTraits Potentialheir_Roman
Level Potential_Exheir_Roman
Description Potential_Exheir_Roman_desc
EffectsDescription Potential_Exheir_Roman_effects_desc
Threshold 1
;------------------------------------------
Trait Potentialheir
Characters family
ExcludeCultures roman
AntiTraits Potentialexheir
Level Potential_Heir
Description Potential_Heir_desc
EffectsDescription Potential_Heir_effects_desc
Threshold 1
;------------------------------------------
Trait Potentialheir_Roman
Characters family
ExcludeCultures barbarian, greek, eastern, egyptian, carthaginian
AntiTraits Potentialexheir_Roman
Level Potential_Heir_Roman
Description Potential_Heir_Roman_desc
EffectsDescription Potential_Heir_Roman_effects_desc
Threshold 1
Replace the Section5 of the triggers completely:
Code:
;===============================================================
;===============================================================
;===============================================================
;Section5 - Faction
;
;Modified by Marcus Camillus for Roman Leadership
;
;Potential Heir feature implemented by Greno Zee
;===============================================================
;Non-Roman
;===============================================================
;These triggers are fired during the turn as traits travel
;The 4 following trigers deal with the situation when the leader dies and Heir becomes the new Leader
;------------------------------------------
Trigger factionleader
WhenToTest BecomesFactionLeader
Condition not CultureType roman
Affects Factionleader 1 Chance 100
;------------------------------------------
;Executes when a real Heir becomes Leader
Trigger inherited
WhenToTest CeasedFactionHeir
Condition IsFactionLeader
and not Trait Potentialheir = 1
and not CultureType roman
; this effectively sets the Heir trait to 0
Affects Exheir 1 Chance 100
;------------------------------------------
;Executes when the potential Heir was also disinherited.
Trigger inherited_potentialheir
WhenToTest CeasedFactionHeir
Condition IsFactionLeader
and Trait Potentialheir = 1
and Trait Exheir = 1
and not CultureType roman
Affects Factionheir 1 Chance 100
Affects Potentialexheir 1 Chance 100
;------------------------------------------
;Executes when the potential Heir becomes Leader
Trigger inherited_potentialheir
WhenToTest CeasedFactionHeir
Condition IsFactionLeader
and Trait Potentialheir = 1
and not CultureType roman
; this effectively sets the Potentialheir trait to 0
Affects Potentialexheir 1 Chance 100
;------------------------------------------
Trigger potentially_disinherited
WhenToTest CeasedFactionHeir
Condition not IsFactionLeader
and not CultureType roman
Affects Potentialexheir 1 Chance 100
;------------------------------------------
Trigger potentially_becomesheir
WhenToTest BecomesFactionHeir
Condition not CultureType roman
Affects Potentialheir 1 Chance 100
;==========================================
;turn end trigers to set potential trait to real ones
;------------------------------------------
Trigger reinherited_chte
WhenToTest CharacterTurnEnd
Condition Trait Exheir = 1
and Trait Potentialheir = 1
and not CultureType roman
Affects Factionheir 1 Chance 100
;------------------------------------------
Trigger becomesheir_chte
WhenToTest CharacterTurnEnd
Condition Trait Potentialheir = 1
and not CultureType roman
Affects Factionheir 1 Chance 100
Affects Potentialexheir 1 Chance 100
;------------------------------------------
Trigger disinherited_chte
WhenToTest CharacterTurnEnd
Condition Trait Potentialexheir = 1
and not CultureType roman
Affects Exheir 2 Chance 100
Affects Potentialheir 1 Chance 100
;===============================================================
;Roman
;===============================================================
;These triggers are fired during the turn as traits travel
;The 4 following trigers deal with the situation when the leader dies and Heir becomes the new Leader
;------------------------------------------
Trigger factionleader_roman
WhenToTest BecomesFactionLeader
Condition CultureType roman
Affects Factionleader_Roman 1 Chance 100
;------------------------------------------
;Executes when a real Heir becomes Leader
Trigger inherited_roman
WhenToTest CeasedFactionHeir
Condition IsFactionLeader
and not Trait Potentialheir_Roman = 1
and CultureType roman
; this effectively sets the Heir trait to 0
Affects Exheir_Roman 1 Chance 100
;------------------------------------------
;Executes when the potential Heir was also disinherited.
Trigger inherited_potentialheir_roman
WhenToTest CeasedFactionHeir
Condition IsFactionLeader
and Trait Potentialheir_Roman = 1
and Trait Exheir_Roman = 1
and CultureType roman
Affects Factionheir_Roman 1 Chance 100
Affects Potentialexheir_Roman 1 Chance 100
;------------------------------------------
;Executes when the potential Heir becomes Leader
Trigger inherited_potentialheir_roman
WhenToTest CeasedFactionHeir
Condition IsFactionLeader
and Trait Potentialheir_Roman = 1
and CultureType roman
; this effectively sets the Potentialheir trait to 0
Affects Potentialexheir_Roman 1 Chance 100
;------------------------------------------
Trigger potentially_disinherited_roman
WhenToTest CeasedFactionHeir
Condition not IsFactionLeader
and CultureType roman
Affects Potentialexheir_Roman 1 Chance 100
;------------------------------------------
Trigger potentially_becomesheir_roman
WhenToTest BecomesFactionHeir
Condition CultureType roman
Affects Potentialheir_Roman 1 Chance 100
;==========================================
;turn end trigers to set potential trait to real ones
;------------------------------------------
Trigger reinherited_chte_roman
WhenToTest CharacterTurnEnd
Condition Trait Exheir_Roman = 1
and Trait Potentialheir_Roman = 1
and CultureType roman
Affects Factionheir_Roman 1 Chance 100
;------------------------------------------
Trigger becomesheir_chte_roman
WhenToTest CharacterTurnEnd
Condition Trait Potentialheir_Roman = 1
and CultureType roman
Affects Factionheir_Roman 1 Chance 100
Affects Potentialexheir_Roman 1 Chance 100
;------------------------------------------
Trigger disinherited_chte_Roman
WhenToTest CharacterTurnEnd
Condition Trait Potentialexheir_Roman = 1
and CultureType roman
Affects Exheir_Roman 2 Chance 100
Affects Potentialheir_Roman 1 Chance 100
FILE: Data\export_descr_VnVs_enums.txt
Add the following enums:
Code:
Potential_Heir
Potential_Heir_desc
Potential_Heir_effects_desc
Potential_Exheir
Potential_Exheir_desc
Potential_Exheir_effects_desc
Potential_Heir_Roman
Potential_Heir_Roman_desc
Potential_Heir_Roman_effects_desc
Potential_Exheir_Roman
Potential_Exheir_Roman_desc
Potential_Exheir_Roman_effects_desc
FILE: Data\text\export_VnVs.txt
Add the following descriptions:
Code:
¬--------------------
{Potential_Heir} Potential Heir
{Potential_Heir_desc}
This man will become the Heir at the end of the season.
{Potential_Heir_effects_desc}
No effects yet
¬--------------------
{Potential_Exheir} Potentially Disinherited
{Potential_Exheir_desc}
This man is about to loose his heritage. If he doesn't regain the title Heir by the end of the season, he will become disinherited.
{Potential_Exheir_effects_desc}
No effects yet
¬--------------------
{Potential_Heir_Roman} Candidate Princeps Senatus
{Potential_Heir_Roman_desc}
This man will become the Future Princeps Senatus at the end of the season.
{Potential_Heir_Roman_effects_desc}
No effects yet
¬--------------------
{Potential_Exheir_Roman} Potentially Disinherited
{Potential_Exheir_Roman_desc}
This man is about to loose his heritage. If he doesn't regain the title Future Princeps Senatus by the end of the season, he will become disinherited.
{Potential_Exheir_Roman_effects_desc}
No effects yet
Enjoy!