This commit is contained in:
Fishedotjpg 2026-02-26 23:21:26 +00:00
parent a739d2c92a
commit 2188e3b3f3
4 changed files with 188 additions and 12 deletions

View file

@ -49,7 +49,7 @@ create_landless_adventurer_title_effect = {
scope:warrior_youth ?= scope:new_landless_adventurer
}
create_adventurer_title = {
name = adventurer_name_free_warriors
name = minority_name
holder = scope:new_landless_adventurer
article = DEFAULT_TITLE_NAME_ARTICLE
save_scope_as = new_title
@ -576,6 +576,163 @@ create_landless_adventurer_title_effect = {
set_variable = flavourise_camp_purpose_wanderers
}
create_landless_minority_title_effect = {
save_scope_as = new_landless_minority
if = {
limit = {
exists = house
}
house = { save_scope_as = new_landless_minority_house }
}
if = {
limit = {
exists = location
}
location = { save_scope_as = new_landless_minority_location }
}
save_scope_value_as = {
name = minority_creation_reason
value = $REASON$
}
$FLAVOR_CHAR$ = { save_scope_as = minority_flavor_char }
hidden_effect = {
random_list = {
1000 = {
create_adventurer_title = {
name = minority_name
holder = scope:new_landless_adventurer
article = DEFAULT_TITLE_NAME_ARTICLE
save_scope_as = new_title
}
}
}
scope:new_title ?= {
create_landless_minority_title_history_effect = yes
set_variable = {
name = minority_creation_reason
value = scope:minority_creation_reason
}
set_variable = {
name = minority_flavor_char
value = scope:minority_flavor_char
}
}
scope:new_title = { save_scope_as = new_landless_minority_title }
scope:new_landless_minority = {
if = {
limit = {
NOT = { has_government = landless_minority_government }
}
change_government = landless_minority_government
}
if = {
limit = {
NOT = { has_realm_law = confederate_partition_succession_law }
}
add_realm_law = confederate_partition_succession_law
}
if = {
limit = {
has_realm_law = crown_authority_0
}
remove_realm_law = crown_authority_0
}
domicile = { change_provisions = starting_provisions_value }
}
every_player = {
limit = {
NOR = {
root ?= this
this = scope:new_landless_minority
}
OR = {
# Either they're important to us.
is_close_or_extended_family_of = scope:new_landless_minority
is_consort_of = scope:new_landless_minority
has_important_relationship_with_character_trigger = { CHARACTER = scope:new_landless_minority }
# Or they're just close enough.
AND = {
capital_province = { "squared_distance(scope:new_landless_minority.location)" <= squared_distance_medium }
OR = {
top_liege = root.top_liege
any_neighboring_and_across_water_top_liege_realm_owner = { this = root.top_liege }
}
}
}
}
send_interface_message = {
type = msg_landless_minority_nearby
title = nearby_landless_minority_created_message_title
left_icon = scope:new_landless_minority
right_icon = scope:minority_flavor_char
switch = {
trigger = scope:minority_creation_reason
flag:conquest = { custom_tooltip = nearby_landless_minority_created_message_conquest_tt }
flag:conquest_claim = { custom_tooltip = nearby_landless_minority_created_message_conquest_tt }
flag:deposition = { custom_tooltip = nearby_landless_minority_created_message_deposition_tt }
flag:succession = { custom_tooltip = nearby_landless_minority_created_message_succession_tt }
flag:exile = { custom_tooltip = nearby_landless_minority_created_message_exile_tt }
flag:voluntary = { custom_tooltip = nearby_landless_minority_created_message_voluntary_tt }
flag:revocation = { custom_tooltip = nearby_landless_minority_created_message_revocation_tt }
flag:runaway_allowed = { custom_tooltip = nearby_landless_minority_created_message_runaway_allowed_tt }
flag:runaway_forbidden = { custom_tooltip = nearby_landless_minority_created_message_runaway_forbidden_tt }
flag:wanderer = { custom_tooltip = nearby_landless_minority_created_message_wanderer_tt }
flag:eradicate = { custom_tooltip = nearby_landless_minority_created_message_eradicate_tt }
fallback = { custom_tooltip = nearby_landless_minority_created_message_fallback_tt }
}
}
}
}
custom_tooltip = laamp_become_minority_tt
hidden_effect = {
if = {
limit = {
scope:new_landless_minority = {
is_ai = no
}
NOT = { exists = scope:expelled }
}
populate_location_with_contracts_effect = {
AREA_CHAR = scope:new_landless_minority
AMOUNT = 3
}
}
scope:new_landless_minority = {
every_courtier = {
limit = {
NOR = {
is_close_or_extended_family_of = scope:new_landless_minority
has_relation_lover = scope:new_landless_minority
has_relation_friend = scope:new_landless_minority
is_consort_of = scope:new_landless_minority
}
}
move_to_pool = yes
}
# Give us a couple of starting chars if we're almost completely bereft.
if = {
limit = {
any_courtier = { count <= 2 }
}
trigger_event = {
id = ep3_laamps.1001
weeks = { 2 6 }
}
}
}
trigger_event = { id = misc.0001 days = 1 }
local_arbitration_boon_change_purpose_effect = yes
}
add_to_global_variable_list = {
name = laamps_tally
target = scope:new_landless_minority.primary_title
}
set_variable = flavourise_camp_purpose_wanderers
}
destroy_landless_title_no_dlc_effect = {
if = {
limit = {
@ -733,6 +890,15 @@ create_landless_adventurer_title_tooltip_effect = {
}
}
}
create_landless_minority_title_tooltip_effect = {
show_as_tooltip = {
custom_tooltip = laamp_become_minority_tt
if = {
limit = { exists = scope:new_landless_minority_title}
show_as_tooltip = { get_title = scope:new_landless_minority_title }
}
}
}
find_playable_relatives_effect = {
if = {