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

Scripted effect · The Fate of Iberia files

fp2_struggle_compromise_truce_effect

fp2_struggle_compromise_truce_effect = yes

game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt, line 486 (60 lines). No parameters.

fp2_struggle_compromise_truce_effect is a scripted effect in Crusader Kings III, in the The Fate of Iberia files, written at line 486 of its file. It takes no parameters: fp2_struggle_compromise_truce_effect = yes. The game's script calls it in 1 place, among them Status Quo (event fp2_struggle.0901). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

The comment above it in the file

Add truces between all Involved rulers

What it does

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

The script as written (60 lines of game script)
fp2_struggle_compromise_truce_effect = {
	hidden_effect = {
		if = {
			limit = {
				struggle:iberian_struggle = {
					any_involved_ruler = {
						count > 1
						top_liege = this
						primary_title = { is_mercenary_company = no }
					}
				}
			}
			struggle:iberian_struggle = {
				every_involved_ruler = {
					limit = {
						top_liege = this
						primary_title = { is_mercenary_company = no }
					}
					add_to_list = fp2_struggle_compromise_truce_list
				}
			}
			while = {
				limit = {
					any_in_list = {
						list = fp2_struggle_compromise_truce_list
						NOT = { has_variable = fp2_struggle_compromise_flag }
					}
				}
				ordered_in_list = {
					list = fp2_struggle_compromise_truce_list
					limit = {
						NOT = { has_variable = fp2_struggle_compromise_flag }
					}
					order_by = realm_size
					save_scope_as = realm_scope
					set_variable = fp2_struggle_compromise_flag # variable ensures truces are set only once per couple
				}
				every_in_list = {
					list = fp2_struggle_compromise_truce_list
					limit = {
						NOR = {
							has_variable = fp2_struggle_compromise_flag
							this = scope:realm_scope
							has_truce = scope:realm_scope
						}
					}
					add_truce_both_ways = {
						character = scope:realm_scope
						days = 3650
						name = TRUCE_FP2_COMPROMISE
					}
				}
			}
			every_in_list = {
				list = fp2_struggle_compromise_truce_list
				remove_variable = fp2_struggle_compromise_flag
			}
		}
	}
}

As written in game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

Where it is used

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

Events (1)

Source: game/common/scripted_effects/03_dlc_fp2_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?