Scripted effect
basic_gained_court_position_effect
basic_gained_court_position_effect = yesgame/common/scripted_effects/00_court_position_effects.txt, line 7 (44 lines). No parameters.
basic_gained_court_position_effect is a scripted effect in Crusader Kings III, written at line 7 of its file. It takes no parameters: basic_gained_court_position_effect = yes. The game's script calls it in 51 places, among them Bookmaker (court position), Champion Charioteer (court position) and Cherbi (court position). Patch 1.20.1.2, from game/common/scripted_effects/00_court_position_effects.txt.
The comment above it in the file
Basic effect for gaining a court position
What it does
scope:employee:If
has_opinion_modifier = { modifier = revoked_court_position_opinion target = scope:liege }
Then
remove_opinion = { modifier = revoked_court_position_opinion target = scope:liege }
• 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 (44 lines of game script)
basic_gained_court_position_effect = {
scope:employee = {
if = {
limit = {
has_opinion_modifier = {
modifier = revoked_court_position_opinion
target = scope:liege
}
}
remove_opinion = {
modifier = revoked_court_position_opinion
target = scope:liege
}
}
if = {
limit = {
is_ruler = yes
has_vassal_stance = courtly
}
add_opinion = {
target = scope:liege
modifier = courtly_court_position_opinion
}
}
if = {
limit = {
scope:liege = { is_ai = no }
}
set_variable = {
name = court_8311_cooldown
years = 2
}
}
# Unity impact
#add_clan_unity_interaction_effect = {
# CHARACTER = scope:liege
# TARGET = this
# VALUE = 0 #minor_unity_gain
# DESC = clan_unity_assigned_to_court_position.desc
# REVERSE_NON_HOUSE_TARGET = yes
#}
}
}As written in game/common/scripted_effects/00_court_position_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls basic_gained_court_position_effect.
Court positions (22)
Scripted effects (29)
- akolouthos_title_accepted_effect
- antiquarian_title_accepted_effect
- bodyguard_title_accepted_effect
- champion_title_accepted_effect
- chief_eunuch_title_accepted_effect
- court_brewmaster_title_accepted_effect
23 more
- court_gardener_title_accepted_effect
- court_musician_title_accepted_effect
- court_physician_title_accepted_effect
- court_poet_title_accepted_effect
- court_travel_leader_title_accepted_effect
- court_tutor_title_accepted_effect
- cupbearer_title_accepted_effect
- executioner_title_accepted_effect
- fire_dragon_engineer_title_accepted_effect
- food_taster_title_accepted_effect
- garuda_title_accepted_effect
- grand_guardian_title_accepted_effect
- grand_mentor_title_accepted_effect
- grand_preceptor_title_accepted_effect
- high_almoner_title_accepted_effect
- keeper_of_swans_title_accepted_effect
- keeper_of_the_harem_title_accepted_effect
- lady_in_waiting_title_accepted_effect
- master_of_horse_title_accepted_effect
- master_of_hunt_title_accepted_effect
- royal_architect_title_accepted_effect
- seneschal_title_accepted_effect
- wet_nurse_title_accepted_effect
Source: game/common/scripted_effects/00_court_position_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.