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

Scripted effect

huntperson_camp_officer_education_boost_effect

huntperson_camp_officer_education_boost_effect = yes

game/common/scripted_effects/00_education_effects.txt, line 2941 (66 lines). No parameters.

huntperson_camp_officer_education_boost_effect is a scripted effect in Crusader Kings III, written at line 2941 of its file. It takes no parameters: huntperson_camp_officer_education_boost_effect = yes. The game's script calls it in 1 place, among them Coming of Age (event coming_of_age.0003). Patch 1.20.1.2, from game/common/scripted_effects/00_education_effects.txt.

What it does

  • If

    • Their court owner:
      • Employs a Huntsman
      • Any court position holder:

    Then

    • If

      • has_focus = education_martial

      Then

      • 1 of 3 things will happen:
        • 10%: Nothing else happens
        • 40% (base chance; changed in play): Nothing else happens
        • 50% (base chance; changed in play): Nothing else happens

• 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 (66 lines of game script)
huntperson_camp_officer_education_boost_effect = {
	if = {
		limit = {
			court_owner ?= {
				employs_court_position = huntperson_camp_officer
				any_court_position_holder = {
					type = huntperson_camp_officer
				}
			}
		}
		#Let's save the huntperson with the highest aptitude
		court_owner = {
			random_court_position_holder = {
				type = huntperson_camp_officer
				limit = { aptitude:huntperson_camp_officer >= 4 }
				alternative_limit = { aptitude:huntperson_camp_officer >= 3 }
				alternative_limit = { aptitude:huntperson_camp_officer >= 2 }
				alternative_limit = { aptitude:huntperson_camp_officer >= 1 }
				alternative_limit = { always = yes }
				save_scope_as = huntperson
			}
		}
		if = {
			limit = { has_focus = education_martial }
			random_list = {
				10 = { # Small chance for a GREAT boost
					trigger = {
						scope:huntperson.aptitude:huntperson_camp_officer = 4
					}
					change_variable = {
						name = education_martial_variable
						add = 4
					}
				}
				40 = {
					modifier = {
						add = 20
						scope:huntperson.aptitude:huntperson_camp_officer = 4
					}
					modifier = {
						add = 10
						scope:huntperson.aptitude:huntperson_camp_officer = 3
					}
					change_variable = {
						name = education_martial_variable
						add = 3
					}
				}
				50 = {
					modifier = {
						add = 10
						scope:huntperson.aptitude:huntperson_camp_officer = 1
					}
					modifier = {
						add = 20
						scope:huntperson.aptitude:huntperson_camp_officer = 0
					}
					change_variable = {
						name = education_martial_variable
						add = 2
					}
				}
			}
		}
	}
}

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

Where it is used

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

Events (1)

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