Heyo,
I've modded jobs for the first time, but unfortunately not without problems. I'm trying to put a pop with a specific flag into a specific job. Although everything should work, the pops stay where they are (their current job) and do not move automatically (or semi-automatically, as they move on monthly pulse) to the job that requires a specific flag.
Below is the actual job file
below is the pop_category file
Any idea on how to force the pops that have the wagho_event_pop_infected flag to go into the infected "job"? Your help is appreciated!
EDIT: I had to replace and add the following in order for it to partially work.
When I changed rank = 0, to rank = 1, only pops of the worker class filled the jobs. Apparently you can't have pops of different strata with the same flag put into one new strata. As far as I understood this would mean that for every existing rank, I would need to copy the category and create one new job for it, instead of having one new stratum with multiple jobs (that are essentially the same in my case) with their own associated rank.
If anyone knows if there's a better way, let me know.
EDITEDIT: Or add a new job for each existing strata.
EDITEDITEDIT: Adding a new job to existing strata didn't work out, however I managed to make it work by adding the code below in the pop_category file. This automatically put the pops in this category.
I've modded jobs for the first time, but unfortunately not without problems. I'm trying to put a pop with a specific flag into a specific job. Although everything should work, the pops stay where they are (their current job) and do not move automatically (or semi-automatically, as they move on monthly pulse) to the job that requires a specific flag.
Below is the actual job file
Code:
#Infected pops from all strata?
infected = {
category = infected
can_set_priority = no
clothes_texture_index = 2
building_icon = building_residence
contributes_to_diplo_weight = no
possible_pre_triggers = {
has_owner = yes
is_being_assimilated = no
is_being_purged = no
}
possible = {
has_pop_flag = wagho_event_pop_infected
}
resources = {
category = planet_jobs
upkeep = {
food = 1
}
}
planet_modifier = {
trade_value_add = -1
}
weight = {
weight = @criminal_job_weight
modifier = {
factor = 9999
exists = owner
has_pop_flag = wagho_event_pop_infected
}
}
}
below is the pop_category file
Code:
#For infected pops
infected = {
rank = 0
clothes_texture_index = 2
demotion_time = 0
display_unemployment = no
change_job_threshold = 1
weight = {
weight = 10
}
should_apply_unemployment_penalties = {
NOR = {
has_very_high_living_standard_type = yes
has_high_living_standard_type = yes
}
}
pop_modifier = {
pop_housing_usage_base = 1
pop_amenities_usage_base = 1
}
# scope: pop to be resettled
allow_resettlement = {
always = no
}
resources = {
category = pop_category_workers
# Organic Upkeep
upkeep = {
trigger = {
is_organic_species = yes
is_lithoid = no
has_shared_burden_living_standard_type = yes
}
food = @living_standard_food_normal
consumer_goods = @living_standard_luxuries_shared_burden
}
}
Any idea on how to force the pops that have the wagho_event_pop_infected flag to go into the infected "job"? Your help is appreciated!
EDIT: I had to replace and add the following in order for it to partially work.
Code:
possible = {
planet = {
OR = {
has_modifier = wagho_event_lvl_1
has_modifier = wagho_event_lvl_2
has_modifier = wagho_event_lvl_3
}
}
has_pop_flag = wagho_event_pop_infected
}
When I changed rank = 0, to rank = 1, only pops of the worker class filled the jobs. Apparently you can't have pops of different strata with the same flag put into one new strata. As far as I understood this would mean that for every existing rank, I would need to copy the category and create one new job for it, instead of having one new stratum with multiple jobs (that are essentially the same in my case) with their own associated rank.
If anyone knows if there's a better way, let me know.
EDITEDIT: Or add a new job for each existing strata.
EDITEDITEDIT: Adding a new job to existing strata didn't work out, however I managed to make it work by adding the code below in the pop_category file. This automatically put the pops in this category.
Code:
assign_to_pop = {
exists = owner
has_pop_flag = wagho_event_pop_infected
}
Last edited: