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.
country_decisions = {
# Form Sardinia
form_sardinia = {
potential = { # TRIGGER FIELD - Conditions for the decision to be shown
}
highlight = { # TRIGGER FIELD - PROVINCE SCOPE - Conditions for provinces to be highlighted
}
allow = { # TRIGGER FIELD - Conditions for the decision to completed
}
effect = { # EFFECT FIELD - What will happen when decision is completed
}
ai_will_do = { # TRIGGER FIELD - Modifiers to see how the AI will prioritize this decision
base = 1
}
}
}
potential = { # TRIGGER FIELD - Conditions for the decision to be shown
num_of_cities >= 1 # TRIGGER - Check that the country owns at least 1 territory
country_culture = nuragic # TRIGGER - Check that the country has the Nuragic culture
NOT = { # BOOLEAN OPERATOR - Check that the following is not true
tag = SAR # TRIGGER - The country has the following tag
} # END OF BOOLEAN OPERATOR
NOR = { # BOOLEAN OPERATOR - Check that none of the following is true
is_tier_2_formable_trigger = yes # SCRIPTED TRIGGER - List of tier 2 formables
is_endgame_tag_trigger = yes # SCRIPTED TRIGGER - List of tier 3 formables
} # END OF BOOLEAN OPERATOR
}
is_tier_2_formable_trigger = {
OR = {
tag = ARI #armenia formable
tag = ARM #armenia
tag = ASR #Assyria
tag = BBY #Babylon
tag = BGG #Belgia
tag = BRA #Pretania
tag = CCC #Caledonian Confederacy
tag = CCI #Cilicia
tag = 1KR #Crete
tag = DRA #Dravidia
tag = EGY #Egypt
tag = EGT #Egypt Formable
tag = GLT #Galatia
tag = HVL #Helvetia
tag = ILL #Illyria
tag = MAC #Macedon
tag = MCD #Macedon Formable
tag = MEE #Media
tag = NRM #Noricum
tag = NUM #Numidia
tag = PRY #Phrygia
tag = PRG #Phrygia Formable
tag = PTU #Pontus Formable
tag = PON #Pontus
tag = SAR #Sardinia
tag = SII #Sicily
tag = SYA #Syria
tag = YMN #Yamnat
tag = SEL #Seleucids
tag = TRE #Thrace
tag = XXS #Saxonia
tag = HIB #Hibernia
tag = YZI #Yuezhi
}
}
highlight = { # TRIGGER FIELD - PROVINCE SCOPE - Conditions for provinces to be highlighted
OR = { # BOOLEAN OPERATOR - Check if either of the following is true
is_in_area = sardinia_septentrionalis # TRIGGER - Northern Sardinia Area
is_in_area = sardinia_meridionalis # TRIGGER - Southern Sardinia Area
} # END OF BOOLEAN OPERATOR
}
allow = { # TRIGGER FIELD - Conditions for the decision to completed
custom_tooltip = { # CUSTOM TOOLTIP
text = formable_not_sardinia_exists # LOCALIZATION KEY
NOT = { # BOOLEAN OPERATOR - Check that the following is not true
any_country = { # TRIGGER SCRIPT LIST - Checks if there is any country
tag = SAR # TRIGGER - With the Sardinian tag
}
} # END OF BOOLEAN OPERATOR
}
can_form_nation_trigger = yes # SCRIPTED TRIGGER - Checks if you are at war or in a civil war
owns_area = sardinia_septentrionalis # TRIGGER - Check that you own all of Northern Sardinia
owns_area = sardinia_meridionalis # TRIGGER - Check that you own all of Southern Sardinia
}
# Sardinia
formable_not_sardinia_exists:0 "#Y Sardinia#! must NOT exist."
effect = { # EFFECT FIELD - What will happen when decision is completed
custom_tooltip = "tier_2_formable_tooltip" # CUSTOM TOOLTIP - Explains what tier formable it is
change_country_name = "SARDINIA_NAME" # EFFECT - Change country name
tribal_formable_government_change_effect = yes # SCRIPTED EFFECT - If they are tribal and not a tribal federation, they will become one
hidden_effect = { # EFFECT - Everything inside this clause will become hidden
change_country_adjective = "SARDINIA_ADJECTIVE" # EFFECT - Change adjective
change_country_tag = SAR # EFFECT - Change tag
change_country_color = sardinia_color # EFFECT - Change country color
change_country_flag = SARDINIA_FLAG # EFFECT - Change country flag
} # END OF HIDDEN EFFECT
capital_scope = { # EVENT TARGET - Find capital province of nation
capital_formable_tribal_effect = yes # SCRIPTED EFFECT - Add 4 tribesmen to capital
formable_capital_modifier_tribal_effect = yes # SCRIPTED EFFECT - Province modifier to capital
} # END OF CAPITAL PROVINCE SCOPE
add_3_free_province_investments = yes # SCRIPTED EFFECT - Add 3 free province investments
}
SARDINIA_NAME:0 "Sardinia"
SARDINIA_ADJECTIVE:0 "Sardinian"
tribal_formable_government_change_effect = {
if = {
limit = {
is_tribal = yes
NOT = { government = tribal_federation }
}
change_government = tribal_federation
}
else = {
add_political_influence = 150
}
}
dravida_color = rgb { 31 198 35 }
armenia_color = rgb { 172 58 52 }
pontus_color = rgb { 149 101 186 }
bharatavarsha_orange_color = rgb { 232 151 23 }
galatia_light_blue_color = rgb { 23 232 204 }
achaea_color = rgb { 240 0 9 }
argolis_color = rgb { 190 51 190 }
sardinia_color = rgb { 223 180 78 }
SARDINIA_FLAG = {
pattern = "pattern_solid.tga"
color1 = "sardinia_color"
colored_emblem = {
texture = "ce_border_simple_02.tga"
color1 = "offwhite"
color2 = "pitch_black"
instance = {
rotation = 0
}
instance = {
rotation = 180
}
}
colored_emblem = {
texture = "ce_horse_03.dds"
color1 = "offwhite"
instance = {
scale = { 0.75 0.75 }
}
}
}
capital_scope = { # EVENT TARGET - Find capital province of nation
capital_formable_tribal_effect = yes # SCRIPTED EFFECT - Add 4 tribesmen to capital
formable_capital_modifier_tribal_effect = yes # SCRIPTED EFFECT - Province modifier to capital
} # END OF CAPITAL PROVINCE SCOPE
add_3_free_province_investments = yes # SCRIPTED EFFECT - Add 3 free province investments
# Sardinia
formable_not_sardinia_exists:0 "#Y Sardinia#! must NOT exist."
form_sardinia:0 "Form Sardinia"
form_sardinia_desc:0 "The tribes of Sardinia have often been controlled by warlords from the south or east, controlling the most fertile pieces of the island while forcing the locals up in the highlands. Under our rule the people of Sardinia shall fend for themselves without the interference of foreign hostile forces."
SAR:0 "Sardinia"
SAR_ADJ:0 "Sardinian"