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

Scripted effect · By God Alone files

request_white_peace_interaction_effect

request_white_peace_interaction_effect = yes

game/common/scripted_effects/pam_effects.txt, line 11199 (61 lines). No parameters.

request_white_peace_interaction_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 11199 of its file. It takes no parameters: request_white_peace_interaction_effect = yes. The game's script calls it in 1 place, among them Request White Peace (interaction). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_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 (61 lines of game script)
request_white_peace_interaction_effect = {
	scope:puppet_or_actor = {
		random_character_war = {
			limit = {
				pam_request_white_peace_war_with_enemy_trigger = { ENEMY = scope:secondary_recipient }
			}
			save_scope_as = white_peace_war
			save_scope_as = war #release_prisoners_of_war_effect resolves the war through scope:war
		}
	}
	scope:puppet_or_actor = {
		if = {
			limit = {
				scope:donate_faith = yes
			}
			pay_treasury_or_gold = {
				target = scope:recipient
				value = major_gold_value
			}
		}
		if = {
			limit = {
				scope:offer_piety = yes
			}
			add_piety = major_piety_loss
			scope:recipient = {
				add_piety = major_piety_gain
			}
		}
		if = {
			limit = {
				scope:offer_hook = yes
			}
			scope:recipient = {
				add_hook = {
					type = favor_hook
					target = scope:puppet_or_actor
				}
			}
		}
		pam_offer_pilgrimage_effect = {
			ACTOR = scope:puppet_or_actor
			CLERIC = scope:recipient
		}
	}
	if = {
		limit = { scope:secondary_recipient = { is_ai = no } }
		custom_tooltip = request_white_peace_player_opponent_tt
		scope:secondary_recipient = { trigger_event = pam_interactions_events.0084 }
	}
	else = {
		pam_enforce_requested_white_peace_effect = yes
		scope:secondary_recipient = {
			add_opinion = {
				target = scope:recipient
				modifier = pam_enforced_white_peace_opinion
			}
			trigger_event = pam_interactions_events.0080
		}
	}
}

As written in game/common/scripted_effects/pam_effects.txt.

Where it is used

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

Character interactions (1)

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