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

Scripted effect

accolades_all_knights_liege_tournament_xp_gain_effect

accolades_all_knights_liege_tournament_xp_gain_effect = yes

game/common/scripted_effects/00_accolades_scripted_effects.txt, line 186 (159 lines). No parameters.

accolades_all_knights_liege_tournament_xp_gain_effect is a scripted effect in Crusader Kings III, written at line 186 of its file. It takes no parameters: accolades_all_knights_liege_tournament_xp_gain_effect = yes. The game's script calls it in 1 place, among them disburse_tournament_activity_rewards (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_accolades_scripted_effects.txt.

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 (120 lines of game script)
accolades_all_knights_liege_tournament_xp_gain_effect = {
	custom_tooltip = accolade_tournament_xp_gain_all_knights.tt
	hidden_effect = {
		if = {
			limit = {
				NOT = { has_trait = tourney_participant }
			}
			add_trait = tourney_participant
		}
	}
	# low bonus
	if = {
		limit = {
			liege = {
				any_active_accolade = {
					accolade_parameter = accolade_tournament_xp_gain_all_knights
				}
			}
		}
		hidden_effect = {
			random_list = {
				10 = {
					modifier = {
						add = 20
						has_trait_xp = {
							trait = tourney_participant
							track = foot
							value = 30
						}
					}
					add_trait_xp = {
						trait = tourney_participant
						track = foot
						value = accolade_all_knights_trait_xp_low_value
					}
				}
				10 = {
					modifier = {
						add = 20
						has_trait_xp = {
							trait = tourney_participant
							track = horse
							value = 30
						}
					}
					add_trait_xp = {
						trait = tourney_participant
						track = horse
						value = accolade_all_knights_trait_xp_low_value
					}
				}
				10 = {
					modifier = {
						add = 20
						has_trait_xp = {
							trait = tourney_participant
							track = bow
							value = 30
						}
					}
					add_trait_xp = {
						trait = tourney_participant
						track = bow
						value = accolade_all_knights_trait_xp_low_value
					}
				}
				10 = {
					modifier = {
						add = 20
						has_trait_xp = {
							trait = tourney_participant
							track = wit
							value = 30
						}
					}
					add_trait_xp = {
						trait = tourney_participant
						track = wit
						value = accolade_all_knights_trait_xp_low_value
					}
				}
			}
		}
	}
	# high bonus
	else_if = {
		limit = {
			liege = {
				any_active_accolade = {
					accolade_parameter = accolade_tournament_xp_gain_all_knights_high
				}
			}
		}
		hidden_effect = {
			random_list = {
				10 = {
					modifier = {
						add = 20
						has_trait_xp = {
							trait = tourney_participant
							track = foot
							value = 30
						}
					}
					add_trait_xp = {
						trait = tourney_participant
						track = foot
						value = accolade_all_knights_trait_xp_high_value
					}
				}
				10 = {
					modifier = {
						add = 20
						has_trait_xp = {
							trait = tourney_participant
							track = horse
							value = 30
						}
					}
					add_trait_xp = {

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

The first 120 of its 159 lines; the rest is in game/common/scripted_effects/00_accolades_scripted_effects.txt from line 186.

Where it is used

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

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