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

Scripted effect

grateful_for_appointment_as_co_emperor_effect

grateful_for_appointment_as_co_emperor_effect = yes

game/common/scripted_effects/00_diarchy_scripted_effects.txt, line 2380 (29 lines). No parameters.

grateful_for_appointment_as_co_emperor_effect is a scripted effect in Crusader Kings III, written at line 2380 of its file. It takes no parameters: grateful_for_appointment_as_co_emperor_effect = yes. The game's script calls it in 3 places, among them Elevate Child as Nominal Co-Emperor (interaction), Elevate Co-Emperor (interaction) and Elevate Co-Monarch (interaction). Patch 1.20.1.2, from game/common/scripted_effects/00_diarchy_scripted_effects.txt.

What it does

  • If a check the game hides passes: the same again (1 line)
    • scope:ai_recipient: Opinion: Made Me Co-Ruler (+50)

    Otherwise

    • scope:secondary_recipient: Opinion: Made Me Co-Ruler (+50)

• 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 (29 lines of game script)
grateful_for_appointment_as_co_emperor_effect = {
	if = {
		limit = { exists = scope:ai_recipient }
		scope:ai_recipient = {
			set_variable = {
				name = co_emp_appointer
				value = scope:actor
			}
			add_opinion = {
				target = scope:actor
				modifier = made_co_ruler_opinion
				opinion = 50
			}
		}
	}
	else = {
		scope:secondary_recipient ?= {
			set_variable = {
				name = co_emp_appointer
				value = scope:actor
			}
			add_opinion = {
				target = scope:actor
				modifier = made_co_ruler_opinion
				opinion = 50
			}
		}
	}
}

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 grateful_for_appointment_as_co_emperor_effect.

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?