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

Scripted effect · Khans of the Steppe files

mpo_blood_brother_remove_family_opinion_effect

mpo_blood_brother_remove_family_opinion_effect = yes

game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 4226 (48 lines). No parameters.

mpo_blood_brother_remove_family_opinion_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 4226 of its file. It takes no parameters: mpo_blood_brother_remove_family_opinion_effect = yes. The game's script calls it in 2 places, among them on_divorce (on action) and on_remove_relation_blood_brother (on action). Patch 1.20.1.2, from game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (48 lines of game script)
mpo_blood_brother_remove_family_opinion_effect = {
	hidden_effect = {
		#Add blood brother close family opinion to actor's family
		save_scope_as = former_kin
		scope:other_blood_brother = {
			add_to_list = other_blood_brother_family
			add_character_flag = unhandled_family
			every_child = {
				add_to_list = other_blood_brother_family
				add_character_flag = unhandled_family
			}
			primary_spouse ?= {
				add_to_list = other_blood_brother_family
				add_character_flag = unhandled_family
			}
		}
		#Remove other family on former kin
		while = {
			limit = {
				any_in_list = {
					list = other_blood_brother_family
					has_character_flag = unhandled_family
				}
			}
			random_in_list = {
				list = other_blood_brother_family
				limit = {
					has_character_flag = unhandled_family
				}
				save_scope_as = other_blood_brother_picked_family
				remove_character_flag = unhandled_family
			}
			scope:other_blood_brother_picked_family = {
				remove_opinion = {
					target = scope:former_kin
					modifier = blood_brother_close_family_opinion
				}
				scope:former_kin = {
					remove_opinion = {
						target = scope:other_blood_brother_picked_family
						modifier = blood_brother_close_family_opinion
					}
				}
			}
			clear_saved_scope = other_blood_brother_picked_family
		}
	}
}

As written in game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.

Where it is used

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

On actions (the game's own hooks) (2)

  • on_divorce
  • on_remove_relation_blood_brother

Source: game/common/scripted_effects/09_dlc_mpo_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?