Scripted effect
basic_revoked_camp_officer_effect
basic_revoked_camp_officer_effect = yesgame/common/scripted_effects/00_camp_officer_effects.txt, line 65 (64 lines). No parameters.
basic_revoked_camp_officer_effect is a scripted effect in Crusader Kings III, written at line 65 of its file. It takes no parameters: basic_revoked_camp_officer_effect = yes. The game's script calls it in 27 places, among them archer_captain_camp_officer_title_revoked_effect (scripted effect), armorer_camp_officer_title_revoked_effect (scripted effect) and camelry_captain_camp_officer_title_revoked_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_camp_officer_effects.txt.
The comment above it in the file
Basic effect for losing a court position
What it does
- scope:employee: Opinion: Revoked My Officer Position
scope:employee:remove_opinion = { target = scope:liege modifier = made_me_officer_opinion }
- scope:liege › Every Courtier:
If
has_any_moderate_good_relationship_with_character_trigger = { CHARACTER = scope:employee }
Then
remove_opinion = { target = scope:liege modifier = made_friend_officer_opinion }
If
has_any_moderate_bad_relationship_with_character_trigger = { CHARACTER = scope:employee }
Then
remove_opinion = { target = scope:liege modifier = made_foe_officer_opinion }
Else if
is_close_or_extended_family_of = scope:employee
Then
remove_opinion = { target = scope:liege modifier = made_family_officer_opinion }
• 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 (64 lines of game script)
basic_revoked_camp_officer_effect = {
scope:employee = {
add_opinion = {
modifier = revoked_camp_officer_opinion
target = scope:liege
}
}
# Lose whatever you might have gained.
scope:employee = {
remove_opinion = {
target = scope:liege
modifier = made_me_officer_opinion
}
}
scope:liege = {
# If they now dislike us sufficiently, then set up a potential rivalry.
hidden_effect = {
if = {
limit = {
reverse_opinion = {
target = scope:employee
value <= -50
}
can_set_relation_potential_rival_trigger = { CHARACTER = scope:employee }
}
set_relation_potential_rival = scope:employee
}
}
# Plus, some ripple consequences.
every_courtier = {
limit = {
this != scope:employee
}
# Friends'n'lovers.
if = {
limit = {
has_any_moderate_good_relationship_with_character_trigger = { CHARACTER = scope:employee }
}
remove_opinion = {
target = scope:liege
modifier = made_friend_officer_opinion
}
}
# Foes...
if = {
limit = {
has_any_moderate_bad_relationship_with_character_trigger = { CHARACTER = scope:employee }
}
remove_opinion = {
target = scope:liege
modifier = made_foe_officer_opinion
}
}
# ... and family who are not foes.
else_if = {
limit = { is_close_or_extended_family_of = scope:employee }
remove_opinion = {
target = scope:liege
modifier = made_family_officer_opinion
}
}
}
}
}As written in game/common/scripted_effects/00_camp_officer_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls basic_revoked_camp_officer_effect.
Scripted effects (27)
- archer_captain_camp_officer_title_revoked_effect
- armorer_camp_officer_title_revoked_effect
- camelry_captain_camp_officer_title_revoked_effect
- camp_cook_camp_officer_title_revoked_effect
- camp_priest_camp_officer_title_revoked_effect
- chief_engineer_camp_officer_title_revoked_effect
21 more
- chief_forager_camp_officer_title_revoked_effect
- elephantry_captain_camp_officer_title_revoked_effect
- head_groom_camp_officer_title_revoked_effect
- head_porter_camp_officer_title_revoked_effect
- heavy_cavalry_captain_camp_officer_title_revoked_effect
- heavy_infantry_captain_camp_officer_title_revoked_effect
- horse_archer_captain_camp_officer_title_revoked_effect
- huntperson_camp_officer_title_revoked_effect
- kennelperson_camp_officer_title_revoked_effect
- laureate_camp_officer_title_revoked_effect
- light_cavalry_captain_camp_officer_title_revoked_effect
- light_infantry_captain_camp_officer_title_revoked_effect
- master_bard_camp_officer_title_revoked_effect
- master_of_arms_camp_officer_title_revoked_effect
- master_of_spoils_camp_officer_title_revoked_effect
- master_thief_camp_officer_title_revoked_effect
- person_haggler_camp_officer_title_revoked_effect
- pike_captain_camp_officer_title_revoked_effect
- quartermaster_camp_officer_title_revoked_effect
- second_camp_officer_title_revoked_effect
- witness_camp_officer_title_revoked_effect
Source: game/common/scripted_effects/00_camp_officer_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.