Scripted effect
accolade_character_creation_effect
accolade_character_creation_effect = yesgame/common/scripted_effects/00_accolades_scripted_effects.txt, line 2455 (537 lines). No parameters.
accolade_character_creation_effect is a scripted effect in Crusader Kings III, written at line 2455 of its file. It takes no parameters: accolade_character_creation_effect = yes. The game's script calls it in 1 place, among them accolade_create_squire_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_accolades_scripted_effects.txt.
What it does
If
One of these
- Is played by a person
or
Any held title:this = title:e_byzantium
Then
If
scope:accolade_in_need:initial_type = { this = accolade_type:marauder_attribute }
Then
create_character = { location = capital_province template = accolade_marauder_character save_scope_as = chosen_knight }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:idealist_attribute }
Then
create_character = { location = capital_province template = accolade_idealist_character save_scope_as = chosen_knight }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:charmer_attribute }
Then
create_character = { location = capital_province template = accolade_charmer_character save_scope_as = chosen_knight }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:thug_attribute }
Then
create_character = { location = capital_province template = accolade_thug_character save_scope_as = chosen_knight }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:disciplinarian_attribute }
Then
create_character = { location = capital_province template = accolade_disciplinarian_character save_scope_as = chosen_knight }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:fanatic_attribute }
Then
create_character = { location = capital_province template = accolade_fanatic_character save_scope_as = chosen_knight }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:valiant_attribute }
Then
create_character = { location = capital_province template = accolade_valiant_character save_scope_as = chosen_knight }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:stalwart_attribute }
Then
create_character = { location = capital_province template = accolade_stalwart_character save_scope_as = chosen_knight }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:scoundrel_attribute }
Then
create_character = { location = capital_province template = accolade_scoundrel_character save_scope_as = chosen_knight }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:politicker_attribute }
Then
create_character = { location = capital_province template = accolade_politicker_character save_scope_as = chosen_knight }If
- scope:chosen_knight: Diplomacy less than 12
Then
scope:chosen_knight:add_diplomacy_skill = { value = 12 subtract = diplomacy }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:tactician_attribute }
Then
create_character = { location = capital_province template = accolade_tactician_character save_scope_as = chosen_knight }If
- scope:chosen_knight: Martial less than 12
Then
scope:chosen_knight:add_martial_skill = { value = 12 subtract = martial }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:reeve_attribute }
Then
create_character = { location = capital_province template = accolade_reeve_character save_scope_as = chosen_knight }If
- scope:chosen_knight: Stewardship less than 12
Then
scope:chosen_knight:add_stewardship_skill = { value = 12 subtract = stewardship }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:manipulator_attribute }
Then
create_character = { location = capital_province template = accolade_manipulator_character save_scope_as = chosen_knight }If
- scope:chosen_knight: Intrigue less than 12
Then
scope:chosen_knight:add_intrigue_skill = { value = 12 subtract = intrigue }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:mentor_attribute }
Then
create_character = { location = capital_province template = accolade_mentor_character save_scope_as = chosen_knight }If
- scope:chosen_knight: Learning less than 12
Then
scope:chosen_knight:add_learning_skill = { value = 12 subtract = learning }
Else if
scope:accolade_in_need:initial_type = { this = accolade_type:contender_attribute }
Then
create_character = { location = capital_province template = accolade_contender_character save_scope_as = chosen_knight }If
- scope:chosen_knight: Prowess less than 15
- … (more in the script below)
• 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 (120 lines of game script)
accolade_character_creation_effect = {
#don't want AI using our performance intensive checks
if = {
limit = {
OR = {
is_ai = no
any_held_title = { this = title:e_byzantium }
}
}
#save a general knight-y culture that can randomly be used
save_general_accolade_successor_culture_effect = yes
#varangians if relevant
save_varangian_successor_culture_effect = yes
#turkic warriors if relevant
save_turkic_successor_culture_effect = yes
#save one specific to the accolade type
save_type_specific_successor_culture_effect = yes
}
save_scope_as = value_target #needed for gender chance
#let's get creating - but needs to be the right type of knight
#Marauder
if = {
limit = {
scope:accolade_in_need = {
initial_type = {
this = accolade_type:marauder_attribute
}
}
}
create_character = {
location = capital_province
template = accolade_marauder_character
save_scope_as = chosen_knight
}
}
#Idealist
else_if = {
limit = {
scope:accolade_in_need = {
initial_type = {
this = accolade_type:idealist_attribute
}
}
}
create_character = {
location = capital_province
template = accolade_idealist_character
save_scope_as = chosen_knight
}
}
#Charmer
else_if = {
limit = {
scope:accolade_in_need = {
initial_type = {
this = accolade_type:charmer_attribute
}
}
}
create_character = {
location = capital_province
template = accolade_charmer_character
save_scope_as = chosen_knight
}
}
#Thug
else_if = {
limit = {
scope:accolade_in_need = {
initial_type = {
this = accolade_type:thug_attribute
}
}
}
create_character = {
location = capital_province
template = accolade_thug_character
save_scope_as = chosen_knight
}
}
#Disciplinarian
else_if = {
limit = {
scope:accolade_in_need = {
initial_type = {
this = accolade_type:disciplinarian_attribute
}
}
}
create_character = {
location = capital_province
template = accolade_disciplinarian_character
save_scope_as = chosen_knight
}
}
#Fanatic
else_if = {
limit = {
scope:accolade_in_need = {
initial_type = {
this = accolade_type:fanatic_attribute
}
}
}
create_character = {
location = capital_province
template = accolade_fanatic_character
save_scope_as = chosen_knight
}
}
#Valiant
else_if = {
limit = {
scope:accolade_in_need = {
initial_type = {
this = accolade_type:valiant_attribute
}
}
}
create_character = {As written in game/common/scripted_effects/00_accolades_scripted_effects.txt.
The first 120 of its 537 lines; the rest is in game/common/scripted_effects/00_accolades_scripted_effects.txt from line 2455.
Where it is used
Every place in common/, events/ and history/ that calls accolade_character_creation_effect.
Scripted effects (1)
Source: game/common/scripted_effects/00_accolades_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.