So I have been creating my first mod named "My Mod" to automate the mundane task of seduction. The below code is working beta. But I can use some help to improve it.
What it does is, while Auto Seduction option is turned on by the ruler, a new seduction attempts starts with a random women of desirable qualities for easy of seduction and impregnation attempt.
The first modded file is way_of_life_decisions.txt I only added following lines;
The second file I modded is wol_seduction_events.txt I made following change to intercept when a seduction event ends;
Finally, I added following two events in the same file. And it works pretty nicely.
What it does is, while Auto Seduction option is turned on by the ruler, a new seduction attempts starts with a random women of desirable qualities for easy of seduction and impregnation attempt.
The first modded file is way_of_life_decisions.txt I only added following lines;
Code:
auto_seduction_on = {
filter = self
potential = {
has_focus = focus_seduction
NOT = { has_character_flag = seduction_automated }
}
effect = {
hidden_tooltip = {
set_character_flag = seduction_automated
}
}
revoke_allowed = { always = no }
ai_will_do = { factor = 0 }
}
auto_seduction_off = {
filter = self
potential = {
has_character_flag = seduction_automated
}
effect = {
hidden_tooltip = {
clr_character_flag = seduction_automated
}
}
revoke_allowed = { always = no }
ai_will_do = { factor = 0 }
}
The second file I modded is wol_seduction_events.txt I made following change to intercept when a seduction event ends;
Code:
# End of Seduction event to clear out flags, etc
character_event = {
id = WoL.118
#Existing lines....
#Addition Starts
if {
limit = { has_character_flag = seduction_automated }
hidden_tooltip = {
character_event = { id = WoL.105 }
}
}
#Addition Ends.
}
Code:
#Event implementation of Seduction user input
#Target is randomly selected based on the previous seduction target
character_event = {
id = WoL.105
hide_window = yes
is_triggered_only = yes
immediate = {
random_realm_character = {
limit = {
OR = {
religion_group = FROM
is_liege_or_above = FROM
}
is_female = yes
is_incapable = no
is_married = no
is_consort = no
is_marriage_adult = yes
prisoner = no
# has_disease = no
# has_any_symptom = no
is_pregnant = no
NOT = {
distance = { who = FROM value = 200 }
character = FROM
is_lover = FROM
is_former_lover = FROM
is_consort = FROM
is_close_relative = FROM
age = 35
num_of_children = 3
trait = homosexual
trait = eunuch
trait = infirm
trait = inbred
trait = imbecile
trait = chaste
trait = shy
trait = mangled
trait = severely_injured
trait = celibrate
trait = clubfooted
trait = dwarf
trait = harelip
trait = hunchback
trait = lisp
trait = slow
trait = stutter
trait = ugly
trait = weak
trait = giant
trait = lefthanded
trait = genius
trait = strong
}
}
preferred_limit = {
NOT = { age = 20 }
trait = lustful
}
preferred_limit = {
NOT = { age = 25 }
trait = lustful
}
preferred_limit = {
OR {
trait = lustful
trait = hedonist
}
}
preferred_limit = {
OR {
trait = midas_touched
trait = fortune_builder
trait = grey_eminence
}
}
preferred_limit = {
OR {
trait = thrifty_clerk
trait = charismatic_negotiator
trait = underhanded_rogue
}
}
hidden_tooltip = {
character_event = { id = WoL.106 }
}
}
}
}
# Event implementation of Seduce Decision
character_event = {
id = WoL.106
hide_window = yes
is_triggered_only = yes
immediate = {
hidden_tooltip = {
FROM = {
opinion = {
who = ROOT
modifier = opinion_seducing
years = 1000
}
if = {
limit = {
is_close_relative = ROOT
NOT = { religion = messalian }
NOT = { religion = zoroastrian }
}
character_event = { id = WoL.102 days = 1 } # Warning - Incest scandal risk
break = yes
}
if = {
limit = {
same_sex = ROOT
}
character_event = { id = WoL.104 days = 1 } # Warning - Homosexual scandal risk
break = yes
}
if = {
limit = {
religion_group = christian
OR = {
is_priest = yes
is_ascetic_trigger = yes
ROOT = { is_priest = yes }
ROOT = { is_ascetic_trigger = yes }
}
}
character_event = { id = WoL.103 days = 1 } # Warning - Priest scandal risk
break = yes
}
if = {
limit = {
age_diff = {
who = ROOT
years = 25
}
}
character_event = { id = WoL.101 days = 1 } # Warning - Age scandal risk
break = yes
}
character_event = { id = WoL.100 days = 1 } # No warning - Let the chase begin!
}
}
}
}
Last edited: