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:
can now be rendered as the much more digestible
My question is... where exactly can/should we use this? For example, from 00_fallen_empire.txt:
Can I then instead represent this as:
?
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?
Code:
from = {
owner = {
establish_communications = root
}
}
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?