Scripted Effect
hacw_set_ruler
If
ruler exists
Then
$ruler$- If
- If
- If
- Does NOT have a Ruler
- Regent exists
- Regent: ruler
Thenmake_regent_to_ruler↗IfIs in a RegencyThen- Regent
- IfIs LowbornThen
- Founds a new Dynasty in Location
- Not shown in the game's tooltip
- IfOwner: NotRootThenMoves to the Root
- RootCapitalCreate dynasty from location: random
- IfTarget dynasty existsThenJoins the Target dynasty Dynasty
- Every descendant
- If
- RegentReligionGroup: NotReligionGroup
- Not
Blocked from Conversion
ThenConverts to the RegentReligion Religion - Set new ruler: regent
Else if- Ruler: Notruler
$ruler$Is an Adult
ThenSet new ruler: ruler - If
$ruler$Has Variable: hacw_allegience_to_codThen$ruler$Remove variable: hacw_allegience_to_cod- IfHas Variable: hacw_sided_with_codThen
- Gain +20 Stability
- Gain +20 Legitimacy
$ruler$Gains Rightful Ruler permanently
Monthly Legitimacy+0.05
Crown Power+25%
Nobility gains +15% Estate Satisfaction
Burghers loses 10% Estate Satisfaction
Otherwise- Gain +20 Stability
- Lose 15 Legitimacy
Nobility loses 15% Estate Satisfaction
Burghers gains +10% Estate Satisfaction
Else if$ruler$Has Variable: hacw_allegience_to_hookThen$ruler$Remove variable: hacw_allegience_to_hook- IfHas Variable: hacw_sided_with_hookThen
- Gain +20 Stability
- Gain +20 Legitimacy
$ruler$Gains Rightful Ruler permanently
Monthly Legitimacy+0.05
Crown Power+25%
Burghers gains +15% Estate Satisfaction
Nobility loses 10% Estate Satisfaction
Otherwise- Gain +20 Stability
- Lose 15 Legitimacy
Burghers loses 15% Estate Satisfaction
Nobility gains +10% Estate Satisfaction
Exact script
Script that calls it fills these in, as each caller in Connections shows.
$ruler$
Requires 2
Grants 1
Removes 2
Changes 2
Used by 3
End of the The Hook and Cod Warsruler = scope:new_rulerOption
Death of a Claimantruler = scope:alive_claimantOption 2
Premature End of the Warsruler = scope:alive_claimantOption



