Scripted effect · Wandering Nobles files
landless_inspector_assign_terrain_effect
landless_inspector_assign_terrain_effect = { TERRAIN = … }game/common/scripted_effects/08_bp3_effects.txt, line 662 (39 lines). Parameters: $TERRAIN$.
landless_inspector_assign_terrain_effect is a scripted effect in Crusader Kings III, in the Wandering Nobles files, written at line 662 of its file. A call passes 1 parameter: TERRAIN. The game's script calls it in 1 place, among them Designated Terrain (decision). Patch 1.20.1.2, from game/common/scripted_effects/08_bp3_effects.txt.
What it does
If
- Has the No Stone Unturned Perk
- Government is Adventurer
Then
- Gains the modifier “landless inspector $TERRAIN$ tier 3 modifier”
Else if
- Has the No Stone Unturned Perk
- Government is Nomadic
Then
- Gains the modifier “nomadic inspector $TERRAIN$ tier 3 modifier”
Else if
- Has the Inspection Perk
- Government is Adventurer
Then
- Gains the modifier “landless inspector $TERRAIN$ tier 2 modifier”
Else if
- Has the Inspection Perk
- Government is Nomadic
Then
- Gains the modifier “nomadic inspector $TERRAIN$ tier 2 modifier”
- Else, if has the Mustering Perk: Gains the modifier “landless inspector $TERRAIN$ tier 1 modifier”
- Otherwise:
• 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 (39 lines of game script)
landless_inspector_assign_terrain_effect = {
if = {
limit = {
has_perk = no_stone_unturned_perk
government_has_flag = government_is_landless_adventurer
}
add_character_modifier = landless_inspector_$TERRAIN$_tier_3_modifier
}
else_if = {
limit = {
has_perk = no_stone_unturned_perk
government_has_flag = government_is_nomadic
}
add_character_modifier = nomadic_inspector_$TERRAIN$_tier_3_modifier
}
else_if = {
limit = {
has_perk = local_inspection_perk
government_has_flag = government_is_landless_adventurer
}
add_character_modifier = landless_inspector_$TERRAIN$_tier_2_modifier
}
else_if = {
limit = {
has_perk = local_inspection_perk
government_has_flag = government_is_nomadic
}
add_character_modifier = nomadic_inspector_$TERRAIN$_tier_2_modifier
}
else_if = {
limit = {
has_perk = mustering_the_troops_perk
}
add_character_modifier = landless_inspector_$TERRAIN$_tier_1_modifier
}
else = {
landless_inspector_remove_terrain_effect = yes
}
}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_assign_terrain_effect.
Decisions (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.