Bugs fixing

This commit is contained in:
Heidesommer 2026-05-24 05:01:46 -04:00
parent cb926c39aa
commit ebc206bb1c
117 changed files with 59950 additions and 11056 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,489 @@

#############################################
# Do some basic missionary work #
# by James Beaumont #
#############################################
hasan_evangelize_the_faith = {
picture = {
reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_secret_faith.dds"
}
sort_order = 500
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 36
kingdom = 0
empire = 0
hegemony = 0
}
desc = hasan_evangelize_the_faith_desc
selection_tooltip = hasan_evangelize_the_faith_tooltip
decision_group_type = story_cycle_hasan
cooldown = { months = 1 }
is_shown = {
#DLC check.
has_ep3_dlc_trigger = yes
is_landed = no
any_owned_story = {
type = story_hasan
}
}
is_valid = {
domicile.domicile_location.county ?= {
OR = {
hasan_evangelize_province_trigger = yes
custom_tooltip = {
text = or_a_neigbouring_county_tt
save_temporary_scope_as = county_check
any_neighboring_county = {
hasan_evangelize_province_trigger = yes
holder.top_liege = scope:county_check.holder.top_liege
}
}
}
}
}
is_valid_showing_failures_only = {
is_alive = yes
is_available_adult = yes
has_contagious_deadly_disease_trigger = no
}
cost = { piety = 250 }
effect = {
domicile.domicile_location.county ?= {
if = {
limit = { hasan_evangelize_province_trigger = yes }
save_scope_as = location
}
else = {
save_temporary_scope_as = county_check
random_neighboring_county = {
limit = {
hasan_evangelize_province_trigger = yes
holder.top_liege = scope:county_check.holder.top_liege
}
save_scope_as = location
}
}
}
trigger_event = hasan_sabbah.1010
custom_tooltip = chance_to_advance_to_the_assassins_tt
}
ai_potential = { this = character:41702 }
ai_will_do = {
base = 200
}
}
#############################################
# Do some RADICAL missionary work 🕶🤙 #
# by James Beaumont #
#############################################
hasan_agitate_the_populace = {
picture = {
reference = "gfx/interface/illustrations/decisions/fp3/antagonistic.dds"
}
sort_order = 500
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 36
kingdom = 0
empire = 0
hegemony = 0
}
desc = hasan_agitate_the_populace_desc
selection_tooltip = hasan_agitate_the_populace_tooltip
decision_group_type = story_cycle_hasan
cooldown = { months = 1 }
is_shown = {
#DLC check.
has_ep3_dlc_trigger = yes
is_landed = no
any_owned_story = {
type = story_hasan
}
}
is_valid = {
hasan_camp_in_foes_realm_trigger = yes
OR = {
domicile.domicile_location.county = {
faith != root.faith
NOT = { has_county_modifier = ep3_agitated_populace }
NOT = { has_county_modifier = tougher_to_convert }
}
custom_tooltip = {
text = or_a_neigbouring_county_tt
domicile.domicile_location.county = {
save_temporary_scope_as = county_check
any_neighboring_county = {
faith != root.faith
NOT = { has_county_modifier = ep3_agitated_populace }
NOT = { has_county_modifier = tougher_to_convert }
holder.top_liege = scope:county_check.holder.top_liege
}
}
}
}
}
is_valid_showing_failures_only = {
is_alive = yes
is_available_adult = yes
has_contagious_deadly_disease_trigger = no
}
cost = { prestige = 250 }
effect = {
if = {
limit = {
domicile.domicile_location.county = {
faith != root.faith
NOT = { has_county_modifier = ep3_agitated_populace }
NOT = { has_county_modifier = tougher_to_convert }
}
}
domicile.domicile_location.county = { save_scope_as = location }
}
else = {
domicile.domicile_location.county = {
save_temporary_scope_as = county_check
random_neighboring_county = {
limit = {
faith != root.faith
NOT = { has_county_modifier = ep3_agitated_populace }
NOT = { has_county_modifier = tougher_to_convert }
holder.top_liege = scope:county_check.holder.top_liege
}
save_scope_as = location
}
}
}
trigger_event = hasan_sabbah.1040
}
ai_potential = { this = character:41702 }
ai_will_do = {
base = 200
}
}
#############################################
# Become death, destroyer of Seljuks #
# by James Beaumont #
#############################################
hasan_ignite_the_flames = {
picture = {
reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_strength.dds"
}
sort_order = 500
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 36
kingdom = 0
empire = 0
hegemony = 0
}
desc = hasan_ignite_the_flames_desc
selection_tooltip = hasan_ignite_the_flames_tooltip
decision_group_type = story_cycle_hasan
cooldown = { months = 1 }
is_shown = {
#DLC check.
has_ep3_dlc_trigger = yes
any_owned_story = {
type = story_hasan
}
}
is_valid = {
hasan_camp_in_foes_realm_trigger = yes
is_at_war = no
custom_tooltip = {
text = at_least_5_counties_are_nizari
domicile.domicile_location.county.holder.top_liege = {
any_sub_realm_county = {
count >= 5
faith = root.faith
}
}
}
}
is_valid_showing_failures_only = {
is_alive = yes
is_available_adult = yes
has_contagious_deadly_disease_trigger = no
}
cost = {
prestige = 250
}
effect = {
random_owned_story = {
type = story_hasan
var:ultimate_foe = { save_scope_as = ultimate_foe }
}
hasan_sabbah_ignite_decision_effect = yes
}
ai_potential = { this = character:41702 }
ai_will_do = {
base = 200
}
}
#############################################
# Found the Assassins #
# by James Beaumont #
#############################################
hasan_found_the_assassins = {
picture = {
reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_sunder.dds"
}
sort_order = 500
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 36
kingdom = 0
empire = 0
hegemony = 0
}
desc = hasan_found_the_assassins_desc
selection_tooltip = hasan_found_the_assassins_tooltip
decision_group_type = story_cycle_hasan
is_shown = {
#DLC check.
has_ep3_dlc_trigger = yes
any_owned_story = {
type = story_hasan
NOT = { exists = var:assassins }
}
is_landed = no
faith = faith:nizari
NOT = {
has_character_flag = founded_assassins_already
}
}
is_valid = {
hasan_camp_in_foes_realm_trigger = yes
domicile.domicile_location.barony = { is_leased_out = no }
domicile.domicile_location.county.faith = root.faith
custom_tooltip = {
text = is_mountainous_desc
domicile.domicile_location = { is_mountainous_trigger = yes }
}
domicile.domicile_location = {
is_county_capital = no
}
}
is_valid_showing_failures_only = {
is_alive = yes
is_available_adult = yes
has_contagious_deadly_disease_trigger = no
}
cost = { piety = 1500 }
effect = {
domicile.domicile_location = { save_scope_as = location }
if = {
limit = {
scope:location = {
has_holding = no
}
}
if = {
limit = {
scope:location.county.holder = {
government_has_flag = government_is_tribal
}
}
scope:location = {
set_holding_type = church_holding
}
}
else = {
scope:location = {
set_holding_type = castle_holding
}
}
}
create_character = {
template = holy_order_leader_character
location = scope:location
save_scope_as = leader
}
hidden_effect = {
create_title_and_vassal_change = {
type = leased_out
save_scope_as = change
add_claim_on_loss = no
}
scope:location.barony = {
change_title_holder_include_vassals = {
holder = scope:location.barony.holder.top_liege
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
}
create_holy_order = {
leader = scope:leader
capital = scope:location.barony
save_scope_as = new_holy_order
}
scope:new_holy_order ?= {
title = { set_title_name = holy_order_hashshashin }
}
create_holy_order_effect = yes
random_owned_story = {
type = story_hasan
set_variable = {
name = assassins
value = scope:new_holy_order
}
}
add_character_flag = founded_assassins_already
scope:location = {
if = {
limit = {
has_special_building = no
}
add_special_building = assassin_castle_01
}
else_if = {
limit = {
has_building_or_higher = alamut_castle_01
}
hidden_effect = {
remove_building = alamut_castle_01
}
add_special_building = alamut_castle_02
}
}
add_intrigue_skill = 2
give_nickname = nick_old_man_of_the_mountain
}
ai_potential = { this = character:41702 }
ai_will_do = {
base = 200
}
}
#############################################
# Expand the Assassins #
# by James Beaumont #
#############################################
hasan_expand_the_assassins = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_legitimacy.dds"
}
sort_order = 500
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 36
kingdom = 0
empire = 0
hegemony = 0
}
desc = hasan_expand_the_assassins_desc
selection_tooltip = hasan_expand_the_assassins_tooltip
decision_group_type = story_cycle_hasan
is_shown = {
#DLC check.
has_ep3_dlc_trigger = yes
any_owned_story = {
type = story_hasan
has_variable = assassins
}
is_landed = no
faith = faith:nizari
}
is_valid = {
hasan_camp_in_foes_realm_trigger = yes
domicile.domicile_location.barony = { is_leased_out = no }
domicile.domicile_location.county.faith = root.faith
custom_tooltip = {
text = is_mountainous_desc
domicile.domicile_location = { is_mountainous_trigger = yes }
}
}
is_valid_showing_failures_only = {
is_alive = yes
is_available_adult = yes
has_contagious_deadly_disease_trigger = no
domicile.domicile_location = { is_county_capital = no }
}
cost = { piety = 250 }
effect = {
random_owned_story = {
type = story_hasan
var:assassins = { save_scope_as = assassins }
}
show_as_tooltip = {
domicile.domicile_location.barony = { lease_out_to = scope:assassins }
}
hidden_effect = {
if = {
limit = { domicile.domicile_location.barony.holder != root }
create_title_and_vassal_change = {
type = leased_out
save_scope_as = change
add_claim_on_loss = no
}
domicile.domicile_location.barony = {
change_title_holder_include_vassals = {
holder = holder.top_liege
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
domicile.domicile_location.barony = { lease_out_to = scope:assassins }
}
}
}
ai_potential = { this = character:41702 }
ai_will_do = {
base = 200
}
}

View file

@ -0,0 +1,102 @@
#############################################
# Lead a Separatist Uprising
#############################################
### Champion the [ROOT.Char.GetCulture.GetNameNoTooltip] Culture ###
separatist_uprising_decision = {
picture = { reference = "gfx/interface/illustrations/decisions/decision_culture.dds" }
desc = separatist_uprising_decision_desc
decision_group_type = adventurer
selection_tooltip = separatist_uprising_decision_tooltip
cooldown = { months = 1 }
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 12
kingdom = 0
empire = 0
hegemony = 0
}
sort_order = 350
is_shown = {
has_ep3_dlc_trigger = yes
has_government = landless_adventurer_government
NOT = { has_trait = populist_leader }
NOT = { has_variable = separatist_uprising_decision_var }
}
is_valid = {
custom_tooltip = {
text = separatist_uprising_culture_duchy_check_tt
exists = location.county
exists = location.duchy
exists = location.duchy.holder.liege
}
custom_tooltip = {
text = separatist_uprising_culture_county_tt
location.county.culture = root.culture
}
custom_tooltip = {
text = separatist_uprising_capital_county_tt
location.county != location.duchy.holder.top_liege.capital_county
}
NOT = {
location.duchy.holder.culture = root.culture
}
prestige_level >= 3
}
is_valid_showing_failures_only = {
NOR = {
is_available = no
has_trait = infirm
is_incapable = yes
top_liege != this
}
}
cost = {
prestige = 2000
gold = 500
}
effect = {
show_as_tooltip = {
add_pressed_claim = location.duchy
}
custom_tooltip = separatist_uprising_decision_war_tt
if = {
limit = {
OR = {
can_set_relation_potential_lover_trigger = { CHARACTER = location.duchy.holder.liege }
can_set_relation_lover_trigger = { CHARACTER = location.duchy.holder.liege }
}
}
custom_tooltip = separatist_uprising_decision_pacifist_option_friend_lover_tt
}
else = {
custom_tooltip = separatist_uprising_decision_pacifist_option_friend_tt
}
trigger_event = ep3_decisions_event.6001
}
ai_will_do = {
base = 50
modifier = { # More likely to do it if they can actually win
add = 100
root_military_strength_higher_than_recipient_value > recipient_strength_root_value
}
modifier = { # They should never take it if they don't have enough Prestige and a bit more
add = -200
prestige <= 300
gold <= 150
}
modifier = { # Asen and Peter always try to do this
add = 1000
primary_title = title:d_laamp_asen
}
}
}