Nemesis moddability changes: over 100 new triggers and effects each

  • 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.
It's a shame they replaced "count_planets" with "count_galaxy_planets". The former worked in system scope, the latter does not.
You have
Code:
count_system_planet - Iterate through each planet in the current system - checks whether the enclosed triggers return true for X/all of them
count_system_planet = {
    count = <num/all>
    limit = { <triggers> }
}
Supported Scopes: galactic_object
 
  • 2
Reactions:
So many things for modding. My personal favorite is that distance can check within a system now, as I've used that in a mod I made to check whether a planet's in its star's habitable zone.
 
  • 2Like
Reactions:
You have
Code:
count_system_planet - Iterate through each planet in the current system - checks whether the enclosed triggers return true for X/all of them
count_system_planet = {
    count = <num/all>
    limit = { <triggers> }
}
Supported Scopes: galactic_object

...the hell? I searched the wiki and the list of changes and I never saw it.

Thank you. :p
 
  • 1Like
Reactions:
  • 1
Reactions:
3.0.3 beta changes

Effects:

Added effect (3.0.3b)
Code:
dissolve_federation - Dissolved the current federation
dissolve_federation = yes
Supported Scopes: federation

Triggers:
Extended functionality (3.0.3b):
Code:
has_population_control - Checks if the pop is prevented from reproducing
has_population_control = { value = bool country = scope }
Supported Scopes: pop leader species
formerly: just pop, no options

Extended functionality (3.0.3b):
Code:
has_migration_control - Checks if the pop is prevented from migrating
has_migration_control = { value = bool country = scope }
Supported Scopes: pop leader species
formerly: just pop, no options

Extended functionality (3.0.3b):
Code:
has_colonization_control - Checks if the pop is prevented from migrating
has_colonization_control = { value = bool country = scope }
Supported Scopes: pop leader species
formerly: no leader, no options

Others:
New scopes docs (3.0.3b):
Code:
galactic_emperor
galactic_custodian

Localisations Espionage Operation new Promotions (3.0.3b):
Code:
Leader

No new modifiers.
 
Great to see has_migration_control get species scope. That's all I needed to completely replace all any_owned_pop things from faction demands with no loss of functionality.
 
  • 1Like
Reactions:
No changes in 3.0.3 release compared to the last 3.0.3 beta.

Minor additions in logging features, like new line at the end of setup.log
Code:
[20:35:42][galaxy_generator.cpp:3793]: Generating Random Scenario with seed 0 / 386519391

1621541338018.png
 
  • 1
Reactions:
  • 1Love
Reactions:
Last edited:
  • 1Like
  • 1
Reactions:
Good stuff, seen a few interesting things in there.
add_static_war_exhaustion - Adds static war exhaustion, scaled with value_for_planet_destruction, to owner of the battle location
add_static_war_exhaustion = {
attacker = <country>
location = <planet>
value_for_planet_destruction = <0.0-1.0>/<variable> #scales the amount of war exhaustion that is added
}
Supported Scopes: country
So, this can now multiply the WE gained from any battle by the variable? I've never really understood this trigger. I think it's the only way to add WE via script, too, right? (No way to just scope to X war participant of Y war and add z WE is there?)

job_turtle_miner_add
job_turtle_miner_per_pop
job_turtle_miner_per_crime
job_turtle_miner_gestalt_add
job_turtle_miner_gestalt_per_pop
job_turtle_miner_gestalt_per_crime
... What is a turtle miner?
 
Good stuff, seen a few interesting things in there.

So, this can now multiply the WE gained from any battle by the variable? I've never really understood this trigger. I think it's the only way to add WE via script, too, right? (No way to just scope to X war participant of Y war and add z WE is there?)


... What is a turtle miner?
This Lem draft is no longer needed so I removed it, posted a new thread: Lem moddability changes: new triggers, effects and improvements
 
  • 1Like
  • 1
Reactions: