The wiki's
wiki's Scripting page's entry for preferred_limit
, on careful reading,
seems to suggest that the game will stop looking for matches once it meets a preferred limit that qualifies. However, the example used there is for a clearly nested set of preferred limits, that is, the first of three preferred limits in the example is
is_powerful_vassal = yes
, followed by being a tier of KING or DUKE, followed by a tier of COUNT.
But what if I'm trying to match multiple things that aren't all nested? For instance, something like this.
Code:
random_vassal = {
limit = { trait = ambitious }
preferred_limit = { is_powerful_vassal = yes }
preferred_limit = { trait = diligent }
}
If there are one or more ambitious vassals who's a powerful vassal, will the game stop looking there and pick one of them, or will it then look, among any ambitious powerful vassals, for one that is
also diligent?
I thought the latter would work, but a few results of my code in-game seems to indicate that maybe it's the former that's true?
If it
is the former that's true, is there an easy way to simulate the latter, so that I can keep narrowing down? (That is, for the example code I posited just above, if there are more than one ambitious powerful vassals, how would I then have the game prefer one of those that's diligent?)