Transaction Action of GS2-Mission

ConsumeAction

Gs2Mission:ReceiveByUserId

Receive rewards for mission accomplishment

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"

AcquireAction

Gs2Mission:IncreaseCounterByUserId

Add to counter

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"