Transaction Action of GS2-Stamina
ConsumeAction
Gs2Stamina:DecreaseMaxValueByUserId
Sub the maximum value of stamina by specifying the user ID
Actions for which quantity can be specified: YES
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
staminaName | string | Stamina Model Name |
userId | string | |
Set #{userId} to replace the currently logged in user ID. | ||
decreaseValue | int | Maximum amount of stamina to be decreased |
{
"action": "Gs2Stamina:DecreaseMaxValueByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"staminaName": "[string]Stamina Model Name",
"userId": "[string]User Id",
"decreaseValue": "[int]Maximum amount of stamina to be decreased"
}
}
action: Gs2Stamina:DecreaseMaxValueByUserId
request:
namespaceName: "[string]Namespace name"
staminaName: "[string]Stamina Model Name"
userId: "[string]User Id"
decreaseValue: "[int]Maximum amount of stamina to be decreased"
Gs2Stamina:ConsumeStaminaByUserId
Consume stamina by specifying user ID
Actions for which quantity can be specified: YES
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
staminaName | string | Stamina Model Name |
userId | string | |
Set #{userId} to replace the currently logged in user ID. | ||
consumeValue | int | Amount of stamina consumed |
{
"action": "Gs2Stamina:ConsumeStaminaByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"staminaName": "[string]Stamina Model Name",
"userId": "[string]User Id",
"consumeValue": "[int]Amount of stamina consumed"
}
}
action: Gs2Stamina:ConsumeStaminaByUserId
request:
namespaceName: "[string]Namespace name"
staminaName: "[string]Stamina Model Name"
userId: "[string]User Id"
consumeValue: "[int]Amount of stamina consumed"
AcquireAction
Gs2Stamina:RecoverStaminaByUserId
Recover stamina by specifying user ID
Actions for which quantity can be specified: YES
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
staminaName | string | Stamina Model Name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
recoverValue | int | Amount of stamina recovery |
{
"action": "Gs2Stamina:RecoverStaminaByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"staminaName": "[string]Stamina Model Name",
"userId": "[string]User Id",
"recoverValue": "[int]Amount of stamina recovery"
}
}
action: Gs2Stamina:RecoverStaminaByUserId
request:
namespaceName: "[string]Namespace name"
staminaName: "[string]Stamina Model Name"
userId: "[string]User Id"
recoverValue: "[int]Amount of stamina recovery"
Gs2Stamina:RaiseMaxValueByUserId
Add the maximum value of stamina by specifying the user ID
Actions for which quantity can be specified: YES
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
staminaName | string | Stamina Model Name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
raiseValue | int | Maximum amount of stamina to be increased |
{
"action": "Gs2Stamina:RaiseMaxValueByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"staminaName": "[string]Stamina Model Name",
"userId": "[string]User Id",
"raiseValue": "[int]Maximum amount of stamina to be increased"
}
}
action: Gs2Stamina:RaiseMaxValueByUserId
request:
namespaceName: "[string]Namespace name"
staminaName: "[string]Stamina Model Name"
userId: "[string]User Id"
raiseValue: "[int]Maximum amount of stamina to be increased"
Gs2Stamina:SetMaxValueByUserId
Update the maximum value of stamina by specifying user ID
Actions for which quantity can be specified: NO
Reversible action: NO
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
staminaName | string | Stamina Model Name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
maxValue | int | Maximum Stamina |
{
"action": "Gs2Stamina:SetMaxValueByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"staminaName": "[string]Stamina Model Name",
"userId": "[string]User Id",
"maxValue": "[int]Maximum Stamina"
}
}
action: Gs2Stamina:SetMaxValueByUserId
request:
namespaceName: "[string]Namespace name"
staminaName: "[string]Stamina Model Name"
userId: "[string]User Id"
maxValue: "[int]Maximum Stamina"
Gs2Stamina:SetRecoverIntervalByUserId
Update stamina recovery interval (minutes) by specifying user ID
Actions for which quantity can be specified: NO
Reversible action: NO
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
staminaName | string | Stamina Model Name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
recoverIntervalMinutes | int | Stamina recovery interval (minutes) |
{
"action": "Gs2Stamina:SetRecoverIntervalByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"staminaName": "[string]Stamina Model Name",
"userId": "[string]User Id",
"recoverIntervalMinutes": "[int]Stamina recovery interval (minutes)"
}
}
action: Gs2Stamina:SetRecoverIntervalByUserId
request:
namespaceName: "[string]Namespace name"
staminaName: "[string]Stamina Model Name"
userId: "[string]User Id"
recoverIntervalMinutes: "[int]Stamina recovery interval (minutes)"
Gs2Stamina:SetRecoverValueByUserId
Update stamina recovery interval (minutes) by specifying user ID
Actions for which quantity can be specified: NO
Reversible action: NO
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
staminaName | string | Stamina Model Name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
recoverValue | int | Amount of stamina recovery |
{
"action": "Gs2Stamina:SetRecoverValueByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"staminaName": "[string]Stamina Model Name",
"userId": "[string]User Id",
"recoverValue": "[int]Amount of stamina recovery"
}
}
action: Gs2Stamina:SetRecoverValueByUserId
request:
namespaceName: "[string]Namespace name"
staminaName: "[string]Stamina Model Name"
userId: "[string]User Id"
recoverValue: "[int]Amount of stamina recovery"