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

Scripted effect · The Fate of Iberia files

fp2_enforce_truce_opinion_effect

fp2_enforce_truce_opinion_effect = yes

game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt, line 1935 (40 lines). No parameters.

fp2_enforce_truce_opinion_effect is a scripted effect in Crusader Kings III, in the The Fate of Iberia files, written at line 1935 of its file. It takes no parameters: fp2_enforce_truce_opinion_effect = yes. The game's script calls it in 1 place, among them Enforce Truce (interaction). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

What it does

  • If

    • scope:target.attacker_war_score >= fp2_enforce_truce_war_score_value

    Then

    • reverse_add_opinion = { target = scope:target.primary_attacker modifier = fp2_enforced_truce_opinion opinion = -20 }
    • reverse_add_opinion = { target = scope:target.primary_defender modifier = fp2_enforced_truce_opinion opinion = 20 }

    Else if

    • scope:target.defender_war_score >= fp2_enforce_truce_war_score_value

    Then

    • reverse_add_opinion = { target = scope:target.primary_defender modifier = fp2_enforced_truce_opinion opinion = -20 }
    • reverse_add_opinion = { target = scope:target.primary_attacker modifier = fp2_enforced_truce_opinion opinion = 20 }

    Otherwise

    • reverse_add_opinion = { target = scope:target.primary_defender modifier = fp2_enforced_truce_opinion opinion = -10 }
    • reverse_add_opinion = { target = scope:target.primary_attacker modifier = fp2_enforced_truce_opinion opinion = -10 }

• 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 (40 lines of game script)
fp2_enforce_truce_opinion_effect = {
	if = {
		limit = { scope:target.attacker_war_score >= fp2_enforce_truce_war_score_value }
		reverse_add_opinion = {
			target = scope:target.primary_attacker
			modifier = fp2_enforced_truce_opinion
			opinion = -20
		}
		reverse_add_opinion = {
			target = scope:target.primary_defender
			modifier = fp2_enforced_truce_opinion
			opinion = 20
		}
	}
	else_if = {
		limit = { scope:target.defender_war_score >= fp2_enforce_truce_war_score_value }
		reverse_add_opinion = {
			target = scope:target.primary_defender
			modifier = fp2_enforced_truce_opinion
			opinion = -20
		}
		reverse_add_opinion = {
			target = scope:target.primary_attacker
			modifier = fp2_enforced_truce_opinion
			opinion = 20
		}
	}
	else = {
		reverse_add_opinion = {
			target = scope:target.primary_defender
			modifier = fp2_enforced_truce_opinion
			opinion = -10
		}
		reverse_add_opinion = {
			target = scope:target.primary_attacker
			modifier = fp2_enforced_truce_opinion
			opinion = -10
		}
	}
}

As written in game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

Where it is used

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

Character interactions (1)

Source: game/common/scripted_effects/03_dlc_fp2_scripted_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?