Transaction Action of GS2-Experience
VerifyAction
Gs2Experience:VerifyRankByUserId
Verify rank by specifying a user ID
Whether the action allows quantity specification: 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. | ||||||||||||||||
| experienceName | string | ✓ | ~ 128 chars | Experience Model Name | ||||||||||||||||
| verifyType | String Enum enum { “less”, “lessEqual”, “greater”, “greaterEqual”, “equal”, “notEqual” } | ✓ | Type of verification
| |||||||||||||||||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||||||||||||||||
| rankValue | long | ✓ | 0 | 0 ~ 9223372036854775805 | Current Rank | |||||||||||||||
| multiplyValueSpecifyingQuantity | bool | ✓ | false | Whether to multiply the value used for verification when specifying the quantity | ||||||||||||||||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Experience:VerifyRankByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"experienceName": "[string]Experience Model Name",
"verifyType": "[string]Type of verification",
"propertyId": "[string]Property ID",
"rankValue": "[long]Current Rank",
"multiplyValueSpecifyingQuantity": "[bool]Whether to multiply the value used for verification when specifying the quantity",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Experience:VerifyRankByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
experienceName: "[string]Experience Model Name"
verifyType: "[string]Type of verification"
propertyId: "[string]Property ID"
rankValue: "[long]Current Rank"
multiplyValueSpecifyingQuantity: "[bool]Whether to multiply the value used for verification when specifying the quantity"
timeOffsetToken: "[string]Time offset token"transaction.service("experience").verify.verify_rank_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
experienceName="[string]Experience Model Name",
verifyType="[string]Type of verification",
propertyId="[string]Property ID",
rankValue="[long]Current Rank",
multiplyValueSpecifyingQuantity="[bool]Whether to multiply the value used for verification when specifying the quantity",
timeOffsetToken="[string]Time offset token",
})Gs2Experience:VerifyRankCapByUserId
Verify rank cap by specifying a user ID
Whether the action allows quantity specification: 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. | ||||||||||||||||
| experienceName | string | ✓ | ~ 128 chars | Experience Model Name | ||||||||||||||||
| verifyType | String Enum enum { “less”, “lessEqual”, “greater”, “greaterEqual”, “equal”, “notEqual” } | ✓ | Type of verification
| |||||||||||||||||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||||||||||||||||
| rankCapValue | long | ✓ | 0 ~ 9223372036854775805 | Current Rank Cap | ||||||||||||||||
| multiplyValueSpecifyingQuantity | bool | ✓ | false | Whether to multiply the value used for verification when specifying the quantity | ||||||||||||||||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Experience:VerifyRankCapByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"experienceName": "[string]Experience Model Name",
"verifyType": "[string]Type of verification",
"propertyId": "[string]Property ID",
"rankCapValue": "[long]Current Rank Cap",
"multiplyValueSpecifyingQuantity": "[bool]Whether to multiply the value used for verification when specifying the quantity",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Experience:VerifyRankCapByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
experienceName: "[string]Experience Model Name"
verifyType: "[string]Type of verification"
propertyId: "[string]Property ID"
rankCapValue: "[long]Current Rank Cap"
multiplyValueSpecifyingQuantity: "[bool]Whether to multiply the value used for verification when specifying the quantity"
timeOffsetToken: "[string]Time offset token"transaction.service("experience").verify.verify_rank_cap_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
experienceName="[string]Experience Model Name",
verifyType="[string]Type of verification",
propertyId="[string]Property ID",
rankCapValue="[long]Current Rank Cap",
multiplyValueSpecifyingQuantity="[bool]Whether to multiply the value used for verification when specifying the quantity",
timeOffsetToken="[string]Time offset token",
})ConsumeAction
Gs2Experience:SubExperienceByUserId
Subtract experience by specifying a user ID
Whether the action allows quantity specification: YES
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. | ||
| experienceName | string | ✓ | ~ 128 chars | Experience Model Name | ||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||
| experienceValue | long | ✓ | 0 | 0 ~ 9223372036854775805 | Lost Experience | |
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Experience:SubExperienceByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"experienceName": "[string]Experience Model Name",
"propertyId": "[string]Property ID",
"experienceValue": "[long]Lost Experience",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Experience:SubExperienceByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
experienceName: "[string]Experience Model Name"
propertyId: "[string]Property ID"
experienceValue: "[long]Lost Experience"
timeOffsetToken: "[string]Time offset token"transaction.service("experience").consume.sub_experience_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
experienceName="[string]Experience Model Name",
propertyId="[string]Property ID",
experienceValue="[long]Lost Experience",
timeOffsetToken="[string]Time offset token",
})Gs2Experience:SubRankCapByUserId
Subtract rank cap by specifying a user ID
Whether the action allows quantity specification: YES
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. | ||
| experienceName | string | ✓ | ~ 128 chars | Experience Model Name | ||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||
| rankCapValue | long | ✓ | 0 ~ 9223372036854775805 | Current Rank Cap | ||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Experience:SubRankCapByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"experienceName": "[string]Experience Model Name",
"propertyId": "[string]Property ID",
"rankCapValue": "[long]Current Rank Cap",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Experience:SubRankCapByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
experienceName: "[string]Experience Model Name"
propertyId: "[string]Property ID"
rankCapValue: "[long]Current Rank Cap"
timeOffsetToken: "[string]Time offset token"transaction.service("experience").consume.sub_rank_cap_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
experienceName="[string]Experience Model Name",
propertyId="[string]Property ID",
rankCapValue="[long]Current Rank Cap",
timeOffsetToken="[string]Time offset token",
})AcquireAction
Gs2Experience:AddExperienceByUserId
Add experience by specifying a user ID
Whether the action allows quantity specification: YES
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. | ||
| experienceName | string | ✓ | ~ 128 chars | Experience Model Name | ||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||
| experienceValue | long | ✓ | 0 | 0 ~ 9223372036854775805 | Gained Experience | |
| truncateExperienceWhenRankUp | bool? | false | Whether to truncate the remaining experience when ranking up | |||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Experience:AddExperienceByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"experienceName": "[string]Experience Model Name",
"propertyId": "[string]Property ID",
"experienceValue": "[long]Gained Experience",
"truncateExperienceWhenRankUp": "[bool]Whether to truncate the remaining experience when ranking up",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Experience:AddExperienceByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
experienceName: "[string]Experience Model Name"
propertyId: "[string]Property ID"
experienceValue: "[long]Gained Experience"
truncateExperienceWhenRankUp: "[bool]Whether to truncate the remaining experience when ranking up"
timeOffsetToken: "[string]Time offset token"transaction.service("experience").acquire.add_experience_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
experienceName="[string]Experience Model Name",
propertyId="[string]Property ID",
experienceValue="[long]Gained Experience",
truncateExperienceWhenRankUp="[bool]Whether to truncate the remaining experience when ranking up",
timeOffsetToken="[string]Time offset token",
})Gs2Experience:SetExperienceByUserId
Set experience by specifying a user ID
Whether the action allows quantity specification: YES
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. | ||
| experienceName | string | ✓ | ~ 128 chars | Experience Model Name | ||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||
| experienceValue | long | ✓ | 0 | 0 ~ 9223372036854775805 | Cumulative experience gained | |
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Experience:SetExperienceByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"experienceName": "[string]Experience Model Name",
"propertyId": "[string]Property ID",
"experienceValue": "[long]Cumulative experience gained",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Experience:SetExperienceByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
experienceName: "[string]Experience Model Name"
propertyId: "[string]Property ID"
experienceValue: "[long]Cumulative experience gained"
timeOffsetToken: "[string]Time offset token"transaction.service("experience").acquire.set_experience_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
experienceName="[string]Experience Model Name",
propertyId="[string]Property ID",
experienceValue="[long]Cumulative experience gained",
timeOffsetToken="[string]Time offset token",
})Gs2Experience:AddRankCapByUserId
Add rank cap by specifying a user ID
Whether the action allows quantity specification: YES
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. | ||
| experienceName | string | ✓ | ~ 128 chars | Experience Model Name | ||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||
| rankCapValue | long | ✓ | 0 ~ 9223372036854775805 | Current Rank Cap | ||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Experience:AddRankCapByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"experienceName": "[string]Experience Model Name",
"propertyId": "[string]Property ID",
"rankCapValue": "[long]Current Rank Cap",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Experience:AddRankCapByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
experienceName: "[string]Experience Model Name"
propertyId: "[string]Property ID"
rankCapValue: "[long]Current Rank Cap"
timeOffsetToken: "[string]Time offset token"transaction.service("experience").acquire.add_rank_cap_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
experienceName="[string]Experience Model Name",
propertyId="[string]Property ID",
rankCapValue="[long]Current Rank Cap",
timeOffsetToken="[string]Time offset token",
})Gs2Experience:SetRankCapByUserId
Set rank cap 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. | ||
| experienceName | string | ✓ | ~ 128 chars | Experience Model Name | ||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||
| rankCapValue | long | ✓ | 0 ~ 9223372036854775805 | Current Rank Cap | ||
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Experience:SetRankCapByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"experienceName": "[string]Experience Model Name",
"propertyId": "[string]Property ID",
"rankCapValue": "[long]Current Rank Cap",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Experience:SetRankCapByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
experienceName: "[string]Experience Model Name"
propertyId: "[string]Property ID"
rankCapValue: "[long]Current Rank Cap"
timeOffsetToken: "[string]Time offset token"transaction.service("experience").acquire.set_rank_cap_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
experienceName="[string]Experience Model Name",
propertyId="[string]Property ID",
rankCapValue="[long]Current Rank Cap",
timeOffsetToken="[string]Time offset token",
})Gs2Experience:MultiplyAcquireActionsByUserId
Multiply resources according to the rank of the property subject to the experience value by specifying user ID
Whether the action allows quantity specification: YES
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. | ||
| experienceName | string | ✓ | ~ 128 chars | Experience Model Name | ||
| propertyId | string | ✓ | ~ 1024 chars | Property ID | ||
| rateName | string | ✓ | ~ 128 chars | Reward addition table name | ||
| acquireActions | List<AcquireAction> | [] | 0 ~ 100 items | List of Acquire Action | ||
| baseRate | float | ✓ | 1 | 0 ~ 1000000 | Base rate | |
| timeOffsetToken | string | ~ 1024 chars | Time offset token |
{
"action": "Gs2Experience:MultiplyAcquireActionsByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User ID",
"experienceName": "[string]Experience Model Name",
"propertyId": "[string]Property ID",
"rateName": "[string]Reward addition table name",
"acquireActions": [
{
"action": "[string]Types of actions to be performed in the acquire action",
"request": "[string]JSON string of the request used when executing the action"
}
],
"baseRate": "[float]Base rate",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Experience:MultiplyAcquireActionsByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User ID"
experienceName: "[string]Experience Model Name"
propertyId: "[string]Property ID"
rateName: "[string]Reward addition table name"
acquireActions:
- action: "[string]Types of actions to be performed in the acquire action"
request: "[string]JSON string of the request used when executing the action"
baseRate: "[float]Base rate"
timeOffsetToken: "[string]Time offset token"transaction.service("experience").acquire.multiply_acquire_actions_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User ID",
experienceName="[string]Experience Model Name",
propertyId="[string]Property ID",
rateName="[string]Reward addition table name",
acquireActions={
{
action="[string]Types of actions to be performed in the acquire action",
request="[string]JSON string of the request used when executing the action"
}
},
baseRate="[float]Base rate",
timeOffsetToken="[string]Time offset token",
})