decisions and trade goods
This commit is contained in:
parent
a7845d081b
commit
eb8e262176
12 changed files with 14568 additions and 892 deletions
|
|
@ -2336,11 +2336,64 @@ repay_loan_decision = {
|
|||
}
|
||||
save_scope_as = repaid_loan
|
||||
}
|
||||
clear_loanee_variables_effect = yes
|
||||
scope:recipient = {
|
||||
remove_list_variable = {
|
||||
name = owes_me_money
|
||||
target = root
|
||||
scope:repaid_loan = { repay_and_end_loan_story_effect = yes } # use this effect to show relevant tooltips
|
||||
}
|
||||
|
||||
widget = {
|
||||
gui = "decision_view_widget_select_character"
|
||||
controller = select_scope_object
|
||||
show_from_start = yes
|
||||
decision_to_second_step_button = "SELECT"
|
||||
|
||||
setup_items = {
|
||||
scope:actor = {
|
||||
every_owned_story = {
|
||||
limit = {
|
||||
story_type = story_cycle_loan
|
||||
exists = var:amount_owed
|
||||
var:lender ?= {
|
||||
any_in_list = {
|
||||
variable = owes_me_money
|
||||
this = scope:actor
|
||||
}
|
||||
}
|
||||
}
|
||||
var:lender = { add_to_list = item_list }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
default_item = {
|
||||
scope:actor = {
|
||||
ordered_owned_story = {
|
||||
limit = {
|
||||
story_type = story_cycle_loan
|
||||
exists = var:amount_owed
|
||||
var:lender ?= {
|
||||
any_in_list = {
|
||||
variable = owes_me_money
|
||||
this = scope:actor
|
||||
}
|
||||
}
|
||||
}
|
||||
order_by = var:years_since
|
||||
var:lender = { save_scope_as = selected_item }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
is_item_valid = {
|
||||
save_temporary_scope_as = lender_temp
|
||||
custom_tooltip = {
|
||||
text = repay_loan_decision_afford_tt
|
||||
scope:actor = {
|
||||
any_owned_story = {
|
||||
story_type = story_cycle_loan
|
||||
exists = var:amount_owed
|
||||
var:lender ?= scope:lender_temp
|
||||
var:amount_owed <= scope:actor.gold
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
110
common/decisions/dlc_decisions/gdp/gdp_hanseatic_decisions.txt
Normal file
110
common/decisions/dlc_decisions/gdp/gdp_hanseatic_decisions.txt
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
# NEOW: Hansa founding is intentionally disabled. Vanilla decision retained as comments.
|
||||
# found_the_hanseatic_league_decision = {
|
||||
# picture = {
|
||||
# reference = "gfx/interface/illustrations/decisions/gdp_republic_trade_ships.dds"
|
||||
# }
|
||||
# decision_group_type = major
|
||||
# sort_order = 100
|
||||
|
||||
# ai_check_interval_by_tier = {
|
||||
# barony = 0
|
||||
# county = 120
|
||||
# duchy = 60
|
||||
# kingdom = 30
|
||||
# empire = 30
|
||||
# hegemony = 30
|
||||
# }
|
||||
|
||||
# desc = found_the_hanseatic_league_decision_desc
|
||||
# selection_tooltip = found_the_hanseatic_league_decision_tooltip
|
||||
# confirm_text = found_the_hanseatic_league_decision_confirm
|
||||
|
||||
# is_shown = {
|
||||
# confederation ?= {
|
||||
# confederation_type = confederation_type:trade_league
|
||||
# has_leading_title = yes
|
||||
# leading_title = root.primary_title
|
||||
# NOT = { has_variable = is_hanseatic_league }
|
||||
# }
|
||||
# capital_province ?= { geographical_region = hanseatic_trade_region }
|
||||
# has_gdp_dlc_trigger = yes
|
||||
# }
|
||||
|
||||
# is_valid_showing_failures_only = {
|
||||
# is_at_war = no
|
||||
# custom_tooltip = {
|
||||
# text = found_the_hanseatic_league_cohesion_tt
|
||||
# confederation ?= {
|
||||
# cohesion >= 95
|
||||
# }
|
||||
# }
|
||||
# custom_tooltip = {
|
||||
# text = found_the_hanseatic_league_members_tt
|
||||
# confederation ?= {
|
||||
# any_confederation_member = { count >= 4 }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
# cost = {
|
||||
# gold = massive_gold_value
|
||||
# prestige = massive_prestige_value
|
||||
# }
|
||||
|
||||
# effect = {
|
||||
# save_scope_as = hanse_founder
|
||||
# primary_title = { save_scope_as = hanse_lead_town }
|
||||
|
||||
# confederation = {
|
||||
# set_variable = is_hanseatic_league
|
||||
# set_coa = k_hansa
|
||||
|
||||
# if = {
|
||||
# limit = {
|
||||
# NOT = {
|
||||
# any_confederation = {
|
||||
# has_variable = hanseatic_baltic_identity
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# set_variable = hanseatic_baltic_identity
|
||||
# set_confederation_name = HANSEATIC_LEAGUE_NAME
|
||||
# }
|
||||
# else = {
|
||||
# set_confederation_name = GENERIC_HANSE_NAME
|
||||
# }
|
||||
# }
|
||||
|
||||
# hanseatic_elevate_all_members_effect = { LEAGUE = root.confederation }
|
||||
|
||||
# add_prestige = major_prestige_gain
|
||||
|
||||
# add_achievement_global_variable_effect = {
|
||||
# VARIABLE = ep5_14_league_of_ledgers_achievement_unlocked
|
||||
# VALUE = yes
|
||||
# }
|
||||
|
||||
# hanseatic_ask_personal_monopoly_holders_effect = { LEAGUE = root.confederation }
|
||||
|
||||
# every_player = {
|
||||
# limit = {
|
||||
# is_member_of_confederation = root.confederation
|
||||
# }
|
||||
# send_interface_message = {
|
||||
# type = event_generic_good_text
|
||||
# title = found_the_hanseatic_league_message_title
|
||||
# desc = found_the_hanseatic_league_message_desc
|
||||
# left_icon = root
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
# ai_potential = {
|
||||
# is_ai = yes
|
||||
# is_ruler = yes
|
||||
# }
|
||||
|
||||
# ai_will_do = {
|
||||
# base = 100
|
||||
# }
|
||||
# }
|
||||
5856
common/decisions/dlc_decisions/gdp/gdp_republic_decisions.txt
Normal file
5856
common/decisions/dlc_decisions/gdp/gdp_republic_decisions.txt
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue