Hey since they added a mother_even_if_dead trigger by now, the 'Jewish mother' events I did (jordarkelf_events.txt 3 and 4) can now actually be done properly.
Revised code:
Code:
# Children of Jewish mothers are Jews
character_event = {
id = jordarkelf.3
desc = jordarkelf.desc.3
picture = "GFX_evt_moorish_decor"
min_age = 13
trigger = {
is_ruler = no
NOT = { religion_group = jewish_group }
mother_even_if_dead = { religion_group = jewish_group }
NOT = { has_character_flag = no_more_jewish_event }
}
mean_time_to_happen = {
months = 1
}
option = {
name = jordarkelf.3.a
ai_chance = { factor = 100 }
set_character_flag = no_more_jewish_event
mother_even_if_dead = {
reverse_religion = ROOT
}
}
option = {
name = jordarkelf.3.b
ai_chance = { factor = 0 }
character_event = { id = jordarkelf.4 days = 5 }
set_character_flag = no_more_jewish_event
}
}
# Judaic culture but not a Jew?
character_event = {
id = jordarkelf.4
desc = jordarkelf.4.desc
picture = "GFX_evt_moorish_decor"
#min_age = 16
trigger = {
is_adult = yes
culture_group = judaic
NOT = { religion_group = jewish_group }
NOT = { has_character_flag = no_more_jewish_event }
OR = {
mother_even_if_dead = { religion_group = jewish_group }
NOT = { #only member of dynasty so probably a spawned Jew
any_dynasty_member = {
NOT = { character = ROOT }
}
}
}
}
mean_time_to_happen = {
days = 10
}
option = {
name = jordarkelf.3.a
ai_chance = { factor = 100 }
set_character_flag = no_more_jewish_event
IF = {
limit = {
mother_even_if_dead = { religion_group = jewish_group }
}
mother_even_if_dead = {
reverse_religion = ROOT
}
}
IF = {
limit = {
NOT = { #only member of dynasty so probably a spawned Jew
any_dynasty_member = {
NOT = { character = ROOT }
}
}
}
religion = jewish
}
}
option = {
name = jordarkelf.3.b
ai_chance = { factor = 0 }
set_character_flag = no_more_jewish_event
#IF = {
# limit = { culture = ashkenazi }
# culture = german
#}
#IF = {
# limit = { culture = crimean_jewish }
# culture = cuman
#}
IF = {
limit = { culture = sephardi }
culture = andalusian_arabic
}
IF = {
limit = { culture = mizrahi }
culture = bedouin_arabic
}
IF = {
limit = { culture = romaniote }
culture = greek
}
}
}
# Turn wives of Jews into Jews
character_event = {
id = jordarkelf.5
desc = AI_ONLY
picture = "GFX_evt_moorish_decor"
min_age = 13
trigger = {
ai = yes
is_ruler = no
is_female = yes
NOT = { religion_group = jewish_group }
spouse = { religion_group = jewish_group }
}
mean_time_to_happen = {
months = 1
}
option = {
name = OK
spouse = {
reverse_religion = ROOT
}
}
}
Changes:
-Made all checks now for mothers dead or alive
-Removed all the father checks since according to Rabbinic law only children of jewish mothers are jews.
-Corrected the link between these two events (you still linked to my private event code)
-Corrected localization for event 4 (uses text from 3 since I am
lazy efficient)
-Added a new AI only event that sets a spouse of a Jew to the same religion since too many Jewish men end up married christian or muslims in the game now, and that just shouldn't happen.
-Simplified the code a bit, if you add more Jewish religions or heresies it should now also work for them.
---
I optimized my 'hand out minor titles' minimod, VIET version of the decision file is
here
In a shocking twist, the code now sucks less and actually tries to hand out more titles!
---
Oddities in graphicalculturetypes:
-aztecholygfx should have 2, not 1 since it is used by Aztecs who have 2 in VIET
-guanchegfx and berbergfx should be 2 not 3 I think... they look like muslims, not like Ethiopians