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

Scripted effect

councillor_spouse_learning_2601_tutoring_effect

councillor_spouse_learning_2601_tutoring_effect = { STUDENT = … }

game/common/scripted_effects/00_councillor_effects.txt, line 105 (158 lines). Parameters: $STUDENT$.

councillor_spouse_learning_2601_tutoring_effect is a scripted effect in Crusader Kings III, written at line 105 of its file. A call passes 1 parameter: STUDENT. The game's script calls it in 1 place, among them …: Further Education (event councillor_spouse_learning.2601). Patch 1.20.1.2, from game/common/scripted_effects/00_councillor_effects.txt.

What it does

  • scope:tutoring_student › 1 of 2 things will happen:
    • 27% – … understanding of … greatly increases (base chance; changed in play) › You › scope:tutoring_student:
    • 73% – … understanding of … increases › You › scope:tutoring_student:

• 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)
councillor_spouse_learning_2601_tutoring_effect = {
	$STUDENT$ = { save_scope_as = tutoring_student }
	scope:tutoring_student = {
		random_list = {
			20 = { #Critical success
				modifier = {
					has_education_rank_trigger = { RANK = 3 OPERATOR = equals }
					factor = 0.6
				}
				modifier = {
					has_education_rank_trigger = { RANK = 4 OPERATOR = equals }
					factor = 0.6
				}
				modifier = {
					root = { spouse_learning_tier_3_trigger = yes }
					factor = 1.5
				}
				desc = councillor_spouse_learning_2601_tutoring_effect.critical_success
				root = {
					send_interface_toast = {
						type = event_toast_effect_good
						title = councillor_spouse_learning_2601_tutoring_effect.critical_success
						left_icon = scope:tutoring_student
						right_icon = scope:councillor
						scope:tutoring_student = {
							rank_up_education_effect = yes
						}
					}	
					add_character_flag = {
						flag = had_councillor_spouse_learning_2601_event
						days = 7300
					}
				}

				hidden_effect = {
					if = {
						limit = { scope:councillor != scope:tutoring_student } #Since the effect can be used on yourself.
						scope:tutoring_student = {
							add_opinion = {
								target = scope:councillor
								modifier = grateful_opinion
								opinion = 15
							}
						}
					}
					scope:councillor = {
						if = {
							limit = { scope:tutoring_student = { has_trait = education_diplomacy } }
							add_character_modifier = {
								modifier = studying_diplomacy
								years = 10
							}
						}
						else_if = {
							limit = { scope:tutoring_student = { has_trait = education_martial } }
							add_character_modifier = {
								modifier = studying_martial
								years = 10
							}
						}
						else_if = {
							limit = { scope:tutoring_student = { has_trait = education_stewardship } }
							add_character_modifier = {
								modifier = studying_stewardship
								years = 10
							}
						}
						else_if = {
							limit = { scope:tutoring_student = { has_trait = education_intrigue } }
							add_character_modifier = {
								modifier = studying_intrigue
								years = 10
							}
						}
						else_if = {
							limit = { scope:tutoring_student = { has_trait = education_learning } }
							add_character_modifier = {
								modifier = studying_learning
								years = 10
							}
						}
						random_list = {
							1 = { set_nickname_effect = { NICKNAME = nick_the_scholar } }
							1 = { set_nickname_effect = { NICKNAME = nick_the_wise } }
							10 = { }
						}
					}
				}
			}
			55 = { #Success
				desc = councillor_spouse_learning_2601_tutoring_effect.success
				root = {
					send_interface_toast = {
						type = event_toast_effect_good
						title = councillor_spouse_learning_2601_tutoring_effect.success
						left_icon = scope:tutoring_student
						right_icon = scope:councillor
						scope:tutoring_student = {
							if = {
								limit = { has_trait = education_diplomacy }
								add_character_modifier = {
									modifier = studying_diplomacy
									years = 10
								}
							}
							else_if = {
								limit = { has_trait = education_martial }
								add_character_modifier = {
									modifier = studying_martial
									years = 10
								}
							}
							else_if = {
								limit = { has_trait = education_stewardship }
								add_character_modifier = {
									modifier = studying_stewardship
									years = 10
								}
							}
							else_if = {

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

The first 120 of its 158 lines; the rest is in game/common/scripted_effects/00_councillor_effects.txt from line 105.

Where it is used

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

Events (1)

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