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

Scripted effect · All Under Heaven files

set_elder_relation_no_breakup_effect

set_elder_relation_no_breakup_effect = { DISCIPLE = … ELDER = … }

game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 1214 (44 lines). Parameters: $DISCIPLE$, $ELDER$.

set_elder_relation_no_breakup_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1214 of its file. A call passes 2 parameters: DISCIPLE and ELDER. The game's script calls it in 1 place, among them The Prodigy (event imperial_examination_jay.0120). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

The comment above it in the file

Skips the opinion loss and the breakup event

What it does

  • $DISCIPLE$ = { … }
  • If

    • None of these

      • scope:new_disciple:
        • has_relation_elder = scope:new_elder
    • scope:new_elder:

    Then

    • scope:new_disciple:
      • If

        a check the game hides

        Then

        • remove_relation_elder = scope:old_elder
      • set_relation_elder = scope:new_elder
    • scope:new_elder:

• 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 (44 lines of game script)
set_elder_relation_no_breakup_effect = {
	$DISCIPLE$ = {
		save_scope_as = new_disciple
		random_relation = {
			type = elder
			save_scope_as = old_elder
		}
	}
	$ELDER$ = {
		save_scope_as = new_elder
	}
	if = {
		limit = {
			# no circular relations please
			NOT = {
				scope:new_disciple = {
					has_relation_elder = scope:new_elder
				}
			}
			# Disciple does not have a higher merit rank than the elder
			# The elder can have more disciples
			scope:new_elder = {
				eligible_for_elder_trigger = {
					DISCIPLE = scope:new_disciple
				}
			}
		}
		scope:new_disciple = {
			# in case you already had an elder, remove the relation and send them a letter
			if = {
				limit = {
					exists = scope:old_elder
				}
				remove_relation_elder = scope:old_elder
			}
			set_relation_elder = scope:new_elder
		}
		scope:new_elder = {
			add_merit_if_relevant_effect = {
				MERIT = minor_merit_value
			}
		}
	}
}

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

Where it is used

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

Events (1)

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