revert Alignment
This commit is contained in:
Vannifar 2026-04-25 10:02:11 +02:00
parent 15a5108e23
commit c4b6d9bdeb
250 changed files with 11067 additions and 16365 deletions

View file

@ -3034,7 +3034,7 @@ ep3_contract_event.0013 = {
scope:task_contract_employer = {
pay_treasury_or_gold = {
target = scope:task_contract_taker
value = scope:laamp_temp.ep3_hire_laamp_mercs_payment_value
value = ep3_hire_laamp_mercs_payment_value
}
}
scope:laamp_temp = {
@ -7412,11 +7412,10 @@ ep3_contract_event.0095 = {
}
}
#lead an independence peasant war, become landed ruler after winning
#lead an independence peasant war
option = {
name = ep3_contract_event.0095.a
#start a freedom war!
custom_tooltip = ep3_contract_event.0095.a_become_landed
start_war = {
cb = ep3_laamp_peasant_war
target = scope:task_contract_councillor_liege.top_liege
@ -7472,75 +7471,7 @@ ep3_contract_event.0095 = {
}
ai_chance = {
base = 20
}
}
#lead an independence peasant war, but remain laamp after winning
option = {
name = ep3_contract_event.0095.a_2
#start a freedom war!
custom_tooltip = {
text = ep3_contract_event.0095.a_remain_laamp
set_variable = {
name = ep3_laamp_peasant_war_remain_laamp
value = yes
}
}
start_war = {
cb = ep3_laamp_peasant_war
target = scope:task_contract_councillor_liege.top_liege
}
#try to capture the marshal, as they standing right next to you
duel = {
skills = { prowess intrigue }
target = scope:task_contract_councillor
25 = {
desc = ep3_contract_event.0095.a_win
compare_modifier = {
value = scope:duel_value
multiplier = 3.5
}
prisoner_of_war_capture_effect = {
TARGET = scope:task_contract_councillor
IMPRISONER = root
}
scope:task_contract_councillor_liege = {
add_opinion = {
modifier = fp3_wrongful_imprisonment_opinion
opinion = -30
target = root
}
}
}
25 = {
desc = ep3_contract_event.0095.a_lose
compare_modifier = {
value = scope:duel_value
multiplier = -3.5
min = 5
}
scope:task_contract_councillor = {
add_opinion = {
target = root
modifier = attempted_imprisonment_opinion
}
}
}
}
#fail the contract, obivously
scope:task_contract = {
complete_task_contract = failure_standard
}
return_home = yes
stress_impact = {
craven = minor_stress_impact_gain
lazy = minor_stress_impact_gain
brave = minor_stress_impact_loss
compassionate = minor_stress_impact_loss
arrogant = minor_stress_impact_loss
}
ai_chance = {
base = 0
}
}

View file

@ -2650,7 +2650,7 @@ ep3_decisions_event.2090 = {
remove_variable = confirmation_grace
}
# Refund any costs
add_prestige = standard_activity_base_cost
add_prestige = standard_activity_cost
}
trigger_event = ep3_decisions_event.2080
}
@ -4429,12 +4429,6 @@ ep3_decisions_event.4022 = {
participants = { missionary = scope:evangelizer sender = scope:sender }
}
set_character_faith_with_conversion = scope:evangelizer.faith
if = {
limit = {
scope:evangelizer.faith = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
custom_tooltip = ep3_decisions_event.4022.a.tt
custom_tooltip = negotiated_alliance_delay_tt
show_as_tooltip = {
@ -5177,23 +5171,6 @@ ep3_decisions_event.4060 = {
}
add_character_modifier = { modifier = first_admin_emperor }
}
# NF tooltip
if = {
limit = { exists = scope:new_title } # some gov types don't need to create a new title
get_title = scope:new_title
}
# Adopting vassal tooltip
every_powerful_vassal = {
limit = { has_same_government = root }
switch = {
trigger = has_government
japan_administrative_government = { change_government = japan_administrative_government }
celestial_government = { change_government = celestial_government }
meritocratic_government = { change_government = meritocratic_government }
steppe_admin_government = { change_government = steppe_admin_government }
fallback = { change_government = administrative_government }
}
}
}
hidden_effect = {
ordered_vassal = {
@ -6161,17 +6138,6 @@ ep3_decisions_event.4090 = {
desc = appointment_timeout_desc_retired_governor
}
}
else_if = {
limit = {
government_is_japanese_trigger = yes
}
add_gold = major_gold_value
change_influence = major_influence_value
add_character_modifier = {
modifier = renounced_governorship_japan
years = 15
}
}
else = {
add_gold = massive_gold_value
add_character_modifier = {
@ -6800,14 +6766,14 @@ ep3_decisions_event.5020 = {
ordered_in_list = {
list = available_heresies
order_by = num_county_followers
position = 0
position = 1
save_scope_as = heresy_1
}
ordered_in_list = {
list = available_heresies
limit = { this != scope:heresy_1 }
order_by = num_county_followers
position = 0
position = 1
save_scope_as = heresy_2
}
ordered_in_list = {
@ -6817,7 +6783,7 @@ ep3_decisions_event.5020 = {
this != scope:heresy_2
}
order_by = num_county_followers
position = 0
position = 1
save_scope_as = heresy_3
}
}
@ -6825,12 +6791,6 @@ ep3_decisions_event.5020 = {
option = {
name = ep3_decisions_event.5020.a
set_character_faith_with_conversion = scope:heresy_1
if = {
limit = {
scope:heresy_1 = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
add_heresiarch_trait_effect = yes
# Otherwise the conversion event will remove the trait
add_character_flag = converted_by_heresy_decision
@ -6870,12 +6830,6 @@ ep3_decisions_event.5020 = {
exists = scope:heresy_2
}
set_character_faith_with_conversion = scope:heresy_2
if = {
limit = {
scope:heresy_2 = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
add_heresiarch_trait_effect = yes
# Otherwise the conversion event will remove the trait
add_character_flag = converted_by_heresy_decision
@ -6915,12 +6869,6 @@ ep3_decisions_event.5020 = {
exists = scope:heresy_3
}
set_character_faith_with_conversion = scope:heresy_3
if = {
limit = {
scope:heresy_3 = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
add_heresiarch_trait_effect = yes
# Otherwise the conversion event will remove the trait
add_character_flag = converted_by_heresy_decision
@ -7047,12 +6995,6 @@ ep3_decisions_event.5021 = {
root = {
primary_title = { set_state_faith = scope:heresy }
set_character_faith_with_conversion = scope:heresy
if = {
limit = {
scope:heresy = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
add_opinion = {
target = scope:heretic
modifier = forced_state_heresy_opinion
@ -7434,22 +7376,9 @@ ep3_decisions_event.6001 = {
}
}
scope:liege = { save_scope_as = new_liege }
location.duchy.holder ?= {
if = {
limit = {
this != scope:new_liege
can_set_relation_rival_trigger = { CHARACTER = root }
}
set_relation_rival = {
target = root
reason = seized_my_realm_crime
}
}
}
set_variable = separatist_uprising_decision_var
set_variable = became_landed_through_separatist_uprising_var
location.duchy = {
save_scope_as = target
add_to_list = transfer_titles
# All De Jure Counties held by the liege will be moved over
every_de_jure_county = {
@ -7546,12 +7475,11 @@ ep3_decisions_event.6001 = {
resolve_title_and_vassal_change = scope:heir_change
}
}
ep3_become_landed_transfer_effect = {
ep3_become_landed_transfer_no_ennobled_modifier_effect = {
TITLE_RECEIVER = root
TITLE_LIST = transfer_titles
TYPE = granted
REASON = flag:culture_champion
ENNOBLED_ADVENTURER = flag:no
}
hidden_effect = {
scope:old_heir ?= {
@ -7608,14 +7536,7 @@ ep3_decisions_event.6001 = {
option = { # Let me think about it
name = ep3_decisions_event.6001.d
hidden_effect = {
send_interface_toast = {
title = champion_culture_costs_refunded
left_icon = root
add_prestige_no_experience = 2000
add_short_term_gold = 500
}
}
ai_chance = {
base = 0
}

View file

@ -2,8 +2,8 @@
##############################
# EP3 Admin (Emperor) Events #
# by Claudia Baldassi #
# 2000 - 2999 #
# by Claudia Baldassi #
# 2000 - 2999 #
##############################
# Byzantine-only: you have reconquered an important city of the long-lost Empire
@ -161,13 +161,13 @@ ep3_emperor_yearly.2000 = {
limit = {
scope:county = title:c_tourraine
}
NOT = { exists = global_var:ep3_reconquered_tourraine }
NOT = { exists = var:ep3_reconquered_tourraine }
}
trigger_else_if = {
limit = {
scope:county = title:c_chandax
}
NOT = { exists = global_var:ep3_reconquered_chandax }
NOT = { exists = var:ep3_reconquered_chandax }
}
trigger_else_if = {
limit = {
@ -176,91 +176,91 @@ ep3_emperor_yearly.2000 = {
scope:county = title:c_northumberland
}
}
NOT = { exists = global_var:ep3_reconquered_hadrian }
NOT = { exists = var:ep3_reconquered_hadrian }
}
trigger_else_if = {
limit = {
scope:county = title:c_trier
}
NOT = { exists = global_var:ep3_reconquered_trier }
NOT = { exists = var:ep3_reconquered_trier }
}
trigger_else_if = {
limit = {
scope:county = title:c_lombardia
}
NOT = { exists = global_var:ep3_reconquered_lombardia }
NOT = { exists = var:ep3_reconquered_lombardia }
}
trigger_else_if = {
limit = {
scope:county = title:c_murcia
}
NOT = { exists = global_var:ep3_reconquered_murcia }
NOT = { exists = var:ep3_reconquered_murcia }
}
trigger_else_if = {
limit = {
scope:county = title:c_tangiers
}
NOT = { exists = global_var:ep3_reconquered_tangiers }
NOT = { exists = var:ep3_reconquered_tangiers }
}
trigger_else_if = {
limit = {
scope:county = title:c_tunis
}
NOT = { exists = global_var:ep3_reconquered_tunis }
NOT = { exists = var:ep3_reconquered_tunis }
}
trigger_else_if = {
limit = {
scope:county = title:c_ravenna
}
NOT = { exists = global_var:ep3_reconquered_ravenna }
NOT = { exists = var:ep3_reconquered_ravenna }
}
trigger_else_if = {
limit = {
scope:county = title:c_roma
}
NOT = { exists = global_var:ep3_reconquered_roma }
NOT = { exists = var:ep3_reconquered_roma }
}
trigger_else_if = {
limit = {
scope:county = title:c_siracusa
}
NOT = { exists = global_var:ep3_reconquered_siracusa }
NOT = { exists = var:ep3_reconquered_siracusa }
}
trigger_else_if = {
limit = {
scope:county = title:c_bari
}
NOT = { exists = global_var:ep3_reconquered_bari }
NOT = { exists = var:ep3_reconquered_bari }
}
trigger_else_if = {
limit = {
scope:county = title:c_edessa
}
NOT = { exists = global_var:ep3_reconquered_edessa }
NOT = { exists = var:ep3_reconquered_edessa }
}
trigger_else_if = {
limit = {
scope:county = title:c_abbadan
}
NOT = { exists = global_var:ep3_reconquered_abbadan }
NOT = { exists = var:ep3_reconquered_abbadan }
}
trigger_else_if = {
limit = {
scope:county = title:c_alexandria
}
NOT = { exists = global_var:ep3_reconquered_alexandria }
NOT = { exists = var:ep3_reconquered_alexandria }
}
trigger_else_if = {
limit = {
scope:county = title:c_jerusalem
}
NOT = { exists = global_var:ep3_reconquered_jerusalem }
NOT = { exists = var:ep3_reconquered_jerusalem }
}
trigger_else_if = {
limit = {
scope:county = title:c_antiocheia
}
NOT = { exists = global_var:ep3_reconquered_antiocheia }
NOT = { exists = var:ep3_reconquered_antiocheia }
}
trigger_else = {
always = no
@ -268,60 +268,6 @@ ep3_emperor_yearly.2000 = {
}
immediate = {
switch = {
trigger = scope:county
title:c_antiocheia = {
set_global_variable = ep3_reconquered_antiocheia
}
title:c_jerusalem = {
set_global_variable = ep3_reconquered_jerusalem
}
title:c_alexandria = {
set_global_variable = ep3_reconquered_alexandria
}
title:c_abbadan = {
set_global_variable = ep3_reconquered_abbadan
}
title:c_edessa = {
set_global_variable = ep3_reconquered_edessa
}
title:c_bari = {
set_global_variable = ep3_reconquered_bari
}
title:c_siracusa = {
set_global_variable = ep3_reconquered_siracusa
}
title:c_roma = {
set_global_variable = ep3_reconquered_roma
}
title:c_ravenna = {
set_global_variable = ep3_reconquered_ravenna
}
title:c_tunis = {
set_global_variable = ep3_reconquered_tunis
}
title:c_tangiers = {
set_global_variable = ep3_reconquered_tangiers
}
title:c_murcia = {
set_global_variable = ep3_reconquered_murcia
}
title:c_lombardia = {
set_global_variable = ep3_reconquered_lombardia
}
title:c_trier = {
set_global_variable = ep3_reconquered_trier
}
title:c_northumberland = {
set_global_variable = ep3_reconquered_hadrian
}
title:c_chandax = {
set_global_variable = ep3_reconquered_chandax
}
title:c_tourraine = {
set_global_variable = ep3_reconquered_tourraine
}
}
change_influence = massive_influence_gain
add_prestige = major_prestige_gain
}
@ -462,6 +408,112 @@ ep3_emperor_yearly.2000 = {
}
after = {
if = {
limit = {
scope:county = title:c_antiocheia
}
set_global_variable = ep3_reconquered_antiocheia
}
else_if = {
limit = {
scope:county = title:c_jerusalem
}
set_global_variable = ep3_reconquered_jerusalem
}
else_if = {
limit = {
scope:county = title:c_alexandria
}
set_global_variable = ep3_reconquered_alexandria
}
else_if = {
limit = {
scope:county = title:c_abbadan
}
set_global_variable = ep3_reconquered_abbadan
}
else_if = {
limit = {
scope:county = title:c_edessa
}
set_global_variable = ep3_reconquered_edessa
}
else_if = {
limit = {
scope:county = title:c_bari
}
set_global_variable = ep3_reconquered_bari
}
else_if = {
limit = {
scope:county = title:c_siracusa
}
set_global_variable = ep3_reconquered_siracusa
}
else_if = {
limit = {
scope:county = title:c_roma
}
set_global_variable = ep3_reconquered_roma
}
else_if = {
limit = {
scope:county = title:c_ravenna
}
set_global_variable = ep3_reconquered_ravenna
}
else_if = {
limit = {
scope:county = title:c_tunis
}
set_global_variable = ep3_reconquered_tunis
}
else_if = {
limit = {
scope:county = title:c_tangiers
}
set_global_variable = ep3_reconquered_tangiers
}
else_if = {
limit = {
scope:county = title:c_murcia
}
set_global_variable = ep3_reconquered_murcia
}
else_if = {
limit = {
scope:county = title:c_lombardia
}
set_global_variable = ep3_reconquered_lombardia
}
else_if = {
limit = {
scope:county = title:c_trier
}
set_global_variable = ep3_reconquered_trier
}
else_if = {
limit = {
OR = {
scope:county = title:c_cumberland
scope:county = title:c_northumberland
}
}
set_global_variable = ep3_reconquered_hadrian
}
else_if = {
limit = {
scope:county = title:c_chandax
}
set_global_variable = ep3_reconquered_chandax
}
else_if = {
limit = {
scope:county = title:c_tourraine
}
set_global_variable = ep3_reconquered_tourraine
}
if = {
limit = {
NOT = {
@ -712,7 +764,7 @@ ep3_emperor_yearly.2020 = {
random_character_trait = {
limit = {
save_temporary_scope_as = temp_trait
trait_is_criminal_in_faith_trigger = { TRAIT = scope:temp_trait FAITH = root.faith GENDER_CHARACTER = root }
scoped_trait_is_criminal_in_faith_trigger = { TRAIT = scope:temp_trait FAITH = root.faith GENDER_CHARACTER = root }
}
save_scope_as = target_criminal_trait
}
@ -1466,7 +1518,7 @@ ep3_emperor_yearly.2050 = {
house = root.house
this != root
}
position = 0
position = 1
save_scope_as = last_emperor
}
}
@ -4312,10 +4364,7 @@ ep3_emperor_yearly.2170 = {
years = 50
}
}
if = {
limit = { government_has_flag = government_has_influence }
change_influence = major_influence_gain
}
change_influence = major_influence_gain
stress_impact = {
greedy = major_stress_impact_gain
paranoid = medium_stress_impact_gain
@ -6165,12 +6214,6 @@ ep3_emperor_yearly.2300 = {
faith != liege.primary_title.state_faith
}
set_character_faith = liege.primary_title.state_faith
if = {
limit = {
liege.primary_title.state_faith = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
stress_impact = {
zealous = major_stress_impact_gain
disloyal = major_stress_impact_gain
@ -6321,12 +6364,6 @@ ep3_emperor_yearly.2310 = {
faith != top_liege.primary_title.state_faith
}
set_character_faith = top_liege.primary_title.state_faith
if = {
limit = {
top_liege.primary_title.state_faith = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
change_influence = medium_influence_gain
stress_impact = {
zealous = major_stress_impact_gain
@ -6720,12 +6757,6 @@ ep3_emperor_yearly.2340 = {
option = {
name = ep3_emperor_yearly.2340.a
set_character_faith = top_liege.primary_title.state_faith
if = {
limit = {
top_liege.primary_title.state_faith = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
if = {
limit = {
top_liege = this
@ -6927,7 +6958,7 @@ ep3_emperor_yearly.2410 = {
}
send_interface_message = {
title = 2410_noble_family_tt
type = msg_new_noble_family
type = msg_new_powerful_family
left_icon = scope:noble_family_head
right_icon = scope:new_title
desc = 2410_noble_family_tt_desc
@ -6984,7 +7015,6 @@ ep3_emperor_yearly.2420 = {
title = 2420_noble_family_tt
type = msg_new_powerful_family
left_icon = scope:noble_family_head
right_icon = scope:noble_family_head.house
desc = 2420_noble_family_tt_desc
}
}

View file

@ -1469,12 +1469,6 @@ ep3_emperor_yearly.8040 = {
name = ep3_emperor_yearly.8040.a
add_piety = major_piety_gain
set_character_faith_with_conversion = faith:iconoclast
if = {
limit = {
faith:iconoclast = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
add_character_modifier = {
modifier = ep3_iconoclast_modifier
years = 15

View file

@ -2236,8 +2236,8 @@ ep3_governor_yearly.3020 = {
NOT = {
root = { is_incestuous_trigger = yes }
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:incestuous FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:incestuous FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = incestuous FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = incestuous FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
}
AND = {
has_trait = kinslayer
@ -2250,8 +2250,8 @@ ep3_governor_yearly.3020 = {
NOT = {
root = { has_trait = adulterer }
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:adulterer FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:adulterer FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = adulterer FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = adulterer FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
}
AND = {
has_trait = fornicator
@ -2263,24 +2263,24 @@ ep3_governor_yearly.3020 = {
}
}
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:fornicator FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:fornicator FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = fornicator FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = fornicator FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
}
AND = {
has_trait = deviant
NOT = {
root = { is_deviant_trigger = yes }
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:deviant FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:deviant FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
}
AND = {
has_trait = witch
NOT = {
root = { is_witch_trigger = yes }
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = witch FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = witch FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
}
AND = {
has_trait = sodomite
@ -2292,16 +2292,16 @@ ep3_governor_yearly.3020 = {
}
}
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:sodomite FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:sodomite FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = sodomite FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = sodomite FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
}
AND = {
has_trait = cannibal
NOT = {
root = { is_cannibal_trigger = yes }
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:cannibal FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:cannibal FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = cannibal FAITH = scope:emperor_temp.faith GENDER_CHARACTER = scope:emperor_temp }
trait_is_criminal_in_faith_trigger = { TRAIT = cannibal FAITH = root.faith GENDER_CHARACTER = scope:emperor_temp }
}
AND = {
root.culture = {
@ -2346,8 +2346,8 @@ ep3_governor_yearly.3020 = {
NOT = {
root = { is_incestuous_trigger = yes }
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:incestuous FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:incestuous FAITH = root.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = incestuous FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = incestuous FAITH = root.faith GENDER_CHARACTER = scope:emperor }
}
random_character_trait = {
limit = {
@ -2380,8 +2380,8 @@ ep3_governor_yearly.3020 = {
NOT = {
root = { has_trait = adulterer }
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:adulterer FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:adulterer FAITH = root.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = adulterer FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = adulterer FAITH = root.faith GENDER_CHARACTER = scope:emperor }
}
random_character_trait = {
limit = {
@ -2401,8 +2401,8 @@ ep3_governor_yearly.3020 = {
}
}
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:fornicator FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:fornicator FAITH = root.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = fornicator FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = fornicator FAITH = root.faith GENDER_CHARACTER = scope:emperor }
}
random_character_trait = {
limit = {
@ -2417,8 +2417,8 @@ ep3_governor_yearly.3020 = {
NOT = {
root = { is_deviant_trigger = yes }
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:deviant FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:deviant FAITH = root.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = root.faith GENDER_CHARACTER = scope:emperor }
}
random_character_trait = {
limit = {
@ -2433,8 +2433,8 @@ ep3_governor_yearly.3020 = {
NOT = {
root = { is_witch_trigger = yes }
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = root.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = witch FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = witch FAITH = root.faith GENDER_CHARACTER = scope:emperor }
}
random_character_trait = {
limit = {
@ -2454,8 +2454,8 @@ ep3_governor_yearly.3020 = {
}
}
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:sodomite FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:sodomite FAITH = root.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = sodomite FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = sodomite FAITH = root.faith GENDER_CHARACTER = scope:emperor }
}
random_character_trait = {
limit = {
@ -2470,8 +2470,8 @@ ep3_governor_yearly.3020 = {
NOT = {
root = { is_cannibal_trigger = yes }
}
trait_is_criminal_in_faith_trigger = { TRAIT = trait:cannibal FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = trait:cannibal FAITH = root.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = cannibal FAITH = scope:emperor.faith GENDER_CHARACTER = scope:emperor }
trait_is_criminal_in_faith_trigger = { TRAIT = cannibal FAITH = root.faith GENDER_CHARACTER = scope:emperor }
}
random_character_trait = {
limit = {
@ -5215,6 +5215,7 @@ ep3_governor_yearly.3050 = {
# by Jason Cantalini #
# 3060 #
#####################################
#Admin Imperial Succession event
ep3_governor_yearly.3060 = {
type = character_event
@ -5465,12 +5466,21 @@ ep3_governor_yearly.3060 = {
camera = camera_event_right_forward
}
lower_right_portrait = scope:previous_holder
trigger = {
exists = scope:emperor
scope:emperor = {
is_alive = yes
}
top_liege ?= {
this = scope:emperor
}
}
immediate = {
play_sound_effect = "event:/DLC/EP3/SFX/Stingers/Byzantine_Flavor/ep3_mx_sting_byzantineflavor_become_emperor"
tgp_save_realm_ceremonial_liege_effect = yes
if = {
limit = {
scope:ceremonial_liege ?= scope:emperor
scope:ceremonial_liege = scope:emperor
}
clear_saved_scope = ceremonial_liege
}
@ -5484,7 +5494,7 @@ ep3_governor_yearly.3060 = {
is_in_army = yes
}
#Is not at sea
location.county = {
location = {
exists = holder
}
}
@ -6886,6 +6896,7 @@ ep3_governor_yearly.3070 = {
limit = {
ep3_governor_yearly_3070_close_governor_trigger = yes
save_temporary_scope_as = temp_vassal
ep3_governor_yearly_3070_close_governor_trigger = yes
"scope:liege.capital_province.squared_distance(scope:temp_vassal.capital_province)" < 25000
}
save_scope_as = close_governor
@ -6948,16 +6959,10 @@ ep3_governor_yearly.3070 = {
trigger = {
is_landed = no
}
custom_tooltip = {
text = domicile_move_to_province.tt
}
change_influence = medium_influence_gain
hidden_effect = {
domicile = {
move_domicile = scope:liege.capital_province
}
domicile = {
move_domicile = scope:liege.capital_province
}
house = {
every_house_member = {
custom = custom.every_house_member

View file

@ -767,7 +767,6 @@ ep3_interactions_events.0031 = { # By Jason Cantalini
has_graphical_mena_culture_group_trigger = yes
has_graphical_african_culture_group_trigger = yes
has_building_gfx = indian_building_gfx
has_building_gfx = tibetan_building_gfx
}
}
NOT = { government_has_flag = government_is_tribal }
@ -783,7 +782,6 @@ ep3_interactions_events.0031 = { # By Jason Cantalini
has_graphical_mena_culture_group_trigger = yes
has_graphical_african_culture_group_trigger = yes
has_building_gfx = indian_building_gfx
has_building_gfx = tibetan_building_gfx
}
}
government_has_flag = government_is_tribal
@ -1551,13 +1549,6 @@ ep3_interactions_events.0111 = {
scope:actor.primary_title ?= this
scope:actor.capital_county.de_jure_liege ?= this
}
any_de_jure_county = {
holder.top_liege = scope:actor
NOR = {
scope:actor.capital_county ?= this
scope:actor.primary_title ?= this
}
}
is_noble_family_title = no
is_landless_type_title = no
}
@ -1571,26 +1562,16 @@ ep3_interactions_events.0111 = {
scope:actor.primary_title ?= this
scope:actor.capital_county.de_jure_liege ?= this
}
any_de_jure_county = {
holder.top_liege = scope:actor
NOR = {
scope:actor.capital_county ?= this
scope:actor.primary_title ?= this
}
}
is_noble_family_title = no
is_landless_type_title = no
}
add_to_list = purchased_titles
every_de_jure_county = {
limit = {
holder.top_liege = scope:actor
NOR = {
scope:actor.capital_county ?= this
scope:actor.primary_title ?= this
}
if = {
limit = { tier = tier_duchy }
every_de_jure_county = {
limit = { ep3_purchase_land_valid_county_trigger = yes }
add_to_list = purchased_titles
}
add_to_list = purchased_titles
}
}
}
@ -1613,13 +1594,7 @@ ep3_interactions_events.0111 = {
if = {
limit = { tier = tier_duchy }
every_de_jure_county = {
limit = {
holder.top_liege = scope:actor
NOR = {
scope:actor.capital_county ?= this
scope:actor.primary_title ?= this
}
}
limit = { ep3_purchase_land_valid_county_trigger = yes }
add_to_list = purchased_titles
}
}
@ -1633,7 +1608,6 @@ ep3_interactions_events.0111 = {
is_landless_type_title = no
}
save_scope_as = new_primary_title
save_scope_as = target
}
scope:actor = {
@ -1643,7 +1617,6 @@ ep3_interactions_events.0111 = {
random_character_artifact = {
limit = {
scope:recipient = { can_equip_artifact = prev }
artifact_can_be_gift_to_trigger = { RECIPIENT = scope:recipient }
}
save_scope_as = actor_artifact
}
@ -1698,7 +1671,6 @@ ep3_interactions_events.0111 = {
TITLE_LIST = purchased_titles
TYPE = granted
REASON = flag:purchased
ENNOBLED_ADVENTURER = flag:yes
}
}
scope:actor = {
@ -2053,34 +2025,6 @@ ep3_interactions_events.0111 = {
}
}
#Refuse all for 5 years
option = {
name = ep3_interactions_events.0111.refuse_5_years
scope:actor = {
send_interface_toast = {
left_icon = scope:actor
right_icon = scope:recipient
title = ep3_interactions_events.0111.refuse
scope:actor = {
add_opinion = {
target = scope:recipient
modifier = rejected_hiring_as_mercenaries
}
}
}
}
custom_tooltip = ep3_interactions_events.0111.refuse_5_years.tt
add_character_flag = {
flag = ai_hire_blocker
years = 5
}
ai_chance = {
base = 0
}
}
#Refuse
option = {
name = ep3_interactions_events.0111.f
@ -2166,7 +2110,6 @@ ep3_interactions_events.0112 = {
TITLE_LIST = purchased_titles
TYPE = granted
REASON = flag:purchased
ENNOBLED_ADVENTURER = flag:yes
}
# Extra purchase land specific
scope:actor = {
@ -2236,10 +2179,7 @@ ep3_interactions_events.0112 = {
add_defender = scope:recipient
}
scope:recipient = {
set_variable = {
name = joined_as_mercenary
value = scope:actor
}
add_character_flag = joined_as_mercenary
}
ai_chance = {
@ -2433,10 +2373,7 @@ ep3_interactions_events.0112 = {
add_defender = scope:recipient
}
scope:recipient = {
set_variable = {
name = joined_as_mercenary
value = scope:actor
}
add_character_flag = joined_as_mercenary
}
ai_chance = {
base = 1000
@ -2499,11 +2436,11 @@ ep3_interactions_events.0121 = {
limit = {
is_alive = yes
}
save_scope_as = laamp_temp
save_temporary_scope_as = laamp_temp
scope:employer = {
pay_treasury_or_gold = {
target = prev
value = scope:laamp_temp.ep3_hire_laamp_mercs_payment_value
value = ep3_hire_laamp_mercs_payment_value
}
}
if = {
@ -2538,16 +2475,16 @@ ep3_interactions_events.0121 = {
limit = {
is_alive = yes
}
save_temporary_scope_as = laamp_temp_b
save_temporary_scope_as = laamp_temp
save_scope_value_as = {
name = war_contribution_value
value = "scope:war.war_contribution(scope:laamp_temp_b)"
value = "scope:war.war_contribution(scope:laamp_temp)"
}
scope:employer = {
pay_treasury_or_gold = {
target = prev
value = {
add = scope:laamp_temp_b.ep3_hire_laamp_mercs_payment_value
add = ep3_hire_laamp_mercs_payment_value
divide = 2
}
}
@ -2688,7 +2625,7 @@ ep3_interactions_events.0122 = {
scope:employer = {
pay_treasury_or_gold = {
target = prev
value = scope:laamp_temp.ep3_hire_laamp_mercs_payment_value
value = ep3_hire_laamp_mercs_payment_value
}
}
}
@ -2699,7 +2636,7 @@ ep3_interactions_events.0122 = {
pay_treasury_or_gold = {
target = prev
value = {
add = scope:laamp_temp.ep3_hire_laamp_mercs_payment_value
add = ep3_hire_laamp_mercs_payment_value
divide = 2
}
}
@ -2962,10 +2899,10 @@ ep3_interactions_events.0500 = {
show_as_unavailable = { always = yes }
custom_description_no_bullet = {
text = evict_adventurer_consequences_tt
object = scope:actor
subject = scope:recipient
object = scope:recipient
subject = scope:actor
}
scope:actor = { custom_tooltip = evict_adventurer_casus_belli_tt }
custom_tooltip = evict_adventurer_casus_belli_tt
show_as_tooltip = {
reverse_add_opinion = {
target = scope:actor
@ -2981,20 +2918,17 @@ ep3_interactions_events.0500 = {
}
custom_description_no_bullet = {
text = evict_adventurer_consequences_tt
object = scope:actor
subject = scope:recipient
object = scope:recipient
subject = scope:actor
}
scope:actor = { custom_tooltip = evict_adventurer_casus_belli_tt }
custom_tooltip = evict_adventurer_forced_tt
custom_tooltip = evict_adventurer_forced_tt.part_2
show_as_tooltip = {
reverse_add_opinion = {
target = scope:actor
modifier = eviction_ignored_opinion
}
}
scope:actor = {
custom_tooltip = evict_adventurer_forced_tt
custom_tooltip = evict_adventurer_forced_tt.part_2
}
}
after = { trigger_event = ep3_interactions_events.0502 }
@ -3072,7 +3006,7 @@ ep3_interactions_events.0501 = {
interaction = imprison_interaction
actor = scope:expeller
recipient = scope:adventurer
send_threshold = decline
execute_threshold = decline
}
}
}
@ -4350,7 +4284,9 @@ ep3_interactions_events.0610 = {
ordered_succession_appointment_investors = {
candidate = root
limit = {
NOT = { house ?= root.house }
NOT = {
house ?= root.house
}
is_alive = yes
is_imprisoned = no
NOR = {
@ -4363,18 +4299,34 @@ ep3_interactions_events.0610 = {
}
if = {
limit = {
NOT = { exists = scope:new_landed_admin }
NOT = {
exists = scope:new_landed_admin
}
}
save_scope_as = new_landed_admin
}
if = {
limit = { scope:recipient.top_liege != this }
scope:recipient.top_liege = { save_scope_as = emperor }
limit = {
scope:recipient = {
top_liege != this
}
}
scope:recipient.top_liege = {
save_scope_as = emperor
}
}
else = {
scope:recipient = { save_scope_as = emperor }
scope:recipient = {
save_scope_as = emperor
}
}
show_as_tooltip = {
get_title = primary_title
domicile = {
add_domicile_building = estate_main_01
}
}
show_as_tooltip = { get_title = primary_title }
}
#I'm a new kinda landless now

View file

@ -5356,20 +5356,6 @@ scripted_effect 1025_set_contract_location_effect = {
}
1025_save_random_county_province_effect = { REGION = world_africa_east }
}
#Sahara
10 = {
trigger = {
scope:visiting_location = { geographical_region = world_africa_sahara }
}
1025_save_random_county_province_effect = { REGION = world_africa_sahara }
}
#Siberia
10 = {
trigger = {
scope:visiting_location = { geographical_region = world_siberia }
}
1025_save_random_county_province_effect = { REGION = world_siberia }
}
#West Steppe
10 = {
trigger = {
@ -5377,13 +5363,6 @@ scripted_effect 1025_set_contract_location_effect = {
}
1025_save_random_county_province_effect = { REGION = world_steppe_west }
}
#Central Steppe
10 = {
trigger = {
scope:visiting_location = { geographical_region = world_steppe_central }
}
1025_save_random_county_province_effect = { REGION = world_steppe_central }
}
#East Steppe
10 = {
trigger = {
@ -5391,76 +5370,6 @@ scripted_effect 1025_set_contract_location_effect = {
}
1025_save_random_county_province_effect = { REGION = world_steppe_east }
}
#Tarim
10 = {
trigger = {
scope:visiting_location = { geographical_region = world_steppe_tarim }
}
1025_save_random_county_province_effect = { REGION = world_steppe_tarim }
}
#Tibet
10 = {
trigger = {
scope:visiting_location = { geographical_region = world_tibet }
}
1025_save_random_county_province_effect = { REGION = world_tibet }
}
# Burma
10 = {
trigger = {
scope:visiting_location = { geographical_region = world_burma }
}
1025_save_random_county_province_effect = { REGION = world_burma }
}
# Mainland SE Asia
10 = {
trigger = {
scope:visiting_location = { geographical_region = world_asia_southeast_mainland }
}
1025_save_random_county_province_effect = { REGION = world_asia_southeast_mainland }
}
# Maritime SE Asia
10 = {
trigger = {
scope:visiting_location = { geographical_region = world_asia_southeast_islands }
}
1025_save_random_county_province_effect = { REGION = world_asia_southeast_islands }
}
#China
10 = {
trigger = {
scope:visiting_location = { geographical_region = world_asia_china }
}
1025_save_random_county_province_effect = { REGION = world_asia_china }
}
#Japan
10 = {
trigger = {
scope:visiting_location = { geographical_region = world_asia_japan }
}
1025_save_random_county_province_effect = { REGION = world_asia_japan }
}
#Korea
10 = {
trigger = {
scope:visiting_location = { geographical_region = world_asia_korea }
}
1025_save_random_county_province_effect = { REGION = world_asia_korea }
}
#Sakhalin-Hokkaido
10 = {
trigger = {
scope:visiting_location = { geographical_region = world_asia_sakhalin_hokkaido }
}
1025_save_random_county_province_effect = { REGION = world_asia_sakhalin_hokkaido }
}
#North East Asia
10 = {
trigger = {
scope:visiting_location = { geographical_region = world_asia_north_east }
}
1025_save_random_county_province_effect = { REGION = world_asia_north_east }
}
}
}
@ -15202,12 +15111,6 @@ ep3_laamp_decision_event.1045 = {
faith != scope:visiting_location.faith
}
set_character_faith = scope:visiting_location.faith
if = {
limit = {
scope:visiting_location.faith = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
stress_impact = {
base = minor_stress_impact_loss
zealous = major_stress_impact_gain
@ -20909,7 +20812,7 @@ ep3_laamp_decision_event.1120 = {
ep3_laamp_decision_event.1130 = { #begin city construction
type = character_event
title = ep3_laamp_decision_event.1130.t
window = big_event_window
window = visit_settlement_window
desc = ep3_laamp_decision_event.1130.desc
theme = stewardship
@ -20923,7 +20826,6 @@ ep3_laamp_decision_event.1130 = { #begin city construction
immediate = {
location = {
set_variable = laamp_city_construction
save_scope_as = city_location
}
}
@ -20933,15 +20835,10 @@ ep3_laamp_decision_event.1130 = { #begin city construction
custom_tooltip = ep3_laamp_decision_event.1130.a.desc
add_character_flag = laamp_city_builder
scope:city_location = {
if = {
limit = {
root = { has_variable = city_construction_is_temple_citadel }
}
begin_create_holding = { type = temple_citadel_holding }
}
else = {
begin_create_holding = { type = castle_holding }
begin_create_holding = {
type = castle_holding
}
set_variable = laamp_city_construction
}
trigger_event = {
@ -20971,19 +20868,10 @@ ep3_laamp_decision_event.1130 = { #begin city construction
ep3_laamp_decision_event.1131 = { #city is finished, wat do
type = character_event
title = ep3_laamp_decision_event.1131.t
window = big_event_window
desc = ep3_laamp_decision_event.1131.desc
theme = stewardship
override_background = {
trigger = {
location = {
culture = { has_building_gfx = southeast_asian_building_gfx }
}
}
reference = mpo_rural_village_asian
}
override_background = { reference = alley_day }
left_portrait = {
@ -20993,10 +20881,7 @@ ep3_laamp_decision_event.1131 = { #city is finished, wat do
trigger = {
scope:city_location = {
OR = {
has_holding_type = temple_citadel_holding
has_holding_type = castle_holding
}
has_holding_type = castle_holding
}
}
@ -21006,54 +20891,30 @@ ep3_laamp_decision_event.1131 = { #city is finished, wat do
value = current_year
}
if = {
limit = {
scope:city_location = { has_holding_type = temple_citadel_holding }
}
laamp_city_builder_construction_effect = {
FLAG = mill
BUILDING = watermills
}
laamp_city_builder_construction_effect = {
FLAG = temple_citadel
BUILDING = temple_citadel
}
laamp_city_builder_construction_effect = {
FLAG = manor
BUILDING = farm_estates
}
laamp_city_builder_construction_effect = {
FLAG = spice_plantation
BUILDING = spice_plantation
}
laamp_city_builder_construction_effect = {
FLAG = vihara_halls
BUILDING = vihara_halls
}
laamp_city_builder_construction_effect = {
FLAG = mill
BUILDING = watermills
}
else = {
laamp_city_builder_construction_effect = {
FLAG = mill
BUILDING = watermills
}
laamp_city_builder_construction_effect = {
FLAG = castle
BUILDING = castle
}
laamp_city_builder_construction_effect = {
FLAG = manor
BUILDING = farm_estates
}
laamp_city_builder_construction_effect = {
FLAG = workshops
BUILDING = workshops
}
laamp_city_builder_construction_effect = {
FLAG = prayer_hall
BUILDING = monastic_schools
}
laamp_city_builder_construction_effect = {
FLAG = castle
BUILDING = castle
}
laamp_city_builder_construction_effect = {
FLAG = manor
BUILDING = farm_estates
}
laamp_city_builder_construction_effect = {
FLAG = guilds
BUILDING = guild_halls
}
laamp_city_builder_construction_effect = {
FLAG = prayer_hall
BUILDING = monastic_schools
}
}
on_trigger_fail = {
@ -21061,7 +20922,9 @@ ep3_laamp_decision_event.1131 = { #city is finished, wat do
limit = {
scope:city_location = { #somehow, the city is still being built
has_ongoing_construction = yes
has_holding = no
NOT = {
has_holding = yes
}
}
}
trigger_event = {
@ -21074,13 +20937,8 @@ ep3_laamp_decision_event.1131 = { #city is finished, wat do
option = { #well, actually imma get the whole county
name = ep3_laamp_decision_event.1131.a
set_variable = {
name = holding_barony
value = scope:city_location.barony
}
add_pressed_claim = scope:city_location.county
add_pressed_claim = scope:city_location.barony
add_character_flag = temp_no_claim_war_cost
start_war = {
cb = claim_cb
target = scope:city_location.county.holder
@ -21088,7 +20946,6 @@ ep3_laamp_decision_event.1131 = { #city is finished, wat do
target_title = scope:city_location.county
target_title = scope:city_location.barony
}
remove_character_flag = temp_no_claim_war_cost
ai_chance = {
base = 0
@ -21105,8 +20962,6 @@ ep3_laamp_decision_event.1131 = { #city is finished, wat do
months = { 1 1 }
}
remove_character_flag = laamp_city_builder
remove_variable = city_construction_is_temple_citadel
remove_variable = city_construction_is_castle
ai_chance = {
base = 10
@ -21114,36 +20969,20 @@ ep3_laamp_decision_event.1131 = { #city is finished, wat do
}
after = {
remove_character_flag = laamp_city_builder_mill
remove_character_flag = laamp_city_builder_mill_upgrade
remove_character_flag = laamp_city_builder_temple_citadel
remove_character_flag = laamp_city_builder_temple_citadel_upgrade
remove_character_flag = laamp_city_builder_guilds
remove_character_flag = laamp_city_builder_guilds_upgrade
remove_character_flag = laamp_city_builder_castle
remove_character_flag = laamp_city_builder_castle_upgrade
remove_character_flag = laamp_city_builder_manor
remove_character_flag = laamp_city_builder_manor_upgrade
remove_character_flag = laamp_city_builder_spice_plantation
remove_character_flag = laamp_city_builder_spice_plantation_upgrade
remove_character_flag = laamp_city_builder_workshops
remove_character_flag = laamp_city_builder_workshops_upgrade
remove_character_flag = laamp_city_builder_vihara_halls
remove_character_flag = laamp_city_builder_vihara_halls_upgrade
remove_character_flag = laamp_city_builder_prayer_hall
remove_character_flag = laamp_city_builder_prayer_hall_upgrade
remove_character_flag = laamp_city_builder_mill
remove_character_flag = laamp_city_builder_mill_upgrade
}
}
scripted_trigger 1133_holding_still_under_construction_trigger = {
scope:city_location = {
has_ongoing_construction = yes
NOR = {
has_holding_type = temple_citadel_holding
has_holding_type = castle_holding
}
}
}
ep3_laamp_decision_event.1133 = { #get a mill
type = character_event
title = ep3_laamp_decision_event.1133.t
@ -21160,7 +20999,12 @@ ep3_laamp_decision_event.1133 = { #get a mill
}
trigger = {
1133_holding_still_under_construction_trigger = yes
scope:city_location = {
has_ongoing_construction = yes
NOT = {
has_holding_type = castle_holding
}
}
OR = {
stewardship >= 18
has_trait = architect
@ -21238,7 +21082,12 @@ ep3_laamp_decision_event.1134 = { #get more settlers, main building upgrade
}
trigger = {
1133_holding_still_under_construction_trigger = yes
scope:city_location = {
has_ongoing_construction = yes
NOT = {
has_holding_type = castle_holding
}
}
OR = {
piety_level >= 3
prestige_level >= 3
@ -21254,25 +21103,11 @@ ep3_laamp_decision_event.1134 = { #get more settlers, main building upgrade
option = { #cool
name = ep3_laamp_decision_event.1134.a
if = {
limit = { has_variable = city_construction_is_temple_citadel }
add_character_flag = laamp_city_builder_temple_citadel
scope:city_location = {
show_as_tooltip = { add_building = temple_citadel_02 }
}
add_character_flag = laamp_city_builder_castle
scope:city_location = {
show_as_tooltip = { add_building = castle_02 }
}
else = {
add_character_flag = laamp_city_builder_castle
scope:city_location = {
show_as_tooltip = { add_building = castle_02 }
}
}
remove_short_term_gold = {
value = {
add = medium_gold_value
multiply = 2
}
}
remove_short_term_gold = 20
if = {
limit = {
piety_level >= 3
@ -21291,25 +21126,11 @@ ep3_laamp_decision_event.1134 = { #get more settlers, main building upgrade
option = { #go for it!
name = ep3_laamp_decision_event.1134.b
if = {
limit = { has_variable = city_construction_is_temple_citadel }
add_character_flag = laamp_city_builder_temple_citadel_upgrade
scope:city_location = {
show_as_tooltip = { add_building = temple_citadel_03 }
}
}
else = {
add_character_flag = laamp_city_builder_castle_upgrade
scope:city_location = {
show_as_tooltip = { add_building = castle_03 }
}
}
remove_short_term_gold = {
value = {
add = major_gold_value
multiply = 2
}
add_character_flag = laamp_city_builder_castle_upgrade
scope:city_location = {
show_as_tooltip = { add_building = castle_03 }
}
remove_short_term_gold = 40
if = {
limit = {
piety_level >= 3
@ -21363,12 +21184,17 @@ ep3_laamp_decision_event.1135 = { #argue for more favorable land assigment from
}
trigger = {
1133_holding_still_under_construction_trigger = yes
scope:city_location = {
has_ongoing_construction = yes
NOT = {
has_holding_type = castle_holding
}
}
scope:city_location.county.holder = {
reverse_opinion = {
target = root
value >= 40
}
target = root
value >= 40
}
}
NOR = {
scope:city_location = {
@ -21426,7 +21252,7 @@ ep3_laamp_decision_event.1135 = { #argue for more favorable land assigment from
}
ep3_laamp_decision_event.1136 = { #utilize connections, get merchant building
ep3_laamp_decision_event.1136 = { #utilize connections, get guildhall
type = character_event
title = ep3_laamp_decision_event.1136.t
window = visit_settlement_window
@ -21444,7 +21270,12 @@ ep3_laamp_decision_event.1136 = { #utilize connections, get merchant building
}
trigger = {
1133_holding_still_under_construction_trigger = yes
scope:city_location = {
has_ongoing_construction = yes
NOT = {
has_holding_type = castle_holding
}
}
prestige_level >= 3
}
@ -21457,17 +21288,10 @@ ep3_laamp_decision_event.1136 = { #utilize connections, get merchant building
option = { #cool
name = ep3_laamp_decision_event.1136.a
if = {
limit = { has_variable = city_construction_is_temple_citadel }
add_character_flag = laamp_city_builder_spice_plantation
add_character_flag = laamp_city_builder_guilds
show_as_tooltip = {
scope:city_location = {
show_as_tooltip = { add_building = spice_plantation_01 }
}
}
else = {
add_character_flag = laamp_city_builder_workshops
scope:city_location = {
show_as_tooltip = { add_building = workshops_01 }
add_building = guild_halls_01
}
}
add_prestige = -400
@ -21481,17 +21305,10 @@ ep3_laamp_decision_event.1136 = { #utilize connections, get merchant building
option = { #go for it!
name = ep3_laamp_decision_event.1136.b
if = {
limit = { has_variable = city_construction_is_temple_citadel }
add_character_flag = laamp_city_builder_spice_plantation_upgrade
add_character_flag = laamp_city_builder_guilds_upgrade
show_as_tooltip = {
scope:city_location = {
show_as_tooltip = { add_building = spice_plantation_03 }
}
}
else = {
add_character_flag = laamp_city_builder_workshops_upgrade
scope:city_location = {
show_as_tooltip = { add_building = workshops_03 }
add_building = guild_halls_03
}
}
add_prestige = -600
@ -21535,23 +21352,21 @@ ep3_laamp_decision_event.1137 = { #utilize connections, get prayer hall
}
trigger = {
1133_holding_still_under_construction_trigger = yes
scope:city_location = {
has_ongoing_construction = yes
NOT = {
has_holding_type = castle_holding
}
}
piety_level >= 3
}
option = { #cool
name = ep3_laamp_decision_event.1137.a
if = {
limit = { has_variable = city_construction_is_temple_citadel }
add_character_flag = laamp_city_builder_vihara_halls
add_character_flag = laamp_city_builder_prayer_hall
show_as_tooltip = {
scope:city_location = {
show_as_tooltip = { add_building = vihara_halls_01 }
}
}
else = {
add_character_flag = laamp_city_builder_prayer_hall
scope:city_location = {
show_as_tooltip = { add_building = monastic_schools_01 }
add_building = monastic_schools_01
}
}
add_piety = -400
@ -21565,17 +21380,10 @@ ep3_laamp_decision_event.1137 = { #utilize connections, get prayer hall
option = { #go for it!
name = ep3_laamp_decision_event.1137.b
if = {
limit = { has_variable = city_construction_is_temple_citadel }
add_character_flag = laamp_city_builder_vihara_halls_upgrade
add_character_flag = laamp_city_builder_prayer_hall_upgrade
show_as_tooltip = {
scope:city_location = {
show_as_tooltip = { add_building = vihara_halls_03 }
}
}
else = {
add_character_flag = laamp_city_builder_prayer_hall_upgrade
scope:city_location = {
show_as_tooltip = { add_building = monastic_schools_03 }
add_building = monastic_schools_03
}
}
add_piety = -600

View file

@ -107,12 +107,10 @@ ep3_laamps.0001 = {
}
immediate = {
play_music_cue = adventure_begin_cue
add_character_flag = {
flag = become_laamp_event_cooldown
days = 5
}
clear_saved_scope = lost_primary_title
# Save highest lost title for loc
ordered_in_list = {
list = target_titles
@ -126,7 +124,6 @@ ep3_laamps.0001 = {
NOT = { exists = scope:lost_primary_title }
exists = scope:conquered
}
clear_saved_scope = lost_primary_title
scope:conquered = { save_scope_as = lost_primary_title }
}
# Find alternative rulers to play as
@ -224,7 +221,6 @@ ep3_laamps.0002 = {
random = {
chance = scope:ai_laamp_chance
# Plus for our memory variable.
clear_saved_scope = lost_primary_title
ordered_in_list = {
list = target_titles
order_by = tier
@ -282,9 +278,11 @@ ep3_laamps.0003 = {
limit = {
NOT = { has_relation_rival = scope:adventurer }
}
set_relation_rival = {
target = scope:adventurer
reason = rival_conquered_me
scope:adventurer = {
set_relation_rival = {
target = root
reason = rival_conquered_me
}
}
}
scope:adventurer = { create_landless_adventurer_title_tooltip_effect = yes }
@ -328,12 +326,10 @@ ep3_laamps.0004 = {
}
immediate = {
play_music_cue = adventure_begin_cue
add_character_flag = {
flag = become_laamp_event_cooldown
days = 5
}
clear_saved_scope = lost_primary_title
var:deposed_primary_title ?= {
# Save highest lost title for loc
save_scope_as = conquered
@ -434,12 +430,10 @@ ep3_laamps.0005 = {
}
immediate = {
play_music_cue = adventure_begin_cue
add_character_flag = {
flag = become_laamp_event_cooldown
days = 5
}
clear_saved_scope = lost_primary_title
var:deposed_primary_title ?= {
# Save highest lost title for loc
save_scope_as = conquered
@ -606,7 +600,6 @@ ep3_laamps.0010 = {
}
immediate = {
play_music_cue = adventure_begin_cue
add_character_flag = {
flag = become_laamp_event_cooldown
days = 5
@ -792,7 +785,6 @@ ep3_laamps.0020 = {
}
immediate = {
play_music_cue = adventure_begin_cue
add_character_flag = {
flag = become_laamp_event_cooldown
days = 5
@ -800,7 +792,6 @@ ep3_laamps.0020 = {
save_scope_as = adventurer
liege = { save_scope_as = liege }
# Save highest lost title for loc
clear_saved_scope = lost_primary_title
ordered_held_title = {
order_by = tier
position = 0
@ -954,7 +945,6 @@ ep3_laamps.0021 = {
immediate = {
save_scope_as = adventurer
liege = { save_scope_as = liege }
clear_saved_scope = lost_primary_title
# Save highest lost title for loc
ordered_held_title = {
order_by = tier
@ -1096,7 +1086,6 @@ ep3_laamps.0030 = {
trigger = { exists = scope:laamp_inheritor }
immediate = {
play_music_cue = adventure_begin_cue
# Save scopes for loc
primary_title = { save_scope_as = old_primary_title }
capital_province = { save_scope_as = old_capital_province }
@ -1351,7 +1340,6 @@ ep3_laamps.0040 = {
}
immediate = {
play_music_cue = adventure_begin_cue
add_character_flag = {
flag = become_laamp_event_cooldown
days = 5
@ -1748,13 +1736,7 @@ ep3_laamps.0100 = {
type = character_event
title = ep3_laamps.0100.t
desc = {
first_valid = {
triggered_desc = {
trigger = { government_has_flag = government_is_nomadic }
desc = ep3_laamps.0100.desc_nomadic
}
desc = ep3_laamps.0100.desc
}
desc = ep3_laamps.0100.desc
first_valid = {
triggered_desc = {
trigger = { scope:new_liege ?= scope:recipient }
@ -1768,21 +1750,13 @@ ep3_laamps.0100 = {
}
first_valid = {
triggered_desc = {
trigger = {
NOT = { government_has_flag = government_is_nomadic }
exists = scope:new_liege
}
trigger = { exists = scope:new_liege }
desc = ep3_laamps.0100.unpopular
}
triggered_desc = {
trigger = {
NOT = { government_has_flag = government_is_nomadic }
}
desc = ep3_laamps.0100.fallback
}
desc = ep3_laamps.0100.fallback
}
}
theme = crown
theme = realm
left_portrait = {
character = root
animation = war_over_tie
@ -2920,7 +2894,6 @@ ep3_laamps.0800 = { # Player adventurer has gained a landed title
TITLE_LIST = landed_titles
TYPE = granted
REASON = flag:granted
ENNOBLED_ADVENTURER = flag:yes
}
if = {
limit = {
@ -6438,7 +6411,6 @@ ep3_laamps.5035 = {
NOT = {
has_artifact_modifier = artifact_guide_map_modifier
}
artifact_can_be_gift_to_trigger = { RECIPIENT = scope:guide }
}
}
random_character_artifact = {
@ -6446,7 +6418,6 @@ ep3_laamps.5035 = {
NOT = {
has_artifact_modifier = artifact_guide_map_modifier
}
artifact_can_be_gift_to_trigger = { RECIPIENT = scope:guide }
}
weight = {
base = 1
@ -8853,7 +8824,6 @@ ep3_laamps.7004 = {
TITLE_LIST = landed_titles
TYPE = granted
REASON = flag:granted
ENNOBLED_ADVENTURER = flag:yes
}
every_in_list = {
list = zichia_names

View file

@ -822,7 +822,6 @@ ep3_laamps.8040 = {
name = ep3_laamps.8040.c
trigger = {
domicile = {
free_external_domicile_building_slots >= 1
NOT = {
has_domicile_building = baggage_train_kennel
}
@ -2128,9 +2127,7 @@ ep3_laamps.8101 = {
trigger = {
any_claim = {
count > 1
exists = holder
tier >= tier_kingdom
holder != scope:petitioned_ruler
}
NOT = {
has_variable = legitimist_claimed_title
@ -2140,9 +2137,7 @@ ep3_laamps.8101 = {
immediate = {
ordered_claim = {
limit = {
exists = holder
tier >= tier_kingdom
holder != scope:petitioned_ruler
}
order_by = tier
max = 4
@ -2278,9 +2273,7 @@ ep3_laamps.8102 = {
}
random_claim = {
limit = {
exists = holder
tier >= tier_kingdom
holder != scope:petitioned_ruler
}
save_scope_as = claimed_title
}

View file

@ -23,7 +23,6 @@ scripted_trigger suitable_follower_marriage_character_trigger = {
is_concubine = no
age <= 50
health >= fine_health
is_faith_dominant_gender = no
NOR = {
house = root.house
is_close_family_of = root

View file

@ -954,7 +954,7 @@ ep3_laamp_flavour_ewan.0011 = {
title = ep3_laamp_flavour_ewan.0011.a.tt.failure
left_icon = scope:mockee
scope:mockee = {
add_opinion = {
reverse_add_opinion = {
target = root
modifier = humiliated_opinion
opinion = -30
@ -1021,7 +1021,7 @@ ep3_laamp_flavour_ewan.0011 = {
title = ep3_laamp_flavour_ewan.0011.b.tt.failure
left_icon = scope:mocker
scope:mocker = {
add_opinion = {
reverse_add_opinion = {
target = root
modifier = humiliated_opinion
opinion = -30
@ -8980,29 +8980,48 @@ ep3_laamp_flavour_ewan.2002 = {
}
immediate = {
# Sort our courtiers.
## First, get our scope:follower_1 candidate.
random_courtier = {
while = {
count = 10
limit = {
ep3_laamp_flavour_ewan_2001_courtier_1_trigger = yes
save_temporary_scope_as = char_temp
root = {
any_courtier = {
ep3_laamp_flavour_ewan_2001_courtier_2_trigger = { TARGET = scope:char_temp }
NOT = { exists = scope:follower_2 }
}
# Sort our courtiers.
## First, get our scope:follower_1 candidate.
random_courtier = {
limit = {
ep3_laamp_flavour_ewan_2001_courtier_1_trigger = yes
NOT = { is_in_list = checked_courtier_1_candidates_list }
}
save_scope_as = follower_1
add_to_list = checked_courtier_1_candidates_list
}
## Now, find a scope:follower_2 from their opinion of the scope:follower_1 candidates.
if = {
limit = { exists = scope:follower_1 }
ordered_courtier = {
limit = {
ep3_laamp_flavour_ewan_2001_courtier_2_trigger = { TARGET = scope:follower_1 }
}
order_by = "opinion(scope:follower_1)"
save_scope_as = follower_2
}
# And, wipe our checks so we can iterate the loop if required.
if = {
limit = {
NOT = { exists = scope:follower_2 }
}
clear_saved_scope = follower_1
}
}
save_scope_as = follower_1
}
## Now, find a scope:follower_2 from their opinion of the scope:follower_1 candidates.
ordered_courtier = {
# If we've actually got our dudes, proceed to the event.
if = {
limit = {
ep3_laamp_flavour_ewan_2001_courtier_2_trigger = { TARGET = scope:follower_1 }
exists = scope:follower_1
exists = scope:follower_2
}
order_by = "opinion(scope:follower_1)"
save_scope_as = follower_2
trigger_event = ep3_laamp_flavour_ewan.2001
}
trigger_event = ep3_laamp_flavour_ewan.2001
}
}
@ -9029,7 +9048,7 @@ scripted_trigger ep3_laamp_flavour_ewan_2011_secret_lover_would_be_affair_trigge
NOT = {
trait_is_shunned_or_criminal_in_faith_trigger = {
FAITH = faith
TRAIT = trait:adulterer
TRAIT = adulterer
GENDER_CHARACTER = root
}
}
@ -10477,7 +10496,9 @@ scripted_trigger ep3_laamp_flavour_ewan_2021_valid_courtier_for_own_marriage_pre
# Must have matching sexualities & the right legalities in place.
is_attracted_to_gender_of = $TARGET$
$TARGET$ = { is_attracted_to_gender_of = prev }
could_marry_character_trigger = { CHARACTER = $TARGET$ }
allowed_to_marry_character_gender_trigger = { CHARACTER = $TARGET$ }
# Avoid pairing up people that are already somehow related to each other
NOT = { is_close_or_extended_family_of = $TARGET$ }
# Ensure our ages aren't too far apart — not that this couldn't happen, but huge age gaps are a big verisimilitude problem for many players.
age >= {
value = $TARGET$.age
@ -10828,39 +10849,58 @@ ep3_laamp_flavour_ewan.2022 = {
}
immediate = {
# Alright, let's select our lovebirds.
## First, pick a scope:follower_1 candidate.
random_courtier = {
while = {
count = 10
limit = {
ep3_laamp_flavour_ewan_2021_valid_courtier_for_own_marriage_general_trigger = yes
save_temporary_scope_as = char_temp
root = {
any_courtier = {
ep3_laamp_flavour_ewan_2021_valid_courtier_for_own_marriage_precise_trigger = { TARGET = scope:char_temp }
NOT = { exists = scope:follower_2 }
}
# Alright, let's select our lovebirds.
## First, pick a scope:follower_1 candidate.
random_courtier = {
limit = {
ep3_laamp_flavour_ewan_2021_valid_courtier_for_own_marriage_general_trigger = yes
NOT = { is_in_list = checked_courtier_1_candidates_list }
}
save_scope_as = follower_1
add_to_list = checked_courtier_1_candidates_list
}
## Now, nab a suitable pair.
if = {
limit = { exists = scope:follower_1 }
random_courtier = {
limit = {
ep3_laamp_flavour_ewan_2021_valid_courtier_for_own_marriage_precise_trigger = { TARGET = scope:follower_1 }
}
weight = {
opinion_modifier = {
opinion_target = scope:follower_1
multiplier = 0.5
}
opinion_modifier = {
who = scope:follower_1
opinion_target = this
multiplier = 0.5
}
}
save_scope_as = follower_2
}
# And, wipe our checks so we can iterate the loop if required.
if = {
limit = {
NOT = { exists = scope:follower_2 }
}
clear_saved_scope = follower_1
}
}
save_scope_as = follower_1
}
## Now, nab a suitable pair.
random_courtier = {
# If we've actually got our dudes, proceed to the event.
if = {
limit = {
ep3_laamp_flavour_ewan_2021_valid_courtier_for_own_marriage_precise_trigger = { TARGET = scope:follower_1 }
exists = scope:follower_1
exists = scope:follower_2
}
weight = {
opinion_modifier = {
opinion_target = scope:follower_1
multiplier = 0.5
}
opinion_modifier = {
who = scope:follower_1
opinion_target = this
multiplier = 0.5
}
}
save_scope_as = follower_2
trigger_event = ep3_laamp_flavour_ewan.2021
}
trigger_event = ep3_laamp_flavour_ewan.2021
}
}
@ -11216,7 +11256,7 @@ scripted_trigger ep3_laamp_flavour_ewan_2041_valid_courtier_to_gain_lover_genera
OR = {
trait_is_criminal_in_faith_trigger = {
FAITH = faith
TRAIT = trait:adulterer
TRAIT = adulterer
GENDER_CHARACTER = this
}
AND = {
@ -11506,49 +11546,68 @@ ep3_laamp_flavour_ewan.2042 = {
save_temporary_scope_as = char_temp
root = {
any_courtier = {
ep3_laamp_flavour_ewan_2021_valid_courtier_for_own_marriage_precise_trigger = { TARGET = scope:char_temp }
ep3_laamp_flavour_ewan_2041_valid_courtier_to_gain_lover_precise_trigger = { TARGET = scope:char_temp }
}
}
}
}
immediate = {
# Alright, let's select our lovebirds.
## First up, pick an appropriate character.
random_courtier = {
while = {
count = 10
limit = {
ep3_laamp_flavour_ewan_2041_valid_courtier_to_gain_lover_general_trigger = yes
save_temporary_scope_as = char_temp
root = {
any_courtier = {
ep3_laamp_flavour_ewan_2041_valid_courtier_to_gain_lover_precise_trigger = { TARGET = scope:char_temp }
NOT = { exists = scope:follower_2 }
}
# Alright, let's select our lovebirds.
## First up, pick an appropriate character.
random_courtier = {
limit = {
ep3_laamp_flavour_ewan_2041_valid_courtier_to_gain_lover_general_trigger = yes
NOT = { is_in_list = checked_courtier_1_candidates_list }
}
save_scope_as = follower_1
add_to_list = checked_courtier_1_candidates_list
}
## Now, nab a suitable pair.
if = {
limit = { exists = scope:follower_1 }
random_courtier = {
limit = {
ep3_laamp_flavour_ewan_2021_valid_courtier_for_own_marriage_precise_trigger = { TARGET = scope:follower_1 }
}
weight = {
modifier = {
add = attraction
always = yes
}
modifier = {
add = 50
has_trait = lustful
}
modifier = {
add = -50
has_trait = chaste
}
}
save_scope_as = follower_2
}
# And, wipe our checks so we can iterate the loop if required.
if = {
limit = {
NOT = { exists = scope:follower_2 }
}
clear_saved_scope = follower_1
}
}
save_scope_as = follower_1
}
random_courtier = {
limit = {
ep3_laamp_flavour_ewan_2021_valid_courtier_for_own_marriage_precise_trigger = { TARGET = scope:follower_1 }
}
weight = {
modifier = {
add = attraction
always = yes
}
modifier = {
add = 50
has_trait = lustful
}
modifier = {
add = -50
has_trait = chaste
}
}
save_scope_as = follower_2
}
# If we've actually got our dudes, proceed to the event.
trigger_event = ep3_laamp_flavour_ewan.2041
if = {
limit = {
exists = scope:follower_1
exists = scope:follower_2
}
trigger_event = ep3_laamp_flavour_ewan.2041
}
}
}
@ -11994,66 +12053,85 @@ ep3_laamp_flavour_ewan.2062 = {
}
immediate = {
# Find our best courtiers.
## First, grabbing a valid annoyed char.
random_courtier = {
while = {
count = 10
limit = {
ep3_laamp_flavour_ewan_2061_valid_angry_courtier_general_trigger = yes
save_temporary_scope_as = char_temp
root = {
any_courtier = {
ep3_laamp_flavour_ewan_2061_valid_angry_courtier_precise_trigger = { TARGET = scope:char_temp }
NOT = { exists = scope:thief }
}
# Find our best courtiers.
## First, grabbing a valid annoyed char.
random_courtier = {
limit = {
ep3_laamp_flavour_ewan_2061_valid_angry_courtier_general_trigger = yes
NOT = { is_in_list = checked_courtier_1_candidates_list }
}
save_scope_as = victim
add_to_list = checked_courtier_1_candidates_list
}
## Then processing out a good thief.
if = {
limit = { exists = scope:victim }
random_courtier = {
limit = {
ep3_laamp_flavour_ewan_2061_valid_angry_courtier_precise_trigger = { TARGET = scope:victim }
}
weight = {
modifier = {
add = 20
has_trait = wrathful
}
modifier = {
add = 15
has_trait = deceitful
}
modifier = {
add = 5
has_trait = arrogant
}
modifier = {
add = 10
has_trait = arbitrary
}
modifier = {
add = -20
has_trait = just
}
modifier = {
add = 5
has_trait = fickle
}
modifier = {
add = 15
has_trait = vengeful
}
modifier = {
add = -15
has_trait = forgiving
}
modifier = {
add = -15
has_trait = honest
}
}
save_scope_as = thief
}
# And, wipe our checks so we can iterate the loop if required.
if = {
limit = {
NOT = { exists = scope:thief }
}
clear_saved_scope = victim
}
}
save_scope_as = victim
}
## Then processing out a good thief.
random_courtier = {
# If we've actually got our dudes, proceed to the event.
if = {
limit = {
ep3_laamp_flavour_ewan_2061_valid_angry_courtier_precise_trigger = { TARGET = scope:victim }
exists = scope:victim
exists = scope:thief
}
weight = {
modifier = {
add = 20
has_trait = wrathful
}
modifier = {
add = 15
has_trait = deceitful
}
modifier = {
add = 5
has_trait = arrogant
}
modifier = {
add = 10
has_trait = arbitrary
}
modifier = {
add = -20
has_trait = just
}
modifier = {
add = 5
has_trait = fickle
}
modifier = {
add = 15
has_trait = vengeful
}
modifier = {
add = -15
has_trait = forgiving
}
modifier = {
add = -15
has_trait = honest
}
}
save_scope_as = thief
trigger_event = ep3_laamp_flavour_ewan.2061
}
trigger_event = ep3_laamp_flavour_ewan.2061
}
}
@ -12631,7 +12709,6 @@ ep3_laamp_flavour_ewan.2081 = {
scripted_trigger ep3_laamp_flavour_ewan_2091_valid_angry_courtier_general_trigger = {
ep3_laamp_flavour_ewan_available_courtier_trigger = yes
is_of_major_or_minor_interest_trigger = { CHARACTER = root }
# Mustn't have a deescalatory personality.
NOR = {
has_trait = patient
@ -12683,14 +12760,12 @@ ep3_laamp_flavour_ewan.2091 = {
left_portrait = {
character = scope:attacker
animation = random_weapon_aggressive
camera = camera_event_very_left
}
right_portrait = {
character = scope:defender
animation = shock
}
override_background = { reference = ep3_campfire }
override_effect_2d = { reference = smoke }
immediate = {
if = {
@ -12964,70 +13039,90 @@ ep3_laamp_flavour_ewan.2093 = {
}
immediate = {
# Find our best courtiers.
## First, grab a suitable candidate.
random_courtier = {
while = {
count = 10
limit = {
ep3_laamp_flavour_ewan_2091_valid_angry_courtier_general_trigger = yes
save_temporary_scope_as = char_temp
root = {
any_courtier = {
ep3_laamp_flavour_ewan_2091_valid_angry_courtier_precise_trigger = { TARGET = scope:char_temp }
NOT = { exists = scope:attacker }
}
# Find our best courtiers.
## First, grab a suitable candidate.
random_courtier = {
limit = {
ep3_laamp_flavour_ewan_2091_valid_angry_courtier_general_trigger = yes
NOT = { is_in_list = checked_courtier_1_candidates_list }
}
save_scope_as = defender
add_to_list = checked_courtier_1_candidates_list
}
## Then processing out a good one.
if = {
limit = { exists = scope:defender }
random_courtier = {
limit = {
ep3_laamp_flavour_ewan_2091_valid_angry_courtier_precise_trigger = { TARGET = scope:defender }
}
weight = {
modifier = {
add = 20
has_trait = wrathful
}
modifier = {
add = 15
has_trait = deceitful
}
modifier = {
add = 5
has_trait = arrogant
}
modifier = {
add = 10
has_trait = arbitrary
}
modifier = {
add = -20
has_trait = just
}
modifier = {
add = 5
has_trait = fickle
}
modifier = {
add = 15
has_trait = vengeful
}
modifier = {
add = -15
has_trait = forgiving
}
modifier = {
add = -15
has_trait = honest
}
opinion_modifier = {
who = this
opinion_target = scope:defender
multiplier = -0.5
}
}
save_scope_as = attacker
}
# And, wipe our checks so we can iterate the loop if required.
if = {
limit = {
NOT = { exists = scope:attacker }
}
clear_saved_scope = defender
}
}
save_scope_as = defender
}
random_courtier = {
# If we've actually got our dudes, proceed to the event.
if = {
limit = {
ep3_laamp_flavour_ewan_2091_valid_angry_courtier_precise_trigger = { TARGET = scope:defender }
exists = scope:defender
exists = scope:attacker
}
weight = {
modifier = {
add = 20
has_trait = wrathful
}
modifier = {
add = 15
has_trait = deceitful
}
modifier = {
add = 5
has_trait = arrogant
}
modifier = {
add = 10
has_trait = arbitrary
}
modifier = {
add = -20
has_trait = just
}
modifier = {
add = 5
has_trait = fickle
}
modifier = {
add = 15
has_trait = vengeful
}
modifier = {
add = -15
has_trait = forgiving
}
modifier = {
add = -15
has_trait = honest
}
opinion_modifier = {
who = this
opinion_target = scope:defender
multiplier = -0.5
}
}
save_scope_as = attacker
trigger_event = ep3_laamp_flavour_ewan.2091
}
trigger_event = ep3_laamp_flavour_ewan.2091
}
}
@ -17746,41 +17841,39 @@ ep3_laamp_flavour_ewan.4041 = {
value = flag:earthquake
}
# If this isn't the direct holding of a player, cause some serious damage.
location.county = {
holder = {
if = {
limit = {
is_ai = yes
}
random_courtier = {
limit = { location = prev.location }
death = { death_reason = death_consumed_by_earthquake }
}
random_courtier = {
limit = { location = prev.location }
death = { death_reason = death_consumed_by_earthquake }
}
random_courtier = {
limit = { location = prev.location }
death = { death_reason = death_consumed_by_earthquake }
}
random_courtier = {
limit = { location = prev.location }
death = { death_reason = death_consumed_by_earthquake }
}
prev = {
change_development_level = {
integer_range = {
min = -35
max = -10
}
location.county.holder = {
if = {
limit = {
NOT = { is_ai = yes }
}
random_courtier = {
limit = { location = prev.location }
death = { death_reason = death_consumed_by_earthquake }
}
random_courtier = {
limit = { location = prev.location }
death = { death_reason = death_consumed_by_earthquake }
}
random_courtier = {
limit = { location = prev.location }
death = { death_reason = death_consumed_by_earthquake }
}
random_courtier = {
limit = { location = prev.location }
death = { death_reason = death_consumed_by_earthquake }
}
prev = {
change_development_level = {
integer_range = {
min = -35
max = -10
}
change_county_control = -100
}
random = {
chance = 20
death = { death_reason = death_consumed_by_earthquake }
}
change_county_control = -100
}
random = {
chance = 20
death = { death_reason = death_consumed_by_earthquake }
}
}
}

View file

@ -72,12 +72,6 @@ ep3_roman_restoration.0100 = {
}
}
set_character_faith = faith:hellenic_pagan
if = {
limit = {
faith:hellenic_pagan = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
primary_title = { set_state_faith = faith:hellenic_pagan }
every_held_title = {
custom = custom.every_held_county
@ -134,12 +128,6 @@ ep3_roman_restoration.0100 = {
}
}
set_character_faith = faith:hellenic_pagan
if = {
limit = {
faith:hellenic_pagan = { has_doctrine = doctrine_monotheist }
}
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
}
primary_title = { set_state_faith = faith:hellenic_pagan }
every_held_title = {
custom = custom.every_held_county

View file

@ -3405,7 +3405,6 @@ ep3_story_cycle_admin_eunuch.2060 = {
court_position_generator_effect = {
VAR = target
EMPLOYER = root
ONLY_EMPTY = no
}
}
}
@ -3521,7 +3520,6 @@ ep3_story_cycle_admin_eunuch.2061 = {
court_position_generator_effect = {
VAR = target
EMPLOYER = root
ONLY_EMPTY = no
}
}
}

View file

@ -526,7 +526,6 @@ grand_ambitions.0003 = {
immediate = {
# Create Adventurer
save_scope_as = adventurer
clear_saved_scope = lost_primary_title
hidden_effect = {
# Plus for our memory variable.
scope:story.var:target_title = { save_scope_as = lost_primary_title }

View file

@ -944,24 +944,31 @@ ep3_story_cycle_harrying.1011 = {
if = { #Ugly if/else block starts here!
limit = {
scope:captured = {
can_marry_common_trigger = yes
is_married = no
is_betrothed = no
}
}
if = { #Grab a courtier
limit = {
any_courtier = {
can_marry_character_trigger = { CHARACTER = scope:captured }
sex_opposite_of = scope:captured
culture = culture:norman
age > scope:captured.age_plus_10
age < scope:captured.age_minus_10
AND = {
scope:captured = { is_female = yes }
any_courtier = {
is_female = no
is_married = no
is_betrothed = no
is_adult = yes
culture = culture:norman
age > scope:captured.age_plus_10
age < scope:captured.age_minus_10
}
}
}
random_courtier = {
limit = {
sex_opposite_of = scope:captured
can_marry_character_trigger = { CHARACTER = scope:captured }
is_female = no
is_married = no
is_betrothed = no
is_adult = yes
culture = culture:norman
age > scope:captured.age_plus_10
age < scope:captured.age_minus_10
@ -980,6 +987,45 @@ ep3_story_cycle_harrying.1011 = {
save_scope_as = spouse_courtier
}
}
else_if = { #Gender reverse
limit = {
AND = {
scope:captured = { is_female = no }
any_courtier = {
is_female = yes
is_married = no
is_betrothed = no
is_adult = yes
culture = culture:norman
age > scope:captured.age_plus_10
age < scope:captured.age_minus_10
}
}
}
random_courtier = {
limit = {
is_female = yes
is_married = no
is_betrothed = no
is_adult = yes
culture = culture:norman
age > scope:captured.age_plus_10
age < scope:captured.age_minus_10
}
weight = {
base = 1
modifier = {
factor = 10
is_lowborn = no
}
modifier = {
factor = 5
is_close_or_extended_family_of = root
}
}
save_scope_as = spouse_courtier
}
}
else = { #Just in case
hidden_effect = {
create_character = {
@ -1141,19 +1187,6 @@ ep3_story_cycle_harrying.1011 = {
}
}
scripted_trigger harrying_1015_trigger = {
culture = culture:anglo_saxon
highest_held_title_tier > tier_county
any_held_title = {
tier = tier_county
is_landless_type_title = no
any_county_province = {
has_holding = yes
num_buildings > 0
}
}
}
# Punish a village
ep3_story_cycle_harrying.1015 = {
type = character_event
@ -1174,34 +1207,29 @@ ep3_story_cycle_harrying.1015 = {
trigger = {
any_vassal = {
harrying_1015_trigger = yes
culture = culture:anglo_saxon
highest_held_title_tier > tier_county
any_county = {
any_province = {
has_holding = yes
num_buildings > 0
}
}
}
}
immediate = {
random_vassal = {
limit = {
harrying_1015_trigger = yes
}
limit = { culture = culture:anglo_saxon }
save_scope_as = vassal
random_held_title = {
random_realm_province = {
limit = {
tier = tier_county
is_landless_type_title = no
any_county_province = {
has_holding = yes
num_buildings > 0
}
}
random_county_province = {
limit = {
has_holding = yes
num_buildings > 0
}
save_scope_as = offending_village
every_neighboring_province = { add_to_list = resettlement_villages }
hidden_effect = { destroy_random_building_variable_effect = yes }
has_holding = yes
num_buildings >= 1
}
save_scope_as = offending_village
every_neighboring_province = { add_to_list = resettlement_villages }
hidden_effect = { destroy_random_building_variable_effect = yes }
}
}
save_scope_as = root_scope #for tooltip
@ -1240,12 +1268,6 @@ ep3_story_cycle_harrying.1015 = {
option = { #Resettle the residents
name = ep3_story_cycle_harrying.1015.b
trigger = {
any_in_list = {
list = resettlement_villages
count >= 1
}
}
scope:offending_village = {
add_province_modifier = {

View file

@ -47,10 +47,6 @@ ep3_story_cycle_violet_poet.0001 = {
modifier = double_moon_modifier
save_scope_as = double_moon_book
}
random_owned_story = {
type = story_cycle_violet_poet
set_variable = { name = artifact value = scope:double_moon_book }
}
hidden_effect = {
scope:double_moon_book = {
set_artifact_rarity = illustrious

View file

@ -1385,7 +1385,7 @@ ep3_wedding.0002 = {
has_trait = lifestyle_reveler
}
add_trait_xp = {
trait = trait:lifestyle_reveler
trait = lifestyle_reveler
value = 20
}
}
@ -1664,7 +1664,7 @@ ep3_wedding.0003 = {
is_incestuous_trigger = yes
is_deviant_trigger = yes
NOT = {
trait_is_shunned_or_criminal_in_faith_trigger = { TRAIT = trait:incestuous FAITH = scope:other_family_spouse.faith GENDER_CHARACTER = scope:other_family_spouse }
trait_is_shunned_or_criminal_in_faith_trigger = { TRAIT = incestuous FAITH = scope:other_family_spouse.faith GENDER_CHARACTER = scope:other_family_spouse }
}
has_trait = lustful
has_trait = drunkard
@ -1690,7 +1690,7 @@ ep3_wedding.0003 = {
is_incestuous_trigger = yes
is_deviant_trigger = yes
NOT = {
trait_is_shunned_or_criminal_in_faith_trigger = { TRAIT = trait:incestuous FAITH = scope:flirting_in_law.faith GENDER_CHARACTER = scope:flirting_in_law }
trait_is_shunned_or_criminal_in_faith_trigger = { TRAIT = incestuous FAITH = scope:flirting_in_law.faith GENDER_CHARACTER = scope:flirting_in_law }
}
has_trait = lustful
has_trait = drunkard
@ -2041,7 +2041,7 @@ ep3_wedding.0003 = {
has_trait = lifestyle_mystic
}
add_trait_xp = {
trait = trait:lifestyle_mystic
trait = lifestyle_mystic
value = 25
}
}
@ -2295,7 +2295,7 @@ ep3_wedding.0003 = {
is_male = yes
}
trait_is_shunned_or_criminal_in_faith_trigger = {
TRAIT = trait:sodomite
TRAIT = sodomite
GENDER_CHARACTER = root
FAITH = root.faith
}
@ -2314,7 +2314,7 @@ ep3_wedding.0003 = {
limit = {
is_married = yes
trait_is_shunned_or_criminal_in_faith_trigger = {
TRAIT = trait:adulterer
TRAIT = adulterer
GENDER_CHARACTER = root
FAITH = root.faith
}
@ -2326,7 +2326,7 @@ ep3_wedding.0003 = {
limit = {
is_married = no
trait_is_shunned_or_criminal_in_faith_trigger = {
TRAIT = trait:fornicator
TRAIT = fornicator
GENDER_CHARACTER = root
FAITH = root.faith
}
@ -2340,7 +2340,7 @@ ep3_wedding.0003 = {
is_married = yes
}
trait_is_shunned_or_criminal_in_faith_trigger = {
TRAIT = trait:adulterer
TRAIT = adulterer
GENDER_CHARACTER = scope:flirting_in_law
FAITH = scope:flirting_in_law.faith
}
@ -2356,7 +2356,7 @@ ep3_wedding.0003 = {
is_married = no
}
trait_is_shunned_or_criminal_in_faith_trigger = {
TRAIT = trait:fornicator
TRAIT = fornicator
GENDER_CHARACTER = scope:flirting_in_law
FAITH = scope:flirting_in_law.faith
}
@ -2373,7 +2373,7 @@ ep3_wedding.0003 = {
is_male = yes
}
trait_is_shunned_or_criminal_in_faith_trigger = {
TRAIT = trait:sodomite
TRAIT = sodomite
GENDER_CHARACTER = scope:flirting_in_law
FAITH = scope:flirting_in_law.faith
}