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

Scripted effect

court_success_prestige_effect

court_success_prestige_effect = yes

game/common/scripted_effects/00_scheme_scripted_effects.txt, line 15758 (76 lines). No parameters.

court_success_prestige_effect is a scripted effect in Crusader Kings III, written at line 15758 of its file. It takes no parameters: court_success_prestige_effect = yes. The game's script calls it in 2 places, among them Romance: Intruder (event court_outcome.1101) and Romance: The Wild Hunt (event court_outcome.1001). Patch 1.20.1.2, from game/common/scripted_effects/00_scheme_scripted_effects.txt.

What it does

  • If

    Then

    • If

      • One of these

        • tier_difference = { target = scope:prestige_comparison value <= -2 }
        • or

          scope:prestige_comparison.highest_held_title_tier >= tier_empire

      Then

      Else if

      • One of these

        • tier_difference = { target = scope:prestige_comparison value = -1 }
        • or

          scope:prestige_comparison.highest_held_title_tier = tier_kingdom

      Then

      Else if

      • One of these

        • scope:prestige_comparison.highest_held_title_tier = this.highest_held_title_tier
        • or

          scope:prestige_comparison.highest_held_title_tier = tier_duchy

      Then

      Else if

      • scope:prestige_comparison.highest_held_title_tier >= tier_county

      Then

      Otherwise

• 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 (76 lines of game script)
court_success_prestige_effect = {

	if = {
		limit = { court_love_is_shunned_or_criminal_trigger = no }  #Only if it's not a taboo courtship

		#Whose tier matters?
		if = {
			limit = {
				scope:target = {
					is_ruler = no
					exists = liege
					OR = {
						is_spouse_of = this.liege
						is_close_or_extended_family_of = this.liege
					}
				}
			}
			scope:target = { liege = { save_scope_as = prestige_comparison } }
		}
		else = {
			scope:target = { save_scope_as = prestige_comparison }
		}

		#Epic
		if = {
			limit = {
				#They are at least two levels above you or empire level
				OR = {
					tier_difference = {
						target = scope:prestige_comparison
						value <= -2
					}
					scope:prestige_comparison.highest_held_title_tier >= tier_empire
				}
			}
			add_prestige = massive_prestige_gain
		}
		#Great
		else_if = {
			limit = {
				OR = {
					#They are one level above you or kingdom level
					tier_difference = {
						target = scope:prestige_comparison
						value = -1
					}
					scope:prestige_comparison.highest_held_title_tier = tier_kingdom
				}
			}
			add_prestige = major_prestige_gain
		}
		#Good
		else_if = {
			limit = {
				#They're your level or duchy level
				OR = {
					scope:prestige_comparison.highest_held_title_tier = this.highest_held_title_tier
					scope:prestige_comparison.highest_held_title_tier = tier_duchy
				}
			}
			add_prestige = medium_prestige_value
		}
		#Okay
		else_if = {
			limit = {
				#They're at least county level
				scope:prestige_comparison.highest_held_title_tier >= tier_county
			}
			add_prestige = minor_prestige_value
		}
		#Everything else (everyone targeting barons/unlanded)
		else = {
			add_prestige = miniscule_prestige_value
		}
	}
}

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

Where it is used

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

Events (2)

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