Scripted trigger · Silk and Silver files
gdp_company_category_expertise_higher_than_trigger
gdp_company_category_expertise_higher_than_trigger = { OTHER = … }game/common/scripted_triggers/gdp_merchant_triggers.txt, line 1876 (13 lines). Parameters: $OTHER$.
gdp_company_category_expertise_higher_than_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 1876 of its file. A call passes 1 parameter: OTHER. The game's script calls it in 5 places, among them Share Goods Expertise (interaction), gdp_increase_expertise_lower_than_target_effect (scripted effect) and gdp_company_has_higher_category_expertise_than_trigger (scripted trigger). Patch 1.21.0, from game/common/scripted_triggers/gdp_merchant_triggers.txt.
The comment above it in the file
this = character whose company has a strictly higher level than $OTHER$'s company in scope:category_temp Expects scope:category_temp = trade good category
What it checks
- Any held title:
gdp_merchant_company_title_trigger = yes$OTHER$ = { … }
• 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 (13 lines of game script)
gdp_company_category_expertise_higher_than_trigger = {
any_held_title = {
gdp_merchant_company_title_trigger = yes
save_temporary_scope_as = higher_expertise_company_temp
$OTHER$ = {
any_held_title = {
gdp_merchant_company_title_trigger = yes
save_temporary_scope_as = lower_expertise_company_temp
"scope:higher_expertise_company_temp.trade_good_category_level(scope:category_temp)" > "scope:lower_expertise_company_temp.trade_good_category_level(scope:category_temp)"
}
}
}
}As written in game/common/scripted_triggers/gdp_merchant_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls gdp_company_category_expertise_higher_than_trigger.
Character interactions (1)
Scripted effects (1)
Scripted triggers (1)
Script values (2)
- gdp_share_market_insights_opinion
- gdp_steal_market_insights_category_count
Source: game/common/scripted_triggers/gdp_merchant_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.