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_save_potential_blood_brother_war_allies_effect

mpo_save_potential_blood_brother_war_allies_effect = yes

game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 4084 (94 lines). No parameters.

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

What it does

• 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 (94 lines of game script)
mpo_save_potential_blood_brother_war_allies_effect = {
	scope:war = {
		if = {
			limit = {
				any_war_attacker = {
					count >= 2
					mpo_valid_for_blood_brotherhood_trigger = yes
				}
			}
			#Lord forgive me for this script
			every_war_attacker = {
				limit = {
					mpo_valid_for_blood_brotherhood_trigger = yes
				}
				add_to_list = attacker_war_allies_list

			}
			while = {
				limit = {
					any_war_attacker = {
						is_in_list = attacker_war_allies_list
					}
				}
				random_war_attacker = {
					limit = {
						is_in_list = attacker_war_allies_list
					}
					save_scope_as = current_ally
				}
				every_war_attacker = {
					limit = {
						mpo_valid_for_blood_brotherhood_trigger = yes
						NOT = {
							this = scope:current_ally
						}
					}
					add_to_variable_list = {
						name = former_war_allies
						target = scope:current_ally
						years = 10
					}
				}
				scope:current_ally = {
					remove_from_list = attacker_war_allies_list
				}
				clear_saved_scope = current_ally
			}
		}
		if = {
			limit = {
				any_war_defender = {
					count >= 2
					mpo_valid_for_blood_brotherhood_trigger = yes
				}
			}
			every_war_defender = {
				limit = {
					mpo_valid_for_blood_brotherhood_trigger = yes
				}
				add_to_list = defender_war_allies_list
			}
			while = {
				limit = {
					any_war_defender = {
						is_in_list = defender_war_allies_list
					}
				}
				random_war_defender = {
					limit = {
						is_in_list = defender_war_allies_list
					}
					save_scope_as = current_ally
				}
				every_war_defender = {
					limit = {
						mpo_valid_for_blood_brotherhood_trigger = yes
						NOT = {
							this = scope:current_ally
						}
					}
					add_to_variable_list = {
						name = former_war_allies
						target = scope:current_ally
						years = 10
					}
				}
				scope:current_ally = {
					remove_from_list = defender_war_allies_list
				}
				clear_saved_scope = current_ally
			}
		}
	}
}

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

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

  • on_war_invalidated
  • on_war_white_peace
  • on_war_won_attacker
  • on_war_won_defender

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?