From b25483f8cf9e92af989e0fde09437ed6841884ba Mon Sep 17 00:00:00 2001 From: TinWiz <55969463+TinWiz@users.noreply.github.com> Date: Sat, 20 Jul 2024 08:05:59 -0400 Subject: [PATCH] Add files via upload --- events/te_migrations.txt | 99 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 98 insertions(+), 1 deletion(-) diff --git a/events/te_migrations.txt b/events/te_migrations.txt index 702ba7f6..a140dfae 100644 --- a/events/te_migrations.txt +++ b/events/te_migrations.txt @@ -180,6 +180,7 @@ te_migrations.2 = { } area = { any_area_province = { + exists = owner owner = ROOT } } @@ -223,6 +224,7 @@ te_migrations.2 = { } area = { any_area_province = { + exists = owner owner = ROOT } } @@ -262,6 +264,7 @@ te_migrations.2 = { } area = { any_area_province = { + exists = owner owner = ROOT } } @@ -289,6 +292,13 @@ te_migrations.2 = { option = { name = "te_migrations.2.a" custom_tooltip = "make_foedus_now_plz" + if = { + limit = { + is_ai = no + } + add_stability = 10 + add_political_influence = influence_large + } highlight = yes if = { limit = { @@ -483,4 +493,91 @@ te_migrations.3 = { } } -} \ No newline at end of file +} + +te_migrations.4 = { + type = country_event + hidden = yes + + trigger = { + has_global_variable = germanic_migration_2 + country_culture_group = latin + is_ai = yes + is_tribal = no + is_overlord = yes + num_of_cities > 500 + NOR = { + has_variable = sirte_foedus_cooldown + has_variable = sirte_foederatus_landgrab_cooldown + } + is_subject = no + war = no + has_civil_war = no + any_subject = { + is_tribal = yes + country_culture_group = germanic + has_country_modifier = sirte_foederatus + capital_scope = { + NOR = { + is_in_italy_trigger = yes + is_in_greece_trigger = yes + is_in_area = ROOT.capital_scope + } + area = { + any_area_province = { + exists = owner + owner = ROOT + } + } + } + } + } + + immediate = { + random_subject = { + limit = { + is_tribal = yes + country_culture_group = germanic + has_country_modifier = sirte_foederatus + capital_scope = { + NOR = { + is_in_italy_trigger = yes + is_in_greece_trigger = yes + is_in_area = ROOT.capital_scope + } + area = { + any_area_province = { + exists = owner + owner = ROOT + } + } + } + } + save_scope_as = sirte_foederatus_available_land + } + } + + option = { + scope:sirte_foederatus_available_land = { + capital_scope = { + area = { + every_area_province = { + limit = { + exists = owner + owner = ROOT + } + set_owned_by = scope:sirte_foederatus_available_land + } + } + } + } + } + + after = { + set_variable = { + name = sirte_foederatus_landgrab_cooldown + days = 2000 + } + } + +} \ No newline at end of file