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

Scripted effect

try_remove_perk_alliance_opinion_effect

try_remove_perk_alliance_opinion_effect = { TARGET = … }

game/common/scripted_effects/00_diplomacy_perk_effects.txt, line 770 (14 lines). Parameters: $TARGET$.

try_remove_perk_alliance_opinion_effect is a scripted effect in Crusader Kings III, written at line 770 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 2 places, among them on_alliance_broken (on action) and on_alliance_removed (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_diplomacy_perk_effects.txt.

What it does

  • If

    • has_opinion_modifier = { modifier = perk_negotiated_alliance_opinion target = $TARGET$ }

    Then

    • remove_opinion = { modifier = perk_negotiated_alliance_opinion target = $TARGET$ }

• 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 (14 lines of game script)
try_remove_perk_alliance_opinion_effect = {
	if = {
		limit = {
			has_opinion_modifier = {
				modifier = perk_negotiated_alliance_opinion
				target = $TARGET$
			}
		}
		remove_opinion = {
			modifier = perk_negotiated_alliance_opinion
			target = $TARGET$
		}
	}
}

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

Where it is used

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

On actions (the game's own hooks) (2)

  • on_alliance_broken
  • on_alliance_removed

Source: game/common/scripted_effects/00_diplomacy_perk_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?