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

Scripted effect

test_m_1001_opinion_setting_effect

test_m_1001_opinion_setting_effect = { CHARACTER = … }

game/common/scripted_effects/00_story_cycle_same_gender_pen_pal_effects.txt, line 13 (41 lines). Parameters: $CHARACTER$.

test_m_1001_opinion_setting_effect is a scripted effect in Crusader Kings III, written at line 13 of its file. A call passes 1 parameter: CHARACTER. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/00_story_cycle_same_gender_pen_pal_effects.txt.

The comment above it in the file

Bring up opinion to at least 20 (They can't start out with less than -30)

What it does

  • If opinion of $CHARACTER$ less than -15: Opinion: Respect (+50)
  • Else, if opinion of $CHARACTER$ less than 0: Opinion: Respect (+35)
  • Else, if opinion of $CHARACTER$ less than 20: Opinion: Respect (+20)

• 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 (41 lines of game script)
test_m_1001_opinion_setting_effect = {
	if = { #-30 to -16
		limit = {
			opinion = {
				target = $CHARACTER$
				value < -15
			}
		}
		add_opinion = {
 			target = $CHARACTER$
 			modifier = respect_opinion
 			opinion = 50
 		}
	}
	else_if = { # -15 to -1
		limit = {
			opinion = {
				target = $CHARACTER$
				value < -0
			}
		}
		add_opinion = {
 			target = $CHARACTER$
 			modifier = respect_opinion
 			opinion = 35
 		}
	}
	else_if = { #0 to 19
		limit = {
			opinion = {
				target = $CHARACTER$
				value < 20
			}
		}
		add_opinion = {
 			target = $CHARACTER$
 			modifier = respect_opinion
 			opinion = 20
 		}
	}
}

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

Where it is used

No file of common/, events/ or history/ calls it.

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