TPStashEvent.GetToken
public int GetToken(
string player_uuid,
string character_uuid,
string item_slug,
float item_quantity,
[entity from_entity = entity.None],
[string from_category_slug = null],
[string from_slug = null]
);
Description
GetToken collects the data of the character’s acquisition of a token.
|
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 |
||
item_slug |
Unique identifier of the item (for example, "weapon_sword_dagger" and "shield_kite_rare") |
Required |
||
item_quantity |
The number or amount of token acquired |
Required |
||
from_entity |
The action that causes the player to gain the token Entities
|
Optional |
||
from_category_slug |
The category of place, source, or situation from which the player gets the token |
Optional |
||
from_slug |
The name of place, source, or situation from which the player gets the token |
Optional |