• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

heliostellar

Field Marshal
102 Badges
Dec 29, 2005
7.172
4.416
  • Europa Universalis IV: Cossacks
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Semper Fi
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Victoria 3 Sign Up
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • Majesty 2 Collection
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
I notice it sometimes appears and disappears even with the same sovereigns are in power. Does it have to do with piety ?

I thought it had something to do with when you have a stronger claim than the current heir, but I could be wrong on that.
 

heliostellar

Field Marshal
102 Badges
Dec 29, 2005
7.172
4.416
  • Europa Universalis IV: Cossacks
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Semper Fi
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Victoria 3 Sign Up
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • Majesty 2 Collection
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
Hmmm... in looking at the files, I think it has something to do with Prestige being at or above 200. It also mentions something about scaled Prestige. I've modded other Paradox games, but I'm not familiar with all of the syntax in here that looks like it's specific to CK2.

Here's what I found:

invasion = {
name = CB_NAME_INVASION
war_name = WAR_NAME_INVASION
sprite = 7
truce_days = 3650
hostile_against_others = yes
can_ask_to_join_war = no

can_use_title = {
OR = {
FROM = {
has_landed_title = PREV
}
holder_scope = {
is_liege_or_above = FROM
}
}
}

is_valid_title = {
OR = {
FROM = {
has_landed_title = PREV
}
holder_scope = {
is_liege_or_above = FROM
}
}
}

on_success = {
ROOT = {
prestige = 200
}
any_attacker = {
limit = { character = ROOT }
participation_scaled_prestige = 200
}
any_attacker = {
limit = { NOT = { character = ROOT } }
hidden_tooltip = { participation_scaled_prestige = 200 }
}

hidden_tooltip = {
ROOT = {
occupy_minors_of_occupied_settlements = FROM
gain_all_occupied_titles = FROM
give_nickname = nick_the_conqueror
}
ROOT = {
if = {
limit = {
has_dlc = "Legacy of Rome"
OR = {
has_landed_title = e_byzantium
has_landed_title = e_roman_empire
}
religion_group = christian
}
character_event = { id = LoR.30 days = 12 }
}
}
}

FROM = {
prestige = -200
}
}

on_success_title = {
custom_tooltip = invasion_succ_tip

hidden_tooltip = {
usurp_title_plus_barony_if_unlanded = ROOT
FROM = { set_defacto_liege = ROOT }
if = {
limit = {
FROM = { is_liege_or_above = ROOT }
}
FROM = { imprison = ROOT }
}
}

if = {
limit = {
higher_tier_than = BARON
NOT = { culture = ROOT }
}
hidden_tooltip = { conquest_culture = ROOT }
}
}

on_fail = {
ROOT = {
prestige = -200
}
FROM = {
prestige = 100
}
any_defender = {
limit = { character = FROM }
participation_scaled_prestige = 100
}
any_defender = {
limit = { NOT = { character = FROM } }
hidden_tooltip = { participation_scaled_prestige = 100 }
}
}

on_reverse_demand = {
ROOT = {
prestige = -200
transfer_scaled_wealth = {
to = FROM
value = 8.0
}
}
FROM = {
prestige = 200
}
any_defender = {
limit = { character = FROM }
participation_scaled_prestige = 200
}
FROM = {
if = {
limit = {
has_dlc = "Legacy of Rome"
OR = {
has_landed_title = e_byzantium
has_landed_title = e_roman_empire
}
religion_group = christian
}
hidden_tooltip = { character_event = { id = LoR.30 days = 12 } }
}
}
any_defender = {
limit = { NOT = { character = FROM } }
hidden_tooltip = { participation_scaled_prestige = 200 }
}
}

on_reverse_demand_title = {
ROOT = {
remove_claim = PREV
}
}

on_attacker_leader_death = {
hidden_tooltip = {
any_defender = {
letter_event = {
id = 251
}
}
}

end_war = whitepeace
}

attacker_ai_victory_worth = {
factor = 150
}

attacker_ai_defeat_worth = {
factor = 100
}

defender_ai_victory_worth = {
factor = -1 # always accept
}

defender_ai_defeat_worth = {
factor = 100
}
}