Well, it's more I'm trying to understand how to code, which is why I'm using generic examples so I have to do it myself, rather than just posting the exact code and having others do it for me.
But back on the topic of finding characters, is know comparative conditions (relative_power, attribute_diff, opinion_diff) normally have you use specific variables (ROOT and FROM) to determine the targets of the comparison. But would it be possible to replace ROOT or FROM with a targeted search like "{any_realm_character = { has_character_flag = whatever } }"?
For example, taking the standard
Code:
relative_power = { who = FROM power = 2.0 }
and turning it into
Code:
relative_power = { who = {any_realm_character = { has_character_flag = whatever } } power = 2.0 }
is something like that possible, or can you not change variables like that?