I am trying to detect when Ideology is chosen. I tried to detect policy branch using the code below, but it doesn't work for any of the ideologies. It works fine for any other policy branch.
Is there any other way how to detect it? I'd like to know which of the branches were selected and both in case of AI and the player.
Code:
function listener(playerID, policyBranchID)
print("Policy branch selected by "..tostring(playerID)..", "..tostring(policyBranchID))
end
GameEvents.PlayerAdoptPolicyBranch.Add(listener)
Is there any other way how to detect it? I'd like to know which of the branches were selected and both in case of AI and the player.