Interaction de personnages
Abdication
Le Personnage abdiquera.
ChétifTraitselect trigger2message = yes
3is_consort_action = no
4on_own_nation = yes
6price = price:abdicate_price
9price_modifier = {
10add = 1
11if = {
12limit = {
13scope:recipient ?= {
14age_in_years > 40
}
}
18subtract = {
19desc = "CHAR_AGE_LABEL" Ère
20scope:recipient = {
21value = age_in_years
22subtract = 40
23multiply = 0.02
}
}
}
}
30potential = {
}
33ai_tick = daily
34ai_tick_frequency = 120
36allow = {
37scope:actor = {
38has_heir = yes
}
}
42select_trigger = {
43looking_for_a = character
44source = actor
45target_flag = recipient
46name = "choose_character" Sélectionner le Personnage :
47column = {
48data = name
}
50visible = {
51scope:actor = {
52ruler ?= root
}
}
55enabled = {
56or = {
58and = {
59is_female = yes
60scope:actor = {
61heir ?= {
62is_adult = yes
63is_female = no
}
}
}
68and = {
69total_abilities < 100
70character_age > 60
71scope:actor = {
72heir ?= {
73is_adult = yes
74total_abilities > 170
}
}
}
}
}
}
92effect = {
93if = {
94limit = {
95scope:actor = {
96has_heir = yes
}
}
99scope:actor = {
100set_new_ruler = heir
}
}
}
105ai_will_do = {
106add = {
107desc = "RULER_ABILITY" Aptitude de Dirigeant
108scope:recipient = {
109subtract = total_abilities
110multiply = 0.02
}
}
113add = {
114desc = "HEIR_ABILITY" Aptitude d'Héritier
115scope:recipient = {
116add = total_abilities
117multiply = 0.02
}
}
}