Interesting.Your code doesn't seem to prevent the Lombards from conquering in Africa
Did you paste it right after "factor = 1" under the "ai_will_do" section for HOLY WAR CB? Make sure you didn't lose any brackets.
Here's another one that might work. There are some extra bits commented out, delete the # signs to use them if this works.
Code:
modifier = { #To stop the Franks, Italians and Germans from crusading North Africa to death
factor = 0
ROOT = { # Latins and Germanics are banned from holy wars
OR = {
culture_group = latin
culture_group = central_germanic
}
}
NOR = {
# year = 1350 # unless the year is after 1350,
any_de_jure_vassal_title = { # or if they're targeting a province outside North Africa,
tier = count
location = {
NOT = {
region = world_africa_north
}
}
}
# ROOT = { # or if they're already in NA and they're targeting an existing neighbour,
# any_realm_province = {
# any_de_jure_vassal_title = {
# tier = count
# owner = FROM
# location = {
# region = world_africa_north
# }
# }
# }
# }
# ROOT = { # or if they've restored the Roman Empire successfully and change culture for some reason,
# primary_title = e_roman_empire
# }
ROOT = { # or if they're Normans
culture = norman
}
FROM = { # or if the target is not Muslim (no mercy to Aztecs)
NOT = {
religion_group = muslim
}
}
}
}