TPStashEvent.LevelUpSkill

public int LevelUpSkill(
    string player_uuid,
    string character_uuid,
    string skill_slug,
    int level_to,
    [string skill_category_slug=null],
    [int? level_from=null]
);

Description

LevelUpSkill collects the data of level up of a character’s skill.

It returns 1 for success and -1 for failure. If -1 is returned, you can see the following message in the Unity editor console in TentuPlay debug mode:

TPError||ERROR inserting table_name: exception_error_message

Parameters

Name Description Required

player_uuid

Player’s unique ID (not a character’s ID) such as Steam user ID and Google Play user ID

Required

character_uuid

Player’s character’s unique lD

If there is no character in the game or If you want to use it for the player, not a character, set character_uuid to TentuPlayKeyword._DUMMY_CHARACTER_ID_.

Required

skill_slug

Unique identifier of the skill

Required

skill_category_slug

Category name of the skill

Optional

skill_level_to

Character’s skill’s level after the level up

Required

skill_level_from

Character’s skill’s level before the level up

Optional