"Frenemy" dynamics depend entirely on the specific game. You didn't name it! But here's how they emerge in strategy games (e.g., Civilization VI):
Tell me the game (video, board, TTRPG) and your goal (roleplay, mechanical advantage, story), and I'll give concrete mechanics.