TPStashEvent.ChangeStat
TPStashEvent.ChangeStat(
userId,
character_uuid,
stat_slug,
stat_to,
stat_category_slug--[[Optional--]],
stat_from--[[Optional--]]
)
Description
ChangeStat collects the data related to the character’s stat changes. Use this method only when the player is able to change a specific stat selectively.
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 |
||
stat_slug |
Unique slug (similar to ID) for a stat (for example, "Strength", "Perception", "Endurance") |
Required |
||
stat_to |
Stat value as a number after the change |
Required |
||
stat_category_slug |
Unique category slug (similar to the name of the category) of stats (for example, |
Optional |
||
stat_from |
Stat value as a number before the change |
Optional |