GS2-Experience Buff リファレンス

GS2-Buff でバフを適用する際に指定する、パラメータの補正が可能なモデル/アクション内のフィールドと、その適用範囲の設定について

Model

バフを適用可能なモデルの種類

Gs2Experience:Status

ステータス

バフの適用対象フィールド

rankCapValue
有効化条件必須デフォルト値の制限説明
rankCapValuelong
0 ~ 9223372036854775805現在のランクキャップ
このステータスが現在到達できる最大ランクです。初期値は経験値モデルの defaultRankCap に設定され、限界突破などのランクキャップ増加操作により maxRankCap まで引き上げることができます。
マスターデータ記述例

rate には、対象フィールドに対する補正レートを指定します。

"targetModel": {
    "targetModelName": "Gs2Experience:Status",
    "targetFieldName": "rankCapValue",
    "conditionGrns": [
    ],
    "rate": 1.0
}

バフの適用条件モデル

Gs2Experience:ExperienceModel

経験値モデル

マスターデータ記述例
"conditionGrns": [
    {
        "targetModelName": "Gs2Experience:ExperienceModel",
        "targetGrn": "grn:gs2:any:any:experience:{namespaceName}:model:{experienceName}"
    }
]
Gs2Experience:Status

ステータス

マスターデータ記述例
"conditionGrns": [
    {
        "targetModelName": "Gs2Experience:Status",
        "targetGrn": "grn:gs2:any:any:experience:{namespaceName}:user:any:experienceModel:{experienceName}:property:{propertyId}"
    }
]

Action

バフを適用可能なアクションの種類

Gs2Experience:AddExperienceByUserId

ユーザーIDを指定して経験値を加算

指定されたユーザーのステータスに経験値を加算します。ランクはランクアップ閾値に基づいて自動的に再計算されます。
truncateExperienceWhenRankUp が true の場合、ランクアップ時に閾値を超えた余剰経験値は切り捨てられます。false(デフォルト)の場合は次のランクに繰り越されます。

バフの適用対象フィールド

experienceValue

Status - ステータス

有効化条件必須デフォルト値の制限説明
experienceValuelong00 ~ 9223372036854775805獲得経験値
マスターデータ記述例
"targetAction": {
    "targetActionName": "Gs2Experience:AddExperienceByUserId",
    "targetFieldName": "experienceValue",
    "conditionGrns": [
    ],
    "rate": 1.0
}

バフの適用条件モデル

Gs2Experience:ExperienceModel

経験値モデル

マスターデータ記述例
"conditionGrns": [
    {
        "targetModelName": "Gs2Experience:ExperienceModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:experience:{namespaceName}:model:{experienceName}"
    }
]
Gs2Experience:Status

ステータス

マスターデータ記述例
"conditionGrns": [
    {
        "targetModelName": "Gs2Experience:Status",
        "targetGrn": "grn:gs2:{region}:{ownerId}:experience:{namespaceName}:user:{userId}:experienceModel:{experienceName}:property:{propertyId}"
    }
]

Gs2Experience:SubExperience

経験値を減算

リクエストしたユーザーのステータスから経験値を減算します。経験値は0を下回りません。
ランクはランクアップ閾値に基づいて自動的に再計算されます。

バフの適用対象フィールド

experienceValue

Status - ステータス

有効化条件必須デフォルト値の制限説明
experienceValuelong00 ~ 9223372036854775805失う経験値
マスターデータ記述例
"targetAction": {
    "targetActionName": "Gs2Experience:SubExperience",
    "targetFieldName": "experienceValue",
    "conditionGrns": [
    ],
    "rate": 1.0
}

バフの適用条件モデル

Gs2Experience:ExperienceModel

経験値モデル

マスターデータ記述例
"conditionGrns": [
    {
        "targetModelName": "Gs2Experience:ExperienceModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:experience:{namespaceName}:model:{experienceName}"
    }
]
Gs2Experience:Status

ステータス

マスターデータ記述例
"conditionGrns": [
    {
        "targetModelName": "Gs2Experience:Status",
        "targetGrn": "grn:gs2:{region}:{ownerId}:experience:{namespaceName}:user:{userId}:experienceModel:{experienceName}:property:{propertyId}"
    }
]

Gs2Experience:SubExperienceByUserId

ユーザーIDを指定して経験値を減算

指定されたユーザーのステータスから経験値を減算します。経験値は0を下回りません。
ランクはランクアップ閾値に基づいて自動的に再計算されます。

バフの適用対象フィールド

experienceValue

Status - ステータス

有効化条件必須デフォルト値の制限説明
experienceValuelong00 ~ 9223372036854775805失う経験値
マスターデータ記述例
"targetAction": {
    "targetActionName": "Gs2Experience:SubExperienceByUserId",
    "targetFieldName": "experienceValue",
    "conditionGrns": [
    ],
    "rate": 1.0
}

バフの適用条件モデル

Gs2Experience:ExperienceModel

経験値モデル

マスターデータ記述例
"conditionGrns": [
    {
        "targetModelName": "Gs2Experience:ExperienceModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:experience:{namespaceName}:model:{experienceName}"
    }
]
Gs2Experience:Status

ステータス

マスターデータ記述例
"conditionGrns": [
    {
        "targetModelName": "Gs2Experience:Status",
        "targetGrn": "grn:gs2:{region}:{ownerId}:experience:{namespaceName}:user:{userId}:experienceModel:{experienceName}:property:{propertyId}"
    }
]