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

Scripted effect · Roads to Power files

adventurer_realm_destabilisation_civil_war_effect

adventurer_realm_destabilisation_civil_war_effect = { TITLE = … TITLE_GIVER = … TITLE_RECEIVER = … }

game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 2507 (90 lines). Parameters: $TITLE$, $TITLE_GIVER$, $TITLE_RECEIVER$.

adventurer_realm_destabilisation_civil_war_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 2507 of its file. A call passes 3 parameters: TITLE, TITLE_GIVER and TITLE_RECEIVER. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.

What it does

  • If any in list:
    • One in list, picked in order:
      • Where:
        • can_create_faction = { type = claimant_faction target = scope:adventurer }
      • create_faction = { type = claimant_faction target = scope:adventurer }
      • joined_faction = { save_scope_as = faction set_special_character = scope:claimant set_special_title = scope:realm }
    • Every in list:
      • Where:
        • can_join_faction = scope:faction
      • join_faction = scope:faction
    • scope:faction:
      • faction_start_war = { title = scope:realm }

• 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 (90 lines of game script)
adventurer_realm_destabilisation_civil_war_effect = {
	$TITLE_GIVER$ = { save_scope_as = ruler }
	$TITLE_RECEIVER$ = { save_scope_as = adventurer }
	$TITLE$ = { save_scope_as = title }
	if = {
		limit = {
			any_in_list = { list = independent_vassals }
		}
		scope:ruler = {
			if = {
				limit = { is_alive = yes }
				save_scope_as = claimant
			}
			else_if = {
				limit = {
					any_in_list = { list = heirs }
				}
				random_in_list = {
					list = heirs
					limit = { has_strong_claim_on = scope:realm }
					alternative_limit = { has_weak_claim_on = scope:realm }
					weight = {
						base = 1
						modifier = { add = age }
					}
					save_scope_as = claimant
				}
			}
			else_if = {
				limit = {
					scope:title = {
						any_claimant = {
							this != scope:adventurer
						}
					}
				}
				scope:title = {
					random_claimant = {
						limit = { has_strong_claim_on = scope:realm }
						alternative_limit = { has_weak_claim_on = scope:realm }
						weight = {
							base = 1
							modifier = { add = age }
						}
						save_scope_as = claimant
					}
				}
			}
			else = {
				ordered_in_list = {
					list = independent_vassals
					order_by = max_military_strength
					save_scope_as = claimant
				}
			}
		}
		# Vassals Breakaway
		ordered_in_list = {
			list = independent_vassals
			limit = {
				can_create_faction = {
					type = claimant_faction
					target = scope:adventurer
				}
			}
			order_by = max_military_strength
			save_scope_as = revolt_leader
			create_faction = {
				type = claimant_faction
				target = scope:adventurer
			}
			joined_faction = {
				save_scope_as = faction
				set_special_character = scope:claimant
				set_special_title = scope:realm
			}
		}
		every_in_list = {
			list = independent_vassals
			limit = {
				this != scope:revolt_leader
				can_join_faction = scope:faction
			}
			join_faction = scope:faction
		}
		scope:faction = {
			faction_start_war = { title = scope:realm }
		}
	}
}

As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/07_dlc_ep3_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?