Hello Dear Modders,
While planning chain of events to my mod, I have run into strange problem, that firstly look easy to solve. It is probably caused by the lack of my modding/logical skills or inability to fine proper trigger question. Here it is:
I would like to check if all vassals (of tier count or higher) of my liege have positive opinion of him, or none of them has negative opinion of said liege. I have tried:
it returns nicely as false if all of them have positive opinion, the problem is I need something that will check the same, but return the truth (1).
I was thinking in adding NOT = { in front but it simply moves into recognizing the next value (TIER = COUNT), that normally would result in checking if there is no vassal that has negative opinion of liege and return the truth if not.
Therefore, I wanted to ask if there is some function similar to any_vassal, but works like all_vassals? So it would check the argument against them all? Any tips would be greatly appreciated.
I am total into humanities, so please forgive me any obvious mistakes here.
Kind regards and thank you in advance for any help.
While planning chain of events to my mod, I have run into strange problem, that firstly look easy to solve. It is probably caused by the lack of my modding/logical skills or inability to fine proper trigger question. Here it is:
I would like to check if all vassals (of tier count or higher) of my liege have positive opinion of him, or none of them has negative opinion of said liege. I have tried:
Code:
[...]
liege = {
any_vassal = { limit = { tier = count
NOT = { opinion = { who = LIEGE value = 0 }}}}}}
[...]
it returns nicely as false if all of them have positive opinion, the problem is I need something that will check the same, but return the truth (1).
I was thinking in adding NOT = { in front but it simply moves into recognizing the next value (TIER = COUNT), that normally would result in checking if there is no vassal that has negative opinion of liege and return the truth if not.
Therefore, I wanted to ask if there is some function similar to any_vassal, but works like all_vassals? So it would check the argument against them all? Any tips would be greatly appreciated.
I am total into humanities, so please forgive me any obvious mistakes here.
Kind regards and thank you in advance for any help.