186 lines
3.5 KiB
Plaintext
186 lines
3.5 KiB
Plaintext
|
|
#########################################################################
|
|
# Ingratiate Heir Decision
|
|
# Developed by idev
|
|
#########################################################################
|
|
|
|
mod_ingratiate_heir_decision = {
|
|
picture = {
|
|
reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
|
|
}
|
|
decision_group_type = decisions
|
|
desc = mod_ingratiate_heir_decision_desc
|
|
sort_order = 80
|
|
|
|
cooldown = { years = 10 }
|
|
|
|
is_shown = {
|
|
is_ruler = yes
|
|
is_ai = no
|
|
}
|
|
|
|
is_valid_showing_failures_only = {
|
|
root.primary_heir.dynasty = root.dynasty
|
|
}
|
|
|
|
widget = {
|
|
gui = "decision_view_widget_decision_option_list_controller"
|
|
controller = decision_option_list_controller
|
|
|
|
item = {
|
|
value = mod_ingratiate_heir_very_modest
|
|
localization = mod_ingratiate_heir_very_modest_loc
|
|
ai_chance = { value = 0 }
|
|
}
|
|
item = {
|
|
value = mod_ingratiate_heir_modest
|
|
localization = mod_ingratiate_heir_modest_loc
|
|
ai_chance = { value = 0 }
|
|
}
|
|
item = {
|
|
value = mod_ingratiate_heir_substantial
|
|
localization = mod_ingratiate_heir_substantial_loc
|
|
ai_chance = { value = 0 }
|
|
}
|
|
|
|
}
|
|
|
|
effect = {
|
|
if = {
|
|
limit = { scope:mod_ingratiate_heir_very_modest = yes }
|
|
show_as_tooltip = {
|
|
add_prestige = -250
|
|
add_piety = -100
|
|
}
|
|
|
|
primary_heir = {
|
|
add_prestige = 250
|
|
add_piety = 100
|
|
}
|
|
|
|
every_vassal_or_below = {
|
|
add_opinion = {
|
|
modifier = impressed_opinion
|
|
target = root.primary_heir
|
|
opinion = 5
|
|
}
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = { scope:mod_ingratiate_heir_modest = yes }
|
|
show_as_tooltip = {
|
|
add_prestige = -600
|
|
add_piety = -250
|
|
}
|
|
|
|
primary_heir = {
|
|
add_prestige = 600
|
|
add_piety = 250
|
|
}
|
|
|
|
every_vassal_or_below = {
|
|
add_opinion = {
|
|
modifier = impressed_opinion
|
|
target = root.primary_heir
|
|
opinion = 10
|
|
}
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = { scope:mod_ingratiate_heir_substantial = yes }
|
|
show_as_tooltip = {
|
|
add_prestige = -1350
|
|
add_piety = -500
|
|
}
|
|
|
|
primary_heir = {
|
|
add_prestige = 1350
|
|
add_piety = 500
|
|
}
|
|
|
|
every_vassal_or_below = {
|
|
add_opinion = {
|
|
modifier = impressed_opinion
|
|
target = root.primary_heir
|
|
opinion = 20
|
|
}
|
|
}
|
|
}
|
|
|
|
trigger_event = {
|
|
id = mod_ingratiate_heir.0001
|
|
}
|
|
}
|
|
|
|
cost = {
|
|
gold = {
|
|
if = {
|
|
limit = { scope:mod_ingratiate_heir_very_modest = yes }
|
|
add = {
|
|
value = 215
|
|
multiply = activity_cost_scale_by_era
|
|
divide = 2.5
|
|
}
|
|
}
|
|
if = {
|
|
limit = { scope:mod_ingratiate_heir_modest = yes }
|
|
add = {
|
|
value = 625
|
|
multiply = activity_cost_scale_by_era
|
|
divide = 2.5
|
|
}
|
|
}
|
|
if = {
|
|
limit = { scope:mod_ingratiate_heir_substantial = yes }
|
|
add = {
|
|
value = 1150
|
|
multiply = activity_cost_scale_by_era
|
|
divide = 2.5
|
|
}
|
|
}
|
|
}
|
|
prestige = {
|
|
if = {
|
|
limit = { scope:mod_ingratiate_heir_very_modest = yes }
|
|
add = {
|
|
value = 250
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = { scope:mod_ingratiate_heir_modest = yes }
|
|
add = {
|
|
value = 600
|
|
}
|
|
}
|
|
else = {
|
|
add = {
|
|
value = 1350
|
|
}
|
|
}
|
|
}
|
|
piety = {
|
|
if = {
|
|
limit = { scope:mod_ingratiate_heir_very_modest = yes }
|
|
add = {
|
|
value = 100
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = { scope:mod_ingratiate_heir_modest = yes }
|
|
add = {
|
|
value = 250
|
|
}
|
|
}
|
|
else = {
|
|
add = 500
|
|
}
|
|
}
|
|
}
|
|
|
|
ai_check_interval = 0
|
|
|
|
|
|
}
|
|
|
|
|