Transaction Action of GS2-Mission

ConsumeAction

Gs2Mission:ReceiveByUserId

Receive rewards for mission accomplishment

Actions for which quantity can be specified: NO

Reversible action: YES

TypeDescription
namespaceNamestringNamespace name
missionGroupNamestringMission Group Name
missionTaskNamestringTask Name
userIdstring
Set #{userId} to replace the currently logged in user ID.
{
    "action": "Gs2Mission:ReceiveByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "missionGroupName": "[string]Mission Group Name",
        "missionTaskName": "[string]Task Name",
        "userId": "[string]User Id"
    }
}
action: Gs2Mission:ReceiveByUserId
request:
  namespaceName: "[string]Namespace name"
  missionGroupName: "[string]Mission Group Name"
  missionTaskName: "[string]Task Name"
  userId: "[string]User Id"

Gs2Mission:DecreaseCounterByUserId

Sub to counter

Actions for which quantity can be specified: YES

Reversible action: YES

TypeDescription
namespaceNamestringNamespace name
counterNamestringCounter Name
userIdstring
Set #{userId} to replace the currently logged in user ID.
valuelongValue to be added
{
    "action": "Gs2Mission:DecreaseCounterByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "counterName": "[string]Counter Name",
        "userId": "[string]User Id",
        "value": "[long]Value to be added"
    }
}
action: Gs2Mission:DecreaseCounterByUserId
request:
  namespaceName: "[string]Namespace name"
  counterName: "[string]Counter Name"
  userId: "[string]User Id"
  value: "[long]Value to be added"

AcquireAction

Gs2Mission:RevertReceiveByUserId

Receive rewards for mission accomplishment

Actions for which quantity can be specified: NO

Reversible action: YES

TypeDescription
namespaceNamestringNamespace name
missionGroupNamestringMission Group Name
missionTaskNamestringTask Name
userIdstringSet #{userId} to replace the currently logged in user ID.
{
    "action": "Gs2Mission:RevertReceiveByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "missionGroupName": "[string]Mission Group Name",
        "missionTaskName": "[string]Task Name",
        "userId": "[string]User Id"
    }
}
action: Gs2Mission:RevertReceiveByUserId
request:
  namespaceName: "[string]Namespace name"
  missionGroupName: "[string]Mission Group Name"
  missionTaskName: "[string]Task Name"
  userId: "[string]User Id"

Gs2Mission:IncreaseCounterByUserId

Add to counter

Actions for which quantity can be specified: YES

Reversible action: YES

TypeDescription
namespaceNamestringNamespace name
counterNamestringCounter Name
userIdstringSet #{userId} to replace the currently logged in user ID.
valuelongValue to be added
{
    "action": "Gs2Mission:IncreaseCounterByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "counterName": "[string]Counter Name",
        "userId": "[string]User Id",
        "value": "[long]Value to be added"
    }
}
action: Gs2Mission:IncreaseCounterByUserId
request:
  namespaceName: "[string]Namespace name"
  counterName: "[string]Counter Name"
  userId: "[string]User Id"
  value: "[long]Value to be added"