"No "Dark culture" children" event
See a few posts down for a working version
-----
I am trying to write an event which changes "dark culture" children of christian rulers back to an acceptable culture, to prevent my ruler from becoming an arab catholic just because I own Jerusalem and it never converted its culture.
I have an event coded up which I think should work, but when I launched it to test, it didn't seem to do anything (I modded a savegame to give my catholic frankish ruler a catholic arab son).
Have I made a mistake somewhere?
Event ID is random of course.
See a few posts down for a working version
-----
I am trying to write an event which changes "dark culture" children of christian rulers back to an acceptable culture, to prevent my ruler from becoming an arab catholic just because I own Jerusalem and it never converted its culture.
I have an event coded up which I think should work, but when I launched it to test, it didn't seem to do anything (I modded a savegame to give my catholic frankish ruler a catholic arab son).
Have I made a mistake somewhere?
Code:
#############################
# No "Dark culture" children
#############################
character_event = {
id = 90012
picture = "event_appearance"
name = "Your child has been raised with a heathen culture"
trigger = {
condition = { type = ruler_child }
condition = { type = not value = { type = trait value = heretic } }
condition = { type = or
condition = { type = culture value = abghazian }
condition = { type = culture value = alan }
condition = { type = culture value = cuman }
condition = { type = culture value = mongol }
condition = { type = culture value = muslim }
condition = { type = culture value = none }
condition = { type = culture value = persian }
condition = { type = culture value = pecheneg }
condition = { type = culture value = turkish }
}
condition = { type = or
condition = { type = religion value = catholic }
condition = { type = religion value = orthodox }
}
}
mean_time_to_happen = {
years = 1
modifier = {
condition = { type = trait value = zealous }
factor = 3
}
modifier = {
condition = { type = trait value = sceptical }
factor = 0.75
}
}
action_a = { #Unacceptable!
ai_chance = 90
name = "This is unacceptable!"
modifier = {
condition = { type = trait value = zealous }
factor = 1.5
}
modifier = {
condition = { type = trait value = crusader }
factor = 1.5
}
effect = { type = culture value = set_to_realm_culture }
effect = { type = prestige value = -10 }
}
action_b = { #And?
ai_chance = 10
name = "And? Why should I care?"
modifier = {
condition = { type = trait value = proud }
factor = 1.5
}
modifier = {
condition = { type = trait value = heretic }
factor = 1.5
}
effect = {
effect = { type = prestige value = 10 }
effect = { type = add_trait value = sceptical }
effect = {
type = random
chance = 30
effect = { type = add_trait value = heretic }
}
}
}
}
Event ID is random of course.
Last edited: