• 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.

dek_torres

Sergeant
62 Badges
Aug 30, 2016
65
5
  • Crusader Kings II: Charlemagne
  • Crusader Kings II
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rights of Man
  • Cities: Skylines - Mass Transit
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Dharma
  • Surviving Mars
  • Stellaris: Lithoids
  • Cities: Skylines - Green Cities
  • Stellaris: Megacorp
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Common Sense
  • Prison Architect
  • Crusader Kings III
  • Cities: Skylines - Campus
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Conclave
  • Stellaris: Galaxy Edition
  • Stellaris: Federations
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Jade Dragon
  • Cities: Skylines - Snowfall
  • Stellaris
  • Europa Universalis IV: Art of War
  • Stellaris: Galaxy Edition
Hi, struggling with modding something in, hoping someone here can help me. Report below.

Background:
I'm modding in an alternative ascension path to synthetic, whereby after researching synthetic tech instead of transferring consciousness into a machine (and becoming robot pops) your species installs a near-sapient AI assistant through a neural chip. Basically, they remain cyborgs, but AI-assisted, always networked.

What I've done so far, what's working as intended:
Created relevant traits, copied the Flesh is Weak special project and event chain, got it working so that it amends all pops and rulers with the new L2 (level 2 cybernetics) trait.

What's not working
  1. All leaders have the L2 trait, with the old cyborg trait removed as intended. But when new leaders spawn in the pool for recruitment, they just have the old cyborg trait rather than the new one.
  2. The ascension project creates a new sub-species, as intended. But the new species has the cybernetic trait AND the L2 cybernetic trait, when I only want it to have the latter and remove the cybernetic trait.
What I want to know to solve this:
  1. How do I create a link between a species trait and a leader trait? For example, when a species has the cybernetic trait, new leaders spawned of that species get the cyborg trait. But I don't know how to get this to work for my new L2 cyborg trait. I hope it's not hardcoded. For clarity, I'm not talking about traits that have effects on leaders, like leaders get a passive +40 years lifespan bonus from the cybernetic trait. I'm talking about a species having a trait (cybernetic) causing leaders to spawn with a different leader trait (cyborg).
  2. How can I amend the below code (which sits as a scripted effect) to remove a trait from a newly created species? I've tried adding in remove_trait = trait_cybernetic within the create_species command, and an alternative using the event_target outside the entire species scope, but it still won't work and I'm not sure what else to try.
Code:
robmod_create_l2_species_mod = {
    species = {
        save_event_target_as = changing_species_l2

        create_species = {
            is_mod = yes
            name = this
            name_list = this
            plural = this
            class = this
            portrait = this
            traits = this
            traits = {
                trait = trait_robmod_l2
            }
            homeworld = this
        }
    }
#more stuff happens here but not relevant
}

Thanks for any help you can offer.

Rob