Transaction Action of GS2-Quest
Specification of verify/consume/acquire transaction actions
ConsumeAction
Gs2Quest:DeleteProgressByUserId
Delete Quest Progress by specifying a user ID
Whether the action allows quantity specification: NO
Whether the action is reversible: NO
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| namespaceName | string | ✓ | ~ 128 chars | Namespace name Namespace-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.). | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| timeOffsetToken | string | ~ 1024 chars | 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 a new Quest Progress by specifying a user ID
Whether the action allows quantity specification: NO
Whether the action is reversible: YES
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| namespaceName | string | ✓ | ~ 128 chars | Namespace name Namespace-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.). | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| questModelId | string | ✓ | ~ 1024 chars | Quest Model GRN to Start | ||
| force | bool | ✓ | false | If have a quest already started, you can discard it and start it | ||
| config | List<Config> | [] | 0 ~ 32 items | Set values to be applied to transaction variables | ||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Quest:CreateProgressByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"questModelId": "[string]Quest Model GRN to Start",
"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 to Start"
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 to Start",
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",
})