Scripted effect · Silk and Silver files
burgher_form_civic_league_effect
burgher_form_civic_league_effect = { FOUNDER = … }game/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 894 (45 lines). Parameters: $FOUNDER$.
burgher_form_civic_league_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 894 of its file. A call passes 1 parameter: FOUNDER. The game's script calls it in 1 place, among them War for Civic Liberty (casus belli). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_burgher_scripted_effects.txt.
What it does
If
- In list (more than 2):
$FOUNDER$ = { is_landed = yes exists = primary_title }
Then
- The Counties form a Trade League
$FOUNDER$ = { … }scope:new_confederation:set_cohesion = 0
If
a check the game hides
Then
- Every in list › scope:civic_league:
add_confederation_member_title = scope:new_league_member.primary_title
- Every in list › scope:civic_league:
• 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 (45 lines of game script)
burgher_form_civic_league_effect = {
if = {
limit = {
any_in_list = {
list = burgher_new_communes
count > 2
}
$FOUNDER$ = {
is_landed = yes
exists = primary_title
}
}
custom_tooltip = burgher_civic_league_formed_tt
$FOUNDER$ = {
save_scope_as = league_creator
create_confederation = {
name = TRADE_LEAGUE_BASE_NAME
type = confederation_type:trade_league
leading_title = scope:league_creator.primary_title
}
}
scope:new_confederation ?= {
save_scope_as = civic_league
set_cohesion = 0
}
if = {
limit = { exists = scope:civic_league }
every_in_list = {
list = burgher_new_communes
limit = {
this != scope:league_creator
exists = primary_title
}
save_scope_as = new_league_member
scope:civic_league = {
add_confederation_member_title = scope:new_league_member.primary_title
}
}
}
}
}As written in game/common/scripted_effects/gdp_burgher_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls burgher_form_civic_league_effect.
Casus belli (1)
Source: game/common/scripted_effects/gdp_burgher_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.