Transaction Action of GS2-Quest

VerifyAction

ConsumeAction

Gs2Quest:DeleteProgressByUserId

Delete quest progress by specifying user ID

Actions for which quantity can be specified: NO

Reversible action: NO

TypeDescription
namespaceNamestringNamespace name
userIdstringSet #{userId} to replace the currently logged in user ID.
timeOffsetTokenstringTime offset token
{
    "action": "Gs2Quest:DeleteProgressByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "timeOffsetToken": "[string]Time offset token"
    }
}
action: Gs2Quest:DeleteProgressByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  timeOffsetToken: "[string]Time offset token"
transaction.service("quest").consume.delete_progress_by_user_id({
    namespaceName="[string]Namespace name",
    userId="[string]User Id",
    timeOffsetToken="[string]Time offset token",
})

AcquireAction

Gs2Quest:CreateProgressByUserId

Create quest progress by specifying user ID

Actions for which quantity can be specified: NO

Reversible action: YES

TypeDescription
namespaceNamestringNamespace name
userIdstringSet #{userId} to replace the currently logged in user ID.
questModelIdstringQuest model GRN in progress
forceboolIf have a quest already started, you can discard it and start it
configConfig[]Set values to be applied to transaction variables
timeOffsetTokenstringTime offset token
{
    "action": "Gs2Quest:CreateProgressByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "questModelId": "[string]Quest model GRN in progress",
        "force": "[bool]If have a quest already started, you can discard it and start it",
        "config": [
            {
                "key": "[string]Name",
                "value": "[string]Value"
            }
        ],
        "timeOffsetToken": "[string]Time offset token"
    }
}
action: Gs2Quest:CreateProgressByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  questModelId: "[string]Quest model GRN in progress"
  force: "[bool]If have a quest already started, you can discard it and start it"
  config: 
    - key: "[string]Name"
      value: "[string]Value"
  timeOffsetToken: "[string]Time offset token"
transaction.service("quest").acquire.create_progress_by_user_id({
    namespaceName="[string]Namespace name",
    userId="[string]User Id",
    questModelId="[string]Quest model GRN in progress",
    force="[bool]If have a quest already started, you can discard it and start it",
    config={
        {
            key="[string]Name",
            value="[string]Value"
        }
    },
    timeOffsetToken="[string]Time offset token",
})