Transaction Action of GS2-Quest

ConsumeAction

Gs2Quest:DeleteProgressByUserId

Delete quest progress by specifying user ID

Actions for which quantity can be specified: NO

Reversible action: NO

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

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 stamp sheet variables
{
    "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"
            }
        ]
    }
}
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"
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"
  },
})