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

Scripted effect

journey_knowledge_hoarding_skill_effect

journey_knowledge_hoarding_skill_effect = { VALUE = … }

game/common/scripted_effects/00_journey_effects.txt, line 2 (81 lines). Parameters: $VALUE$.

journey_knowledge_hoarding_skill_effect is a scripted effect in Crusader Kings III, written at line 2 of its file. A call passes 1 parameter: VALUE. The game's script calls it in 18 places, among them apa_scribe_makes_notes (activity pulse), apa_strange_markings (activity pulse) and apa_vista_of_monument (activity pulse). Its body carries 9 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_journey_effects.txt.

What it does

  • scope:activity:
    • If

      • $VALUE$ == 25

      Then

      • Chance of one extra Skill Increase on Conclusion: +25%
    • If

      • $VALUE$ == 20

      Then

      • Chance of one extra Skill Increase on Conclusion: +20%

      Else if

      • $VALUE$ == 15

      Then

      • Chance of one extra Skill Increase on Conclusion: +15%

      Else if

      • $VALUE$ == 10

      Then

      • Chance of one extra Skill Increase on Conclusion: +10%

      Else if

      • $VALUE$ == 5

      Then

      • Chance of one extra Skill Increase on Conclusion: +5%

      Else if

      • $VALUE$ == 30

      Then

      • Chance of one extra Skill Increase on Conclusion: +30%

      Else if

      • $VALUE$ == 35

      Then

      • Chance of one extra Skill Increase on Conclusion: +35%

      Else if

      • $VALUE$ == 50

      Then

      • Chance of one extra Skill Increase on Conclusion: +50%

      Else if

      • $VALUE$ == 2

      Then

      • Chance of one extra Skill Increase on Conclusion: +2%

• 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 (81 lines of game script)
journey_knowledge_hoarding_skill_effect = {
	scope:activity = {
		if = {
			limit = { has_variable = skill_chance }
			change_variable = {
				name = skill_chance
				add = $VALUE$
			}
		}
		else = {
			set_variable = {
				name = skill_chance
				value = $VALUE$
			}
		}
		if = {
			limit = {
				$VALUE$ == 25
			}
			custom_tooltip = increase_skill_chance_25
		}
		if = {
			limit = {
				$VALUE$ == 20
			}
			custom_tooltip = increase_skill_chance_20
		}
		else_if = {
			limit = {
				$VALUE$ == 15
			}
			custom_tooltip = increase_skill_chance_15
		}
		else_if = {
			limit = {
				$VALUE$ == 10
			}
			custom_tooltip = increase_skill_chance_10
		}
		else_if = {
			limit = {
				$VALUE$ == 5
			}
			custom_tooltip = increase_skill_chance_5
		}
		else_if = {
			limit = {
				$VALUE$ == 30
			}
			custom_tooltip = increase_skill_chance_30
		}
		else_if = {
			limit = {
				$VALUE$ == 35
			}
			custom_tooltip = increase_skill_chance_35
		}
		else_if = {
			limit = {
				$VALUE$ == 50
			}
			custom_tooltip = increase_skill_chance_50
		}
		else_if = {
			limit = {
				$VALUE$ == 2
			}
			custom_tooltip = increase_skill_chance_2
		}
		if = {
			limit = {
				has_variable = skill_chance
				var:skill_chance > 100
			}
			set_variable = {
				name = skill_chance
				value = 100
			}
		}
	}
}

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

Where it is used

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

Activity pulse actions (3)

  • apa_scribe_makes_notes
  • apa_strange_markings
  • apa_vista_of_monument

Events (15)

9 more

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