Is there a built-in check in game files that checks whether a territory is owned by root or player ally?
I am looking for the equivalent of is_controlled_by_ROOT_or_ally check but excludes controlled by a player ally. The reason is that the mod I am playing makes ample use of this check to build decisions that adds historical flavor. But it only adds flavor if player is the country in question and not when player is the ally in question. So instead of removing all such decisions or turning them off completely for AI, I am wondering if there is an alternative check.
(Perhaps the better implementation is probably to require consent of owner and making AI to accept all the time. But I am not trying to change the mod in any indepth way.)
I am looking for the equivalent of is_controlled_by_ROOT_or_ally check but excludes controlled by a player ally. The reason is that the mod I am playing makes ample use of this check to build decisions that adds historical flavor. But it only adds flavor if player is the country in question and not when player is the ally in question. So instead of removing all such decisions or turning them off completely for AI, I am wondering if there is an alternative check.
(Perhaps the better implementation is probably to require consent of owner and making AI to accept all the time. But I am not trying to change the mod in any indepth way.)