
Heir Selection
Ritual Selection
It is a type of Succession Law used in many cultures all around the world, in which the new ruler is chosen from the sons of the previous ruler through the celebration of a ritual competition where the winner gets the right to rule.
Blocked from RulershipModifier TypecalcDefinitionin_game/common/heir_selections/tribal.txt:166
173include_ruler_siblings = no
174all_in_dynasty = no
175through_female = no
176allow_female = no
177allow_children = yes
178ignore_ruler = yes
179show_candidates = yes
182heir_is_allowed = {
}
189calc = {
191if = {
192limit = {
193exists = root
}
195add = {
196desc = "HEIR_SELECTION_RANDOM_DESC" • Candidate gets random score (from 0.00 up to +200.00)
197value = random_integer
198modulo = 200
}
200add = {
201desc = "HEIR_SELECTION_ADM_DESC" • Score per Administrative Ability
202value = root.adm
}
204add = {
205desc = "HEIR_SELECTION_DIP_DESC" • Score per Diplomatic Ability
206value = root.dip
}
208add = {
209desc = "HEIR_SELECTION_MIL_DESC" • Score per Military Ability
210value = root.mil
}
213if = {
214limit = {
215NOT = {
216scope:target = {
217any_primary_or_accepted_culture = {
217root.culture = this
}
}
}
}
221add = {
222desc = "HEIR_SELECTION_NON_ACCEPTED_CULTURE_DESC" • Score for Discriminated Culture
223value = -100
}
}
227if = {
228limit = {
228exists = root.father
}
230if = {
231limit = {
232root.father = scope:target.ruler
}
234add = {
236desc = "HEIR_SELECTION_PARENT_IS_CURRENT_RULER_DESC" • Score if parent is current Ruler
237value = 100
}
}
}
243if = {
244limit = {
244exists = root.mother
}
246if = {
247limit = {
248scope:target = {
249ruler ?= {
250exists = first_spouse
}
}
253root.mother = scope:target.ruler.first_spouse
}
255add = {
257desc = "HEIR_SELECTION_PARENT_IS_CURRENT_RULER_FIRST_WIFE_DESC" • Score if parent is current Ruler's' first wife
258value = 50
}
}
}
263if = {
264limit = {
265root.age_in_years < 10
}
267add = {
268desc = "HEIR_SELECTION_TOO_YOUNG_DESC" • Score for being younger than 10 years of age
269value = -100
}
}
273if = {
274limit = {
275root.age_in_years > 40
}
277add = {
278desc = "HEIR_SELECTION_TOO_OLD_DESC" • Score for being older than 40 years of age
279value = root.age_in_years
280subtract = 40
281multiply = -10
}
}
285if = {
287add = {
288desc = "HEIR_SELECTION_IS_UNSUITED_TO_RULE_DESC" • Is unsuited to Rule
289value = -1000
}
}
}
297if = {
298limit = {
299not = {
299exists = root
}
}
301add = {
302desc = "HEIR_SELECTION_RANDOM_DESC" • Candidate gets random score (from 0.00 up to +200.00)
303format = "FORMAT_NO_VALUE"
}
305add = {
306desc = "HEIR_SELECTION_ADM_DESC" • Score per Administrative Ability
307value = 1
}
309add = {
310desc = "HEIR_SELECTION_DIP_DESC" • Score per Diplomatic Ability
311value = 1
}
313add = {
314desc = "HEIR_SELECTION_MIL_DESC" • Score per Military Ability
315value = 1
}
317add = {
318desc = "HEIR_SELECTION_NON_ACCEPTED_CULTURE_DESC" • Score for Discriminated Culture
319value = -100
}
321add = {
322desc = "HEIR_SELECTION_PARENT_IS_CURRENT_RULER_DESC" • Score if parent is current Ruler
323value = 100
}
325add = {
326desc = "HEIR_SELECTION_PARENT_IS_CURRENT_RULER_FIRST_WIFE_DESC" • Score if parent is current Ruler's' first wife
327value = 50
}
329add = {
330desc = "HEIR_SELECTION_TOO_YOUNG_DESC" • Score for being younger than 10 years of age
331value = -100
}
333add = {
334desc = "HEIR_SELECTION_TOO_OLD_DESC" • Score for being older than 40 years of age
335value = -10
}
}
}