Scripted effect
accolade_squires_boost_martial_tourney_effect
accolade_squires_boost_martial_tourney_effect = yesgame/common/scripted_effects/00_accolades_scripted_effects.txt, line 3083 (714 lines). No parameters.
accolade_squires_boost_martial_tourney_effect is a scripted effect in Crusader Kings III, written at line 3083 of its file. It takes no parameters: accolade_squires_boost_martial_tourney_effect = yes. The game's script calls it in 1 place, among them accolade_create_squire_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_accolades_scripted_effects.txt.
The comment above it in the file
Increases martial skill or tournament trait xp
What it does
If
scope:succeeding_accolade:initial_type = { this = accolade_type:archer_attribute }
Then
- 1 of 2 things will happen:
- 25%:
add_martial_skill = squires_bonus_martial
- 75%:
- If does not have the Trait: Hastiluder: Gains the Trait Hastiluder
- Hastiluder (bow) experience changes
- 25%:
Else if
scope:succeeding_accolade:initial_type = { this = accolade_type:skirmisher_attribute }
Then
- 1 of 4 things will happen:
- 25%:
add_martial_skill = squires_bonus_martial
- 25%:
add_martial_skill = squires_bonus_martial
- 25%:
- If does not have the Trait: Hastiluder: Gains the Trait Hastiluder
- Hastiluder (bow) experience changes
- 25%:
- If does not have the Trait: Hastiluder: Gains the Trait Hastiluder
- Hastiluder (foot) experience changes
- 25%:
Else if
scope:succeeding_accolade:initial_type = { this = accolade_type:pike_attribute }
Then
- 1 of 2 things will happen:
- 25%:
If
- scope:succeeding_accolade: Accolade squires quality at least 60
Then
- Gains the Trait Rough Terrain Expert
add_martial_skill = squires_bonus_martial
- 75%:
- Gains the Trait Hastiluder
- Hastiluder (foot) experience changes
- 25%:
Else if
scope:succeeding_accolade:initial_type = { this = accolade_type:outrider_attribute }
Then
- 1 of 2 things will happen:
- 25%:
If
- scope:succeeding_accolade: Accolade squires quality at least 60
Then
- Gains the Trait Open Terrain Expert
add_martial_skill = squires_bonus_martial
- 75%:
- Gains the Trait Hastiluder
- Hastiluder (horse) experience changes
- 25%:
Else if
scope:succeeding_accolade:initial_type = { this = accolade_type:vanguard_attribute }
Then
- 1 of 3 things will happen:
- 14%: Gains the Trait Athletic
- 14%: Gains the Trait Strong
- 71%:
- Gains the Trait Hastiluder
- Hastiluder (foot) experience changes
Else if
scope:succeeding_accolade:initial_type = { this = accolade_type:lancer_attribute }
Then
- 1 of 2 things will happen:
- 25%:
If
- scope:succeeding_accolade: Accolade squires quality at least 60
Then
- Gains the Trait Aggressive Attacker
add_martial_skill = squires_bonus_martial
- 75%:
- Gains the Trait Hastiluder
- Hastiluder (horse) experience changes
- 25%:
Else if
scope:succeeding_accolade:initial_type = { this = accolade_type:crossbowmen_attribute }
Then
- 1 of 2 things will happen:
- 25%:
If
- scope:succeeding_accolade: Accolade squires quality at least 60
Then
- Gains the Trait Cautious Leader
add_martial_skill = squires_bonus_martial
- 75%:
- Gains the Trait Hastiluder
- Hastiluder (bow) experience changes
- 25%:
Else if
scope:succeeding_accolade:initial_type = { this = accolade_type:besieger_attribute }
Then
- 1 of 2 things will happen:
- 50%:
If
- scope:succeeding_accolade: Accolade squires quality at least 60
- … (more in the script below)
- … (more in the script below)
- 50%:
- … (more in the script below)
• 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)
accolade_squires_boost_martial_tourney_effect = {
#Increase tourney participant and/or martial effect (scaled by squires)
#Divided by which accolade type needs what
#Archer
if = {
limit = {
scope:succeeding_accolade = {
initial_type = {
this = accolade_type:archer_attribute
}
}
}
random_list = {
1 = {
trigger = {
scope:owner = {
any_held_title = {
title_tier = county
is_landless_type_title = no
any_county_province = {
OR = {
terrain = forest
terrain = taiga
}
}
}
}
martial >= medium_skill_rating
}
if = {
limit = {
scope:succeeding_accolade = { accolade_squires_quality_value >= accolade_squires_capable_minimum_value }
}
add_trait = forest_fighter
}
add_martial_skill = squires_bonus_martial
}
3 = {
if = {
limit = {
NOT = {
has_trait = tourney_participant
}
}
add_trait = tourney_participant
}
add_trait_xp = {
trait = tourney_participant
track = bow
value = squires_bonus_trait_xp_very_high
}
}
}
}
#Skirmisher
else_if = {
limit = {
scope:succeeding_accolade = {
initial_type = {
this = accolade_type:skirmisher_attribute
}
}
}
random_list = {
1 = {
trigger = {
scope:owner.capital_county = {
any_county_province = {
has_province_modifier = winter_harsh_modifier
}
}
martial >= medium_skill_rating
}
if = {
limit = {
scope:succeeding_accolade = { accolade_squires_quality_value >= accolade_squires_capable_minimum_value }
}
add_trait = winter_soldier
}
add_martial_skill = squires_bonus_martial
}
1 = {
trigger = {
scope:owner = {
any_held_title = {
title_tier = county
is_landless_type_title = no
any_county_province = {
terrain = jungle
}
}
martial >= medium_skill_rating
}
}
if = {
limit = {
scope:succeeding_accolade = { accolade_squires_quality_value >= accolade_squires_capable_minimum_value }
}
add_trait = jungle_stalker
}
add_martial_skill = squires_bonus_martial
}
1 = {
if = {
limit = {
NOT = {
has_trait = tourney_participant
}
}
add_trait = tourney_participant
}
add_trait_xp = {
trait = tourney_participant
track = bow
value = squires_bonus_trait_xp_very_high
}
}
1 = {
if = {
limit = {As written in game/common/scripted_effects/00_accolades_scripted_effects.txt.
The first 120 of its 714 lines; the rest is in game/common/scripted_effects/00_accolades_scripted_effects.txt from line 3083.
Where it is used
Every place in common/, events/ and history/ that calls accolade_squires_boost_martial_tourney_effect.
Scripted effects (1)
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.