Search Unity

Matchup statistics for a fighting game?

Discussion in 'Unity Analytics' started by Jaruz, Jul 1, 2019.

  1. Jaruz

    Jaruz

    Joined:
    Jul 4, 2018
    Posts:
    8
    Heya,

    I recently got Unity Analytics and have been setting up a bunch of custom events. I have a multiplayer couch fighting game with different characters, and I haven't found a way to set up statistics for matchups between characters.

    I'm looking to get info like:
    -How often does one character beat another specific character?
    -What was the score?
    -What were their ELO's?
    -How often does a character win on a given level?

    Does anyone have any suggestions on how to get good visualization of character matchups? This is what I currently have:

    Code (CSharp):
    1. AnalyticsEvent.Custom("online_matchmaking_results", new Dictionary<string, object> {
    2.  
    3.                     { "player_1_char", state.allPlayers[p1Index].character },
    4.                     { "player_1_score", state.allPlayers[p1Index].score },
    5.                     { "player_1_elo", state.network.peers[p1Index].rating },
    6.  
    7.                     { "player_2_char", state.allPlayers[p2Index].character },
    8.                     { "player_2_char", state.allPlayers[p2Index].score },
    9.                     { "player_2_elo", state.network.peers[p2Index].rating },
    10.  
    11.                     { "level_name", state.levelChoice.data.displayName }
    12.  
    13.                 });
    Is Unity Analytics the preferred method for these kind of stats?

    Thanks!
     
    Last edited: Jul 1, 2019
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446