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

Swizzlewizzle

First Lieutenant
7 Badges
May 6, 2016
214
49
  • Magicka
  • Stellaris
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Megacorp
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
From the dev diary here, https://forum.paradoxplaza.com/foru...-diary-31-modding-scripting-anomalies.923348/ , we can now write code in the much more digestible format:

Code:
from = {
owner = {
establish_communications = root
}
}
can now be rendered as the much more digestible

Code:
from.owner = { establish_communications = root }

My question is... where exactly can/should we use this? For example, from 00_fallen_empire.txt:

Code:
create_country_effect = {
        create_species = {
            name = random
            class = random
            portrait = random
            traits = random
        }
        create_country = {
            name = random
            type = fallen_empire
            ignore_initial_colony_error = yes
            government = stagnated_ascendancy
            species = last_created
            flag = random
        }
        last_created_country = {
            set_country_flag = fallen_empire_1
        }
    }

Can I then instead represent this as:

Code:
create_country_effect.create_species = {
            name = random
            class = random
            portrait = random
            traits = random
        }
        create_country = {
            name = random
            type = fallen_empire
            ignore_initial_colony_error = yes
            government = stagnated_ascendancy
            species = last_created
            flag = random
        }
        last_created_country = {
            set_country_flag = fallen_empire_1
        }
    }
?
Is there an even more clean way of doing it? I have always felt that the way scripting language looks in P-dox games has been a bit strange/ugly, so i'm hoping that indeed I can use dot notation like this to make it a bit more sensible. :)

And if so... I wonder if there is a write up from any of the devs on the limits and best usages of it?