Relation diplomatiqueModifié dans cette version

Soutient un héritier

support_heirin_game/common/scripted_relations/support_heir.txt:1

À la création, un Personnage de l'État sera envoyé au Pays cible et deviendra un Héritier valide pour sa Loi de succession.

RequiertRépubliqueType de régime politiqueoffer effectThéocratieType de régime politiqueoffer effectInteractions endiguéesType de modificateurselect triggerhome_countryVariablecancel effect, expire effect, will expire trigger

2type = diplomacy
3relation_type = oneway
4break_on_war = yes
5receiving_color = rgb {
60
120
0
}
6giving_color = rgb {
40
100
0
}
7relation_type_for_ai = friendly
8uses_diplo_capacity = giving
9diplomatic_capacity_cost = support_heir_upkeep_cost
11category = {
12offer = CATEGORY_INFLUENCE_ACTIONS
13cancellation = CATEGORY_HOSTILE_ACTIONS
14break = CATEGORY_HOSTILE_ACTIONS
15request = CATEGORY_FRIENDLY_ACTIONS
}
18visible = {
19scope:actor = {
}
}
24offer_visible = {
25scope:recipient = {
}
}
29offer_enabled = {
30scope:actor = {
31OR = {
32has_ruler = yes
33has_heir = yes
}
35ruler_or_heir_if_regent ?= {
36has_dynasty = yes
}
}
}
41request_visible = {
41always = no
}
42break_visible = {
42always = no
}
44select_trigger = {
45looking_for_a = character
46source = actor
47interaction_source_list = {
48scope:actor = {
49ruler_or_heir_if_regent = {
50dynasty = {
51every_character_in_dynasty = {
52limit = {
53owner ?= scope:actor
}
55add_to_list = source
}
}
}
}
}
61pre_evaluation_sort_value = {
62value = age_in_years
}
64pre_evaluation_number_to_evaluate_fully = 5
65cache_interaction_source_list = yes
66target_flag = target
67name = "support_heir_interaction_SELECT_TITLE" Sélectionner un membre de la Dynastie à soutenir comme héritier
68none_available_msg_key = "support_heir_interaction_no_characters"
69column = {
70data = character_ruler
}
72visible = {
73is_adult = yes
74is_ruler = no
75is_heir = no
77is_eligible_heir_baseline = scope:recipient
78country = scope:recipient
}
79is_female = no
}
}
83offer_effect = {
84if = {
85limit = {
86exists = scope:recipient
87exists = scope:target
}
89scope:target = {
90move_country = scope:recipient
91if = {
92limit = {
92NOT = {
92valid_estate_for_heir_selection = scope:recipient.succession_law
}
}
93scope:recipient = {
94if = {
95limit = {
95government_type = government_type:theocracy
}
96scope:target = {
96change_character_estate = estate_type:clergy_estate
}
}
98else_if = {
99limit = {
99government_type = government_type:republic
}
100scope:target = {
100change_character_estate = estate_type:burghers_estate
}
}
102else = {
103scope:target = {
103change_character_estate = estate_type:nobles_estate
}
}
}
}
107set_variable = {
108name = home_country
109value = scope:actor
}
111set_variable = {
113value = scope:recipient
}
}
116scope:recipient = {
117add_to_variable_list = {
118name = supported_heirs
119target = scope:target
}
}
122custom_tooltip = {
123text = support_heir_bt Target devient Héritier en puissance du Recipient
124create_relation = {
125first = scope:actor
126second = scope:recipient
}
}
}
131else = {
132custom_tooltip = support_heir_at Un Personnage libre de notre Dynastie va être envoyé dans le pays ciblé, ce qui en fera un Héritier potentiel là-bas
}
}
136cancel_effect = {
137scope:recipient = {
138every_in_list = {
139variable = supported_heirs
140limit = {
141has_variable = home_country
142var:home_country ?= scope:actor
}
144if = {
145limit = {
146is_alive = yes
147is_ruler = no
}
149move_country = scope:actor
}
151remove_variable = home_country
152remove_variable = favored_in_country
153scope:recipient = {
154remove_list_variable = {
155name = supported_heirs
156target = PREV
}
}
}
}
}
162will_expire_trigger = {
163scope:second = {
164ruler ?= {
165has_variable = home_country
166var:home_country ?= scope:first
}
}
}
170expire_effect = {
171scope:second = {
172every_in_list = {
173variable = supported_heirs
174limit = {
175has_variable = home_country
176var:home_country ?= scope:first
}
178if = {
179limit = {
180is_alive = yes
181is_ruler = no
}
183move_country = scope:first
}
185remove_variable = home_country
186remove_variable = favored_in_country
187scope:second = {
188remove_list_variable = {
189name = supported_heirs
190target = PREV
}
}
}
}
}
197wants_to_give_diplo_chance = {
198base = -200
}
201wants_to_give = {
202add = {
203desc = "THEIR_OPINION_TOOLTIP" Son Opinion sur nous
204value = "scope:recipient.opinion(scope:actor)"
205divide = 2
}
207add = {
208desc = "DIPLOREASON_DIPLOMATIC_REPUTATION" Réputation diplomatique
209scope:actor = {
211multiply = 5
}
}
214add = {
215desc = "DISTANCE_TO_TARGET" Distance
216scope:recipient = {
217value = "border_distance_to(scope:actor)"
218multiply = -0.04
}
}
221add = {
222desc = "FREE_DIPLO_CAPACITY" Capacité diplomatique disponible
223scope:actor = {
224value = num_relations_above_limit
225multiply = -10
}
}
228add = {
229desc = "game_concept_rival" Rival
230if = {
231limit = {
232scope:recipient = {
233is_rival_of = scope:actor
}
}
236value = -1000
}
}
239if = {
240limit = {
240exists = scope:recipient
}
241add = {
242desc = "RECIPIENT_NEEDS_HEIR" Recipient a besoin d'un Héritier
243if = {
244limit = {
245scope:recipient = {
246has_regent = yes
247has_heir = no
}
}
250value = 150
}
}
}
254if = {
255limit = {
255exists = scope:target
}
256add = {
257desc = "POTENTIAL_HEIR_SCORE" Score d'héritier potentiel
258value = "scope:target.heir_score(scope:recipient)"
}
}
}
© 2026 Soft Santa Cruz, S.L.U.. Tous droits réservés. Projet de fan non officiel, non affilié à Paradox Interactive. Contenu du jeu © Paradox Interactive. À propos · Confidentialité · Mentions légales