Scripted effect · Roads to Power files
ep3_become_landed_ennobled_penalty_effect
ep3_become_landed_ennobled_penalty_effect = { TITLE = … TITLE_RECEIVER = … }game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 1276 (127 lines). Parameters: $TITLE$, $TITLE_RECEIVER$.
ep3_become_landed_ennobled_penalty_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 1276 of its file. A call passes 2 parameters: TITLE and TITLE_RECEIVER. The game's script calls it in 2 places, among them ep3_become_landed_transfer_effect (scripted effect) and purchase_land_interaction_shortened_effect (scripted effect). Its body carries 6 texts of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
What it does
$TITLE$ = { … }If
- Exactly 3 of the following must be true:
- Prestige level at most 3
scope:capital_temp.culture:NOT = { scope:ennobled_temp.culture ?= this }NOT = { scope:ennobled_temp.primary_spouse.culture ?= this }NOT = { scope:ennobled_temp.primary_heir.culture ?= this }
scope:capital_temp.faith != faith
Then
- If government is Merchant: Gains Ennobled Merchant for 30 years due to the … people's Abysmal opinion of you · To lessen the above modifier's penalty, you need to have high enough Level of Fame, and either you, or your Primary Spouse, or Primary Heir, need to be of the same Culture and Faith as …
- Otherwise: Gains Ennobled Adventurer for 30 years due to the … people's Abysmal opinion of you · To lessen the above modifier's penalty, you need to have high enough Level of Fame, and either you, or your Primary Spouse, or Primary Heir, need to be of the same Culture and Faith as …
Else if
- Exactly 2 of the following must be true:
- Prestige level at most 3
scope:capital_temp.culture:NOT = { scope:ennobled_temp.culture ?= this }NOT = { scope:ennobled_temp.primary_spouse.culture ?= this }NOT = { scope:ennobled_temp.primary_heir.culture ?= this }
scope:capital_temp.faith != faith
Then
- If government is Merchant: Gains Ennobled Merchant for 20 years due to the … people's Horrible opinion of you · To lessen the above modifier's penalty, you need to have high enough Level of Fame, and either you, or your Primary Spouse, or Primary Heir, need to be of the same Culture and Faith as …
- Otherwise: Gains Ennobled Adventurer for 20 years due to the … people's Horrible opinion of you · To lessen the above modifier's penalty, you need to have high enough Level of Fame, and either you, or your Primary Spouse, or Primary Heir, need to be of the same Culture and Faith as …
Else if
- Exactly 1 of the following must be true:
- Prestige level at most 3
scope:title_temp.title_province.county.culture:NOT = { scope:ennobled_temp.culture ?= this }NOT = { scope:ennobled_temp.primary_spouse.culture ?= this }NOT = { scope:ennobled_temp.primary_heir.culture ?= this }
scope:capital_temp.faith != faith
Then
- If government is Merchant: Gains Ennobled Merchant for 10 years due to the … people's Bad opinion of you · To lessen the above modifier's penalty, you need to have high enough Level of Fame, and either you, or your Primary Spouse, or Primary Heir, need to be of the same Culture and Faith as …
- Otherwise: Gains Ennobled Adventurer for 10 years due to the … people's Bad opinion of you · To lessen the above modifier's penalty, you need to have high enough Level of Fame, and either you, or your Primary Spouse, or Primary Heir, need to be of the same Culture and Faith as …
- Exactly 3 of the following must be true:
- If government is Merchant:
destroy_merchant_effect = { MERCHANT = $TITLE_RECEIVER$ }
- Otherwise:
destroy_laamp_effect = { ADVENTURER = $TITLE_RECEIVER$ }
If
- they has administrative government mechanic
- Government allows: noble families
Then
• 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)
ep3_become_landed_ennobled_penalty_effect = {
save_temporary_scope_as = ennobled_temp
$TITLE$ = {
save_temporary_scope_as = title_temp
title_province.county = { save_scope_as = capital_temp }
}
if = {
limit = {
calc_true_if = {
amount = 3
prestige_level <= 3
scope:capital_temp.culture ?= {
NOR = {
scope:ennobled_temp.culture ?= this
scope:ennobled_temp.primary_spouse.culture ?= this
scope:ennobled_temp.primary_heir.culture ?= this
}
}
scope:capital_temp.faith != faith
}
}
if = {
limit = { government_has_flag = government_is_merchant }
custom_tooltip = {
text = gdp_ennobled_merchant_modifier_tt_3
add_character_modifier = {
modifier = gdp_ennobled_merchant_modifier_3
years = 30
}
}
}
else = {
custom_tooltip = {
text = ep3_ennobled_adventurer_modifier_tt_3
add_character_modifier = {
modifier = ep3_ennobled_adventurer_modifier_3
years = 30
}
}
}
}
else_if = {
limit = {
calc_true_if = {
amount = 2
prestige_level <= 3
scope:capital_temp.culture ?= {
NOR = {
scope:ennobled_temp.culture ?= this
scope:ennobled_temp.primary_spouse.culture ?= this
scope:ennobled_temp.primary_heir.culture ?= this
}
}
scope:capital_temp.faith != faith
}
}
if = {
limit = { government_has_flag = government_is_merchant }
custom_tooltip = {
text = gdp_ennobled_merchant_modifier_tt_2
add_character_modifier = {
modifier = gdp_ennobled_merchant_modifier_2
years = 20
}
}
}
else = {
custom_tooltip = {
text = ep3_ennobled_adventurer_modifier_tt_2
add_character_modifier = {
modifier = ep3_ennobled_adventurer_modifier_2
years = 20
}
}
}
}
else_if = {
limit = {
calc_true_if = {
amount = 1
prestige_level <= 3
scope:title_temp.title_province.county.culture ?= {
NOR = {
scope:ennobled_temp.culture ?= this
scope:ennobled_temp.primary_spouse.culture ?= this
scope:ennobled_temp.primary_heir.culture ?= this
}
}
scope:capital_temp.faith != faith
}
}
if = {
limit = { government_has_flag = government_is_merchant }
custom_tooltip = {
text = gdp_ennobled_merchant_modifier_tt_1
add_character_modifier = {
modifier = gdp_ennobled_merchant_modifier_1
years = 10
}
}
}
else = {
custom_tooltip = {
text = ep3_ennobled_adventurer_modifier_tt_1
add_character_modifier = {
modifier = ep3_ennobled_adventurer_modifier_1
years = 10
}
}
}
}
if = {
limit = { government_has_flag = government_is_merchant }
destroy_merchant_effect = { MERCHANT = $TITLE_RECEIVER$ }
}
else = {
destroy_laamp_effect = { ADVENTURER = $TITLE_RECEIVER$ }
}
# Setup NF if valid
if = {As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
The first 120 of its 127 lines; the rest is in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt from line 1276.
Where it is used
Every place in common/, events/ and history/ that calls ep3_become_landed_ennobled_penalty_effect.
Scripted effects (2)
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.