a lot of fixes plus yunali names
This commit is contained in:
parent
d22e25dd84
commit
4022109a4a
24 changed files with 10799 additions and 377 deletions
279
common/decisions/dlc_decisions/pam/pam_adorcism_decisions.txt
Normal file
279
common/decisions/dlc_decisions/pam/pam_adorcism_decisions.txt
Normal file
|
|
@ -0,0 +1,279 @@
|
|||
### Curse Enemy ###
|
||||
pam_curse_enemy_decision = {
|
||||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/disaster.dds"
|
||||
}
|
||||
decision_group_type = religious
|
||||
desc = pam_curse_enemy_decision_desc
|
||||
selection_tooltip = pam_curse_enemy_decision_tooltip
|
||||
confirm_text = pam_curse_enemy_decision_confirm
|
||||
|
||||
sort_order = 26
|
||||
cooldown = { years = 5 }
|
||||
|
||||
is_shown = {
|
||||
has_pam_dlc_trigger = yes
|
||||
has_personal_tenet_flag = tenet_adorcism_curse_enemy
|
||||
pam_adorcism_has_available_curse_target_trigger = yes
|
||||
}
|
||||
|
||||
is_valid = {
|
||||
custom_description = {
|
||||
text = pam_curse_enemy_decision_valid_target
|
||||
pam_adorcism_has_available_curse_target_trigger = yes
|
||||
}
|
||||
}
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
is_available_adult = yes
|
||||
custom_description = {
|
||||
text = pam_curse_enemy_decision_selected_target_valid
|
||||
pam_adorcism_curse_target_is_valid_trigger = {
|
||||
TARGET = scope:selected_item
|
||||
ACTOR = root
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cost = {
|
||||
piety = major_piety_value
|
||||
}
|
||||
|
||||
effect = {
|
||||
scope:selected_item ?= {
|
||||
save_scope_as = pam_adorcism_curse_target
|
||||
}
|
||||
show_as_tooltip = {
|
||||
add_character_modifier = {
|
||||
modifier = pam_adorcism_curse_focus_modifier
|
||||
years = 3
|
||||
}
|
||||
add_stress = major_stress_loss
|
||||
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
|
||||
if = {
|
||||
limit = { exists = scope:selected_item }
|
||||
scope:selected_item = {
|
||||
if = {
|
||||
limit = {
|
||||
rite = root.rite
|
||||
}
|
||||
add_character_modifier = {
|
||||
modifier = pam_adorcism_ill_omen_modifier
|
||||
years = 1
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
rite = root.rite
|
||||
probably_superstitious = yes
|
||||
}
|
||||
}
|
||||
add_character_modifier = {
|
||||
modifier = pam_adorcism_curse_anxiety_modifier
|
||||
years = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_event = pam_adorcism_events.0001
|
||||
}
|
||||
|
||||
widget = {
|
||||
gui = "decision_view_widget_select_character"
|
||||
controller = select_scope_object
|
||||
|
||||
setup_items = {
|
||||
scope:actor = {
|
||||
every_relation = {
|
||||
type = rival
|
||||
limit = { pam_adorcism_curse_target_is_living_adult_trigger = yes }
|
||||
add_to_list = item_list
|
||||
}
|
||||
every_war_enemy = {
|
||||
limit = {
|
||||
pam_adorcism_curse_target_is_living_adult_trigger = yes
|
||||
NOR = {
|
||||
has_relation_rival = scope:actor
|
||||
has_relation_nemesis = scope:actor
|
||||
}
|
||||
}
|
||||
add_to_list = item_list
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
default_item = {
|
||||
scope:actor = {
|
||||
if = {
|
||||
limit = {
|
||||
any_relation = {
|
||||
type = rival
|
||||
pam_adorcism_curse_target_is_living_adult_trigger = yes
|
||||
}
|
||||
}
|
||||
ordered_relation = {
|
||||
type = rival
|
||||
limit = { pam_adorcism_curse_target_is_living_adult_trigger = yes }
|
||||
order_by = max_military_strength
|
||||
position = 0
|
||||
save_scope_as = selected_item
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
any_war_enemy = {
|
||||
pam_adorcism_curse_target_is_living_adult_trigger = yes
|
||||
}
|
||||
}
|
||||
ordered_war_enemy = {
|
||||
limit = { pam_adorcism_curse_target_is_living_adult_trigger = yes }
|
||||
order_by = max_military_strength
|
||||
position = 0
|
||||
save_scope_as = selected_item
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
is_item_valid = {
|
||||
pam_adorcism_curse_target_is_valid_trigger = {
|
||||
TARGET = root
|
||||
ACTOR = scope:actor
|
||||
}
|
||||
}
|
||||
|
||||
ai_select_item = {
|
||||
scope:actor = {
|
||||
if = {
|
||||
limit = {
|
||||
any_relation = {
|
||||
type = rival
|
||||
pam_adorcism_curse_target_is_living_adult_trigger = yes
|
||||
}
|
||||
}
|
||||
ordered_relation = {
|
||||
type = rival
|
||||
limit = { pam_adorcism_curse_target_is_living_adult_trigger = yes }
|
||||
order_by = max_military_strength
|
||||
position = 0
|
||||
save_scope_as = selected_item
|
||||
}
|
||||
}
|
||||
else = {
|
||||
ordered_war_enemy = {
|
||||
limit = { pam_adorcism_curse_target_is_living_adult_trigger = yes }
|
||||
order_by = max_military_strength
|
||||
position = 0
|
||||
save_scope_as = selected_item
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 60
|
||||
duchy = 60
|
||||
kingdom = 60
|
||||
empire = 60
|
||||
hegemony = 60
|
||||
}
|
||||
|
||||
ai_potential = {
|
||||
ai_vengefulness >= 0
|
||||
pam_adorcism_has_available_curse_target_trigger = yes
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
base = 35
|
||||
modifier = {
|
||||
add = 35
|
||||
OR = {
|
||||
has_trait = wrathful
|
||||
has_trait = vengeful
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = -35
|
||||
OR = {
|
||||
has_trait = calm
|
||||
has_trait = forgiving
|
||||
}
|
||||
}
|
||||
ai_value_modifier = {
|
||||
ai_vengefulness = 0.5
|
||||
ai_zeal = 0.25
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
### Seek Aid for War ###
|
||||
pam_seek_war_aid_decision = {
|
||||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
|
||||
}
|
||||
decision_group_type = religious
|
||||
desc = pam_seek_war_aid_decision_desc
|
||||
selection_tooltip = pam_seek_war_aid_decision_tooltip
|
||||
confirm_text = pam_seek_war_aid_decision_confirm
|
||||
|
||||
sort_order = 27
|
||||
cooldown = { years = 5 }
|
||||
|
||||
is_shown = {
|
||||
has_pam_dlc_trigger = yes
|
||||
has_personal_tenet_flag = tenet_adorcism_seek_war_aid
|
||||
}
|
||||
|
||||
is_valid = {
|
||||
is_at_war = yes
|
||||
}
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
is_available_adult = yes
|
||||
}
|
||||
|
||||
cost = {
|
||||
piety = minor_piety_value
|
||||
}
|
||||
|
||||
effect = {
|
||||
trigger_event = pam_adorcism_events.0101
|
||||
}
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 24
|
||||
duchy = 24
|
||||
kingdom = 24
|
||||
empire = 24
|
||||
hegemony = 24
|
||||
}
|
||||
|
||||
ai_potential = {
|
||||
is_at_war = yes
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
base = 50
|
||||
modifier = {
|
||||
add = 30
|
||||
OR = {
|
||||
has_trait = brave
|
||||
has_trait = zealous
|
||||
has_trait = ambitious
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = -30
|
||||
has_trait = cynical
|
||||
}
|
||||
ai_value_modifier = {
|
||||
ai_zeal = 0.5
|
||||
ai_boldness = 0.25
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue