TPStashEvent.PlayQuest

TPStashEvent.PlayQuest(
    userId,
    character_uuid,
    quest_slug,
    quest_status,
    quest_category_slug --[[Optional--]]
)

Description

PlayQuest collects the data of the character’s progress in a quest. It needs to be called when the character accepts a given quest and ends or completes the quest.

The quest system can be defined as a system where a character accomplishes certain conditions given, such as missions, duties, or quests, and receives predetermined rewards (for example, daily quest, scenario completion quest, event dungeon).

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

quest_slug

Unique identifier of the quest

Required

quest_status

Quest progress

TPStashEvent.QuestStatus.Accept
TPStashEvent.QuestStatus.Clear
TPStashEvent.QuestStatus.Fail
TPStashEvent.QuestStatus.Abandon
TPStashEvent.QuestStatus.Timeover
  • Accept: Active acceptance of the quest

  • Clear: Quest completion

  • Fail: Quest failure

  • Abandon: Active abandonment of the quest

  • Timeover: Used when the quest is automatically considered "failed" or "cancelled" due to time constraints (for example, "Complete the quest in five minutes", daily quest)

Required

quest_category_slug

Category of the quest

Optional