Scripted effect · Legacy of Persia files
fp3_start_zanj_rebellion_effect
fp3_start_zanj_rebellion_effect = { REBEL_LEADER = … TARGET_COUNTY = … }game/common/scripted_effects/01_dlc_fp3_scripted_effects.txt, line 928 (66 lines). Parameters: $REBEL_LEADER$, $TARGET_COUNTY$.
fp3_start_zanj_rebellion_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 928 of its file. A call passes 2 parameters: REBEL_LEADER and TARGET_COUNTY. The game's script calls it in 1 place, among them The Zanj Rebellion (event fp3_story_cycle_zanj_rebellion_events.0008). Patch 1.20.1.2, from game/common/scripted_effects/01_dlc_fp3_scripted_effects.txt.
What it does
create_dynamic_title = { tier = duchy name = fp3_zanj_rebellion_name adj = fp3_zanj_rebellion_name_adj }scope:new_title:set_capital_county = scope:target_countyset_landless_title = yesset_destroy_on_gain_same_tier = yesset_no_automatic_claims = yesset_can_be_named_after_dynasty = noset_can_use_nomadic_naming = no- Gains the … Title (rebel leader)
scope:new_title:generate_coa = yes
scope:rebel_leader:start_war = { cb = fp3_zanj_rebellion_war target = scope:target_county.holder.top_liege target_title = scope:target_county.duchy }
scope:rebel_leader:spawn_army = { … }
• 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 (66 lines of game script)
fp3_start_zanj_rebellion_effect = {
$REBEL_LEADER$ = { save_scope_as = rebel_leader }
$TARGET_COUNTY$ = { save_scope_as = target_county }
#Give the zanj leader a title
create_dynamic_title = {
tier = duchy
name = fp3_zanj_rebellion_name
adj = fp3_zanj_rebellion_name_adj
}
create_title_and_vassal_change = {
type = created
save_scope_as = change
add_claim_on_loss = no
}
scope:new_title = {
set_capital_county = scope:target_county
set_landless_title = yes
set_destroy_on_gain_same_tier = yes
set_no_automatic_claims = yes
set_can_be_named_after_dynasty = no
set_can_use_nomadic_naming = no
change_title_holder = {
holder = scope:rebel_leader
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
scope:new_title = {
generate_coa = yes
set_variable = {
name = temporary_title
value = yes
}
}
#Declare the war.
scope:rebel_leader = {
start_war = {
cb = fp3_zanj_rebellion_war
target = scope:target_county.holder.top_liege
target_title = scope:target_county.duchy
}
}
# Setup event troops.
scope:rebel_leader = {
spawn_army = {
levies = zanj_rebellion_strength_score_levy
men_at_arms = {
type = pikemen_unit
stacks = zanj_rebellion_strength_score_pikemen
}
men_at_arms = {
type = bowmen
stacks = zanj_rebellion_strength_score_bowmen
}
men_at_arms = {
type = light_footmen
stacks = zanj_rebellion_strength_score_skirmishers
}
location = province:6022
origin = province:6022
inheritable = yes
name = fp3_zanj_rebel_army_title
}
}
}As written in game/common/scripted_effects/01_dlc_fp3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls fp3_start_zanj_rebellion_effect.
Events (1)
- The Zanj Rebellion
fp3_story_cycle_zanj_rebellion_events.0008
Source: game/common/scripted_effects/01_dlc_fp3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.