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

pam_enforce_requested_white_peace_effect

pam_enforce_requested_white_peace_effect = yes

game/common/scripted_effects/pam_effects.txt, line 11262 (101 lines). No parameters.

pam_enforce_requested_white_peace_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 11262 of its file. It takes no parameters: pam_enforce_requested_white_peace_effect = yes. The game's script calls it in 2 places, among them pam_interactions_events.0084 (event) and request_white_peace_interaction_effect (scripted effect). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

The comment above it in the file

Needs scope:white_peace_war from request_white_peace_interaction_effect

What it does

  • scope:white_peace_war:
  • scope:recipient:
    • If

      • One of these

        • Their rite:
          • One of these

            • has_tenet_status = { tenet = tenet_peace_of_god status = core }
            • or

              has_tenet_status = { tenet = tenet_pacifism status = core }
            • or

              has_tenet_status = { tenet = tenet_dharmic_pacifism status = core }
        • or

          Any personal tenet:
          • One of these

            • this = tenet:tenet_peace_of_god
            • or

              this = tenet:tenet_pacifism
            • or

              this = tenet:tenet_dharmic_pacifism

      Then

      • Spiritual fulfillment +3
    • Else, if does not have the Modifier: Peace Mediator:
  • If

    Then

  • scope:puppet_or_actor: … has mediated a White Peace with …
  • If

    • scope:is_puppet_action ?= yes
    • scope:actor != scope:recipient

    Then

    • scope:actor: … mediated a White Peace with … at … behest

• 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 (101 lines of game script)
pam_enforce_requested_white_peace_effect = {
	scope:white_peace_war = {
		casus_belli = {
			primary_attacker = {
				save_scope_as = attacker
			}
			primary_defender = {
				save_scope_as = defender
			}
		}
		release_prisoners_of_war_effect = yes
		end_war = white_peace
	}
	scope:recipient = {
		send_interface_toast = {
			type = event_toast_effect_good
			title = request_white_peace_interaction_recipient_toast
			left_icon = scope:puppet_or_actor
			right_icon = scope:secondary_recipient
			if = {
				limit = {
					OR = {
						rite = {
							OR = {
								has_tenet_status = { tenet = tenet_peace_of_god status = core }
								has_tenet_status = { tenet = tenet_pacifism status = core }
								has_tenet_status = { tenet = tenet_dharmic_pacifism status = core }
							}
						}
						any_personal_tenet = {
							OR = {
								this = tenet:tenet_peace_of_god
								this = tenet:tenet_pacifism
								this = tenet:tenet_dharmic_pacifism
							}
						}
					}
				}
				change_spiritual_fulfillment = minor_spiritual_fulfillment_value
			}
			else_if = {
				limit = {
					NOT = { has_character_modifier = pam_white_peace_enforcer_modifier }
				}
				add_character_modifier = {
					modifier = pam_white_peace_enforcer_modifier
					years = 10
				}
			}
			if = {
				limit = { has_any_nickname = no }
				hidden_effect = {
					random = {
						chance = {
							value = 1
							if = {
								limit = { is_ai = no }
								add = 9
							}
						}
						give_nickname = nick_the_peacemaker
					}
				}
			}
		}
	}
	if = {
		limit = {
			situation:the_christian_church ?= {
				situation_top_has_catalyst = catalyst_the_christian_church_white_peace_enforced
			}
		}
		situation:the_christian_church = {
			trigger_situation_catalyst = catalyst_the_christian_church_white_peace_enforced
		}
	}
	scope:puppet_or_actor = {
		send_interface_toast = {
			type = event_toast_effect_neutral
			title = request_white_peace_interaction_toast_title
			custom_tooltip = request_white_peace_interaction_toast
			left_icon = scope:recipient
			right_icon = scope:secondary_recipient
		}
	}
	if = {
		limit = {
			scope:is_puppet_action ?= yes
			scope:actor != scope:recipient
		}
		scope:actor = {
			send_interface_toast = {
				type = event_toast_effect_neutral
				title = request_white_peace_interaction_toast_title
				custom_tooltip = request_white_peace_interaction_toast_puppeteer
				left_icon = scope:puppet_or_actor
				right_icon = scope:recipient
			}
		}
	}
}

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

Where it is used

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

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?