You really should follow the bug reporting guidelines, it makes it much more difficult for everyone when you don't.
Description: Mongols are converting to the counties culture.
DLC: All
Mods: None
The tribal invasion cb does not give a conquest_culture flag.
Code:
tribal_invasion = {
name = CB_NAME_INVASION
war_name = WAR_NAME_INVASION
sprite = 8
truce_days = 3650
hostile_against_others = yes
is_permanent = yes
can_ask_to_join_war = yes
check_de_jure_tier = KING # this 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
can_use_gui = {
ROOT = {
prestige = 500
}
}
on_add = {
ROOT = { prestige = -500 }
}
can_use_title = {
ROOT = {
OR = {
AND = {
independent = yes
OR = {
religion_group = pagan_group
AND = {
OR = {
has_horde_culture = yes
has_character_flag = horde_invader
}
NOT = { religion_group = christian }
}
}
OR = {
culture_group = altaic
culture_group = magyar
culture_group = mesoamerican
}
higher_tier_than = COUNT
OR = {
has_horde_culture = yes
has_character_flag = horde_invader
FROM = {
NOT = { religion_group = pagan_group } # Should subjugate these instead
}
}
}
AND = {
mercenary = yes
NOT = {
num_of_titles = 2
}
}
}
}
ROOT = {
NOT = { is_liege_or_above = FROM }
}
}
is_valid_title = {
FROM = {
any_realm_title = {
de_jure_liege_or_above = PREVPREV
}
}
}
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 }
}
FROM = {
prestige = -200
}
hidden_tooltip = {
ROOT = {
occupy_minors_of_occupied_settlements = FROM
gain_all_occupied_titles = { who = FROM type = invasion }
if = {
limit = {
has_nickname = no
}
random_list = {
10 = { give_nickname = nick_the_great }
10 = { give_nickname = nick_the_victorious }
10 = { give_nickname = nick_the_conqueror }
10 = { give_nickname = nick_the_brave }
10 = { give_nickname = nick_the_dragon }
10 = { give_nickname = nick_the_terrible }
}
}
}
}
}
on_success_title = {
custom_tooltip = {
text = tribal_invasion_succ_tip
hidden_tooltip = {
ROOT = {
vassalize_or_take_under_title_destroy_duchies = {
title = PREV
enemy = FROM
is_crusade = yes # Even if the title holder is not participating in the war, gain holdings occupied by all Crusade participants
type = invasion
}
}
}
}
}
on_fail = {
FROM = {
prestige = 100
hidden_tooltip = {
if = {
limit = {
has_nickname = no
}
random_list = {
10 = { give_nickname = nick_the_great }
10 = { give_nickname = nick_the_hammer }
10 = { give_nickname = nick_the_avenger }
10 = { give_nickname = nick_the_lion }
10 = { give_nickname = nick_the_bold }
}
}
}
}
any_defender = {
limit = { character = FROM }
participation_scaled_prestige = 100
}
any_defender = {
limit = { NOT = { character = FROM } }
hidden_tooltip = { participation_scaled_prestige = 100 }
}
ROOT = {
prestige = -200
}
}
on_reverse_demand = {
ROOT = {
prestige = -200
transfer_scaled_wealth = {
to = FROM
value = 4.0
}
}
FROM = {
prestige = 200
hidden_tooltip = {
if = {
limit = {
has_nickname = no
}
random_list = {
10 = { give_nickname = nick_the_great }
10 = { give_nickname = nick_the_hammer }
10 = { give_nickname = nick_the_avenger }
10 = { give_nickname = nick_the_lion }
10 = { give_nickname = nick_the_bold }
}
}
}
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 = { character = FROM }
participation_scaled_prestige = 200
}
any_defender = {
limit = { NOT = { character = FROM } }
hidden_tooltip = { participation_scaled_prestige = 200 }
}
}
attacker_ai_victory_worth = {
factor = 200
}
attacker_ai_defeat_worth = {
factor = 100
}
defender_ai_victory_worth = {
factor = -1 # always accept
}
defender_ai_defeat_worth = {
factor = 100
}
ai_will_do = {
factor = 1
modifier = {
factor = 0.9 # Prefer using CB's without on_add costs
}
# Try to guide the Hordes in the right direction
modifier = {
factor = 0.1
ROOT = {
OR = {
dynasty = 613 # Seljuks
dynasty = 800 # Timurids
primary_title = { title = e_il-khanate }
}
}
OR = {
empire = {
NOT = {
OR = {
title = e_persia
title = e_byzantium
title = e_arabia
}
}
}
FROM = {
primary_title = { title = e_golden_horde }
NOT = { year = 1300 }
}
}
}
modifier = {
factor = 0.1
ROOT = {
primary_title = { title = e_golden_horde }
}
OR = {
empire = {
OR = {
title = e_persia
title = e_byzantium
title = e_arabia
}
}
FROM = {
primary_title = { title = e_il-khanate }
NOT = { year = 1300 }
}
}
}
modifier = {
factor = 0.1
ROOT = {
culture = hungarian
primary_title = {
OR = {
title = k_hungary
title = e_carpathia
}
}
}
empire = {
OR = {
title = e_tartaria
title = e_russia
}
}
}
}
}
RoI Only:
Mongols can and will change their culture to the locals culture.
Code:
convert_to_local_culture = {
potential = {
is_playable = yes
capital_scope = {
NOT = { culture = ROOT }
}
OR = {
independent = yes
liege = {
NOT = { culture = ROOT }
}
}
holy_order = no
has_dlc = "Rajas of India"
}
allow = {
prestige = 500
}
effect = {
prestige = -500
capital_scope = {
reverse_culture = ROOT
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1
modifier = {
factor = 0.01
}
modifier = {
factor = 0
primary_title = {
is_conquered = yes
conquest_culture = ROOT
}
}
modifier = {
factor = 0
any_vassal = {
culture = ROOT
OR = {
tier = duke
tier = king
AND = {
tier = count
ROOT = { tier = duke }
}
}
}
}
modifier = {
factor = 0
capital_scope = {
OR = {
AND = {
culture = norse
NOT = { has_global_flag = norse_culture_flipping }
ROOT = {
OR = {
culture = swedish
culture = norwegian
culture = danish
culture = norman
}
}
}
AND = {
culture = saxon
ROOT = {
OR = {
culture = norman
culture = english
}
}
}
AND = {
culture = norman
ROOT = {
OR = {
culture = english
culture = saxon
}
}
}
AND = {
culture_group = east_slavic
ROOT = {
culture = russian
}
}
AND = {
culture = pictish
ROOT = {
culture = scottish
}
}
AND = {
culture = lombard
ROOT = {
culture = italian
}
}
AND = {
culture = old_frankish
ROOT = {
culture = frankish
}
}
AND = {
culture = frisian
ROOT = {
culture = dutch
}
}
AND = {
culture = old_saxon
ROOT = {
culture = german
}
}
AND = {
culture = visigothic
ROOT = {
OR = {
culture_group = iberian
culture = andalusian_arabic
culture = occitan
religion_group = muslim
}
}
}
}
}
}
}
}
Non-RoI:
Mongols can be converted by this event - and will since AI always converts in this case:
Code:
# A ruler is assimilated by the local culture
character_event = {
id = 55010
desc = "EVTDESC55010"
picture = GFX_evt_stone_church
only_rulers = yes
min_age = 16
capable_only = yes
prisoner = no
trigger = {
NOT = { has_dlc = "Rajas of India" } # Controlled by Decision: convert_to_local_culture
primary_title = {
NOT = { conquest_culture = ROOT }
NOT = { culture = ROOT }
any_previous_holder = {
NOT = { character = ROOT } # The first holder of a title does not convert
}
}
capital_scope = {
NOT = { culture = ROOT }
OR = {
NOT = { culture = saxon }
NOT = { ROOT = { culture = norman } }
}
OR = { # Not when Norman culture should appear
ROOT = { NOT = { culture = norse } }
AND = {
NOT = { culture = frankish }
NOT = { culture = breton }
NOT = { culture = occitan }
}
NOT = { has_dlc = "The Old Gods" }
}
}
top_liege = {
OR = {
character = ROOT
ROOT = {
capital_scope = {
culture = PREVPREV
}
}
}
}
}
mean_time_to_happen = {
months = 1200
modifier = {
factor = 0.5
top_liege = {
NOT = { character = ROOT }
ROOT = {
capital_scope = {
culture = PREVPREV
}
}
}
}
modifier = {
factor = 0.5
primary_title = {
ROOT = {
capital_scope = {
culture = PREVPREV
}
}
}
}
modifier = {
factor = 2.0
capital_scope = {
culture_group = ROOT # Same culture group: slower assimilation
}
}
}
option = {
name = "EVTOPTA55010"
# Piss off the appropriate vassals
any_vassal = {
limit = {
culture = ROOT
age = 16
}
opinion = {
who = ROOT
modifier = opinion_adopted_foreign_ways
years = 10
}
hidden_tooltip = { character_event = { id = 55011 days = 0 } }
}
capital_scope = {
reverse_culture = ROOT
}
}
option = {
name = "EVTOPTB55010"
ai_chance = {
factor = 0
}
}
}
SInce the AI Mongols can and will convert some change in the above events or cb needs to be implimented. Whether it be adding the conquest_culture flag for tribal invasions, or simply denying access to these events for mongols. Not sure what all circumstances tribal invasion is used for, but adding the flag to the cb might cause other issues. I'd suggest adding the flag iff the attacker is mongol, or create a new cb for the initial invasion only, to limit affecting other cases.