キャラクター関与
後継者に任命
このキャラクターをわが国の後継者に任命する。
王室階級select trigger
君主制政体potential
贔屓された息子による継承後継者選びpotential後継者に任命静的補正effect, select trigger3message = yes
4on_own_nation = yes
7potential = {
8scope:actor = {
12has_ruler = yes
}
}
16ai_tick = daily
17ai_tick_frequency = 10
19allow = {
20scope:actor = {
22stability >= 20
23government_power >= 15
}
}
27price = price:appoint_as_heir_price
29select_trigger = {
30looking_for_a = character
31source = actor
32target_flag = recipient
33name = "choose_character" キャラクターを選択:
34column = {
35data = name
}
37visible = {
38is_alive = yes
40OR = {
41father ?= scope:actor.ruler
42mother ?= scope:actor.ruler
}
}
45enabled = {
}
}
51effect = {
52scope:actor = {
53every_character = {
}
57add_estate_satisfaction = {
}
59target = scope:recipient
60reason = preferred_heir_of_ruler
}
}
63scope:recipient = {
64add_character_modifier = {
}
}
}
68ai_will_do = {
72add = {
73value = scope:recipient.total_abilities
74subtract = 250
}
77add = {
78value = scope:actor.estate_satisfaction:nobles_estate
80subtract = 1
83multiply = 50
}
86add = {
87value = scope:actor.estate_satisfaction:nobles_estate
89subtract = 1
92multiply = 50
}
95add = {
96if = {
97limit = {
98scope:recipient = {
99OR = {
100is_general = yes
101is_admiral = yes
}
}
}
105value = 30
}
}
109add = {
110if = {
111limit = {
112scope:recipient = {
113OR = {
114has_trait_category = general
115has_trait_category = admiral
}
}
}
119value = 30
}
}
123add = {
124if = {
125limit = {
126scope:actor = {
127ruler.dynasty ?= {
128any_character_in_dynasty ?= {
129is_child_of = scope:actor.ruler
}
}
}
}
135value = -200
}
138else = {
139value = 1000
}
}
}