Scripted effect · Silk and Silver files
gdp_republic_patricians_become_merchants_warning_effect
gdp_republic_patricians_become_merchants_warning_effect = { DESTROYER = … }game/common/scripted_effects/gdp_republic_effects.txt, line 3556 (39 lines). Parameters: $DESTROYER$.
gdp_republic_patricians_become_merchants_warning_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 3556 of its file. A call passes 1 parameter: DESTROYER. The game's script calls it in 2 places, among them add_legitimacy_attacker_victory_effect (scripted effect) and revoke_title_interaction_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_republic_effects.txt.
What it does
- One random held title:
- Where:
- All … Republican Noble Families will become Merchants and lose 50 Opinion (Destroyed My Republic) of …
scope:destroyer:destroy_title = scope:republic_title
• 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 (39 lines of game script)
gdp_republic_patricians_become_merchants_warning_effect = {
$DESTROYER$ = { save_scope_as = destroyer }
random_held_title = {
limit = { gdp_is_republic_title_trigger = yes }
save_scope_as = republic_title
custom_tooltip = republic_families_become_merchants_tt
}
hidden_effect = {
every_vassal = {
limit = {
is_landed = no
government_has_flag = government_is_republic
any_held_title = { is_noble_family_title = yes }
}
# Trackers for messages
set_variable = {
name = republic_destroyer
value = scope:destroyer
weeks = 1
}
# Apply opinion
add_opinion = {
target = scope:destroyer
modifier = gdp_destroyed_republic_opinion
}
# Force independence early to cover wars
create_title_and_vassal_change = {
type = conquest
save_scope_as = change
add_claim_on_loss = no
}
becomes_independent = { change = scope:change }
resolve_title_and_vassal_change = scope:change
}
}
show_as_tooltip = {
scope:destroyer ?= { destroy_title = scope:republic_title }
}
}As written in game/common/scripted_effects/gdp_republic_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls gdp_republic_patricians_become_merchants_warning_effect.
Scripted effects (2)
Source: game/common/scripted_effects/gdp_republic_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.