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.
- 2
# Asklepian Plague
rel_flavor.16 = {
type = country_event # EVENT TYPE - Can be Country/Province/Character, decides ROOT Scope
title = rel_flavor.16.t # LOCALIZATION KEY - Title of Event
desc = rel_flavor.16.desc # LOCALIZATION KEY - Description of Event
picture = aqueducts # EVENT PICTURE
hidden = no # SPECIAL FIELD - Can hide the event from a player's view
fire_only_once = yes # SPECIAL FIELD - Will limit the event to once per tag
goto_location = capital_scope # SPECIAL FIELD - Will let the player jump to the province in question
left_portrait = current_ruler # LEFT PORTRAIT - Shown at the left hand side of event
right_portrait = current_ruler # RIGHT PORTRAIT - Shown at the right hand side of event
weight_multiplier = { # MODIFIER - Will modify the chances for the event to fire
}
trigger = { # TRIGGER FIELD - Checks if the event will fire at all
}
immediate = { # EFFECT FIELD - Fires after trigger check, but before everything else
}
option = { # EFFECT FIELD - FIRST OPTION - Options the player can choose between when receiving the event
name = rel_flavor.16.a
}
option = { # EFFECT FIELD - SECOND OPTION - Options the player can choose between when receiving the event
name = rel_flavor.16.b
}
option = { # EFFECT FIELD - THIRD OPTION - Options the player can choose between when receiving the event
name = rel_flavor.16.c
trigger = { # TRIGGER FIELD - Checks if this specific option will be shown
}
exclusive = yes # SPECIAL FIELD - Will be the only option available, if it is available
highlight = yes # SPECIAL FIELD - Will highlight the option
}
after = { # EFFECT FIELD - Happens after the player has clicked an option
}
}
trigger = { # TRIGGER FIELD - Checks if the event will fire at all
religion = roman_pantheon # TRIGGER - Checks if the country has the Hellenic religion
any_owned_province = { # TRIGGER SCRIPT LIST - Checks if we any owned province
total_population > 20 # TRIGGER - With more than 20 pops
}
}
trigger = { # TRIGGER FIELD - Checks if the event will fire at all
religion = roman_pantheon # TRIGGER - Checks if the country has the Hellenic religion
any_owned_province = { # TRIGGER SCRIPT LIST - Checks if we any owned province
total_population > 20 # TRIGGER - With more than 20 pops
}
}
immediate = { # EFFECT FIELD - Fires after trigger check, but before everything else
random_owned_province = { # EFFECT - Find a random owned province
limit = { # LIMIT - Set Trigger Field
has_city_status = yes # TRIGGER - With city status
total_population > 20 # TRIGGER - And more than 20 pops
} # End of Trigger Field
save_scope_as = plague_city_scope # EFFECT - Save Scope for later use
}
}
rel_flavor_hellenic_asklepian_plague_modifier = { # MODIFIER NAME
local_unrest = 3 # MODIFIER - Increases local unrest in the area
local_population_growth = -0.1 # MODIFIER - Decreases local growth
}
rel_flavor_hellenic_asklepian_plague_modifier:0 "Asklepian Plague"
desc_rel_flavor_hellenic_asklepian_plague_modifier:0 "This territory is currently suffering from a devastating plague."
option = { # EFFECT FIELD - FIRST OPTION - Options the player can choose between when receiving the event
name = rel_flavor_hellenic.16.a # LOCALIZATION KEY - Option A text
current_ruler = { # EVENT TARGET - Find current ruler of your country
add_popularity = subtract_popularity_medium # EFFECT - Reduce popularity of ruler
}
scope:plague_city_scope = { # SAVED SCOPE - Find affected city
add_province_modifier = { # EFFECT - Add a province modifier to the saved scope
name = rel_flavor_hellenic_asklepian_plague_modifier # SPECIAL FIELD - Find the modifier to add
duration = 3650 # SPECIAL FIELD - Duration of the modifier, counted in days (so 10 years for this one)
}
while = { # WHILE Loop
count = 3 # Special Field - Will run 3 times
limit = { # TRIGGER FIELD - The While loop will end if the following requirements are not true
total_population > 1 # TRIGGER - Population higher than 1
} # END OF TRIGGER FIELD
random_pops_in_province = { # EFFECT - Find a random pops in the saved province scope
kill_pop = yes # EFFECT - Kill the pop we have found
}
}
}
}
option = { # EFFECT FIELD - SECOND OPTION - Options the player can choose between when receiving the event
name = rel_flavor_hellenic.16.b # LOCALIZATION KEY - Option B text
current_ruler = { # EVENT TARGET - Find current ruler of your country
add_popularity = popularity_small # EFFECT - Increase popularity of your ruler
}
add_treasury = { # EFFECT - Add or remove gold from your treasury
subtract = scope:plague_city_scope.total_population # INLINE MATH - Subtract gold equal to the population of the city
multiply = 1.5 # INLINE MATH - Multiply that number by 1.5
max = -20 # INLINE MATH - Inverted because it is a negative number, you must pay a minimum of 20 gold
min = -100 # INLINE MATH - Inverted because it is a negative number, you never need to pay more than a max of 100 gold
}
}
subtract = scope:plague_city_scope.total_population
option = { # EFFECT FIELD - THIRD OPTION - Options the player can choose between when receiving the event
name = rel_flavor_hellenic.16.c # LOCALIZATION KEY - Option C text
trigger = { # TRIGGER FIELD - Checks if the option will show up or not
OR = { # BOOLEAN OPERATOR - Either of the following statements must be true
any_owned_province = { # TRIGGER SCRIPT LIST - Check if you have any owned province with
has_province_modifier = asklepion # TRIGGER - The province modifier Asklepion
}
current_ruler = { # EVENT TARGET - Find current ruler
has_character_modifier = character_improvement_asclepian_wiseman # TRIGGER - And check if they have the character modifier Asklepian Wiseman
}
}
} # END OF TRIGGER FIELD
highlight = yes # Special Field - Highlights option
custom_tooltip = rel_flavor_hellenic.16.c.tt # LOCALIZATION KEY - Adds special loc when hovering the option
current_ruler = { # EVENT TARGET - Find current ruler
add_popularity = popularity_small # EFFECT - Add popularity to the character
}
if = { # If Clause
limit = { # LIMIT - Trigger Field
current_ruler = { # EVENT TARGET - Check if current ruler
has_character_modifier = character_improvement_asclepian_wiseman # TRIGGER - Have the Asklepian Wiseman modifier
}
} # END OF TRIGGER FIELD
current_ruler = { # EVENT TARGET - Find current ruler
remove_character_modifier = character_improvement_asclepian_wiseman # EFFECT - Remove Asklepian Wiseman modifier
}
}
else = { # Else Clause
add_country_modifier = { # EFFECT - Add country modifier
name = rel_flavor_hellenic_asklepian_blessing_modifier # SPECIAL FIELD - Find the modifier to add
duration = 3650 # SPECIAL FIELD - Set duration
}
}
}
rel_flavor_hellenic.16.c.tt:0 "This option is available because we have to access to an #Y Asklepion#! or an #Y Asklepian Wiseman#!."
rel_flavor_hellenic.16.t:0 "The Plague in [plague_city_scope.GetName]"
rel_flavor_hellenic.16.desc:0 "We have received news from [plague_city_scope.GetName] that the city has been ravaged by a disease; a significant proportion of the inhabitants have fallen ill. They have asked our leaders in general, but also entreated [ROOT.GetCountry.GetRulerTitle] [ROOT.GetCountry.GetRuler.GetName] in particular, to send them some form of aid. Our advisors, jealously taken aback by the direct appeals to [ROOT.GetCountry.GetRuler.GetPraenomen], have started mutterings, implying that [plague_city_scope.GetName] must have somehow offended the gods and deserve divine punishment."
rel_flavor_hellenic.16.a:0 "They must have brought this suffering upon themselves."
rel_flavor_hellenic.16.b:0 "We will call upon whoever we can to put an end to this plague."
rel_flavor_hellenic.16.c:0 "A messenger will be sent to the healers of [ROOT.GetCountry.Custom('get_medicine_god')]."
rel_flavor_hellenic.16.c.tt:0 "This option is available because we have to access to an #Y Asklepion#! or an #Y Asklepian Wiseman#!."
trigger = { # TRIGGER FIELD - Checks if the event will fire at all
NOT = { has_variable = "rel_flavor_hellenic_16_cooldown" } # VARIABLE - Cooldown check
religion = roman_pantheon # TRIGGER - Checks if the country has the Hellenic religion
NOT = { has_country_modifier = rel_flavor_hellenic_asklepian_blessing_modifier } # TRIGGER - Check for country modifier
num_of_cities > 3 # TRIGGER - Check that you have more than 3 territories
num_of_cities < 50 # TRIGGER - Check that you have less than 50 territories
any_owned_province = { # TRIGGER SCRIPT LIST - Checks if we any owned province
is_capital = no # TRIGGER - That isn't a capital
NOR = { # BOOLEAN OPERATOR - Nor have
has_province_modifier = asklepion # TRIGGER - the Asklepion province modifier
has_province_modifier = rel_flavor_hellenic_asklepian_plague_modifier # TRIGGER - The Asklepian Plague modifier
}
has_city_status = yes # TRIGGER - That has city status (i.e city/metropolis)
total_population > 20 # TRIGGER - With more than 20 pops
}
}
immediate = { # EFFECT FIELD - Fires after trigger check, but before everything else
set_variable = { # VARIABLE - Set up a variable that will work as a cooldown
name = "rel_flavor_hellenic_16_cooldown" # Special Field - Variable name
days = 3650 # Special Field - Variable duration (10 years)
}
random_owned_province = { # EFFECT - Find a random owned province
limit = { # LIMIT - Set Trigger Field
is_capital = no # TRIGGER - That isn't a capital
NOR = { # BOOLEAN OPERATOR - Nor have
has_province_modifier = asklepion # TRIGGER - the Asklepion province modifier
has_province_modifier = rel_flavor_hellenic_asklepian_plague_modifier # TRIGGER - The Asklepian Plague modifier
}
has_city_status = yes # TRIGGER - With city status
total_population > 20 # TRIGGER - And more than 20 pops
} # End of Trigger Field
save_scope_as = plague_city_scope # EFFECT - Save Scope for later use
}
}
picture = religious_rite # EVENT PICTURE
goto_location = scope:plague_city_scope # SPECIAL FIELD - Find important province
left_portrait = current_ruler # LEFT PORTRAIT - Ruler shown at the left hand side in event
# Asklepian Plague
rel_flavor_hellenic.16 = {
type = country_event # EVENT TYPE - Can be Country/Province/Character, decides ROOT Scope
title = rel_flavor_hellenic.16.t # LOCALIZATION KEY - Title of event
desc = rel_flavor_hellenic.16.desc # LOCALIZATION KEY - Description of event
picture = religious_rite # EVENT PICTURE
goto_location = scope:plague_city_scope # SPECIAL FIELD - Find important province
left_portrait = current_ruler # LEFT PORTRAIT - Ruler shown at the left hand side in event
trigger = { # TRIGGER FIELD - Checks if the event will fire at all
NOT = { has_variable = "rel_flavor_hellenic_16_cooldown" } # VARIABLE - Cooldown check
religion = roman_pantheon # TRIGGER - Checks if the country has the Hellenic religion
NOT = { has_country_modifier = rel_flavor_hellenic_asklepian_blessing_modifier } # TRIGGER - Check for country modifier
num_of_cities > 3 # TRIGGER - Check that you have more than 3 territories
num_of_cities < 50 # TRIGGER - Check that you have less than 50 territories
any_owned_province = { # TRIGGER SCRIPT LIST - Checks if we any owned province
is_capital = no # TRIGGER - That isn't a capital
NOR = { # BOOLEAN OPERATOR - Nor have
has_province_modifier = asklepion # TRIGGER - the Asklepion province modifier
has_province_modifier = rel_flavor_hellenic_asklepian_plague_modifier # TRIGGER - The Asklepian Plague modifier
}
has_city_status = yes # TRIGGER - That has city status (i.e city/metropolis)
total_population > 15 # TRIGGER - With more than 15 pops
}
}
immediate = { # EFFECT FIELD - Fires after trigger check, but before everything else
set_variable = { # VARIABLE - Set up a variable that will work as a cooldown
name = "rel_flavor_hellenic_16_cooldown" # Special Field - Variable name
days = 3650 # Special Field - Variable duration (10 years)
}
random_owned_province = { # EFFECT - Find a random owned province
limit = { # LIMIT - Set Trigger Field
is_capital = no # TRIGGER - That isn't a capital
NOR = { # BOOLEAN OPERATOR - Nor have
has_province_modifier = asklepion # TRIGGER - the Asklepion province modifier
has_province_modifier = rel_flavor_hellenic_asklepian_plague_modifier # TRIGGER - The Asklepian Plague modifier
}
has_city_status = yes # TRIGGER - With city status
total_population > 15 # TRIGGER - And more than 15 pops
} # End of Trigger Field
save_scope_as = plague_city_scope # EFFECT - Save Scope for later use
}
}
option = { # EFFECT FIELD - FIRST OPTION - Options the player can choose between when receiving the event
name = rel_flavor_hellenic.16.a # LOCALIZATION KEY - Option A text
current_ruler = { # EVENT TARGET - Find current ruler of your country
add_popularity = subtract_popularity_small # EFFECT - Reduce popularity of ruler
}
scope:plague_city_scope = { # SAVED SCOPE - Find affected city
add_province_modifier = { # EFFECT - Add a province modifier to the saved scope
name = rel_flavor_hellenic_asklepian_plague_modifier # SPECIAL FIELD - Find the modifier to add
duration = 3650 # SPECIAL FIELD - Duration of the modifier, counted in days (so 10 years for this one)
}
while = { # WHILE Loop
count = 3 # Special Field - Will run 3 times
limit = { # TRIGGER FIELD - The While loop will end if the following requirements are not true
total_population > 1 # TRIGGER - Population higher than 1
} # END OF TRIGGER FIELD
random_pops_in_province = { # EFFECT - Find a random pops in the saved province scope
kill_pop = yes # EFFECT - Kill the pop we have found
}
}
}
}
option = { # EFFECT FIELD - SECOND OPTION - Options the player can choose between when receiving the event
name = rel_flavor_hellenic.16.b # LOCALIZATION KEY - Option B text
current_ruler = { # EVENT TARGET - Find current ruler of your country
add_popularity = popularity_small # EFFECT - Increase popularity of your ruler
}
add_treasury = { # EFFECT - Add or remove gold from your treasury
subtract = scope:plague_city_scope.total_population # INLINE MATH - Subtract gold equal to the population of the city
multiply = 1.5 # INLINE MATH - Multiply that number by 1.5
max = -20 # INLINE MATH - Inverted because it is a negative number, you must pay a minimum of 20 gold
min = -100 # INLINE MATH - Inverted because it is a negative number, you never need to pay more than a max of 100 gold
}
}
option = { # EFFECT FIELD - THIRD OPTION - Options the player can choose between when receiving the event
name = rel_flavor_hellenic.16.c # LOCALIZATION KEY - Option C text
trigger = { # TRIGGER FIELD - Checks if the option will show up or not
OR = { # BOOLEAN OPERATOR - Either of the following statements must be true
any_owned_province = { # TRIGGER SCRIPT LIST - Check if you have any owned province with
has_province_modifier = asklepion # TRIGGER - The province modifier Asklepion
}
current_ruler = { # EVENT TARGET - Find current ruler
has_character_modifier = character_improvement_asclepian_wiseman # TRIGGER - And check if they have the character modifier Asklepian Wiseman
}
}
} # END OF TRIGGER FIELD
highlight = yes # Special Field - Highlights option
custom_tooltip = rel_flavor_hellenic.16.c.tt # LOCALIZATION KEY - Adds special loc when hovering the option
current_ruler = { # EVENT TARGET - Find current ruler
add_popularity = popularity_small # EFFECT - Add popularity to the character
}
if = { # If Clause
limit = { # LIMIT - Trigger Field
current_ruler = { # EVENT TARGET - Check if current ruler
has_character_modifier = character_improvement_asclepian_wiseman # TRIGGER - Have the Asklepian Wiseman modifier
}
} # END OF TRIGGER FIELD
current_ruler = { # EVENT TARGET - Find current ruler
remove_character_modifier = character_improvement_asclepian_wiseman # EFFECT - Remove Asklepian Wiseman modifier
}
}
else = { # Else Clause
add_country_modifier = { # EFFECT - Add country modifier
name = rel_flavor_hellenic_asklepian_blessing_modifier # SPECIAL FIELD - Find the modifier to add
duration = 3650 # SPECIAL FIELD - Set duration
}
}
}
}
20 = rel_flavor_hellenic.1 # Rel Flavor Hellenic
25 = rel_flavor_hellenic.3
50 = rel_flavor_hellenic.6
50 = rel_flavor_hellenic.7
40 = rel_flavor_hellenic.8
20 = rel_flavor_hellenic.9
50 = rel_flavor_hellenic.10
10 = rel_flavor_hellenic.11
50 = rel_flavor_hellenic.14
100 = rel_flavor_hellenic.15
20 = rel_flavor_hellenic.16
100 = rel_flavor_canaanite.1 # Rel Flavor Canaanite