Index
- Index:
For the index for all the Imperator modding guides, go to Imperator Modding Guide Index.
For the tools used in the pictures for this guide, go to Sublime Tools for Imperator.
carthaginian_mission_11_gaul = {
header = "mission_image_carthage" # SPECIAL FIELD - Sets top picture for the mission
icon = "carthage_1" # SPECIAL FIELD - Sets icon for the mission
repeatable = no # SPECIAL FIELD - Sets if a mission can be done once or several times
chance = {} # SPECIAL FIELD - Sets the chances of a mission appearing in your list of available missions
potential = {} # TRIGGER FIELD - Sets the conditions for the mission to appear in your list
abort = {} # TRIGGER FIELD - Sets conditions for the mission to be automatically aborted
on_potential = {} # EFFECT FIELD - These effects are run when the mission becomes available
on_start = {} # EFFECT FIELD - These effects are run when the mission is started
on_abort = {} # EFFECT FIELD - These effects are run when the mission is aborted
on_completion = {} # EFFECT FIELD - These effects are run when the mission is completed
carthaginian_mission_11_gaul_task_final = { # MISSION TASK
icon = "task_political" # SPECIAL FIELD - Sets picture for mission task
duration = 180 # SPECIAL FIELD - Sets the duration of the mission task (instant mission task if no duration is defined)
monthly_on_action = carthaginian_mission_11_gaul_task_final_pulse # SPECIAL FIELD - Monthly on_action that can be used to trigger events (for timed mission tasks)
requires = {} # SPECIAL FIELD - Missions tasks required for this task to be available
prevented_by = {} # SPECIAL FIELD - Sets exclusivity for this mission task
final = yes # SPECIAL FIELD - Final mission task of the mission
potential = {} # TRIGGER FIELD - Conditions for the mission task to be available
highlight = {} # TRIGGER FIELD - Conditions for provinces to be highlighted when hovering over the mission task
allow = {} # TRIGGER FIELD - Conditions for the mission task to be completed
bypass = {} # TRIGGER FIELD - Conditions for the mission task to be bypassed
ai_chance = {} # SPECIAL FIELD - Set AI chance modifiers, to decide how the AI prioritizes mission tasks
on_start = {} # EFFECT FIELD - These effects are run when the mission task is started (timed mission tasks only)
on_completion = {} # EFFECT FIELD - These effects are run when the mission task is completed
on_bypass = {} # EFFECT FIELD - These effects are run when the mission task is bypassed
}
}
carthaginian_mission_11_gaul = {
header = "mission_image_carthage" # SPECIAL FIELD - Sets top picture for the mission
icon = "carthage_1" # SPECIAL FIELD - Sets icon for the mission
repeatable = no # SPECIAL FIELD - Sets if a mission can be done once or several times
chance = { # SPECIAL FIELD - Sets the chances of a mission appearing in your list of available missions
factor = 3 # MODIFIER - Higher chance for story missions to appear than other missions
}
potential = { # TRIGGER FIELD - Sets the conditions for the mission to appear in your list
NOT = { has_variable = carthaginian_mission_11_gaul } # VARIABLE - Cooldown if mission has been aborted
country_culture = carthaginian # TRIGGER - Check if the nation is of Punic culture
OR = { # BOOLEAN OPERATOR - Check if any of the following conditions are true
has_completed_mission = carthaginian_iberia_expansion_mission # TRIGGER - Have completed the first Carthaginian mission in Iberia
has_completed_mission = carthaginian_rome_expansion_mission # TRIGGER - Have completed the Carthaginian mission against Rome
any_owned_province = { # TRIGGER SCRIPT LIST - Own any province with the following conditions
OR = { # BOOLEAN OPERATOR - Check if any of the following conditions are true
is_in_region = tarraconensis_region # TRIGGER - Has any province in the region of Tarraconensis
is_in_region = cisalpine_gaul_region # TRIGGER - Has any province in the region of Cisalpine Gaul
is_in_region = transalpine_gaul_region # TRIGGER - Has any province in the region of Transalpine Gaul
is_in_area = corsica_area # TRIGGER - Has any province in the area of Corsica
} # END OF BOOLEAN OPERATOR
} # END OF TRIGGER SCRIPT LIST
} # END OF BOOLEAN OPERATOR
NOT = { # BOOLEAN OPERATOR - Check if the following condition is not true
any_owned_province = { # TRIGGER SCRIPT LIST - Own any province with the following conditions
count >= 5 # COUNT - At least 5 provinces with the following conditions
is_in_region = transalpine_gaul_region # TRIGGER - Has any province in the region of Transalpine Gaul
} # END OF TRIGGER SCRIPT LIST
} # END OF BOOLEAN OPERATOR
is_subject = no # TRIGGER - Is not a subject of another nation
}
on_start = { # EFFECT FIELD - These effects are run when the mission is started
save_scope_as = mission_country # EFFECT - Save Scope
}
on_abort = { # EFFECT FIELD - These effects are run when the mission is aborted
custom_tooltip = general_mission_cooldown_tt # EFFECT - CUSTOM TOOLTIP - Explains the player that they will receive a cooldown when aborting the mission
set_variable = { # EFFECT - VARIABLE - Set a variable to check cooldown
name = carthaginian_mission_11_gaul # SPECIAL FIELD - Name of variable
days = 7300 # SPECIAL FIELD - Duration of variable
} # END OF VARIABLE EFFECT
}
on_completion = { # EFFECT FIELD - These effects are run when the mission is completed
complete_mission_effect = yes # SCRIPTED EFFECT - Sets up a variable to count how many missions we have completed
}
carthaginian_mission_11_gaul_task_final = { # MISSION TASK
icon = "task_political" # SPECIAL FIELD - Sets picture for mission task
duration = 180 # SPECIAL FIELD - Sets the duration of the mission task (instant mission task if no duration is defined)
monthly_on_action = carthaginian_mission_11_gaul_task_final_pulse # SPECIAL FIELD - Monthly on_action that can be used to trigger events (for timed mission tasks)
requires = {} # SPECIAL FIELD - Missions tasks required for this task to be available
final = yes # SPECIAL FIELD - Final mission task of the mission
potential = {} # TRIGGER FIELD - Conditions for the mission task to be available
highlight = {} # TRIGGER FIELD - Conditions for provinces to be highlighted when hovering over the mission task - PROVINCE SCOPE
allow = {} # TRIGGER FIELD - Conditions for the mission task to be completed
bypass = {} # TRIGGER FIELD - Conditions for the mission task to be bypassed
ai_chance = {} # SPECIAL FIELD - Set AI chance modifiers, to decide how the AI prioritizes mission tasks
on_start = {} # EFFECT FIELD - These effects are run when the mission task is started (timed mission tasks only)
on_completion = {} # EFFECT FIELD - These effects are run when the mission task is completed
on_bypass = {} # EFFECT FIELD - These effects are run when the mission task is bypassed
}
}
potential = { # TRIGGER FIELD - Sets the conditions for the mission to appear in your list
NOT = { has_variable = carthaginian_mission_11_gaul } # VARIABLE - Cooldown if mission has been aborted
country_culture = carthaginian # TRIGGER - Check if the nation is of Punic culture
OR = { # BOOLEAN OPERATOR - Check if any of the following conditions are true
has_completed_mission = carthaginian_iberia_expansion_mission # TRIGGER - Have completed the first Carthaginian mission in Iberia
has_completed_mission = carthaginian_rome_expansion_mission # TRIGGER - Have completed the Carthaginian mission against Rome
any_owned_province = { # TRIGGER SCRIPT LIST - Own any province with the following conditions
OR = { # BOOLEAN OPERATOR - Check if any of the following conditions are true
is_in_region = tarraconensis_region # TRIGGER - Has any province in the region of Tarraconensis
is_in_region = cisalpine_gaul_region # TRIGGER - Has any province in the region of Cisalpine Gaul
is_in_region = transalpine_gaul_region # TRIGGER - Has any province in the region of Transalpine Gaul
is_in_area = corsica_area # TRIGGER - Has any province in the area of Corsica
} # END OF BOOLEAN OPERATOR
} # END OF TRIGGER SCRIPT LIST
} # END OF BOOLEAN OPERATOR
NOT = { # BOOLEAN OPERATOR - Check if the following condition is not true
any_owned_province = { # TRIGGER SCRIPT LIST - Own any province with the following conditions
count >= 5 # COUNT - At least 5 provinces with the following conditions
is_in_region = transalpine_gaul_region # TRIGGER - Has any province in the region of Transalpine Gaul
} # END OF TRIGGER SCRIPT LIST
} # END OF BOOLEAN OPERATOR
is_subject = no # TRIGGER - Is not a subject of another nation
}
on_start = { # EFFECT FIELD - These effects are run when the mission is started
save_scope_as = mission_country # EFFECT - Save Scope
}
on_abort = { # EFFECT FIELD - These effects are run when the mission is aborted
custom_tooltip = general_mission_cooldown_tt # EFFECT - CUSTOM TOOLTIP - Explains the player that they will receive a cooldown when aborting the mission
set_variable = { # EFFECT - VARIABLE - Set a variable to check cooldown
name = carthaginian_mission_11_gaul # SPECIAL FIELD - Name of variable
days = 7300 # SPECIAL FIELD - Duration of variable
} # END OF VARIABLE EFFECT
}
on_completion = { # EFFECT FIELD - These effects are run when the mission is completed
complete_mission_effect = yes # SCRIPTED EFFECT - Sets up a variable to count how many missions we have completed
}
### Gaul ###
carthaginian_mission_11_gaul:0 "Controlling Rhodanus"
carthaginian_mission_11_gaul_DESCRIPTION:0 "This is a descriptive description describing the mission about taking control of the territories around the Rhodanus."
carthaginian_mission_11_gaul_CRITERIA_DESCRIPTION:0 "This mission will be considered complete when we have taken control of the territories around the Rhodanus."
carthaginian_mission_11_gaul_BUTTON_TOOLTIP:0 "Rhodanus will be our entrance into the rich trade of Gaul."
carthaginian_mission_11_gaul = {
header = "mission_image_carthage" # SPECIAL FIELD - Sets top picture for the mission
icon = "carthage_1" # SPECIAL FIELD - Sets icon for the mission
repeatable = no # SPECIAL FIELD - Sets if a mission can be done once or several times
chance = { # SPECIAL FIELD - Sets the chances of a mission appearing in your list of available missions
factor = 3 # MODIFIER - Higher chance for story missions to appear than other missions
}
potential = { # TRIGGER FIELD - Sets the conditions for the mission to appear in your list
NOT = { has_variable = carthaginian_mission_11_gaul } # VARIABLE - Cooldown if mission has been aborted
country_culture = carthaginian # TRIGGER - Check if the nation is of Punic culture
OR = { # BOOLEAN OPERATOR - Check if any of the following conditions are true
has_completed_mission = carthaginian_iberia_expansion_mission # TRIGGER - Have completed the first Carthaginian mission in Iberia
has_completed_mission = carthaginian_rome_expansion_mission # TRIGGER - Have completed the Carthaginian mission against Rome
any_owned_province = { # TRIGGER SCRIPT LIST - Own any province with the following conditions
OR = { # BOOLEAN OPERATOR - Check if any of the following conditions are true
is_in_region = tarraconensis_region # TRIGGER - Has any province in the region of Tarraconensis
is_in_region = cisalpine_gaul_region # TRIGGER - Has any province in the region of Cisalpine Gaul
is_in_region = transalpine_gaul_region # TRIGGER - Has any province in the region of Transalpine Gaul
is_in_area = corsica_area # TRIGGER - Has any province in the area of Corsica
} # END OF BOOLEAN OPERATOR
} # END OF TRIGGER SCRIPT LIST
} # END OF BOOLEAN OPERATOR
NOT = { # BOOLEAN OPERATOR - Check if the following condition is not true
any_owned_province = { # TRIGGER SCRIPT LIST - Own any province with the following conditions
count >= 5 # COUNT - At least 5 provinces with the following conditions
is_in_region = transalpine_gaul_region # TRIGGER - Has any province in the region of Transalpine Gaul
} # END OF TRIGGER SCRIPT LIST
} # END OF BOOLEAN OPERATOR
is_subject = no # TRIGGER - Is not a subject of another nation
}
on_start = { # EFFECT FIELD - These effects are run when the mission is started
save_scope_as = mission_country # EFFECT - Save Scope
}
on_abort = { # EFFECT FIELD - These effects are run when the mission is aborted
custom_tooltip = general_mission_cooldown_tt # EFFECT - CUSTOM TOOLTIP - Explains the player that they will receive a cooldown when aborting the mission
set_variable = { # EFFECT - VARIABLE - Set a variable to check cooldown
name = carthaginian_mission_11_gaul # SPECIAL FIELD - Name of variable
days = 7300 # SPECIAL FIELD - Duration of variable
} # END OF VARIABLE EFFECT
}
on_completion = { # EFFECT FIELD - These effects are run when the mission is completed
complete_mission_effect = yes # SCRIPTED EFFECT - Sets up a variable to count how many missions we have completed
}
carthaginian_mission_11_gaul_task_1 = { # Ports of Gaul
icon = "task_political"
potential = {}
allow = {}
on_completion = {}
}
carthaginian_mission_11_gaul_task_2 = { # Managing Massalia
icon = "task_political"
requires = { carthaginian_mission_11_gaul_task_1 }
potential = {}
allow = {}
on_completion = {}
}
carthaginian_mission_11_gaul_task_3 = { # Annex Arelatis
icon = "task_political"
requires = { carthaginian_mission_11_gaul_task_1 }
potential = {}
allow = {}
on_completion = {}
}
carthaginian_mission_11_gaul_task_4 = { # Navigating Narbo
icon = "task_political"
requires = { carthaginian_mission_11_gaul_task_1 }
potential = {}
allow = {}
on_completion = {}
}
carthaginian_mission_11_gaul_task_5 = { # Ousting the Greeks
icon = "task_political"
requires = { carthaginian_mission_11_gaul_task_2 carthaginian_mission_11_gaul_task_3 }
potential = {}
allow = {}
on_completion = {}
}
carthaginian_mission_11_gaul_task_6 = { # Gallic Markets
icon = "task_political"
requires = { carthaginian_mission_11_gaul_task_3 carthaginian_mission_11_gaul_task_4 }
potential = {}
allow = {}
on_completion = {}
}
carthaginian_mission_11_gaul_task_final = { # Rhodanian Trade
icon = "task_political" # SPECIAL FIELD - Sets picture for mission task
requires = { carthaginian_mission_11_gaul_task_5 carthaginian_mission_11_gaul_task_6 } # SPECIAL FIELD - Missions tasks required for this task to be available
final = yes # SPECIAL FIELD - Final mission task of the mission
}
}
carthaginian_mission_11_gaul_task_2 = { # Managing Massalia
icon = "task_political"
requires = { carthaginian_mission_11_gaul_task_1 }
potential = {}
allow = {}
on_completion = {}
}
carthaginian_mission_11_gaul_task_3 = { # Annex Arelatis
icon = "task_political"
requires = { carthaginian_mission_11_gaul_task_1 }
potential = {}
allow = {}
on_completion = {}
}
carthaginian_mission_11_gaul_task_4 = { # Navigating Narbo
icon = "task_political"
requires = { carthaginian_mission_11_gaul_task_1 }
potential = {}
allow = {}
on_completion = {}
}
carthaginian_mission_11_gaul_task_5 = { # Ousting the Greeks
icon = "task_political"
requires = { carthaginian_mission_11_gaul_task_2 carthaginian_mission_11_gaul_task_3 }
potential = {}
allow = {}
on_completion = {}
}
carthaginian_mission_11_gaul_task_6 = { # Gallic Markets
icon = "task_political"
requires = { carthaginian_mission_11_gaul_task_3 carthaginian_mission_11_gaul_task_4 }
potential = {}
allow = {}
on_completion = {}
}
carthaginian_mission_11_gaul_task_final = { # Rhodanian Trade
icon = "task_political" # SPECIAL FIELD - Sets picture for mission task
requires = { carthaginian_mission_11_gaul_task_5 carthaginian_mission_11_gaul_task_6 } # SPECIAL FIELD - Missions tasks required for this task to be available
final = yes # SPECIAL FIELD - Final mission task of the mission
}
### Gaul ###
carthaginian_mission_11_gaul:0 "Controlling Rhodanus"
carthaginian_mission_11_gaul_DESCRIPTION:0 "This is a descriptive description describing the mission about taking control of the territories around the Rhodanus."
carthaginian_mission_11_gaul_CRITERIA_DESCRIPTION:0 "This mission will be considered complete when we have taken control of the territories around the Rhodanus."
carthaginian_mission_11_gaul_BUTTON_TOOLTIP:0 "Rhodanus will be our entrance into the rich trade of Gaul."
carthaginian_mission_11_gaul_task_1:0 "Ports of Gaul"
carthaginian_mission_11_gaul_task_1_DESC:0 "Long have the Greeks been the only foreign traders in Gaul, it is time for a change."
carthaginian_mission_11_gaul_task_2:0 "Managing Massalia"
carthaginian_mission_11_gaul_task_2_DESC:0 "Massalia has a long and rich history."
carthaginian_mission_11_gaul_task_3:0 "Annex Arelatis"
carthaginian_mission_11_gaul_task_3_DESC:0 "Arelatis is a natural harbor up the Rhodanus, connecting the river trade of Gaul with the Mediterranean."
carthaginian_mission_11_gaul_task_4:0 "Navigating Narbo"
carthaginian_mission_11_gaul_task_4_DESC:0 "One of the richer Gallic cities along the Mediterranean coast."
carthaginian_mission_11_gaul_task_5:0 "Ousting the Greeks"
carthaginian_mission_11_gaul_task_5_DESC:0 "Down with the Greeks!"
carthaginian_mission_11_gaul_task_6:0 "Gallic Markets"
carthaginian_mission_11_gaul_task_6_DESC:0 "The rich Gallic markets are ours for the taking."
carthaginian_mission_11_gaul_task_final:0 "Rhodanian Trade"
carthaginian_mission_11_gaul_task_final_DESC:0 "We have finally completed our goal of entering the rich river trade of Gaul."
carthaginian_mission_11_gaul_task_1 = { # Ports of Gaul
icon = "task_diplomatic"# SPECIAL FIELD - Sets picture for mission task
duration = 180 # SPECIAL FIELD - Sets duration for the mission task
monthly_on_action = carthaginian_mission_11_gaul_task_1_pulse # SPECIAL FIELD - Monthly on action pulse
highlight = { # TRIGGER FIELD - Conditions for the provinces to be highlighted
scope:province = { # SPECIAL SCOPE - A special saved scope to check conditions on all provinces
OR = { # BOOLEAN OPERATOR - Checks if any of the following conditions are true
province_id = 2325 # TRIGGER - Checks for Massalia's province ID
province_id = 2319 # TRIGGER - Checks for Arelatis' province ID
province_id = 2256 # TRIGGER - Checks for Narbo's province ID
}
trigger_if = { # TRIGGER IF - Checks if the following condition is true, and if it is we apply the extra trigger
limit = {
has_owner = yes # TRIGGER - Checks if the province has any owner
}
NOT = { # BOOLEAN OPERATOR - Checks if the following condition is NOT true
owner = root # EVENT TARGET COMPARISON - Owner is ROOT
}
}
}
}
allow = { # TRIGGER FIELD - Conditions for the mission task to be completed
treasury >= 150 # TRIGGER - Check if you have 150 or more gold in your treasury
}
bypass = { # TRIGGER FIELD - COnditions for the mission task to be bypassed
any_owned_province = { # TRIGGER SCRIPT LIST - Check if you own any provinces that fits the following conditions
count = 3 # COUNT - Count if you hold 3 provinces that fits the following conditions
OR = { # BOOLEAN OPERATOR - Checks if any of the following conditions are true
province_id = 2325 # TRIGGER - Checks for Massalia's province ID
province_id = 2319 # TRIGGER - Checks for Arelatis' province ID
province_id = 2256 # TRIGGER - Checks for Narbo's province ID
}
}
}
on_start = { # EFFECT FIELD - These effects are run when the mission task is started
add_treasury = -150 # EFFECT - Remove 150 gold from your treasury
}
on_completion = { # EFFECT FIELD - These effects are run when the mission task is completed
p:2325 = { # SPECIFIC PROVINCE SCOPE - Massalia
if = { # If Clause - Check if the following condition is true, then give you a claim if it is
limit = { # LIMIT - Initiates a trigger field
has_owner = yes # TRIGGER - Checks if the province has any owner
NOT = { owner = root } # BOOLEAN OPERATOR - EVENT TARGET COMPARISON - Checks that we don't own the province
}
add_claim = root # EFFECT - Add claim to the province to ROOT
}
}
p:2319 = { # SPECIFIC PROVINCE SCOPE - Arelatis
if = { # If Clause - Check if the following condition is true, then give you a claim if it is
limit = { # LIMIT - Initiates a trigger field
has_owner = yes # TRIGGER - Checks if the province has any owner
NOT = { owner = root } # BOOLEAN OPERATOR - EVENT TARGET COMPARISON - Checks that we don't own the province
}
add_claim = root # EFFECT - Add claim to the province to ROOT
}
}
p:2256 = { # SPECIFIC PROVINCE SCOPE - Narbo
if = { # If Clause - Check if the following condition is true, then give you a claim if it is
limit = { # LIMIT - Initiates a trigger field
has_owner = yes # TRIGGER - Checks if the province has any owner
NOT = { owner = root } # BOOLEAN OPERATOR - EVENT TARGET COMPARISON - Checks that we don't own the province
}
add_claim = root # EFFECT - Add claim to the province to ROOT
}
}
}
}
carthaginian_mission_11_gaul_task_1_pulse = {
random_events = {
5 = 0
}
}
carthaginian_mission_11_gaul_task_1_svalue = {
value = 150
every_owned_province = {
limit = {
OR = {
province_id = 2325
province_id = 2319
province_id = 2256
}
}
subtract = 50
}
}
allow = { # TRIGGER FIELD - Conditions for the mission task to be completed
treasury >= carthaginian_mission_11_gaul_task_1_svalue # TRIGGER - Check if you have enough gold in your treasury
}
bypass = { # TRIGGER FIELD - COnditions for the mission task to be bypassed
any_owned_province = { # TRIGGER SCRIPT LIST - Check if you own any provinces that fits the following conditions
count = 3 # COUNT - Count if you hold 3 provinces that fits the following conditions
OR = { # BOOLEAN OPERATOR - Checks if any of the following conditions are true
province_id = 2325 # TRIGGER - Checks for Massalia's province ID
province_id = 2319 # TRIGGER - Checks for Arelatis' province ID
province_id = 2256 # TRIGGER - Checks for Narbo's province ID
}
}
}
on_start = { # EFFECT FIELD - These effects are run when the mission task is started
add_treasury = { # EFFECT - Remove a logical amount of gold from your treasury
subtract = carthaginian_mission_11_gaul_task_1_svalue
}
}
carthaginian_mission_11_gaul_task_2 = { # Managing Massalia
icon = "task_conquest" # ICON - Set icon for the task
requires = { carthaginian_mission_11_gaul_task_1 } # SPECIAL FIELD - Set tasks that needs to be completed to be able to complete this task
highlight = { # TRIGGER FIELD - Conditions for provinces to be highlighted
scope:province = { # SPECIAL SCOPE - A special saved scope to check conditions on all provinces
province_id = 2325 # TRIGGER - Checks for Massalia's province ID
}
}
allow = { # TRIGGER FIELD - Conditions for the mission task to be completed
owns = 2325 # TRIGGER - Checks for Massalia's province ID
}
on_completion = { # EFFECT FIELD - These effects are run when the mission task is completed
p:2325 = { # SPECIFIC PROVINCE SCOPE - Massalia
while = { # WHILE LOOP - Run the following effects as many times as the count, as long as the condition in limit is true
count = 5 # COUNT - How many times should it run if conditions are true
limit = { # LIMIT - Conditions for while to run
total_population < population_cap # TRIGGER - Checks if total population is lower than population capacity in the province
}
define_pop = { # EFFECT - Add defined pop to the province
type = freemen # TYPE - Sets type of pop
culture = root.culture # CULTURE - Sets culture of pop
religion = root.religion # RELIGION - Sets religion of pop
}
}
}
}
}
carthaginian_mission_11_gaul_task_3 = { # Annex Arelatis
icon = "task_political"
requires = { carthaginian_mission_11_gaul_task_1 }
highlight = {
scope:province = {
province_id = 2319
}
}
allow = {
owns = 2319
}
on_completion = {
p:2319 = {
while = {
count = 5
limit = {
total_population > population_cap
}
define_pop = {
type = freemen
culture = root.culture
religion = root.religion
}
}
}
}
}
carthaginian_mission_11_gaul_task_4 = { # Navigating Narbo
icon = "task_expansion"
requires = { carthaginian_mission_11_gaul_task_1 }
highlight = {
scope:province = {
province_id = 2256
}
}
allow = {
owns = 2256
}
on_completion = {
p:2256 = {
while = {
count = 5
limit = {
total_population > population_cap
}
define_pop = {
type = freemen
culture = root.culture
religion = root.religion
}
}
}
}
}
carthaginian_mission_11_gaul_task_5 = { # Ousting the Greeks
icon = "task_political" # ICON - Set icon for the task
prevented_by = { carthaginian_mission_11_gaul_task_6 } # EXCLUSIVITY - If you complete this other task, this task will become unavailable
requires = { carthaginian_mission_11_gaul_task_2 carthaginian_mission_11_gaul_task_3 } # SPECIAL FIELD - Set tasks that needs to be completed to be able to complete this task
bypass = { # TRIGGER FIELD - Conditions for the mission task to be bypassed
has_completed_mission_task = carthaginian_mission_11_gaul_task_6 # TRIGGER - Check if this mission task has been completed
}
allow = { # TRIGGER FIELD - Conditions for the mission task to be completed
trigger_if = { # TRIGGER IF - Checks if the following condition is true, and if it is we apply the extra trigger
limit = { # LIMIT - Sets condition for trigger if to be true or not
NOT = { owns = 2325 } # BOOLEAN OPERATOR - TRIGGER - Check if the nation does not own Massalia
}
owns = 2325 # TRIGGER - Check if the nation owns Massalia
}
p:2325 = { # SPECIAL PROVINCE SCOPE - Massalia
has_city_status = yes # TRIGGER - Checks if the province has city status
dominant_province_culture = root.culture # TRIGGER - Checks if the province is dominantly punic culture
}
trigger_if = { # TRIGGER IF - Checks if the following condition is true, and if it is we apply the extra trigger
limit = { # LIMIT - Sets condition for trigger if to be true or not
NOT = { owns = 2319 } # BOOLEAN OPERATOR - TRIGGER - Check if the nation does not own Arelatis
}
owns = 2319 # TRIGGER - Check if the nation owns Arelatis
}
p:2319 = { # SPECIAL PROVINCE SCOPE - Arelatis
has_city_status = yes # TRIGGER - Checks if the province has city status
dominant_province_culture = root.culture # TRIGGER - Checks if the province is dominantly punic culture
}
}
on_completion = {
p:2325 = { # SPECIAL PROVINCE SCOPE - Massalia
add_province_modifier = { # EFFECT - Add province modifier
name = punic_mission_punic_port_modifier # SPECIAL FIELD - Name of modifier
duration = -1 # SPECIAL FIELD - Duration of modifier
}
}
p:2319 = { # SPECIAL PROVINCE SCOPE - Arelatis
add_province_modifier = { # EFFECT - Add province modifier
name = punic_mission_punic_port_modifier # SPECIAL FIELD - Name of modifier
duration = -1 # SPECIAL FIELD - Duration of modifier
}
}
}
}
carthaginian_mission_11_gaul_task_6 = { # Gallic Markets
icon = "task_economical" # ICON - Set icon for the task
prevented_by = { carthaginian_mission_11_gaul_task_5 } # EXCLUSIVITY - If you complete this other task, this task will become unavailable
requires = { carthaginian_mission_11_gaul_task_3 carthaginian_mission_11_gaul_task_4 } # SPECIAL FIELD - Set tasks that needs to be completed to be able to complete this task
bypass = { # TRIGGER FIELD - Conditions for the mission task to be bypassed
has_completed_mission_task = carthaginian_mission_11_gaul_task_5 # TRIGGER - Check if this mission task has been completed
}
allow = { # TRIGGER FIELD - Conditions for the mission task to be completed
trigger_if = { # TRIGGER IF - Checks if the following condition is true, and if it is we apply the extra trigger
limit = { # LIMIT - Sets condition for trigger if to be true or not
NOT = { owns = 2256 } # BOOLEAN OPERATOR - TRIGGER - Check if the nation does not own Narbo
}
owns = 2256 # TRIGGER - Check if the nation owns Narbo
}
p:2256 = { # SPECIAL PROVINCE SCOPE - Narbo
has_city_status = yes # TRIGGER - Checks if the province has city status
free_building_slots = 0 # TRIGGER - Check that the province has no free building slots
has_construction = no # TRIGGER - Check that there is nothing being constructed right now
}
trigger_if = { # TRIGGER IF - Checks if the following condition is true, and if it is we apply the extra trigger
limit = { # LIMIT - Sets condition for trigger if to be true or not
NOT = { owns = 2319 } # BOOLEAN OPERATOR - TRIGGER - Check if the nation does not own Arelatis
}
owns = 2319 # TRIGGER - Check if the nation owns Arelatis
}
p:2319 = { # SPECIAL PROVINCE SCOPE - Arelatis
has_city_status = yes # TRIGGER - Checks if the province has city status
free_building_slots = 0 # TRIGGER - Check that the province has no free building slots
has_construction = no # TRIGGER - Check that there is nothing being constructed right now
}
}
on_completion = {
p:2256 = { # SPECIAL PROVINCE SCOPE - Narbo
add_province_modifier = { # EFFECT - Add province modifier
name = punic_mission_punic_port_modifier # SPECIAL FIELD - Name of modifier
duration = -1 # SPECIAL FIELD - Duration of modifier
}
}
p:2319 = { # SPECIAL PROVINCE SCOPE - Arelatis
add_province_modifier = { # EFFECT - Add province modifier
name = punic_mission_punic_port_modifier # SPECIAL FIELD - Name of modifier
duration = -1 # SPECIAL FIELD - Duration of modifier
}
}
}
}
carthaginian_mission_11_gaul_task_2 = { # Managing Massalia
icon = "task_conquest" # ICON - Set icon for the task
requires = { carthaginian_mission_11_gaul_task_1 } # SPECIAL FIELD - Set tasks that needs to be completed to be able to complete this task
prevented_by = { carthaginian_mission_11_gaul_task_6 }
highlight = { # TRIGGER FIELD - Conditions for provinces to be highlighted
scope:province = { # SPECIAL SCOPE - A special saved scope to check conditions on all provinces
province_id = 2325 # TRIGGER - Checks for Massalia's province ID
}
}
bypass = { # TRIGGER FIELD - Conditions for the mission task to be bypassed
has_completed_mission_task = carthaginian_mission_11_gaul_task_6 # TRIGGER - Check if this mission task has been completed
}
allow = { # TRIGGER FIELD - Conditions for the mission task to be completed
owns = 2325 # TRIGGER - Checks for Massalia's province ID
}
on_completion = { # EFFECT FIELD - These effects are run when the mission task is completed
p:2325 = { # SPECIFIC PROVINCE SCOPE - Massalia
while = { # WHILE LOOP - Run the following effects as many times as the count, as long as the condition in limit is true
count = 5 # COUNT - How many times should it run if conditions are true
limit = { # LIMIT - Conditions for while to run
total_population < population_cap # TRIGGER - Checks if total population is lower than population capacity in the province
}
define_pop = { # EFFECT - Add defined pop to the province
type = freemen # TYPE - Sets type of pop
culture = root.culture # CULTURE - Sets culture of pop
religion = root.religion # RELIGION - Sets religion of pop
}
}
}
}
}
carthaginian_mission_11_gaul_task_final = { # Rhodanian Trade
icon = "task_political" # SPECIAL FIELD - Sets picture for mission task
requires = { carthaginian_mission_11_gaul_task_5 carthaginian_mission_11_gaul_task_6 } # SPECIAL FIELD - Missions tasks required for this task to be available
final = yes # SPECIAL FIELD - Final mission task of the mission
allow = { # TRIGGER FIELD - Conditions for the mission task to be completed
trigger_if = { # TRIGGER IF - Checks if the following condition is true, and if it is we apply the extra trigger
limit = { # LIMIT - Sets condition for trigger if to be true or not
has_completed_mission_task = carthaginian_mission_11_gaul_task_5 # TRIGGER - Has completed the task Ousting the Greeks
NOT = { owns = 2325 } # BOOLEAN OPERATOR - TRIGGER - Check if we do not hold Massalia
}
owns = 2325 # TRIGGER - Check that we hold Massalia
}
trigger_if = { # TRIGGER IF - Checks if the following condition is true, and if it is we apply the extra trigger
limit = { # LIMIT - Sets condition for trigger if to be true or not
has_completed_mission_task = carthaginian_mission_11_gaul_task_6 # TRIGGER - Has completed the task Gallic Markets
NOT = { owns = 2256 } # BOOLEAN OPERATOR - TRIGGER - Check if we do not hold Narbo
}
owns = 2256 # TRIGGER - Check that we hold Narbo
}
trigger_if = { # TRIGGER IF - Checks if the following condition is true, and if it is we apply the extra trigger
limit = { # LIMIT - Sets condition for trigger if to be true or not
NOT = { owns = 2319 } # BOOLEAN OPERATOR - TRIGGER - Check if we do not hold Arelatis
}
owns = 2319 # TRIGGER - Check that we hold Arelatis
}
}
on_completion = { # EFFECT FIELD - Run these effects when we complete the task
add_country_modifier = { # EFFECT - Add country modifier
name = carthaginian_mission_11_gaul_task_final_modifier # SPECIAL FIELD - Name of modifier
duration = -1 # SPECIAL FIELD - Duration of modifier
}
}
}
carthaginian_mission_11_gaul_task_final_modifier = {
light_infantry_discipline = 0.1
global_commerce_modifier = 0.05
global_capital_trade_routes = 1
}
carthaginian_mission_11_gaul_task_7 = { # Rebuilding Massalia
icon = "task_economical"
requires = { carthaginian_mission_11_gaul_task_5 }
prevented_by = { carthaginian_mission_11_gaul_task_6 }
}
carthaginian_mission_11_gaul_task_8 = { # Carthago Narbo
icon = "task_economical"
requires = { carthaginian_mission_11_gaul_task_6 }
prevented_by = { carthaginian_mission_11_gaul_task_5 }
}
carthaginian_mission_11_gaul_task_9 = { # Gallic Embassy
icon = "task_diplomatic"
}
carthaginian_mission_11_gaul_task_10 = { # Allies in Gaul
icon = "task_diplomatic"
requires = { carthaginian_mission_11_gaul_task_9 }
}
carthaginian_mission_11_gaul_task_11 = { # Civilizing the Gallic Hinterlands
icon = "task_conquest"
requires = { carthaginian_mission_11_gaul_task_10 }
}
on_start = { # EFFECT FIELD - These effects are run when the mission is started
save_scope_as = mission_country # EFFECT - Save Scope
random_list = { # RANDOM LIST - Gets one of the following effects
1 = { # CHANCE - 1/3
set_variable = carthaginian_mission_gaul_1 # VARIABLE - Set variable
}
1 = { # CHANCE - 1/3
set_variable = carthaginian_mission_gaul_2 # VARIABLE - Set variable
}
1 = { # CHANCE - 1/3
set_variable = carthaginian_mission_gaul_3 # VARIABLE - Set variable
}
}
}
on_abort = { # EFFECT FIELD - These effects are run when the mission is aborted
custom_tooltip = general_mission_cooldown_tt # EFFECT - CUSTOM TOOLTIP - Explains the player that they will receive a cooldown when aborting the mission
set_variable = { # EFFECT - VARIABLE - Set a variable to check cooldown
name = carthaginian_mission_11_gaul # SPECIAL FIELD - Name of variable
days = 7300 # SPECIAL FIELD - Duration of variable
} # END OF VARIABLE EFFECT
switch = { # SWITCH - Check if we have any of the following conditions
trigger = has_variable # TRIGGER - Condition that will be used
carthaginian_mission_gaul_1 = { remove_variable = carthaginian_mission_gaul_1 } # If we have this variable, remove it
carthaginian_mission_gaul_2 = { remove_variable = carthaginian_mission_gaul_2 } # If we have this variable, remove it
carthaginian_mission_gaul_3 = { remove_variable = carthaginian_mission_gaul_3 } # If we have this variable, remove it
}
}
on_completion = { # EFFECT FIELD - These effects are run when the mission is completed
complete_mission_effect = yes # SCRIPTED EFFECT - Sets up a variable to count how many missions we have completed
switch = { # SWITCH - Check if we have any of the following conditions
trigger = has_variable # TRIGGER - Condition that will be used
carthaginian_mission_gaul_1 = { remove_variable = carthaginian_mission_gaul_1 } # If we have this variable, remove it
carthaginian_mission_gaul_2 = { remove_variable = carthaginian_mission_gaul_2 } # If we have this variable, remove it
carthaginian_mission_gaul_3 = { remove_variable = carthaginian_mission_gaul_3 } # If we have this variable, remove it
}
}
carthaginian_mission_11_gaul_task_12 = { # The Lands of the Aquitani
icon = "task_political"
potential = {
has_variable = carthaginian_mission_gaul_1
}
}
carthaginian_mission_11_gaul_task_13 = { # Fighting the Arverni
icon = "task_political"
potential = {
has_variable = carthaginian_mission_gaul_2
}
}
carthaginian_mission_11_gaul_task_14 = { # Finding Lugdunum
icon = "task_political"
potential = {
has_variable = carthaginian_mission_gaul_3
}
}