Scripted effect · All Under Heaven files
mandala_contributor_bejeweled_reliefs_reward_effect
mandala_contributor_bejeweled_reliefs_reward_effect = yesgame/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 938 (142 lines). No parameters.
mandala_contributor_bejeweled_reliefs_reward_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 938 of its file. It takes no parameters: mandala_contributor_bejeweled_reliefs_reward_effect = yes. The game's script calls it in 2 places, among them mandala_capital_05 (great project) and contributed_bejeweled_reliefs_effect (scripted effect). Its body carries 10 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/tgp_mandala_scripted_effects.txt.
What it does
If
- scope:owner › Any character artifact: Has “mandala capital 05 unconfirmed talisman” (a variable the game's script sets)
Then
If
- scope:owner › Their house:
has_house_aspiration_parameter = aspect_of_creation
Then
Else if
- scope:owner › Their house:
has_house_aspiration_parameter = aspect_of_serenity
Then
- … gains, based on … Aspect · Vassal Limit · Short Reign Reduction
Else if
- scope:owner › Their house:
has_house_aspiration_parameter = aspect_of_destruction
Then
Else if
- scope:owner › Their house:
has_house_aspiration_parameter = aspect_of_trickery
Then
- … gains, based on … Aspect · Negate Health Penalty · Scheme Resistance
- scope:owner › Their house:
Else if
- this › Their house:
has_house_aspiration_parameter = aspect_of_creation
Then
Else if
- this › Their house:
has_house_aspiration_parameter = aspect_of_serenity
Then
- Talisman of … Artifact gains, based on owner Aspect · Vassal Limit · Short Reign Reduction
Else if
- this › Their house:
has_house_aspiration_parameter = aspect_of_destruction
Then
Else if
- this › Their house:
has_house_aspiration_parameter = aspect_of_trickery
Then
- Talisman of … Artifact gains, based on owner Aspect · Negate Health Penalty · Scheme Resistance
Otherwise
- Talisman of … Artifact gains modifiers based on the Aspect of the Great Project owner
If
a check the game hides
Then
If
a check the game hides
Then
scope:target_talisman:set_owner = prev
Otherwise
- You become the owner of Talisman of …
• 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)
mandala_contributor_bejeweled_reliefs_reward_effect = {
#Before Planning has started
if = {
limit = {
scope:owner ?= {
any_character_artifact = { has_variable = mandala_capital_05_unconfirmed_talisman }
}
}
scope:owner = {
random_character_artifact = {
limit = { has_variable = mandala_capital_05_unconfirmed_talisman }
save_scope_as = target_talisman
}
}
if = {
limit = {
scope:owner = {
house ?= { has_house_aspiration_parameter = aspect_of_creation }
}
}
custom_tooltip = mandala_contributor_bejeweled_reliefs_creator_reward_artifact_effect_tt
#Set the modifiers
hidden_effect = {
scope:target_talisman = {
set_artifact_description = mandala_capital_05_creation_talisman_desc
add_artifact_modifier = artifact_health_gain_2_modifier
add_artifact_modifier = artifact_fertility_gain_2_modifier
}
}
}
else_if = {
limit = {
scope:owner = {
house ?= { has_house_aspiration_parameter = aspect_of_serenity }
}
}
custom_tooltip = mandala_contributor_bejeweled_reliefs_serenity_reward_artifact_effect_tt
#Set the modifiers
hidden_effect = {
scope:target_talisman = {
set_artifact_description = mandala_capital_05_serenity_talisman_desc
add_artifact_modifier = artifact_vassal_limit_1_modifier
add_artifact_modifier = artifact_short_reign_duration_mult_3_modifier
}
}
}
else_if = {
limit = {
scope:owner = {
house ?= { has_house_aspiration_parameter = aspect_of_destruction }
}
}
custom_tooltip = mandala_contributor_bejeweled_reliefs_destruction_reward_artifact_effect_tt
#Set the modifiers
hidden_effect = {
scope:target_talisman = {
set_artifact_description = mandala_capital_05_destruction_talisman_desc
add_artifact_modifier = artifact_dread_baseline_add_2_modifier
add_artifact_modifier = artifact_pursue_efficiency_2_modifier
add_artifact_modifier = artifact_controlled_province_advantage_5_modifier
}
}
}
else_if = {
limit = {
scope:owner = {
house ?= { has_house_aspiration_parameter = aspect_of_trickery }
}
}
custom_tooltip = mandala_contributor_bejeweled_reliefs_trickery_reward_artifact_effect_tt
#Set the modifiers
hidden_effect = {
scope:target_talisman = {
set_artifact_description = mandala_capital_05_trickery_talisman_desc
add_artifact_modifier = artifact_negate_health_penalty_add_2_modifier
add_artifact_modifier = artifact_scheme_resistance_add_3_modifier
}
}
}
scope:target_talisman = {
remove_variable = mandala_capital_05_unconfirmed_talisman
set_variable = mandala_capital_05_talisman
if = {
limit = { has_variable = mandala_capital_05_talisman }
#To prevent 'unused except in loc' errors :catto:
}
hidden_effect = {
set_artifact_rarity = famed
remove_artifact_modifier = artifact_monthly_piety_gain_mult_1_modifier
add_artifact_modifier = artifact_monthly_piety_gain_mult_5_modifier
}
}
}
#After planning has started
else_if = {
limit = {
this = {
house ?= { has_house_aspiration_parameter = aspect_of_creation }
}
}
custom_tooltip = mandala_contributor_bejeweled_reliefs_creator_reward_pre_artifact_effect_tt
}
else_if = {
limit = {
this = {
house ?= { has_house_aspiration_parameter = aspect_of_serenity }
}
}
custom_tooltip = mandala_contributor_bejeweled_reliefs_serenity_reward_pre_artifact_effect_tt
}
else_if = {
limit = {
this = {
house ?= { has_house_aspiration_parameter = aspect_of_destruction }
}
}
custom_tooltip = mandala_contributor_bejeweled_reliefs_destruction_reward_pre_artifact_effect_tt
}
else_if = {
limit = {As written in game/common/scripted_effects/tgp_mandala_scripted_effects.txt.
The first 120 of its 142 lines; the rest is in game/common/scripted_effects/tgp_mandala_scripted_effects.txt from line 938.
Where it is used
Every place in common/, events/ and history/ that calls mandala_contributor_bejeweled_reliefs_reward_effect.
Great projects (1)
- mandala_capital_05
Scripted effects (1)
Source: game/common/scripted_effects/tgp_mandala_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.