CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect

denounce_effect

denounce_effect = { ACTOR = … RECIPIENT = … }

game/common/scripted_effects/00_interaction_effects.txt, line 1832 (73 lines). Parameters: $ACTOR$, $RECIPIENT$.

denounce_effect is a scripted effect in Crusader Kings III, written at line 1832 of its file. A call passes 2 parameters: ACTOR and RECIPIENT. The game's script calls it in 2 places, among them Denounce (interaction) and Hammam Havoc (event fp3_clan.8016). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_interaction_effects.txt.

What it does

  • Gains the Trait Denounced
  • If

    • NOT = { has_relation_rival = $ACTOR$ }

    Then

  • If

    • $ACTOR$ = { … }

    Then

    • $ACTOR$ = { … }
  • If

    • has_opinion_modifier = { target = $ACTOR$ modifier = forgave_denounced_opinion }

    Then

    • The Was Denounced Opinion (-25) changes to Denounced (-50) (-25 Opinion)

    Otherwise

    • Opinion: Denounced
  • If

    • NOT = { is_close_family_of = $ACTOR$ }

    Then

    • Their house › All house members of …:
      • Where:
        • NOT = { house = $ACTOR$.house }
      • Opinion: Denounced a Dynasty Member

• 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 (73 lines of game script)
denounce_effect = {
	add_trait = denounced
	if = {
		limit = {
			NOT = {
				has_relation_rival = $ACTOR$
			}
		}
		#Rivalry
		set_relation_rival = {
			target = $ACTOR$
			reason = rival_denounced
		}
	}
	if = {
		limit = {
			$ACTOR$ = {
				has_hook_of_type = {
					target = $RECIPIENT$
					type = house_head_hook
				}
			}
		}
		$ACTOR$ = {
			remove_hook = {
				target = $RECIPIENT$
				type = house_head_hook
			}
		}
	}
	if = {
		limit = {
			has_opinion_modifier = {
				target = $ACTOR$
				modifier = forgave_denounced_opinion
			}
		}
		custom_tooltip = forgiven_changed_to_denounced
		hidden_effect = {
			remove_opinion = {
				target = $ACTOR$
				modifier = forgave_denounced_opinion
			}
			add_opinion = {
				modifier = denounced_opinion
				target = $ACTOR$
			}
		}
	}
	else = {
		add_opinion = {
			modifier = denounced_opinion
			target = $ACTOR$
		}
	}
	if = {
		limit = {
			NOT = { is_close_family_of = $ACTOR$ }
		}
		house = {
			every_house_member = {
				limit = {
					NOT = { house = $ACTOR$.house }
				}
				custom = all_house_members
				add_opinion = {
					modifier = denounced_house_member_opinion
					target = $ACTOR$
				}
			}
		}
	}
}

As written in game/common/scripted_effects/00_interaction_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls denounce_effect.

Character interactions (1)

Events (1)

Source: game/common/scripted_effects/00_interaction_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?