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

WeeLittleSpoon

Never met a word he didn't like
88 Badges
Mar 30, 2017
488
1.972
  • Crusader Kings II
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Stellaris: Synthetic Dawn
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • For the Motherland
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Hearts of Iron III
  • Darkest Hour
  • Europa Universalis IV: Wealth of Nations
  • Cities in Motion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Golden Century
  • Stellaris: Megacorp
  • Shadowrun Returns
  • Hearts of Iron IV: No Step Back
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
I wanted to write a janky way to check how many people are scheming against a character, so I wrote this very simple little script:

Code:
every_pinned_character = {       
    every_targeting_scheme = {
        scheme_owner = {
            add_gold = 1
        }
    }
}

It should just check every pinned character, then check every scheme targeting them, and add one gold to the scheme owners. I did this so that they would show up in the console and I could quickly check who was scheming against a chosen character. But, for some reason, this doesn't work for me. If you change every_pinned_character to another list builder appropriate to the character you want to check (e.g., every_close_family_member), this will work as I expect, but for some reason it doesn't want to cooperate when inside of a every_pinned_character or random_pinned_character.

I definitely pinned characters when trying this (and I specifically started schemes against them), so I don't think it's an obvious user error on my part, but I might have borked something somewhere else. Can anyone else get this simple thing to work? It just seems weird to me that nesting isn't working for me here when I use it on pinned characters, but has no problem with any other list builder.