• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

RMD Angel

Sergeant
3 Badges
May 21, 2020
77
1
  • Cities: Skylines
  • Stellaris
  • Hearts of Iron IV: Cadet
I made a job and tested it out no problem, but in an actual game, nobody would take this job even after being prioritized. I don't see something wrong with the weight, so could someone please help find the problem?

service_staff = {
category = worker
condition_string = WORKER_JOB_TRIGGER
building_icon = building_luxury_residence
clothes_texture_index = 2
icon = servant

possible_pre_triggers = {
is_being_purged = no
is_being_assimilated = no
is_sapient = yes
}

possible = {
worker_job_check_trigger = yes
}

resources = {
category = planet_entertainers
produces = {
food = 2
}
upkeep = {
energy = 1
}
}

triggered_pop_modifier = {
potential = {
is_organic_species = yes
}
pop_housing_usage_add = -0.5
}

triggered_planet_modifier = {
potential = {
always = yes
}
planet_amenities_add = 4
mult = value:scripted_modifier_mult|MODIFIER|pop_job_amenities_mult|
}

weight = {
weight = @worker_job_weight
mult = value:scripted_modifier_job_weight_mult|MODIFIER|pop_job_amenities_mult|
modifier = {
factor = 1.1
owner = { has_valid_civic = civic_agrarian_idyll }
}
modifier = {
factor = 10
is_enslaved = yes
can_take_servant_job = no
NOT = { has_slavery_type = { type = slavery_indentured } }
}
modifier = {
factor = 3
OR = {
is_non_sapient_robot = yes
is_shackled_robot = yes
}
can_take_servant_job = no
owner = { has_technology = tech_droid_workers }
}
modifier = {
factor = 200
OR = {
is_non_sapient_robot = yes
is_shackled_robot = yes
}
can_take_servant_job = no
owner = { NOT = { has_technology = tech_droid_workers } }
}
modifier = {
factor = 0.25
can_take_servant_job = yes
}
modifier = {
factor = value:scripted_modifier_job_weight_mult|MODIFIER|pop_job_amenities_mult|
owner = { has_valid_civic = civic_agrarian_idyll }
}
# low income modifier
modifier = {
factor = 1.2
exists = planet
planet = {
has_available_jobs = farmer
}
exists = owner
owner = {
is_ai = yes
has_monthly_income = {
resource = food
value < 10
}
}
}

modifier = {
factor = 0.5
has_trait = trait_lithoid

owner = {
is_lithoid_empire = yes
has_monthly_income = {
resource = food
value >= 0
}
}
}
}
}
 
worker_job_check_trigger is outdated and does not exist anymore. It has been replaced with possible_precalc = can_fill_worker_job as seen in other vanilla worker jobs.