TPStashEvent.PlayQuest
public int PlayQuest(
string player_uuid,
string character_uuid,
string quest_slug,
string quest_status,
[string quest_category_slug = null]
);
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). |
It returns 1 for success and -1 for failure. If -1 is returned, you can see the following message in the Unity editor console in TentuPlay debug mode:
|
Parameters
Name | Description | Required | ||
---|---|---|---|---|
player_uuid |
Player’s unique ID (not a character’s ID) such as Steam user ID and Google Play user ID |
Required |
||
character_uuid |
Player’s character’s unique lD
|
Required |
||
quest_slug |
Unique identifier of the quest |
Required |
||
quest_status |
Quest progress
|
Required |
||
quest_category_slug |
Category of the quest |
Optional |