Scripted effect · The Royal Court files
local_court_type_skill_point_effect
local_court_type_skill_point_effect = { PROVINCE = … }game/common/scripted_effects/00_ep1_court_type_effects.txt, line 255 (70 lines). Parameters: $PROVINCE$.
local_court_type_skill_point_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 255 of its file. A call passes 1 parameter: PROVINCE. The game's script calls it in 2 places, among them poi_capitals (travel) and pam_pentarchy_circuit_entourage_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_court_type_effects.txt.
What it does
If
$PROVINCE$.barony.holder ?= { has_royal_court = yes has_court_type = court_diplomatic }
Then
add_diplomacy_skill = 1
Else if
$PROVINCE$.barony.holder ?= { has_royal_court = yes has_court_type = court_warlike }
Then
add_martial_skill = 1
Else if
$PROVINCE$.barony.holder ?= { has_royal_court = yes has_court_type = court_administrative }
Then
add_stewardship_skill = 1
Else if
$PROVINCE$.barony.holder ?= { has_royal_court = yes has_court_type = court_intrigue }
Then
add_intrigue_skill = 1
Else if
$PROVINCE$.barony.holder ?= { has_royal_court = yes has_court_type = court_scholarly }
Then
add_learning_skill = 1
Else if
$PROVINCE$.barony.holder ?= { … }
Then
add_prowess_skill = 1
Otherwise
- 1 of 6 things will happen:
- 17%:
add_prowess_skill = 1
- 17%:
add_learning_skill = 1
- 17%:
add_intrigue_skill = 1
- 17%:
add_stewardship_skill = 1
- 17%:
add_martial_skill = 1
- 17%:
add_diplomacy_skill = 1
- 17%:
force_character_skill_recalculation = yes
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (70 lines of game script)
local_court_type_skill_point_effect = {
if = {
limit = {
$PROVINCE$.barony.holder ?= {
has_royal_court = yes
has_court_type = court_diplomatic
}
}
add_diplomacy_skill = 1
}
else_if = {
limit = {
$PROVINCE$.barony.holder ?= {
has_royal_court = yes
has_court_type = court_warlike
}
}
add_martial_skill = 1
}
else_if = {
limit = {
$PROVINCE$.barony.holder ?= {
has_royal_court = yes
has_court_type = court_administrative
}
}
add_stewardship_skill = 1
}
else_if = {
limit = {
$PROVINCE$.barony.holder ?= {
has_royal_court = yes
has_court_type = court_intrigue
}
}
add_intrigue_skill = 1
}
else_if = {
limit = {
$PROVINCE$.barony.holder ?= {
has_royal_court = yes
has_court_type = court_scholarly
}
}
add_learning_skill = 1
}
else_if = {
limit = {
$PROVINCE$.barony.holder ?= {
has_royal_court = yes
OR = {
has_court_type = court_tribal
has_court_type = court_nomadic
}
}
}
add_prowess_skill = 1
}
else = {
random_list = {
1 = { add_prowess_skill = 1 }
1 = { add_learning_skill = 1 }
1 = { add_intrigue_skill = 1 }
1 = { add_stewardship_skill = 1 }
1 = { add_martial_skill = 1 }
1 = { add_diplomacy_skill = 1 }
}
}
force_character_skill_recalculation = yes
}As written in game/common/scripted_effects/00_ep1_court_type_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls local_court_type_skill_point_effect.
Travel (1)
- poi_capitals
Scripted effects (1)
Source: game/common/scripted_effects/00_ep1_court_type_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.