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