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

Scripted effect

sun_trial_survival_effect

sun_trial_survival_effect = yes

game/common/scripted_effects/00_religious_interaction_effects.txt, line 1516 (48 lines). No parameters.

sun_trial_survival_effect is a scripted effect in Crusader Kings III, written at line 1516 of its file. It takes no parameters: sun_trial_survival_effect = yes. The game's script calls it in 4 places, among them Sun Trial (interaction), … Judgment (event religious_interaction.2100) and … Judgment (event religious_interaction.2102). Patch 1.20.1.2, from game/common/scripted_effects/00_religious_interaction_effects.txt.

What it does

  • scope:prisoner:
    • release_from_prison = yes
    • If

      • Not all of these

        • Their faith is the same as that of imprisoner
        • Ai zeal at least 20

      Then

      • Opinion: Angry (-40)
    • If their faith is the same as that of imprisoner:
  • scope:imprisoner:
    • consume_imprisonment_reasons = scope:prisoner

• 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)
sun_trial_survival_effect = {
	scope:prisoner = {
		release_from_prison = yes

		# Non-imprisoner-same-faith are upset that you threw them out into the desert to die.
		if = { 	
			limit = {
				NAND = {
					faith = scope:imprisoner.faith
					ai_zeal >= low_positive_ai_value
				}
			}
			add_opinion = {
				target = scope:imprisoner
				modifier = angry_opinion
				opinion = -40
			}
		}
		
		# imprisoner-same-faith gain a bonus if they survive the sun trial.
		if = {
			limit = {
				faith = scope:imprisoner.faith
			}
			add_character_modifier = {
				modifier = blessed_by_the_sun_modifier
				years = 15
			}
		}

		# Don't notify the player that they were released from prison (they were already released as part of the interaction).
		hidden_effect = {
			add_character_flag = {
				flag = block_for_prison_release_notification
				days = 3
			}
		}
	}
	scope:imprisoner = {
		consume_imprisonment_reasons = scope:prisoner
		hidden_effect = {
			consume_imprisonment_reasons = scope:prisoner
			consume_banish_reasons = scope:prisoner
			consume_execute_reasons = scope:prisoner
			consume_revoke_title_reason = scope:prisoner
		}
	}
}

As written in game/common/scripted_effects/00_religious_interaction_effects.txt.

Where it is used

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

Character interactions (1)

Events (3)

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