Skip to content

Commit

Permalink
Parthia work
Browse files Browse the repository at this point in the history
  • Loading branch information
peterson2137 committed Feb 18, 2025
1 parent e262172 commit f024bf3
Show file tree
Hide file tree
Showing 7 changed files with 277 additions and 51 deletions.
56 changes: 47 additions & 9 deletions common/missions/02_parthia_missions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@

allow = {
any_subject = {
count >= 5
count >= 7
is_subject_type = march
NOT = { has_variable = pth_excepted_var }
}
Expand Down Expand Up @@ -803,7 +803,10 @@
}

bypass = {
c:MAP = { has_land = no }
OR = {
c:MAP = { has_land = no }
c:MAP = { is_subject_of = root }
}
}

allow = {
Expand Down Expand Up @@ -836,7 +839,10 @@
}

bypass = {
c:ADI = { has_land = no }
OR = {
c:ADI = { has_land = no }
c:ADI = { is_subject_of = root }
}
}

allow = {
Expand All @@ -860,13 +866,13 @@

parthia_missions_20a = {
icon = "task_political"
requires = { parthia_missions_19a }
requires = { parthia_missions_22a }
potential = {
has_variable = parthia_chosen_tree
NOT = { has_variable = parthia_centralized_wg }
}
on_start = {
}



on_completion = {
}
Expand All @@ -879,11 +885,43 @@
has_variable = parthia_chosen_tree
NOT = { has_variable = parthia_centralized_wg }
}
on_start = {
bypass = {
AND = {
OR = {
c:SPH = { has_land = no }
c:SPH = { is_subject_of = root }
}
OR = {
c:CRD = { has_land = no }
c:CRD = { is_subject_of = root }
}
}
}

allow = {
trigger_if = {
limit = {
exists = c:SPH
c:SPH = { has_land = yes }
}
hidden:c:SPH = {
opinion = { target = ROOT value >= 50 }
}
}
trigger_if = {
limit = {
exists = c:CRD
c:CRD = { has_land = yes }
}
hidden:c:CRD = {
opinion = { target = ROOT value >= 50 }
}
}
}

on_completion = {
}
custom_tooltip = parthia_missions_21a.tt
set_variable = pth_wooing_ARM_flag
}
}

parthia_missions_22a = {
Expand Down
8 changes: 8 additions & 0 deletions common/modifiers/00_from_missions_parthia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,12 @@ parthian_atropatene = {

parthian_adiabene = {
siege_ability = 0.1
}

parthian_armenia = {
manpower_recovery_speed = 0.05
}

parthian_iberia = {
manpower_recovery_speed = 0.05
}
2 changes: 1 addition & 1 deletion common/script_values/00_mission_parthia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ parthia_region_pop_svalue = {
OR = {
owner = root
owner = {
is_subject_type = march
# is_subject_type = march
}
}
}
Expand Down
63 changes: 63 additions & 0 deletions common/scripted_effects/00_parthia_effects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,67 @@ add_dahae_help_plus_effect = {
add = 1
}
}
}

wooing_ARM_progress_small_effect = {
custom_tooltip = wooing_ARM_progress_small.tt
if = {
limit = {
NOT = {
has_variable = wooing_ARM_progress
}
}
set_variable = {
name = wooing_ARM_progress
value = 1
}
}
else = {
change_variable = {
name = wooing_ARM_progress
add = 1
}
}
}

wooing_ARM_progress_moderate_effect = {
custom_tooltip = wooing_ARM_progress_moderate.tt
if = {
limit = {
NOT = {
has_variable = wooing_ARM_progress
}
}
set_variable = {
name = wooing_ARM_progress
value = 2
}
}
else = {
change_variable = {
name = wooing_ARM_progress
add = 2
}
}
}

wooing_ARM_progress_large_effect = {
custom_tooltip = wooing_ARM_progress_large.tt
if = {
limit = {
NOT = {
has_variable = wooing_ARM_progress
}
}
set_variable = {
name = wooing_ARM_progress
value = 3
}
}
else = {
change_variable = {
name = wooing_ARM_progress
add = 3
}
}
}
117 changes: 112 additions & 5 deletions decisions/parthia_decisions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}

effect = {
custom_tooltip = "dahae_investment.tt"
custom_tooltip = "dahae_investment.tt" #TODO
save_scope_as = defecting_subject
random_country = {
limit = {
Expand All @@ -71,22 +71,28 @@
tag = CHA
}
any_neighbour_country = {
tag = PTH
OR = {
tag = PTH
is_subject_type = march
}
}
}

allow = {
any_owned_province = {
any_neighbor_province = {
owner = {
tag = PTH
OR = {
tag = PTH
is_subject_type = march
}
}
}
}
}
}

effect = {
custom_tooltip = "dahae_investment.tt"
custom_tooltip = "dahae_investment.tt" #TODO
save_scope_as = defecting_subject
set_variable = pth_asked_var
random_country = {
Expand All @@ -104,6 +110,107 @@
}
}

march_colour_debug_decision = {
potential = {
is_ai = yes
is_subject_type = march
OR = {
AND = {
has_variable = parthian_march1_hsv
any_neighbour_country = {
has_variable = parthian_march1_hsv
}
}
AND = {
has_variable = parthian_march2_hsv
any_neighbour_country = {
has_variable = parthian_march2_hsv
}
}
AND = {
has_variable = parthian_march3_hsv
any_neighbour_country = {
has_variable = parthian_march3_hsv
}
}
AND = {
has_variable = parthian_march4_hsv
any_neighbour_country = {
has_variable = parthian_march4_hsv
}
}
AND = {
has_variable = parthian_march5_hsv
any_neighbour_country = {
has_variable = parthian_march5_hsv
}
}
AND = {
has_variable = parthian_march6_hsv
any_neighbour_country = {
has_variable = parthian_march6_hsv
}
}
AND = {
has_variable = parthian_march7_hsv
any_neighbour_country = {
has_variable = parthian_march7_hsv
}
}
AND = {
has_variable = parthian_march8_hsv
any_neighbour_country = {
has_variable = parthian_march8_hsv
}
}
AND = {
has_variable = parthian_march9_hsv
any_neighbour_country = {
has_variable = parthian_march9_hsv
}
}
}
}
allow = {
always = yes
}
effect = {
new_march_colour_effect = yes
}
ai_will_do = {
base = 4000
}
}

pth_wooing_demand_loyalty = {
potential = {
num_of_cities >= 1
has_variable = pth_wooing_ARM_flag
OR = {
NOT = { c:SPH = { is_subject_of = root } }
NOT = { c:CRD = { is_subject_of = root } }
}
}

allow = {
custom_tooltip = {
text = pth_wooing_demand_loyalty.tt
var:wooing_ARM_progress >= 15
}
}

effect = {
trigger_event = {
id = cyr_thera_01.17
}
remove_variable = cyr_wooing_DEL_flag
}

ai_will_do = {
base = 1
}
}

parthia_debug_leftside = { #TODO DELETE

potential = {
Expand Down
Loading

0 comments on commit f024bf3

Please sign in to comment.