• 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.

jordarkelf

01_TITLE_STRING
164 Badges
Jul 13, 2005
8.040
650
erbkaiser.nl
  • Impire
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Galactic Assault
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Iron Cross
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Lead and Gold
  • Legio
  • Leviathan: Warships
  • The Kings Crusade
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Victoria 3 Sign Up
  • Crusader Kings II: Sons of Abraham
  • Ancient Space
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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
  • A Game of Dwarves
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Deus Vult
  • Diplomacy
  • Dungeonland
  • East India Company
  • East India Company Collection
  • Europa Universalis III
"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?

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:
This effect isn't correct
effect = { type = culture value = set_to_realm_culture }

1) You can't assign culture in char event
2) set_to_realm_culture is a prov event effect
 
No, like I said before
1) You can't assign culture in char event

But, in provevent, it's possible to set capital's culture, so that newborn childs take benefits

Example:
shot.jpg


Translate into (bad) english:
'Walking in the village around your castle, you are noised to stay among people not sharing your cultural's identity'
'It's time to set one culture only in a bloody way'
'It's better to pay unwanted citizens to go away'
'No, tolerance is good and I preserve it'
 
Last edited:
You cannot change character's culture by events. The culture they are born with is the culture they die with.
 
Think I got a working version.

Code:
#########################
# No dark culture heirs event
# An event to prevent "Muhammad Capet" the Arab Catholic
# king of France etc.. Adds 'bastard' trait to prevent
# succession. Not foolproof but better than nothing.
#########################
character_event = {
	id = 123456
	picture = "event_default.bmp"

	trigger = {
		condition = { type = ruler_child } #Must be heir
		condition = { type = gender value = male } # Only bother with males
		condition = { type = is_alive } # Skip dead characters
		condition = { type = age value = 0 } #Check from age 0 to 15 (next line)
		condition = { type = not value = { type = age value = 15 } }
		condition = { type = not value = { type = trait value = bastard } } # Skip bastards
		condition = { type = or #Only trigger for christians
			condition = { type = religion value = catholic } 
			condition = { type = religion value = orthodox } 
		}
		condition = {
			type = or #All 'dark' cultures (cultures with dark portraits)
			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 = ruler_csc
			condition = {
				type = or #Ruler must be from any light culture (So Nubia, Alan etc. will not only get bastards)
				condition = { type = culture value = armenian }
				condition = { type = culture value = basque }
				condition = { type = culture value = bohemian } 
				condition = { type = culture value = byzantine } 
				condition = { type = culture value = castillan }
				condition = { type = culture value = catalan }
				condition = { type = culture value = celtic }
				condition = { type = culture value = danish }
				condition = { type = culture value = dutch } 
				condition = { type = culture value = eastern_slavic }
				condition = { type = culture value = english }
				condition = { type = culture value = finnish } 
				condition = { type = culture value = frankish } 
				condition = { type = culture value = georgian }
				condition = { type = culture value = german } 
				condition = { type = culture value = greek }
				condition = { type = culture value = hungarian} 
				condition = { type = culture value = iberian } 
				condition = { type = culture value = italian } 
				condition = { type = culture value = lappish } 
				condition = { type = culture value = latin } 
				condition = { type = culture value = lettigallish }
				condition = { type = culture value = lithuanian }
				condition = { type = culture value = norse } 
				condition = { type = culture value = norman } 
				condition = { type = culture value = norwegian }
				condition = { type = culture value = polish }
				condition = { type = culture value = portuguese } 
				condition = { type = culture value = prussian }
				condition = { type = culture value = scottish } 
				condition = { type = culture value = russian }
				condition = { type = culture value = saxon } 
				condition = { type = culture value = south_slavic }
				condition = { type = culture value = swedish }
				condition = { type = culture value = ugric_baltic } 
				condition = { type = culture value = welsh } 
				condition = { type = culture value = western_slavic } 
			}
		}
	}
	
	mean_time_to_happen = { months = 24 } # Once every two years is enough
	
	action_a = { #It is for the best...
		ai_chance = 100 #AI should always pick this
		effect = { type = add_trait value = bastard }
	}
	action_b = { #So?
		ai_chance = 0 #Only player may chose this
	}
}

modtext.csv stuff:
Code:
EVT_123456_NAME;Your child is from a non-Christian culture and must be a bastard;;;;;;;;;;X
ACTIONNAME123456A;Alas it is so;;;;;;;;;;X
ACTIONNAME123456B;You don't fool me;;;;;;;;;;X

Worked for me in a quick test game. Triggered in my KOJ on my Arab son as he was four years old. I didn't see any non-bastard heirs of other christian realms with muslim capitals either.

Thoughts?
 
that's nice solution ! good job :D
 
Good !!!

It's a good event for kingdom, but county and duchy need to match region and area in order to trigger, I think
 
Are you saying it doesn't trigger for counts and dukes? Because it seems to work for me. Maybe you don't see it happening because you need to lower the MTTH. I left it at two years because any time before the 16th birthday is good enough for me, and with this MTTH there is a reasonable chance it will fire within the first 6 years or so.
 
No, I am saying it doesn't have to happen for counties and duchies if they are in moslem regions or areas.
KoJ must have no-dark heir, but catholic CoSomewhere-near-J may have dark heir