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

Scripted effect · Coronations files

coronation_ceremony_opinion_effect

coronation_ceremony_opinion_effect = yes

game/common/scripted_effects/10_ach_effects.txt, line 1761 (67 lines). No parameters.

coronation_ceremony_opinion_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 1761 of its file. It takes no parameters: coronation_ceremony_opinion_effect = yes. The game's script calls it in 3 places, among them The Crowning of … (event coronation_events.6100), The Crowning of … (event coronation_events.6101) and The Enthroning of … (event coronation_events.6102). Its body carries 3 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/10_ach_effects.txt.

The comment above it in the file

Increases or reduces attendee opinion based on coronation magnificence
Used in ceremony phase

What it does

  • scope:activity:
    • If

      • scope:activity.var:activity_special_type_progression >= 75

      Then

      • Every attending character: Opinion: Impressed (+10)
      • scope:host: Opinion change caused by Coronation Magnificence

      Else if

      • scope:activity.var:activity_special_type_progression >= 50

      Then

      • Every attending character: Opinion: Impressed (+5)
      • scope:host: Opinion change caused by Coronation Magnificence

      Else if

      • scope:activity.var:activity_special_type_progression < 25

      Then

      • Every attending character: Opinion: Contempt (-10)
      • scope:host: Opinion change caused by Coronation Magnificence

• 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 (67 lines of game script)
coronation_ceremony_opinion_effect = {
	scope:activity = {
		if = {
			limit = {
				scope:activity.var:activity_special_type_progression >= 75
			}
			every_attending_character = {
				custom = custom.every_attending_character
				limit = {
					NOT = {
						this = scope:host
					}
				}
				add_opinion = {
					target = scope:host
					opinion = 10
					modifier = impressed_opinion
				}
			}
			scope:host = {
				custom_tooltip = coronation_ceremony_opinion_effect_tt
			}
		}
		else_if = {
			limit = {
				scope:activity.var:activity_special_type_progression >= 50
			}
			every_attending_character = {
				custom = custom.every_attending_character
				limit = {
					NOT = {
						this = scope:host
					}
				}
				add_opinion = {
					target = scope:host
					opinion = 5
					modifier = impressed_opinion
				}
			}
			scope:host = {
				custom_tooltip = coronation_ceremony_opinion_effect_tt
			}
		}
		else_if = {
			limit = {
				scope:activity.var:activity_special_type_progression < 25
			}
			every_attending_character = {
				custom = custom.every_attending_character
				limit = {
					NOT = {
						this = scope:host
					}
				}
				add_opinion = {
					target = scope:host
					opinion = -10
					modifier = contempt_opinion
				}
			}
			scope:host = {
				custom_tooltip = coronation_ceremony_opinion_effect_tt
			}
		}
	}
}

As written in game/common/scripted_effects/10_ach_effects.txt.

Where it is used

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

Events (3)

Source: game/common/scripted_effects/10_ach_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?