Scripted effect · Legends of the Dead files
grab_appropriate_bard_effect
grab_appropriate_bard_effect = yesgame/common/scripted_effects/06_dlc_ce1_legend_effects.txt, line 225 (75 lines). No parameters.
grab_appropriate_bard_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 225 of its file. It takes no parameters: grab_appropriate_bard_effect = yes. The game's script calls it in 5 places, among them A Tale to Tell (event feast.7204), A True Hunter (event legend_spread_events.0010) and At the Service of a … (event legend_spread_events.0050). Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_legend_effects.txt.
What it does
- Otherwise:
create_character = { … }
• 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 (75 lines of game script)
grab_appropriate_bard_effect = {
if = {
limit = {
employs_court_position = court_musician_court_position
any_court_position_holder = {
type = court_musician_court_position
is_available_healthy_ai_adult = yes
}
}
random_court_position_holder = {
type = court_musician_court_position
limit = { is_available_healthy_ai_adult = yes }
save_scope_as = bard
}
}
else_if = {
limit = {
employs_court_position = court_poet_court_position
any_court_position_holder = {
type = court_poet_court_position
is_available_healthy_ai_adult = yes
}
}
random_court_position_holder = {
type = court_poet_court_position
limit = { is_available_healthy_ai_adult = yes }
save_scope_as = bard
}
}
else_if = {
limit = {
any_courtier = {
this != root
NOT = { is_spouse_of = root }
NOT = { is_child_of = root }
NOT = { is_councillor_of = root }
is_available_healthy_ai_adult = yes
}
}
ordered_courtier = {
limit = {
this != root
NOT = { is_spouse_of = root }
NOT = { is_child_of = root }
NOT = { is_councillor_of = root }
is_available_healthy_ai_adult = yes
}
order_by = {
value = diplomacy
if = {
limit = {
has_trait = lifestyle_poet
}
add = 10
}
if = {
limit = {
has_trait = journaller
}
add = 5
}
}
save_scope_as = bard
}
}
else = {
create_character = {
template = bard_template
dynasty = none
location = root.location
gender_female_chance = root_faith_dominant_gender_female_chance
save_scope_as = bard
}
}
}As written in game/common/scripted_effects/06_dlc_ce1_legend_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls grab_appropriate_bard_effect.
Events (5)
- A Tale to Tell
feast.7204 - A True Hunter
legend_spread_events.0010 - At the Service of a …
legend_spread_events.0050 - Haunting Mockery
coronation_events.1000 - Worthy?
legend_spread_events.0070
Source: game/common/scripted_effects/06_dlc_ce1_legend_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.