TPStashEvent.GetCurrency
TPStashEvent.GetCurrency(
userId,
character_uuid,
currency_slug,
currency_quantity,
currency_total_quantity--[[Optional--]],
from_entity--[[Optional--]],
from_category_slug--[[Optional--]],
from_slug--[[Optional--]]
)
Description
GetCurrency collects the data of the character’s acquisition of in-game currency. It needs to be called when an event of currency acquisition occurs in the middle of the game. It can be used for the analysis of personas about currency acquisition.
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 acquired |
Required |
||
currency_total_quantity |
The total number or amount of currency after currency acquisition
|
Optional |
||
from_entity |
The action that causes the player to gain the currency. Entities
|
Optional |
||
from_category_slug |
The category of place, source, or situation from which the player gets the currency |
Optional |
||
from_slug |
The name of place, source, or situation from which the player gets the currency |
Optional |