
ActionChanged this version
Crown a New Ruler
We have unfortunately found ourselves in a union with our mortal enemies. This technicality stalls our war efforts and projects weakness in our accord. We must seek to elect a new ruler as long as this union is not spearheaded by us!
EnglandCountryallow, potential
FranceCountryallow, effect, potential, price modifierBritishCulture GroupallowFrenchCulture Groupallow
MonarchyGovernment Typeallow
Senior PartnerSpecial Statuspotential
Hundred Years' WarSituationselect trigger 1Definitionin_game/common/generic_actions/hundred_years_war.txt:1555
1556type = situation
1557show_message = no
1559automation_tick = never
1560automation_tick_frequency = 12
1562ai_tick = monthly
1563ai_tick_frequency = 4
1565potential = {
1566scope:actor = {
1567OR = {
}
1577NOT = {
1578any_union_partner = {
1579union = {
1580custom_tooltip = {
1581text = empty_text
}
}
}
}
}
}
1593allow = {
1594scope:actor = {
1596at_war = no
1597is_during_bankruptcy = no
1598any_character = {
1599is_adult = yes
1600is_eligible_heir = prev
1601NOR = {
1602is_ruler_of = prev
1603is_heir_of = prev
1604is_regent_of = prev
}
}
1609trigger_if = {
1612ruler_or_regent = {
}
}
1619trigger_else = {
1621ruler_or_regent = {
}
}
}
}
1630price = price:hyw_main_actions_price
1631price_modifier = {
1632add = {
1633value = 2
1634desc = BASE_VALUE Base: Valencia
}
1636if = {
1638multiply = {
1639value = "scope:actor.relative_military_strength(c:ENG)"
1640desc = "[military_strength|e]"
}
}
1643else = {
1644multiply = {
1645value = "scope:actor.relative_military_strength(c:FRA)"
1646desc = "[military_strength|e]"
}
}
}
1651cooldown = {
1652type = crown_new_ruler
1653years = 30
}
1656select_trigger = {
1657looking_for_a = situation
1663target_flag = recipient
1664name = "choose_situation" Choose the Situation:
1665column = {
1665data = name
}
}
1672select_trigger = {
1673looking_for_a = character
1674interaction_source_list = {
1675scope:actor = {
1676ordered_character = {
1677limit = {
1678is_female = no
1679is_adult = yes
1680is_eligible_heir = prev
1681NOR = {
1682is_ruler_of = prev
1683is_heir_of = prev
1684is_regent_of = prev
}
}
1687max = 5
1688order_by = total_abilities
1689check_range_bounds = no
1690add_to_list = source
}
1692ordered_character = {
1693limit = {
1694is_female = yes
1695is_adult = yes
1696is_eligible_heir = prev
1697NOR = {
1698is_ruler_of = prev
1699is_heir_of = prev
1700is_regent_of = prev
}
}
1703max = 5
1704order_by = total_abilities
1705check_range_bounds = no
1706add_to_list = source
}
}
}
1710target_flag = target_character
1711name = "choose_character" Choose the Character:
1712column = {
1712data = name
}
1713column = {
1713data = character_info
}
}
1716effect = {
1717if = {
1718limit = {
1718exists = scope:target_character
}
1720scope:actor = {
1720set_new_ruler = scope:target_character
}
1721if = {
}
}
1729else = {
1729custom_tooltip = selected_character_takes_actor_crown_tt The selected Character will become our new Ruler much to the dismay of our opponents in the ongoing Situation. This may lead to a War
}
}
1732ai_will_do = {
1733add = {
1734value = 25
1735desc = BASE_VALUE Base: Valencia
}
1738if = {
1740subtract = {
1741value = "scope:actor.opinion(c:ENG)"
1742desc = "our opinion of England"
}
}
1745else = {
1746subtract = {
1747value = "scope:actor.opinion(c:FRA)"
1748desc = "our opinion of France"
}
}
1753if = {
1754limit = {
1754exists = scope:target_character
}
1755add = {
1756value = scope:target_character.total_abilities
1757subtract = scope:actor.ruler_or_regent.total_abilities
1758desc = "candidate abilities"
}
}
}