Skip to content

Commit

Permalink
task stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
OBSheard committed Feb 9, 2025
1 parent a156860 commit a54bc6c
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 17 deletions.
194 changes: 180 additions & 14 deletions common/missions/02_blemmia_missions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ blemmia_missions = {
blemmia_missions_task_1 = { # Adabulian Obligations
icon = "task_political"

bypass = {
c:ADA = {
exists = no
}
}

allow = {
c:ADA = {
OR = {
Expand All @@ -63,7 +69,7 @@ blemmia_missions = {
on_completion = {
trigger_event = me_blemmia.1 # pay money, manpower, or political influence to annex Adabulia and take some characters
add_country_modifier = {
name = adabulian_negotiations
name = blemmyan_negotiations
duration = -1
}
add_innovation = 1
Expand Down Expand Up @@ -119,6 +125,22 @@ blemmia_missions = {
}
}
}

highlight = {
scope:province = {
OR = {
province_id = 8072
province_id = 8071
province_id = 584
province_id = 590
province_id = 586
province_id = 589
province_id = 588
province_id = 578
}
}
}

on_completion = {
trigger_event = me_blemmia.3 # REVOLT OF BLEMMYANS IN THE AREA - add fire effect to Berenike, kill pops in Berenike
p:8072 = { formable_province_conquest_effect = yes }
Expand Down Expand Up @@ -202,6 +224,10 @@ blemmia_missions = {
duration = -1
}
}
add_country_modifier = {
name = blemmyan_mine_construction
duration = -1
}
}
}

Expand All @@ -221,53 +247,193 @@ blemmia_missions = {
blemmia_missions_task_6 = { # Ties with the Megabaroi
requires = {blemmia_missions_task_1}
icon = "task_political"

bypass = {
c:BOR = {
exists = no
}
}

allow = {

c:BOR = {
OR = {
is_subject_of = root
alliance_with = root
}
opinion = {
value >= 65
target = root
}
hidden:current_ruler = {
is_friend = root.current_ruler
}
}
}
on_completion = {
trigger_event = me_blemmia.6
show_as_tooltip = {

trigger_event = me_blemmia.6 # pay money, manpower, or political influence to annex Megabaria and take some characters
add_treasury = -50
add_political_influence = -50
add_country_modifier = {
name = blemmyan_negotiations
duration = -1
mode = add
}
}
}
blemmia_missions_task_7 = { # Segmented Rule
requires = {blemmia_missions_task_2}
icon = "task_political"
allow = {

has_law = tribal_centralized_laws_3
p:8089 = {
owner = root
has_building = fortress_building
has_building = court_building
has_no_ongoing_construction = yes
OR = {
has_city_status = yes
has_province_rank = city_metropolis
}
}
p:8096 = {
owner = root
has_building = fortress_building
has_building = court_building
has_no_ongoing_construction = yes
OR = {
has_city_status = yes
has_province_rank = city_metropolis
}
}
p:7500 = {
owner = root
has_building = fortress_building
has_building = court_building
has_building = port_building
has_no_ongoing_construction = yes
OR = {
has_city_status = yes
has_province_rank = city_metropolis
}
}
}
on_completion = {
trigger_event = me_blemmia.7
show_as_tooltip = {

highlight = {
scope:province = {
OR = {
province_id = 8089
province_id = 8096
province_id = 7500
}
}
}

on_completion = {
trigger_event = me_blemmia.7 # modifers for each city + nobles/citizens
add_political_influence = 50
current_ruler = {
add_popularity = 5
add_finesse = 1
add_character_experience = 5
}
add_centralization = 20
add_2_free_province_investments = yes
add_country_modifier = {
name = segmented_blemmyan_capitals
duration = -1
}
}
}

blemmia_missions_task_8 = { # The All-Golden City
requires = {blemmia_missions_task_2}
icon = "task_political"
allow = {

p:8089 = {
owner = root
has_building = court_building
has_building = theathre_building
has_building = library_building
has_building = commerce_building
has_building = population_building
has_no_ongoing_construction = yes
OR = {
has_city_status = yes
has_province_rank = city_metropolis
}
governor_policy = encourage_trade
state = {
trade_good_surplus = {
target = precious_metals
value >= 8
}
}
total_population >= 45
}
}
on_completion = {
trigger_event = me_blemmia.8
show_as_tooltip = {

add_treasury = 100
add_political_influence = 50
current_ruler = {
add_popularity = 10
add_finesse = 1
add_charisma = 1
}
p:8089 = {
while = {
count = 3
define_pop = {
type = nobles
culture = root.culture
religion = root.religion
}
define_pop = {
type = citizen
culture = root.culture
religion = root.religion
}
}
add_permanent_province_modifier = {
name = blemmyan_all_golden_city
}
}
}
}

blemmia_missions_task_9 = { # The Emerald Trade
requires = {blemmia_missions_task_3}
icon = "task_political"
allow = {
# ADD THESE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
political_influence >= 25
invention = capital_trade_inv_2
hidden:p:590 = {
has_building = slave_mine_building
}
p:590 = {
governor_policy = encourage_trade
state = {
trade_good_surplus = {
target = gems
value >= 3
}
}
has_no_ongoing_construction = yes
}
}

highlight = {
scope:province = {
province_id = 590
}
}

on_completion = {
trigger_event = me_blemmia.9
trigger_event = me_blemmia.9 # Chance to turn another territory around the mountain into a gem mine for emerald - emerald modifier
custom_tooltip = blemmia_missions_task_9_tt
add_treasury = -100
add_political_influence = -25
add_manpower = -5
hidden_effect = {
p:7500 = { add_road_towards = p:7553 }
p:7553 = { add_road_towards = p:7552 }
Expand Down
19 changes: 18 additions & 1 deletion common/modifiers/00_from_missions_blemmia.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# BLEMMIA MODIFIERS

adabulian_negotiations = {
blemmyan_negotiations = {
diplomatic_range_modifier = 0.1
control_range_modifier = 0.1
diplomatic_relations = 1
Expand All @@ -11,4 +11,21 @@ blemmyan_gold_mining = {
base_resources = 1
local_slaves_output = 0.1
local_slaves_desired_pop_ratio = 0.1
}

segmented_blemmyan_capitals = {
price_found_city_cost_modifier = -0.15
price_found_metropolis_cost_modifier = -0.15
global_tax_modifier = 0.05
}

blemmyan_all_golden_city = {
base_resources = 1
local_slaves_output = 0.1
local_nobles_happyness = 0.1
}

blemmyan_mine_construction = {
build_time = -0.1
slave_mine_building_cost = -0.20
}
13 changes: 11 additions & 2 deletions localization/english/missions/blemmia_missions_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,20 @@

#Modifiers

adabulian_negotiations: "Adabulian Negotiations"
desc_adabulian_negotiations: "Working with the integration of the Adabulian tribes has taught Blemmyan chiefs how to best resolve conflict and make friendships."
blemmyan_negotiations: "Blemmyan Negotiations"
desc_blemmyan_negotiations: "Working with the integration of the related Blemmyan tribes has taught the chiefs how to best resolve conflict and make friendships."

blemmyan_gold_mining: "Blemmyan Gold Mining"
desc_blemmyan_gold_mining: "The golden hills and cliffs of the desert east of the Nile contains seemingly unlimited veins of gold."

segmented_blemmyan_capitals: "Segmented Capitals"
desc_segmented_blemmyan_capitals: "Distributing the administration of the Blemmyan state between multiple seasonal capital cities, the bureaucracy becomes more flexible and the Blemmyan builders become more experienced."

blemmyan_all_golden_city: "The All-Golden City"
desc_blemmyan_all_golden_city: "Shining like a jewel in the desert, Berenike Panchrysos stands out among all cities, elevating the status and respect of its people and its ruler."

blemmyan_mine_construction: "Blemmyan Mine Construction"
desc_blemmyan_mine_construction: "The hardy Blemmyan workers have become regularly accustomed to crafting new mine shafts and equipment."


#Events
Expand Down

0 comments on commit a54bc6c

Please sign in to comment.