hello, I am trying to add an average lifespan for my species of 120 years old and I have got it partly working but it is very buggy, I dont know how to fix it so I decided to come to the forums... is there any way I should be doing this?
admiral = {
can_lead_navy = yes
max_trait_points = 1
leader_age_min = 7
leader_age_max = 120
resources = {
category = leader_admirals
cost = {
energy = 200
}
upkeep = {
energy = 2
}
}
default_category = admiral
}
general = {
can_lead_army = yes
max_trait_points = 1
leader_age_min = 7
leader_age_max = 120
resources = {
category = leader_generals
cost = {
energy = 200
}
upkeep = {
energy = 2
}
}
default_category = general
}
scientist = {
can_research = yes
max_trait_points = 1
leader_age_min = 7
leader_age_max = 120
resources = {
category = leader_scientists
cost = {
energy = 200
}
upkeep = {
energy = 2
}
}
default_category = scientist
}
governor = {
can_govern_planet = yes
max_trait_points = 1
leader_age_min = 7
leader_age_max = 120
resources = {
category = leader_governors
cost = {
energy = 200
}
upkeep = {
energy = 2
}
}
default_category = governor
}
ruler = {
can_rule_empire = yes
max_trait_points = 2
default_category = ruler
leader_age_min = 7
leader_age_max = 120
}
envoy = {
can_be_envoy = yes
default_category = envoy
assignment_cooldown = 360
}
Yeah, the problem there is that leader_age_min and leader_age_max control the minimum and maximum age between which leaders can be recruited, not how long they live. leader_age is the parameter you're looking for that controls how long they live: it's added (or subrtracted if you make it negative) to the base lifespan of (I believe) 80 years. I don't think you'll be able to define it from leader types, pretty sure you'll have to use a species trait.Heres part of the code I attempted, I made other attempts on other parts trying to get it working...
Code:admiral = { can_lead_navy = yes max_trait_points = 1 leader_age_min = 7 leader_age_max = 120 resources = { category = leader_admirals cost = { energy = 200 } upkeep = { energy = 2 } } default_category = admiral } general = { can_lead_army = yes max_trait_points = 1 leader_age_min = 7 leader_age_max = 120 resources = { category = leader_generals cost = { energy = 200 } upkeep = { energy = 2 } } default_category = general } scientist = { can_research = yes max_trait_points = 1 leader_age_min = 7 leader_age_max = 120 resources = { category = leader_scientists cost = { energy = 200 } upkeep = { energy = 2 } } default_category = scientist } governor = { can_govern_planet = yes max_trait_points = 1 leader_age_min = 7 leader_age_max = 120 resources = { category = leader_governors cost = { energy = 200 } upkeep = { energy = 2 } } default_category = governor } ruler = { can_rule_empire = yes max_trait_points = 2 default_category = ruler leader_age_min = 7 leader_age_max = 120 } envoy = { can_be_envoy = yes default_category = envoy assignment_cooldown = 360 }
well thats good because the entire species are supposed to be 120, this was just the only way I found that does it... where do I go to add that command for it to work?Yeah, the problem there is that leader_age_min and leader_age_max control the minimum and maximum age between which leaders can be recruited, not how long they live. leader_age is the parameter you're looking for that controls how long they live: it's added (or subrtracted if you make it negative) to the base lifespan of (I believe) 80 years. I don't think you'll be able to define it from leader types, pretty sure you'll have to use a species trait.
Well, the way to make it unable to be removed is to addok I figured out how to add the lifespan the only issue is how to make the trait required, automatically added and cannot be removed...
modification = no
traits = {
trait = trait_trait_name
}