Scripted effect · Silk and Silver files
gdp_merchant_handover_company_for_voluntary_laamp_effect
gdp_merchant_handover_company_for_voluntary_laamp_effect = yesgame/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 2492 (60 lines). No parameters.
gdp_merchant_handover_company_for_voluntary_laamp_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 2492 of its file. It takes no parameters: gdp_merchant_handover_company_for_voluntary_laamp_effect = yes. The game's script calls it in 1 place, among them Beyond … (event ep3_laamps.0030). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
The comment above it in the file
Voluntary landless adventurer: hand the company title to the inheritor, then strip merchant government
What it does
- If government is Merchant:
destroy_merchant_effect = { MERCHANT = scope:former_merchant }
• 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 (60 lines of game script)
gdp_merchant_handover_company_for_voluntary_laamp_effect = {
save_scope_as = former_merchant
if = {
limit = { government_has_flag = government_is_merchant }
# Snapshot before company title moves — associates can leave court on holder change.
every_courtier = { add_to_list = courtiers_list }
if = {
limit = {
exists = scope:laamp_inheritor
any_held_title = { gdp_merchant_company_title_trigger = yes }
}
hidden_effect = {
create_title_and_vassal_change = {
type = granted
save_scope_as = merchant_company_title_change
add_claim_on_loss = no
}
every_held_title = {
limit = { gdp_merchant_company_title_trigger = yes }
save_scope_as = merchant_company_for_handover
scope:former_merchant.house ?= {
set_variable = {
name = gdp_merchant_house_company_title
value = scope:merchant_company_for_handover
}
set_variable = {
name = gdp_merchant_company_reclaim_pending
value = yes
}
}
change_title_holder = {
holder = scope:laamp_inheritor
change = scope:merchant_company_title_change
}
}
resolve_title_and_vassal_change = scope:merchant_company_title_change
}
}
destroy_merchant_effect = { MERCHANT = scope:former_merchant }
hidden_effect = {
scope:former_merchant = {
save_scope_as = the_merchant
gdp_merchant_restore_voluntary_laamp_associates_from_list_effect = yes
}
# And boot any new autogenned arrivals.
every_courtier = {
limit = {
is_lowborn = yes
NOR = {
is_in_list = courtiers_list
is_close_or_extended_family_of = root
is_consort_of = root
has_important_relationship_trigger = { CHARACTER = root }
}
}
silent_disappearance_effect = yes
}
}
}
}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_merchant_handover_company_for_voluntary_laamp_effect.
Events (1)
- Beyond …
ep3_laamps.0030
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.