Scripted effect · Wandering Nobles files
landless_inspector_upgrade_terrain_tier_extrapolated_effect
landless_inspector_upgrade_terrain_tier_extrapolated_effect = { TERRAIN = … }game/common/scripted_effects/08_bp3_effects.txt, line 709 (38 lines). Parameters: $TERRAIN$.
landless_inspector_upgrade_terrain_tier_extrapolated_effect is a scripted effect in Crusader Kings III, in the Wandering Nobles files, written at line 709 of its file. A call passes 1 parameter: TERRAIN. The game's script calls it in 1 place, among them landless_inspector_upgrade_terrain_tier_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/08_bp3_effects.txt.
What it does
If
- Has the Modifier: landless inspector … tier 2 modifier
- Has the No Stone Unturned Perk
- Government is Adventurer
Then
- Loses “landless inspector … tier 2 modifier”
- Gains the modifier “landless inspector $TERRAIN$ tier 3 modifier”
Else if
- Has the Modifier: landless inspector … tier 1 modifier
- Has the Inspection Perk
- Government is Adventurer
Then
- Loses “landless inspector … tier 1 modifier”
- Gains the modifier “landless inspector $TERRAIN$ tier 2 modifier”
If
- Has the Modifier: nomadic inspector … tier 2 modifier
- Has the No Stone Unturned Perk
- Government is Nomadic
Then
- Loses “nomadic inspector … tier 2 modifier”
- Gains the modifier “nomadic inspector $TERRAIN$ tier 3 modifier”
Else if
- Has the Modifier: landless inspector … tier 1 modifier
- Has the Inspection Perk
- Government is Nomadic
Then
- Loses “landless inspector … tier 1 modifier”
- Gains the modifier “nomadic inspector $TERRAIN$ tier 2 modifier”
• 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 (38 lines of game script)
landless_inspector_upgrade_terrain_tier_extrapolated_effect = {
if = {
limit = {
has_character_modifier = landless_inspector_$TERRAIN$_tier_2_modifier
has_perk = no_stone_unturned_perk
government_has_flag = government_is_landless_adventurer
}
remove_character_modifier = landless_inspector_$TERRAIN$_tier_2_modifier
add_character_modifier = landless_inspector_$TERRAIN$_tier_3_modifier
}
else_if = {
limit = {
has_character_modifier = landless_inspector_$TERRAIN$_tier_1_modifier
has_perk = local_inspection_perk
government_has_flag = government_is_landless_adventurer
}
remove_character_modifier = landless_inspector_$TERRAIN$_tier_1_modifier
add_character_modifier = landless_inspector_$TERRAIN$_tier_2_modifier
}
if = {
limit = {
has_character_modifier = nomadic_inspector_$TERRAIN$_tier_2_modifier
has_perk = no_stone_unturned_perk
government_has_flag = government_is_nomadic
}
remove_character_modifier = nomadic_inspector_$TERRAIN$_tier_2_modifier
add_character_modifier = nomadic_inspector_$TERRAIN$_tier_3_modifier
}
else_if = {
limit = {
has_character_modifier = landless_inspector_$TERRAIN$_tier_1_modifier
has_perk = local_inspection_perk
government_has_flag = government_is_nomadic
}
remove_character_modifier = landless_inspector_$TERRAIN$_tier_1_modifier
add_character_modifier = nomadic_inspector_$TERRAIN$_tier_2_modifier
}
}As written in game/common/scripted_effects/08_bp3_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls landless_inspector_upgrade_terrain_tier_extrapolated_effect.
Scripted effects (1)
Source: game/common/scripted_effects/08_bp3_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.