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
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
timeOffsetToken | string | Time 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
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | Set #{userId} to replace the currently logged in 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 | Config[] | Set values to be applied to transaction variables |
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"
}
}
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",
})