GS2-Stamina トランザクションアクション

ConsumeAction

Gs2Stamina:DecreaseMaxValueByUserId

ユーザIDを指定してスタミナの最大値を減算

数量指定可能なアクション:はい

反転可能なアクション:はい

説明
namespaceNamestringネームスペース名
staminaNamestringスタミナモデルの名前
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
decreaseValueint減算する最大スタミナ量
{
    "action": "Gs2Stamina:DecreaseMaxValueByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "staminaName": "[string]スタミナモデルの名前",
        "userId": "[string]ユーザーID",
        "decreaseValue": "[int]減算する最大スタミナ量"
    }
}
action: Gs2Stamina:DecreaseMaxValueByUserId
request:
  namespaceName: "[string]ネームスペース名"
  staminaName: "[string]スタミナモデルの名前"
  userId: "[string]ユーザーID"
  decreaseValue: "[int]減算する最大スタミナ量"

Gs2Stamina:ConsumeStaminaByUserId

ユーザIDを指定してスタミナを消費

数量指定可能なアクション:はい

反転可能なアクション:はい

説明
namespaceNamestringネームスペース名
staminaNamestringスタミナモデルの名前
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
consumeValueint消費するスタミナ量
{
    "action": "Gs2Stamina:ConsumeStaminaByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "staminaName": "[string]スタミナモデルの名前",
        "userId": "[string]ユーザーID",
        "consumeValue": "[int]消費するスタミナ量"
    }
}
action: Gs2Stamina:ConsumeStaminaByUserId
request:
  namespaceName: "[string]ネームスペース名"
  staminaName: "[string]スタミナモデルの名前"
  userId: "[string]ユーザーID"
  consumeValue: "[int]消費するスタミナ量"

AcquireAction

Gs2Stamina:RecoverStaminaByUserId

ユーザIDを指定してスタミナを回復

数量指定可能なアクション:はい

反転可能なアクション:はい

説明
namespaceNamestringネームスペース名
staminaNamestringスタミナモデルの名前
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
recoverValueintスタミナの回復量
{
    "action": "Gs2Stamina:RecoverStaminaByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "staminaName": "[string]スタミナモデルの名前",
        "userId": "[string]ユーザーID",
        "recoverValue": "[int]スタミナの回復量"
    }
}
action: Gs2Stamina:RecoverStaminaByUserId
request:
  namespaceName: "[string]ネームスペース名"
  staminaName: "[string]スタミナモデルの名前"
  userId: "[string]ユーザーID"
  recoverValue: "[int]スタミナの回復量"

Gs2Stamina:RaiseMaxValueByUserId

ユーザIDを指定してスタミナの最大値を加算

数量指定可能なアクション:はい

反転可能なアクション:はい

説明
namespaceNamestringネームスペース名
staminaNamestringスタミナモデルの名前
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
raiseValueint上昇する最大スタミナ量
{
    "action": "Gs2Stamina:RaiseMaxValueByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "staminaName": "[string]スタミナモデルの名前",
        "userId": "[string]ユーザーID",
        "raiseValue": "[int]上昇する最大スタミナ量"
    }
}
action: Gs2Stamina:RaiseMaxValueByUserId
request:
  namespaceName: "[string]ネームスペース名"
  staminaName: "[string]スタミナモデルの名前"
  userId: "[string]ユーザーID"
  raiseValue: "[int]上昇する最大スタミナ量"

Gs2Stamina:SetMaxValueByUserId

ユーザIDを指定してスタミナの最大値を更新

数量指定可能なアクション:いいえ

反転可能なアクション:いいえ

説明
namespaceNamestringネームスペース名
staminaNamestringスタミナモデルの名前
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
maxValueintスタミナの最大値
{
    "action": "Gs2Stamina:SetMaxValueByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "staminaName": "[string]スタミナモデルの名前",
        "userId": "[string]ユーザーID",
        "maxValue": "[int]スタミナの最大値"
    }
}
action: Gs2Stamina:SetMaxValueByUserId
request:
  namespaceName: "[string]ネームスペース名"
  staminaName: "[string]スタミナモデルの名前"
  userId: "[string]ユーザーID"
  maxValue: "[int]スタミナの最大値"

Gs2Stamina:SetRecoverIntervalByUserId

ユーザIDを指定してスタミナの回復間隔(分)を更新

数量指定可能なアクション:いいえ

反転可能なアクション:いいえ

説明
namespaceNamestringネームスペース名
staminaNamestringスタミナモデルの名前
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
recoverIntervalMinutesintスタミナの回復間隔(分)
{
    "action": "Gs2Stamina:SetRecoverIntervalByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "staminaName": "[string]スタミナモデルの名前",
        "userId": "[string]ユーザーID",
        "recoverIntervalMinutes": "[int]スタミナの回復間隔(分)"
    }
}
action: Gs2Stamina:SetRecoverIntervalByUserId
request:
  namespaceName: "[string]ネームスペース名"
  staminaName: "[string]スタミナモデルの名前"
  userId: "[string]ユーザーID"
  recoverIntervalMinutes: "[int]スタミナの回復間隔(分)"

Gs2Stamina:SetRecoverValueByUserId

ユーザIDを指定してスタミナの回復間隔(分)を更新

数量指定可能なアクション:いいえ

反転可能なアクション:いいえ

説明
namespaceNamestringネームスペース名
staminaNamestringスタミナモデルの名前
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
recoverValueintスタミナの回復量
{
    "action": "Gs2Stamina:SetRecoverValueByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "staminaName": "[string]スタミナモデルの名前",
        "userId": "[string]ユーザーID",
        "recoverValue": "[int]スタミナの回復量"
    }
}
action: Gs2Stamina:SetRecoverValueByUserId
request:
  namespaceName: "[string]ネームスペース名"
  staminaName: "[string]スタミナモデルの名前"
  userId: "[string]ユーザーID"
  recoverValue: "[int]スタミナの回復量"