CharacterCreated

Introduction

  • Backend Name: character_created

  • Description: The player created a new character.

  • Event Type: Game

  • Priority: P3

Parameters

Name Type Select Backend name Description
additionalData Dictionary Optional additional_data Any additional information
characterClass string Required character_class Class of the character being created.
characterGender string Required character_gender The gender of the character being created.
characterID string Required character_id The ID of the character.
characterName string Required character_name The name of the character

Code examples:

Dictionary<string, object> additionalData = new Dictionary<string, object>
{
    { "Experience", 1356 },
    { "Health", 76.85f },
    { "Total Money", 56897.56f }
};
LionAnalytics.CharacterCreated("Legendary", "Male", "MainGuy", "L_Pack_01_CH_12", additionalData);
CharacterCreatedEventArgs characterCreatedEventArgs = new CharacterCreatedEventArgs
{
    CharacterClass = "Legendary",
    CharacterGender = "Male",   
    CharacterName = "MainGuy",
    CharacterID = "L_Pack_01_CH_12"
};
Dictionary<string, object> additionalData = new Dictionary<string, object>
{
    { "Experience", 1356 },
    { "Health", 76.85f },   
    { "Total Money", 56897.56f }
};
LionAnalytics.CharacterCreated(characterCreatedEventArgs, additionalData);