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

Scripted effect

pick_translation_book_effect

pick_translation_book_effect = { OPTION = … }

game/common/scripted_effects/00_learning_lifestyle_effects.txt, line 144 (568 lines). Parameters: $OPTION$.

pick_translation_book_effect is a scripted effect in Crusader Kings III, written at line 144 of its file. A call passes 1 parameter: OPTION. The game's script calls it in 1 place, among them A New Translation (event learning_scholarship_special.2001). Patch 1.20.1.2, from game/common/scripted_effects/00_learning_lifestyle_effects.txt.

What it does

  • 1 of 24 things will happen:
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 5%: Nothing else happens
    • 0%: Nothing else happens
    • 0%: 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 (120 lines of game script)
pick_translation_book_effect = {
	random_list = {
		100 = { #Regula Pastoralis
			trigger = {
				trigger_if = {
					limit = {
						exists = scope:option_1
					}
					NOT = { scope:option_1 = flag:regula_pastoralis }
				}
				capital_province = {
					OR = {
						geographical_region = world_europe
						geographical_region = world_middle_east
						geographical_region = world_africa_north
					}
				}
			}
			
			save_scope_value_as = {
				name = $OPTION$
				value = flag:regula_pastoralis
			}
		}
		100 = { #Physica Elementa
			trigger = {
				trigger_if = {
					limit = {
						exists = scope:option_1
					}
					NOT = { scope:option_1 = flag:physica_elementa }
				}
				capital_province = {
					OR = {
						geographical_region = world_europe
						geographical_region = world_middle_east
						geographical_region = world_africa_north
						geographical_region = world_persian_empire
					}
				}
			}
			
			save_scope_value_as = {
				name = $OPTION$
				value = flag:physica_elementa
			}
		}
		100 = { #Almagest
			trigger = {
				trigger_if = {
					limit = {
						exists = scope:option_1
					}
					NOT = { scope:option_1 = flag:almagest }
				}
				capital_province = {
					OR = {
						geographical_region = world_europe
						geographical_region = world_middle_east
						geographical_region = world_africa_north
						geographical_region = world_persian_empire
					}
				}
			}
			
			save_scope_value_as = {
				name = $OPTION$
				value = flag:almagest
			}
		}
		100 = { #The Elements
			trigger = {
				trigger_if = {
					limit = {
						exists = scope:option_1
					}
					NOT = { scope:option_1 = flag:elements }
				}
				capital_province = {
					OR = {
						geographical_region = world_europe
						geographical_region = world_middle_east
						geographical_region = world_africa_north
						geographical_region = world_persian_empire
					}
				}
			}
			
			save_scope_value_as = {
				name = $OPTION$
				value = flag:elements
			}
		}
		100 = { #Corpus Hermeticus
			trigger = {
				trigger_if = {
					limit = {
						exists = scope:option_1
					}
					NOT = { scope:option_1 = flag:corpus_hermeticus }
				}
				capital_province = {
					OR = {
						geographical_region = world_europe
						geographical_region = world_middle_east
						geographical_region = world_africa_north
						geographical_region = world_persian_empire
					}
				}
			}
			
			save_scope_value_as = {
				name = $OPTION$
				value = flag:corpus_hermeticus
			}
		}
		100 = { #Treatises of Hippocrates
			trigger = {
				trigger_if = {
					limit = {

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

The first 120 of its 568 lines; the rest is in game/common/scripted_effects/00_learning_lifestyle_effects.txt from line 144.

Where it is used

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

Events (1)

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