Name
|
Type
|
Effect
|
Example
|
name
|
key
|
Localized name to use for this Casus Belli. If a title is involved "Title" is available as a localization scope.
|
name = CB_NAME_RELIGIOUS
|
war_name
|
key
|
Localized name to use for the resulting war. If a title is involved you can use the variable "$OTHER_TITLE$" in your localized text to display the title name.
|
war_name = WAR_NAME_RELIGIOUS
|
sprite
|
int
|
Index of sprite to use for CB icon
|
sprite = 1
|
truce_days
|
int
|
How long of a truce is enforced after war end.
|
truce_days = 100
|
is_permanent
|
bool
|
CBs with this set to 'no' can not be declared via the the regular CB interface; they’re instead declared via events, decisions, etc.
|
is_permanent = no
|
is_independence
|
bool
|
Allows the attacker to call in other vassals or tributaries, if possible. This flag is necessary for the AI to use cbs against its suzerain if it is a tributary.
|
is_independence = yes
|
hostile_against_others
|
bool
|
Whether others attacking the same target be considered enemies
|
hostile_against_others = yes
|
full_hostility
|
bool
|
If set to yes in addition to hostile_against_others , will cause anyone targeting a realm with a CB with the flag to be hostile towards one another. They will also be hostile to anyone targeting the defender's primary title. Defaults to no.
|
full_hostility = yes
|
can_ask_to_join_war
|
bool
|
Whether others ask to join this war
|
can_ask_to_join_war = no
|
reflect_titleholder_change
|
bool
|
|
reflect_titleholder_change = no
|
is_claim_all
|
bool
|
|
is_claim_all = yes
|
is_revolt_cb
|
bool
|
Whether CB is considered a revolt against the liege
|
is_revolt_cb = yes
|
major_revolt
|
bool
|
Whether CB is a major (faction-based) revolt
|
major_revolt = yes
|
press_claim
|
bool
|
|
press_claim = yes
|
allow_whitepeace
|
bool
|
Whether the war can end in a white peace
|
|
allowed_to_target_suzerains
|
bool
|
Prevent a tributary to target his suzerain
|
allowed_to_target_tributaries = no
|
allowed_to_target_tributaries
|
bool
|
Prevent a suzerain to target his tributaries
|
|
can_call_allies
|
bool
|
Whether either side can call allies
|
|
attacker_can_call_allies
|
bool
|
|
attacker_can_call_allies = no
|
defender_can_call_allies
|
bool
|
|
defender_can_call_allies = no
|
can_call_vassals
|
bool
|
Whether vassals can be called to assist
|
can_call_vassals = no
|
can_attack_vassals
|
bool
|
|
can_attack_vassals = yes
|
attacker_alliance_occ_warscore
|
bool
|
Whether occupying any holding of any attacker counts towards war score
|
|
check_de_jure_tier
|
tier
|
Scans all de jure kingdoms for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes
|
check_de_jure_tier = KING
|
check_dejure_duchies
|
bool
|
[{{{1}}}]
|
|
check_all_titles
|
bool
|
If permanent, setting this to true will check against all of someones titles, including vassal held titles
|
|
check_all_trade_posts
|
bool
|
|
check_all_trade_posts = yes
|
check_actor_direct_vassals
|
bool
|
[{{{1}}}]
|
|
other_de_jure_claim
|
bool
|
Optimization for de jure claims of vassals
|
other_de_jure_claim = yes
|
is_holy_war
|
bool
|
|
is_holy_war = yes
|
apply_short_occ_mod
|
bool
|
Do not apply the 'recently_conquered' modifier to Holdings
|
apply_short_occ_mod = no
|
piety_cost
|
double
|
Cb is visible to select even if not having enough piety.
|
|
prestige_cost
|
double
|
Cb is visible to select even if not having enough prestige.
|
|
allow_distant
|
bool
|
AI parameter
|
allow_distant = yes
|
attacker_ai_victory_worth
|
|
Minimum warscore for AI to accept surrender from defender. -1 means always accept.
|
attacker_ai_victory_worth = { factor = -1 }
|
attacker_ai_defeat_worth
|
|
Minimum warscore for AI to admit defeat to defender
|
attacker_ai_defeat_worth = { factor = 100 }
|
defender_ai_victory_worth
|
|
Minimum warscore for AI to accept surrender from attacker
|
attacker_ai_victory_worth = { factor = -1 }
|
defender_ai_defeat_worth
|
|
Minimum warscore for AI to admit defeat to attacker
|
defender_ai_defeat_worth = { factor = 100 }
|
battle_warscore_mult
|
double
|
Modifies the warscore gained from battles in wars using that CB
|
battle_warscore_mult = 0.5
|
attacker_rel_head_is_ally
|
bool
|
The attacker can call his (main) Pope into the war
|
attacker_rel_head_is_ally = yes
|
display_on_map
|
bool
|
Cb is displayed in the diplomatic map mode (default is yes)
|
display_on_map = no
|
coalition_threat
|
bool
|
Does not cause a threat increase. Deprecated since 2.8.
|
coalition_threat = no
|
infamy_modifier
|
float
|
Multiplied by resulting threat from a war
|
infamy_modifier = 0.85
|
is_tyranny_cb
|
bool
|
|
is_tyranny_cb = yes
|
ticking_war_score_multiplier
|
float
|
Changes the speed of ticking warscore. Deprectated since 2.8?
|
ticking_war_score_multiplier = 5.0
|
att_ticking_war_score_multiplier
|
float
|
Changes the speed of ticking warscore for the attacker
|
att_ticking_war_score_multiplier = 5.0
|
def_ticking_war_score_multiplier
|
float
|
Changes the speed of ticking warscore for the defender
|
def_ticking_war_score_multiplier = 5.0
|
max_defender_occupation_score
|
float
|
Defines how much warscore it is possible for the defender to gain by occupying provinces. Defaults to 100. Make sure the CB has ticking warscore if using this or you could end up with never-ending wars
|
max_defender_occupation_score = 85
|
max_attacker_occupation_score
|
float
|
Defines how much warscore it is possible for the attacker to gain by occupying provinces. Defaults to 100. Make sure the CB has ticking warscore if using this or you could end up with never-ending wars
|
max_attacker_occupation_score = 85
|
max_defender_battle_score
|
float
|
Defines how much warscore it is possible for the defender to gain by fighting battles. Defaults to the defines MAX_WARSCORE_FROM_BATTLE_DEFENDERS
|
max_defender_battle_score = 50
|
max_attacker_battle_score
|
float
|
Defines how much warscore it is possible for the attacker to gain by fighting battles. Defaults to the defines MAX_WARSCORE_FROM_BATTLE_ATTACKERS
|
max_attacker_battle_score = 50
|
hostages_block_cb
|
bool
|
Defaults to "yes". If set to "no", the defender having close relatives of yours imprisoned does not prevent you from declaring war
|
hostages_block_cb = no
|
attacker_unoccupied_warscore
|
bool
|
If attacker completely unoccupied, attacker will get ticking warscore. Only works if no title is targetted
|
attacker_unoccupied_warscore = yes
|
defender_unoccupied_warscore
|
bool
|
If defender completely unoccupied, defender will get ticking warscore. Only works if no title is targetted
|
defender_unoccupied_warscore = yes
|
capturing_attacker_is_complete_victory
|
bool
|
Whether capturing the attacker as a prisoner is considered automatic victory for the defender. Defaults to yes. If set to no, capture instead gives CAPTURED_HEIR_WAR_SCORE warscore
|
capturing_attacker_is_complete_victory = yes
|
capturing_defender_is_complete_victory
|
bool
|
Whether capturing the defender as a prisoner is considered automatic victory for the attacker. Defaults to yes. If set to no, capture instead gives CAPTURED_HEIR_WAR_SCORE warscore
|
capturing_defender_is_complete_victory = yes
|
third_party_portrait
|
scope
|
If set, this will override what'd normally show as the third party on the war overview. The scopes are the same as in can_use.
|
third_party_portrait = event_target:invasion_of_china_claimant
|
sort_priority
|
int
|
Can be used to decide the order in which CBs show up in the UI.
|
sort_priority = 1000
|
diplo_view_region
|
region
|
Can be used to override which provinces are highlighted when the CB is selected in the diplomacy view.
|
diplo_view_region = custom_leon
|