In a new game that I am developing, I wish to encourage partnership/duos gameplay. I already have a game that has a global leaderboard and shows top players etc. But I wish to make a global leaderboard that relies on two people who have chosen to partner up. Let’s say the leaderboard is for loyalty points. A player chooses another player in game as their fighting partner, and such information saves, both on the choosing player and the chosen player. For as long as they have their partner data as each other, their loyalty points are (let’s say) increments by one, or their total combined power level which will be the determining factor on where they are in the Out-Of-50 global leaderboard.
Now the issue here is that I want players to have the ability to disband their partnership (hopefully no friendships will be broken as a result), and then either player does, it removes them from the leaderboard as a result. It would be terrible if a player wishes to disband a partnership but their name is still associated with someone that they’ve disbanded (which is visible to anyone in the game as it’s a global leaderboard).
I further want to elaborate that i do not wish for it to rely on both players being in the same game or both players being online at the same time.
I also am using Datastore2. This concept has me scratching my head, could anyone possibly guide me on which services/methods I should use to achieve such a system.