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_heresy_send_spread_message_effect

pam_heresy_send_spread_message_effect = { TITLE = … }

game/common/scripted_effects/pam_heresy_shared_effects.txt, line 296 (48 lines). Parameters: $TITLE$.

pam_heresy_send_spread_message_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 296 of its file. A call passes 1 parameter: TITLE. The game's script calls it in 3 places, among them heresy_dangerous_rite.0011 (event), heresy_historical.0011 (event) and heresy_light.0011 (event). Patch 1.20.1.2, from game/common/scripted_effects/pam_heresy_shared_effects.txt.

The comment above it in the file

Any scope. Spread message for all three components, sent after scope:convert_ruler converts
Reaches same-faith players near the convert and the convert's liege
Shows a rite change when scope:new_rite exists, otherwise a faith change to scope:heresy_faith
TITLE = message title loc key

What it does

  • Every player:
    • Where:
      • faith = scope:origin_faith
      • NOT = { scope:founder ?= this }
      • One of these

        • scope:convert_ruler.liege ?= this
        • or

          Their capital county:
          • squared_distance = { target = scope:convert_ruler.capital_county value <= squared_distance_medium }
    • If

      a check the game hides

      Then

      • scope:convert_ruler:
        • set_character_rite = scope:new_rite

      Else if

      a check the game hides

      Then

      • scope:convert_ruler:
        • set_character_faith = scope:heresy_faith

• 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 (48 lines of game script)
pam_heresy_send_spread_message_effect = {
	every_player = {
		limit = {
			faith = scope:origin_faith
			NOR = {
				this = scope:convert_ruler
				scope:founder ?= this
			}
			OR = {
				scope:convert_ruler.liege ?= this
				capital_county ?= {
					squared_distance = {
						target = scope:convert_ruler.capital_county
						value <= squared_distance_medium
					}
				}
			}
		}
		if = {
			limit = { exists = scope:new_rite }
			send_interface_message = {
				type = msg_pam_heresy_spread
				title = $TITLE$
				left_icon = scope:convert_ruler
				right_icon = scope:new_rite
				show_as_tooltip = {
					scope:convert_ruler = {
						set_character_rite = scope:new_rite
					}
				}
			}
		}
		else_if = {
			limit = { exists = scope:heresy_faith }
			send_interface_message = {
				type = msg_pam_heresy_spread
				title = $TITLE$
				left_icon = scope:convert_ruler
				right_icon = scope:founder
				show_as_tooltip = {
					scope:convert_ruler = {
						set_character_faith = scope:heresy_faith
					}
				}
			}
		}
	}
}

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

Where it is used

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

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