genericuser27 Posted January 8, 2018 Posted January 8, 2018 Hello I would like to know if its possible to have an if statement in a trait and have it work. I'm trying to make it so that there has to be more than one species on a planet before any pop growth starts. Here is what I have so far (I'm new to this): trait_female_breeders = { cost = -4 allowed_archetypes = { BIOLOGICAL } intial = yes modification=no randomized = no modifier = { If = { Planet = { num_species > 1 } pop_growth_speed = -100.0 } } } Thanks
darkspleen Posted January 8, 2018 Posted January 8, 2018 Theman221 is probably the one to ask. If I have the time I'll do some poking around and see what I can come up with. I can tell you right now that you need to change num_species > 1 to num_species < 1. Edit: Looking at how the Asari gynogenetic trait works... its a very involved process with a lot of moving parts. You have to make the trait, then have an event that fires every month that adds fertility to your pops. Honestly I don't know if there's any other way of doing what you want to do. Another Edit: Try this. No promises that it'll work. trait_female_breeders = { cost = -4 allowed_archetypes = { BIOLOGICAL } initial = yes modification= no randomized = no icon = #placeholder modifier = { If = { limit = { Planet = { num_species < 2 } } add_modifier = { pop_growth_speed = -100.0 } } } }
genericuser27 Posted January 9, 2018 Author Posted January 9, 2018 Doesn't seem to work, thank you for your help though. How easy would it be to do what you mentioned above for the asari pop?
Guest Posted January 9, 2018 Posted January 9, 2018 I will try to help another day but check out https://stellaris.paradoxwikis.com/Traits_modding for help. I'm not entirely sure if this will work if you want this trait to be selectable at the creation menu. Perhaps it would work if you find a way to apply the trait to any species on a planet with more then one species but that would require an event to apply which is not so difficult. Another way you could do it is by creating a species right (like cattle slavery, caste etc.) and set a condition where you can only give a species this right if there are more then one species in the empire. Check out the following page for event modding: https://stellaris.paradoxwikis.com/Event_modding Then check out the following page for setting conditions: https://stellaris.paradoxwikis.com/Conditions Hope this helped
darkspleen Posted January 9, 2018 Posted January 9, 2018 Not hard, just a lot of separate pieces. I think you'd need components in 3 or 4 different files. Lots of moving parts as I said. I haven't delved into the files too much, but it involves an event that is on a monthly pulse.
genericuser27 Posted January 9, 2018 Author Posted January 9, 2018 I just ended up downloading the Asari mod, thanks. I didn’t know it existed!
darkspleen Posted January 9, 2018 Posted January 9, 2018 Can you keep us posted on what you learn? I can think of a ton of uses for similar traits.
genericuser27 Posted January 10, 2018 Author Posted January 10, 2018 Yeah I’m out right now but I’ll put something at the top later.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.