TPStashEvent.LevelUpCharacter
public int LevelUpCharacter(
string player_uuid,
string character_uuid,
int level_to,
[int? level_from = null]
);
Description
LevelUpCharacter collects the data of the character’s level up. It needs to be called when an event of the character’s level up occurs during the game. It can be used for the analysis of personas about character growth.
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:
|
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
|
Required |
||
level_to |
Character’s level after the level up |
Required |
||
level_from |
Character’s level before the level up |
Optional |