Jump to content

Stellaris trait help please


genericuser27

Recommended Posts

Posted

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

Posted

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 }
        }
    }
    
}

Posted

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 :smile:

Posted

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.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...