Académique Documents
Professionnel Documents
Culture Documents
character_event = {
id = christ.31
is_triggered_only = yes
hide_window = yes
only_women = yes
immediate = {
if = {
limit = { check_variable = { which = breast_size value = 7 } }
add_trait = gigantic_tits
break = yes
}
if = {
limit = { check_variable = { which = breast_size value = 6 } }
add_trait = enormous_tits
break = yes
}
if = {
limit = { check_variable = { which = breast_size value = 5 } }
add_trait = huge_tits
break = yes
}
if = {
limit = { check_variable = { which = breast_size value = 4 } }
add_trait = big_tits
break = yes
}
if = {
limit = { check_variable = { which = breast_size value = 3 } }
add_trait = regular_tits
break = yes
}
if = {
limit = { check_variable = { which = breast_size value = 2 } }
add_trait = small_tits
break = yes
}
if = {
limit = { check_variable = { which = breast_size value = 1 } }
add_trait = tiny_tits
break = yes
}
# It shouldn't be possible to get here, but just in case the event gets
# called on a character with no breast_size set, we'll default to size
# 3 and assign the trait..
set_variable = { which = breast_size value = 3 }
add_trait = regular_tits
}
}
# Determine breast size for a character based on mother's breast size. This will
# be run at birth. Note that it will run for male characters too, so that I can
# add support for inheriting breasts based on both sides of the family.
character_event = {
id = christ.32
is_triggered_only = yes
hide_window = yes
immediate = {
# First we give ROOT the default values: +3 from the mother, and
another +3 from father/real father.
# THEN if nother or father had actual values different from 3, we correct
the ROOT value
# first we check if the mother has her breasts assigned, else ROOT gets
the default 3
set_variable = { which = breast_size value = 6 }
if = {
limit = {
mother_even_if_dead = { has_character_flag =
christ_breast_size_set }
}
mother_even_if_dead = {
ROOT = {
change_variable = { which = breast_size which =
PREV }
change_variable = { which = breast_size value = -3 }
}
}
}
# Now get the father's breast size variable. This allows men to pass
# along genes for breast size too. We'll need to use a temporary
# variable here to work around the engine's limitations.
# BUT: bastards should not pick the father but the real_father instead.
We use a trigger_switch for that.
if = {
limit = {
OR = {
father_even_if_dead = { has_character_flag =
christ_breast_size_set }
real_father_even_if_dead = { has_character_flag =
christ_breast_size_set }
}
}
trigger_switch = {
on_trigger = is_father_real_father
yes = {
father_even_if_dead = {
ROOT = {
change_variable = { which = breast_size
which = PREV }
change_variable = { which = breast_size
value = -3 }
}
}
}
no = {
real_father_even_if_dead = {
ROOT = {
change_variable = { which = breast_size
which = PREV }
change_variable = { which = breast_size
value = -3 }
}
}
}
}
}
# Now average the inherited sizes
divide_variable = { which = breast_size value = 2 }
random_list = {
10 = { subtract_variable = { which = breast_size value = 2 } }
25 = { subtract_variable = { which = breast_size value = 1 } }
35 = {} # No change in breast size
20 = { change_variable = { which = breast_size value = 1 } }
15 = { change_variable = { which = breast_size value = 2 } }
5 = { change_variable = { which = breast_size value = 3 } }
}
# If the size is less than 1, just set it to 1 as that's the smallest
# possible size.
if = {
limit = { NOT = { check_variable = { which = breast_size value =
1 } } }
set_variable = { which = breast_size value = 1 }
}
# Realms were women live on cum have a boost to breast size
if = {
limit = { top_liege = { has_character_modifier = cumdrinking_women } }
change_variable = { which = breast_size value = 1 }
}
# Set any breast size over the largest trait size to that maximum value.
# This way breast sizes won't quickly grow to extreme values giving
# everyone the largest size.
if = {
limit = { check_variable = { which = breast_size value = 7 } }
set_variable = { which = breast_size value = 7 }
}
set_character_flag = christ_breast_size_set
}
}