Hi everyone,
I have a problem with my mod (WIP)...
I'd like to generate characters and marry them automatically to people over 24 years old and not already married, but the new char doesn't seem to be generated.
For info, the "add_trait = ###" before "create_character" is working so it seems everything is good up to this point.
I have a problem with my mod (WIP)...
I'd like to generate characters and marry them automatically to people over 24 years old and not already married, but the new char doesn't seem to be generated.
For info, the "add_trait = ###" before "create_character" is working so it seems everything is good up to this point.
Code:
namespace = valentines_day
valentines_day.1 = {
type = country_event
hidden = yes
trigger = {
has_land = yes
}
immediate = {
every_character = {
limit = {
is_alive = yes
is_married = no
age > 24
}
save_scope_as = char_not_married # Save the Scope for later
if = {
limit = {
is_female = yes
}
add_trait = lustful # Just to see if the event fires and comes so far
create_character = { # EFFECT - Create a character
female = no
age = 25
culture = root.capital_scope.culture
religion = root.capital_scope.religion
no_traits = yes
no_stats = yes
add_trait = lustful
add_martial = 5
add_finesse = 5
add_charisma = 5
add_zeal = 5
save_scope_as = new_male_char # Save the Scope for later
}
# The marriage
scope:char_not_married = {
marry_character = scope:new_male_char
}
}
else = {
add_trait = chaste # Just to see if the event fires and comes so far
create_character = { # EFFECT - Create a character
female = yes
age = 25
culture = root.capital_scope.culture
religion = root.capital_scope.religion
no_traits = yes
no_stats = yes
add_trait = lustful
add_martial = 5
add_finesse = 5
add_charisma = 5
add_zeal = 5
save_scope_as = new_female_char # Save the Scope for later
}
# The marriage
scope:char_not_married = {
marry_character = scope:new_female_char
}
}
}
}
}