116 lines
2.8 KiB
Plaintext
116 lines
2.8 KiB
Plaintext
##############################################################################################################################
|
|
# Medievel Thievery Mod
|
|
# Developed by DevZero (some code taken from pdx) - the mod has thievery in the name after all...
|
|
# Notes: for AI inclusion, look at ai in diarch_interactions > syphon -- ai greed, boldness, honor for base, then modifiers
|
|
##############################################################################################################################
|
|
|
|
norse_asgard_enabled_interaction = {
|
|
icon = icon_scheme_fabricate_hook
|
|
common_interaction = yes
|
|
interface_priority = 100
|
|
category = interaction_category_friendly
|
|
desc = norse_asgard_enabled_interaction_desc
|
|
cooldown = { months = 18 }
|
|
cooldown_against_recipient = {years = 5}
|
|
|
|
is_shown = {
|
|
scope:actor.dynasty = {
|
|
has_dynasty_modifier = great_hall_of_asgard_modifier
|
|
}
|
|
|
|
NOT = {Scope:recipient = scope:acotr}
|
|
|
|
}
|
|
|
|
is_valid_showing_failures_only = {
|
|
scope:recipient = { NOT = { has_strong_hook = scope:actor } }
|
|
}
|
|
|
|
on_accept = {
|
|
scope:actor = {
|
|
duel = {
|
|
skill = learning
|
|
target = scope:recipient
|
|
55 = {
|
|
desc = norse_asgard_enabled_interaction.tt.success
|
|
compare_modifier = {
|
|
value = scope:duel_value
|
|
multiplier = 3.5
|
|
min = -49
|
|
}
|
|
|
|
send_interface_toast = {
|
|
title = norse_asgard_enabled_interaction.tt.success
|
|
left_icon = scope:recipient
|
|
|
|
add_hook = {
|
|
target = scope:recipient
|
|
type = loyalty_hook
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
45 = {
|
|
desc = norse_asgard_enabled_interaction.tt.failure
|
|
compare_modifier = {
|
|
value = scope:duel_value
|
|
multiplier = -3.5
|
|
min = -49
|
|
}
|
|
|
|
send_interface_toast = {
|
|
title = norse_asgard_enabled_interaction.tt.failure
|
|
left_icon = scope:recipient
|
|
|
|
scope:recipient = {
|
|
# Vengeful characters will not take it well.
|
|
if = {
|
|
limit = {
|
|
has_trait = vengeful
|
|
can_set_relation_rival_trigger = { CHARACTER = scope:actor }
|
|
}
|
|
set_relation_rival = {
|
|
target = scope:actor
|
|
reason = rival_tried_to_embezzle
|
|
}
|
|
}
|
|
# Forgiving characters aren't too bothered.
|
|
else_if = {
|
|
limit = { has_trait = forgiving }
|
|
add_opinion = {
|
|
target = scope:actor
|
|
modifier = disappointed_opinion
|
|
opinion = -5
|
|
}
|
|
}
|
|
# Otherwise, folks are skeptical
|
|
else = {
|
|
add_opinion = {
|
|
target = scope:actor
|
|
modifier = trust_opinion
|
|
opinion = -15
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
auto_accept = yes
|
|
|
|
ai_will_do = {
|
|
base = 0
|
|
}
|
|
|
|
|
|
|
|
|
|
} |