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

Pale Blue

Colonel
54 Badges
Nov 2, 2017
1.093
3.355
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Lithoids
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Ancient Relics
  • Age of Wonders III
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Expansion Pass
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Europa Universalis IV: El Dorado
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Stellaris: Necroids
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Crusader Kings III
  • Imperator: Rome - Magna Graecia
  • Victoria 2
  • War of the Roses
  • Stellaris: Federations
  • Humble Paradox Bundle
  • Hearts of Iron IV: La Resistance
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Synthetic Dawn
  • Crusader Kings II
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Res Publica
  • Magicka
Hi i try to understand how the forgotten queens mod works. They dont seem to edit any base files or at least very few. Thats great for compability with other mods and i try to understand how they do it.
From what i could grasp with my limited modding knowledge they seem to do most of it with some kind of modifiers and triggers.

Can someone explain me how exactly they do for example modify the base output of a farmer by +1 food without changing the pop jobs file?
 
It creates a custom modifier, by first editing the necessary job in economic categories to support the modifier.

I do the same thing in AlphaMod for quite a few jobs I want to create custom modifiers for.

Code:
planet_farmers = {
    parent = planet_jobs
    generate_mult_modifiers = {
        produces
        # upkeep
    }
    generate_add_modifiers = {
        produces # This one
        upkeep
    }
}