So I've been tinkering away at a custom ruler designer event chain, and have learned various commands.
Useful character commands (use in the character's scope):
set_culture (changes character's culture)
set_character_faith (changes a character's religion, religion is referred to as faith in CK3 files now, unlike CK2's religion)
add_realm_law_skip_effects (changes a character's realm laws)
set_sexuality (changes character's sexuality; options are heterosexual, homosexual, bisexual, and asexual)
Example of all these being used:
Code:
(Some character's scope) = {
set_culture = culture:irish
set_character_faith = faith:catholic
add_realm_law_skip_effects = equal_law
add_realm_law_skip_effects = single_heir_succession_law
set_sexuality = bisexual
}
Above code basically makes the scoped character a bisexual culturally irish catholic ruler, that has primogeniture succession where both male and females inherit equally.
Also toyed around with the create_character command, there's some base templates to use for it to help, but you can define a lot of the variables of the new character manually too.
Ex:
Code:
create_character = {
employer = root
gender_female_chance = 0
random_traits = no
age = 16
diplomacy = 10
martial = 10
stewardship = 10
intrigue = 10
learning = 10
prowess = 10
health = 5.0
fertility = 0.6
save_scope_as = spawned_char
dynasty = root
location = root.capital_province
faith = root.faith
culture = root.culture
}
Root in above code is the player character. This basically spawns a 16 year old male of the same culture, religion, and dynasty of the root character, that has 10 in his skills across the board. With the saved scope you can easily scope to the spawned character with scope:spawned_char to further modify them.