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

Scripted effect

give_pious_type_reward_effect

give_pious_type_reward_effect = yes

game/common/scripted_effects/00_pilgrimage_effects.txt, line 632 (39 lines). No parameters.

give_pious_type_reward_effect is a scripted effect in Crusader Kings III, written at line 632 of its file. It takes no parameters: give_pious_type_reward_effect = yes. The game's script calls it in 1 place, among them give_pilgrimage_reward_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_pilgrimage_effects.txt.

The comment above it in the file

If we have the Pious Type, determine what reward we are getting

What it does

  • If

    Then

    • If

      a check the game hides

      Then

    • If

      a check the game hides

      Then

    • If

      a check the game hides

      Then

    • If

      a check the game hides

      Then

• 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 (39 lines of game script)
give_pious_type_reward_effect = {
	if = {
		limit = { 
			has_trait = pilgrim #This should be awarded upon arrival from your first pilgrimage
			has_trait_xp = {
				trait = pilgrim
				value < 100
			}
		}
		if = {
			limit = { has_character_flag = perfect_pious_reward }
			add_trait_xp = {
				trait = pilgrim
				value = 40
			}
		}
		if = {
			limit = { has_character_flag = high_pious_reward }
			add_trait_xp = {
				trait = pilgrim
				value = 20
			}
		}
		if = {
			limit = { has_character_flag = mid_pious_reward }
			add_trait_xp = {
				trait = pilgrim
				value = 10
			}
		}
		if = {
			limit = { has_character_flag = low_pious_reward }
			add_trait_xp = {
				trait = pilgrim
				value = 5
			}
		}
	}
}

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

Where it is used

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

Scripted effects (1)

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