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

reincarnation_piety_courage_gain_effect

reincarnation_piety_courage_gain_effect = yes

game/common/scripted_effects/pam_effects.txt, line 4375 (26 lines). No parameters.

reincarnation_piety_courage_gain_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 4375 of its file. It takes no parameters: reincarnation_piety_courage_gain_effect = yes. The game's script calls it in 2 places, among them on_personal_tenet_gain (on action) and on_piety_level_gain (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

The comment above it in the file

Called from on_personal_tenet_gain and on_piety_level_gain

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 (26 lines of game script)
reincarnation_piety_courage_gain_effect = {
	if = {
		limit = {
			has_personal_tenet_flag = tenet_reincarnation_piety_level_courage
			piety_level >= high_piety_level
		}
		if = {
			limit = { has_trait = craven }
			send_interface_toast = {
				type = event_toast_effect_good
				title = pam_reincarnation_courage_toast
				left_icon = root
				remove_trait = craven
			}
		}
		else_if = {
			limit = { NOT = { has_trait = brave } }
			send_interface_toast = {
				type = event_toast_effect_good
				title = pam_reincarnation_courage_toast
				left_icon = root
				add_trait = brave
			}
		}
	}
}

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

Where it is used

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

On actions (the game's own hooks) (2)

  • on_personal_tenet_gain
  • on_piety_level_gain

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?