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

If there is no character in the game or If you want to use it for the player, not a character, set character_uuid to TentuPlayKeyword._DUMMY_CHARACTER_ID_.

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, CharacterSkills, CharacterAbilities)

Optional

stat_from

Stat value as a number before the change

Optional