Scripted effect · Silk and Silver files
gdp_increase_expertise_lower_than_target_effect
gdp_increase_expertise_lower_than_target_effect = { TARGET = … }game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 7282 (31 lines). Parameters: $TARGET$.
gdp_increase_expertise_lower_than_target_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 7282 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 2 places, among them Share Goods Expertise (interaction) and gdp_steal_market_insights_effect (scripted effect). Its body carries 2 texts of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
What it does
- Their Company gains 5 Expertise Levels in each Category with a lower Level than … Company:
- Every trade good category:
- Where:
has_trade_good_category_xp_track = yesscope:teacher_temp:gdp_company_category_expertise_higher_than_trigger = { OTHER = scope:learner_temp }
- scope:learner_temp: …
- Where:
• 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 (31 lines of game script)
gdp_increase_expertise_lower_than_target_effect = {
custom_description_no_bullet = {
text = gdp_increase_expertise_lower_than_target_effect_tt
subject = this
object = $TARGET$
}
save_temporary_scope_as = learner_temp
$TARGET$ ?= { save_temporary_scope_as = teacher_temp }
every_trade_good_category = {
limit = {
has_trade_good_category_xp_track = yes
save_temporary_scope_as = category_temp
exists = scope:teacher_temp
scope:teacher_temp = {
gdp_company_category_expertise_higher_than_trigger = {
OTHER = scope:learner_temp
}
}
}
save_scope_as = category
scope:learner_temp = {
hidden_effect = {
gdp_increase_trade_expertise_xp_effect = {
CATEGORY = scope:category
VALUE = trade_expertise_xp_five_levels_value
}
}
custom_tooltip = gdp_increase_expertise_lower_than_target_category_tt
}
}
}As written in game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls gdp_increase_expertise_lower_than_target_effect.
Character interactions (1)
Scripted effects (1)
Source: game/common/scripted_effects/gdp_merchant_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.