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

Scripted effect

scapegoat_counterpart_interaction_process_results_effect

scapegoat_counterpart_interaction_process_results_effect = { REALM_OPINION_ACTOR = … REALM_OPINION_RECIPIENT = … }

game/common/scripted_effects/00_diarchy_scripted_effects.txt, line 1852 (110 lines). Parameters: $REALM_OPINION_ACTOR$, $REALM_OPINION_RECIPIENT$.

scapegoat_counterpart_interaction_process_results_effect is a scripted effect in Crusader Kings III, written at line 1852 of its file. A call passes 2 parameters: REALM_OPINION_ACTOR and REALM_OPINION_RECIPIENT. The game's script calls it in 3 places, among them Scapegoat Co-Ruler (interaction), diarchy.8041 (event) and diarchy.8042 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_diarchy_scripted_effects.txt.

What it does

  • If

    • scope:diplomacy_small = yes

    Then

    • scope:actor:
      • Influence changes
      • $REALM_OPINION_ACTOR$ = { value = scope:multiplied_diff divide = 40 min = 3 }
    • scope:recipient:
      • $REALM_OPINION_RECIPIENT$ = { value = scope:multiplied_diff divide = 30 min = 5 }

    Else if

    • scope:diplomacy_large = yes

    Then

    • scope:actor:
      • Influence changes
      • $REALM_OPINION_ACTOR$ = { value = scope:multiplied_diff divide = 40 min = 5 }
    • scope:recipient:
      • $REALM_OPINION_RECIPIENT$ = { value = scope:multiplied_diff divide = 30 min = 10 }

    Else if

    • scope:intrigue_small = yes

    Then

    • scope:actor:
      • Influence changes
      • $REALM_OPINION_ACTOR$ = { value = scope:multiplied_diff divide = 40 min = 3 }
    • scope:recipient:
      • $REALM_OPINION_RECIPIENT$ = { value = scope:multiplied_diff divide = 30 min = 5 }

    Else if

    • scope:intrigue_large = yes

    Then

    • scope:actor:
      • Influence changes
      • $REALM_OPINION_ACTOR$ = { value = scope:multiplied_diff divide = 40 min = 5 }
    • scope:recipient:
      • $REALM_OPINION_RECIPIENT$ = { value = scope:multiplied_diff divide = 30 min = 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 (110 lines of game script)
scapegoat_counterpart_interaction_process_results_effect = {
	if = {
		limit = { scope:diplomacy_small = yes }
		scope:actor = {
			save_scope_value_as = {
				name = multiplied_diff
				value = {
					value = diplomacy
					subtract = scope:recipient.diplomacy
					multiply = 20
					max = 400
				}
			}
			change_influence = scope:multiplied_diff
			$REALM_OPINION_ACTOR$ = {
				value = scope:multiplied_diff
				divide = 40
				min = 3
			}
		}
		scope:recipient = {
			$REALM_OPINION_RECIPIENT$ = {
				value = scope:multiplied_diff
				divide = 30
				min = 5
			}
		}
	}
	else_if = {
		limit = { scope:diplomacy_large = yes }
		scope:actor = {
			save_scope_value_as = {
				name = multiplied_diff
				value = {
					value = diplomacy
					subtract = scope:recipient.diplomacy
					multiply = 40
					max = 800
				}
			}
			change_influence = scope:multiplied_diff
			$REALM_OPINION_ACTOR$ = {
				value = scope:multiplied_diff
				divide = 40
				min = 5
			}
		}
		scope:recipient = {
			$REALM_OPINION_RECIPIENT$ = {
				value = scope:multiplied_diff
				divide = 30
				min = 10
			}
		}
	}
	else_if = {
		limit = { scope:intrigue_small = yes }
		scope:actor = {
			save_scope_value_as = {
				name = multiplied_diff
				value = {
					value = intrigue
					subtract = scope:recipient.intrigue
					multiply = 20
					max = 400
				}
			}
			change_influence = scope:multiplied_diff
			$REALM_OPINION_ACTOR$ = {
				value = scope:multiplied_diff
				divide = 40
				min = 3
			}
		}
		scope:recipient = {
			$REALM_OPINION_RECIPIENT$ = {
				value = scope:multiplied_diff
				divide = 30
				min = 5
			}
		}
	}
	else_if = {
		limit = { scope:intrigue_large = yes }
		scope:actor = {
			save_scope_value_as = {
				name = multiplied_diff
				value = {
					value = intrigue
					subtract = scope:recipient.intrigue
					multiply = 40
					max = 800
				}
			}
			change_influence = scope:multiplied_diff
			$REALM_OPINION_ACTOR$ = {
				value = scope:multiplied_diff
				divide = 40
				min = 5
			}
		}
		scope:recipient = {
			$REALM_OPINION_RECIPIENT$ = {
				value = scope:multiplied_diff
				divide = 30
				min = 10
			}
		}
	}
}

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

Where it is used

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

Character interactions (1)

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