TPStashEvent.UseCurrency
TPStashEvent.UseCurrency(
userId,
character_uuid,
currency_slug,
currency_quantity,
currency_total_quantity,
where_to_entity,
where_to_category_slug,
where_to_slug
)
Description
UseCurrency collects the data of the character’s spending of in-game currency. It needs to be called when an event of currency consumption occurs in the middle of the game. It can be used for the analysis of personas about currency consumption.
Parameters
Name | Description | Required | ||
---|---|---|---|---|
UserId |
Player’s unique user ID (not a character’s ID) that is given by Roblox: Player.UserId |
Required |
||
character_uuid |
Player’s character’s unique lD
|
Required |
||
currency_slug |
Unique identifier of currency such as "gold", "diamond", and "crystal" |
Required |
||
currency_quantity |
The number or amount of currency used |
Required |
||
currency_total_quantity |
The total number or amount of reserved currency after currency usage
|
Optional |
||
where_to_entity |
The entity type where the character gets to by using the currency Entities
|
Optional |
||
where_to_category_slug |
The category of place, situation, or outcome to which the player gets by using the currency |
Optional |
||
where_to_slug |
The name of place, situation, or outcome to which the player gets by using the currency |
Optional |