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

Scripted effect

get_lowest_skill_effect

get_lowest_skill_effect = yes

game/common/scripted_effects/00_skill_effects.txt, line 74 (117 lines). No parameters.

get_lowest_skill_effect is a scripted effect in Crusader Kings III, written at line 74 of its file. It takes no parameters: get_lowest_skill_effect = yes. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/00_skill_effects.txt.

The comment above it in the file

Sets scopes scope:lowest_character_skill and scope:lowest_character_skill_value

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 (117 lines of game script)
get_lowest_skill_effect = {
	save_scope_value_as = {
		name = lowest_character_skill
		value = flag:diplomacy
	}
	save_scope_value_as = {
		name = lowest_character_skill_value
		value = diplomacy
	}
	#Let's make it a bit more random in case you have the same level in a lot of skills
	random_list = {
		10 = {
			if = {
				limit = {
					martial <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = martial }	
			}
			if = {
				limit = {
					stewardship <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = stewardship }	
			}
			if = {
				limit = {
					intrigue <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = intrigue }	
			}
			if = {
				limit = {
					learning <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = learning }	
			}
		}
		10 = {
			if = {
				limit = {
					stewardship <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = stewardship }	
			}
			if = {
				limit = {
					intrigue <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = intrigue }	
			}
			if = {
				limit = {
					learning <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = learning }	
			}
			if = {
				limit = {
					martial <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = martial }	
			}
		}
		10 = {
			if = {
				limit = {
					intrigue <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = intrigue }	
			}
			if = {
				limit = {
					learning <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = learning }	
			}
			if = {
				limit = {
					martial <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = martial }	
			}
			if = {
				limit = {
					stewardship <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = stewardship }	
			}
		}
		10 = {
			if = {
				limit = {
					learning <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = learning }	
			}
			if = {
				limit = {
					martial <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = martial }	
			}
			if = {
				limit = {
					stewardship <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = stewardship }	
			}
			if = {
				limit = {
					intrigue <= scope:lowest_character_skill_value
				}
				calculate_lowest_skill_effect = { SKILL = intrigue }	
			}
		}
	}
}

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

Where it is used

No file of common/, events/ or history/ calls it.

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