I was looking at the Child of Destiny (and some other events) code,
but the weight_multiplier is in few days. How do I actually find out what is the base time for event to fire so that I can then calculate the estimate mean time after the modifiers?
character_event = { # Extra chance for player children to become Children of Destiny
id = HF.199
hide_window = yes
is_triggered_only = yes
only_playable = yes
ai = no
max_age = 8
trigger = {
has_dlc = "Holy Fury"
has_game_rule = {
name = child_of_destiny
value = on
}
NOR = {
was_conceived_a_bastard = yes
trait = bastard
trait = legit_bastard
}
OR = {
is_tribal = yes
is_feudal = yes
is_nomadic = yes
}
NOR = {
any_owned_bloodline = { # Must not already have a Child of Destiny bloodline
has_bloodline_flag = bloodline_ambition
}
is_ill = yes
is_inaccessible_or_incapable_trigger = yes
has_negative_congenital_trigger = yes
AND = { # Should be able to legally inherit
is_female = yes
OR = {
has_religion_feature = religion_patriarchal
liege = {
has_law = agnatic_succession
}
AND = { # Non-randomized muslims usually prohibit women from ruling
religion_group = muslim
NOT = {
has_alternate_start_parameter = { key = religion_names value = random }
}
}
}
}
AND = { # Should be able to legally inherit
is_female = no
OR = {
has_religion_feature = religion_matriarchal
liege = {
has_law = enatic_succession
}
}
}
any_dynasty_member = { # Only one per dynasty at any one time
has_character_flag = is_child_of_destiny
}
}
}
immediate = {
save_event_target_as = child_of_destiny
set_character_flag = is_child_of_destiny
set_character_flag = ai_flag_refuse_concubinage
set_character_flag = no_court_invites
father = {
narrative_event = { id = HF.201 days = 15 }
}
mother = {
narrative_event = { id = HF.201 days = 15 }
}
child_of_destiny_journey_start_effect = yes
health = 1
character_event = { id = HF.306 }
if = {
limit = {
has_global_flag = cod_test_events
}
any_player = {
character_event = { id = HF.307 }
}
}
change_variable = { which = global_children_of_destiny_childhood_pulse_player value = 1 }
}
weight_multiplier = {
days = 1
modifier = { # Having a super-parent boosts the chance
factor = 3
OR = {
father_even_if_dead = {
has_top_tier_education_trait_trigger = yes
is_attractive_trigger = yes
has_pleasant_personality_trigger = yes
}
mother_even_if_dead = {
has_top_tier_education_trait_trigger = yes
is_attractive_trigger = yes
has_pleasant_personality_trigger = yes
}
}
}
modifier = {
factor = 3
trait = strong
}
modifier = {
factor = 3
OR = {
trait = genius
trait = quick
}
}
modifier = {
factor = 3
trait = fair
}
modifier = {
factor = 0.25
any_owned_bloodline = { # Let's try to avoid stacking created bloodlines
has_bloodline_flag = created_bloodline
}
}
modifier = {
factor = 5000
has_global_flag = cod_test_values_spawns
}
}
}
id = HF.199
hide_window = yes
is_triggered_only = yes
only_playable = yes
ai = no
max_age = 8
trigger = {
has_dlc = "Holy Fury"
has_game_rule = {
name = child_of_destiny
value = on
}
NOR = {
was_conceived_a_bastard = yes
trait = bastard
trait = legit_bastard
}
OR = {
is_tribal = yes
is_feudal = yes
is_nomadic = yes
}
NOR = {
any_owned_bloodline = { # Must not already have a Child of Destiny bloodline
has_bloodline_flag = bloodline_ambition
}
is_ill = yes
is_inaccessible_or_incapable_trigger = yes
has_negative_congenital_trigger = yes
AND = { # Should be able to legally inherit
is_female = yes
OR = {
has_religion_feature = religion_patriarchal
liege = {
has_law = agnatic_succession
}
AND = { # Non-randomized muslims usually prohibit women from ruling
religion_group = muslim
NOT = {
has_alternate_start_parameter = { key = religion_names value = random }
}
}
}
}
AND = { # Should be able to legally inherit
is_female = no
OR = {
has_religion_feature = religion_matriarchal
liege = {
has_law = enatic_succession
}
}
}
any_dynasty_member = { # Only one per dynasty at any one time
has_character_flag = is_child_of_destiny
}
}
}
immediate = {
save_event_target_as = child_of_destiny
set_character_flag = is_child_of_destiny
set_character_flag = ai_flag_refuse_concubinage
set_character_flag = no_court_invites
father = {
narrative_event = { id = HF.201 days = 15 }
}
mother = {
narrative_event = { id = HF.201 days = 15 }
}
child_of_destiny_journey_start_effect = yes
health = 1
character_event = { id = HF.306 }
if = {
limit = {
has_global_flag = cod_test_events
}
any_player = {
character_event = { id = HF.307 }
}
}
change_variable = { which = global_children_of_destiny_childhood_pulse_player value = 1 }
}
weight_multiplier = {
days = 1
modifier = { # Having a super-parent boosts the chance
factor = 3
OR = {
father_even_if_dead = {
has_top_tier_education_trait_trigger = yes
is_attractive_trigger = yes
has_pleasant_personality_trigger = yes
}
mother_even_if_dead = {
has_top_tier_education_trait_trigger = yes
is_attractive_trigger = yes
has_pleasant_personality_trigger = yes
}
}
}
modifier = {
factor = 3
trait = strong
}
modifier = {
factor = 3
OR = {
trait = genius
trait = quick
}
}
modifier = {
factor = 3
trait = fair
}
modifier = {
factor = 0.25
any_owned_bloodline = { # Let's try to avoid stacking created bloodlines
has_bloodline_flag = created_bloodline
}
}
modifier = {
factor = 5000
has_global_flag = cod_test_values_spawns
}
}
}
but the weight_multiplier is in few days. How do I actually find out what is the base time for event to fire so that I can then calculate the estimate mean time after the modifiers?