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

Velho e Bom Joe

An Whole Fool
93 Badges
Feb 15, 2012
266
1.256
  • Crusader Kings II: Horse Lords
  • Warlock: Master of the Arcane
  • War of the Roses
  • 500k Club
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Stellaris: Leviathans Story Pack
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Age of Wonders: Planetfall - Revelations
  • Europa Universalis IV: Common Sense
  • The Showdown Effect
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Conclave
  • Cities: Skylines - Mass Transit
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Shadowrun: Dragonfall
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders: Planetfall
  • Cities: Skylines - Green Cities
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall Premium edition
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Campus
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Europa Universalis IV
  • Age of Wonders: Planetfall Season pass
  • Stellaris: Lithoids
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Sign Up
  • Europa Universalis III Complete
  • Cities: Skylines - Parklife
  • Victoria 3 Sign Up
  • Europa Universalis III Complete
I've created a portrait, and I want to apply it on synthetic ascension. The thing is, I want it to apply only if the founder species uses a certain portrait. Otherwise, use the default synth portrait.

More specifically, I've created Robo-crabs portraits and I want to make it so that only Crabs become Robo-crabs :)

I've found the code responsible for the ascension, and tried the following ( The changes I've made are between the #):

Code:
*some stuff before*
create_species = {
           is_mod = yes
           name = this
           plural = this
           class = "ROBOT"         
           portrait = "robot3"
          # from = {
               if = {
                   limit = {                  
                           owner_species ={
                               species_portrait = art15
                           }                 
                   }
               portrait = "syn_art15"
               }
          # }
           traits = {
               trait = "trait_mechanical"
               trait = "trait_robotic_3"
           }
*more stuff later*

It didn't work, the game still used the default synth portrait.
I tried not using the from, and removing the owner_species scope, neither solved the problem.

I'm probably using the if wrong, I suppose.

for reference, and just to confirm that's not the portrait that is bugged, I did try replacing without using if, and it worked (well, not 100%, as only the pops used my portrait, while the leaders used the synth one, even though they were the same species. Still, that's a problem on the portrait and not on the event.).

Any help is appreciated, and hopefully sparks more synth portraits from the community :)