decisions and trade goods

This commit is contained in:
Greekman 2026-11-22 23:38:14 +00:00
parent a7845d081b
commit eb8e262176
12 changed files with 14568 additions and 892 deletions

View file

@ -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

View 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
# }
# }

File diff suppressed because it is too large Load diff

View file

@ -10,10 +10,7 @@ h_china = {
capital = c_thessalonika
color = { 230 180 10 }
}
e_minister_chancellor = {
capital = c_thessalonika
color = { 230 180 10 }
}
e_minister_censor = {
capital = c_thessalonika
color = { 230 180 10 }
@ -96,3 +93,18 @@ e_hre = {
}
}
}
h_roman_republic = {
color = { 201 12 0 }
capital = c_roma
definite_form = yes
can_be_named_after_dynasty = no
can_create = {
rule_title_creation_imperial_power_projection_title_creation_trigger = yes
}
}
# k_hansa = {
# color = { 142 142 142 }
# capital = c_lubeck
# }

View file

@ -1,31 +1,4 @@
create_artifact_excalibur_effect = {
# Get the character the artifact is being made for.
$OWNER$ = { save_scope_as = owner }
# Not really used, but if we don't set the scopes we get errors in the feature selection
set_artifact_rarity_common = yes
# Create the artifact
create_artifact = {
name = excalibur_name
description = excalibur_description
type = pedestal
visuals = excalibur
wealth = scope:wealth
quality = scope:quality
history = {
type = created_before_history
}
modifier = excalibur_modifier
save_scope_as = newly_created_artifact
decaying = no
}
scope:newly_created_artifact = {
set_variable = { name = historical_unique_artifact value = yes }
set_variable = excalibur
save_scope_as = epic
}
}

create_artifact_crown_wenceslas_effect = { # Crown of Saint Wenceslas
# Get the character the artifact is being made for.

View file

@ -335,19 +335,7 @@ tgp_blocked_action_against_king_emperor_trigger = {
}
}
tgp_blocked_ruler_against_ceremonial_action_trigger = {
custom_description = {
text = tgp_blocked_ruler_against_ceremonial_action_trigger
NAND = {
$british_monarch$ = { has_title = title:k_royal_household}
$REGENT$ = $british_monarch$.liege
}
}
trigger_else = { always = yes }
NOT = {
is_target_in_variable_list = { name = japanese_house_names target = $FLAG$ }
}
}
#japan_house_name_county_trigger = {
# exists = $TITLE$

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long