GS2-Money Buff Reference

Describes the fields within models/actions whose parameters can be adjusted when applying buffs with GS2-Buff, and the scope in which those buffs are applied.

Action

Types of actions that can apply buffs

Gs2Money:DepositByUserId

Deposit balance to wallet by specifying a user ID

Target fields for buff application

count

Wallet - Wallet

TypeConditionRequiredDefaultValue LimitsDescription
countint
1 ~ 2147483646Quantity of premium currency to be granted
Example Master Data
"targetAction": {
    "targetActionName": "Gs2Money:DepositByUserId",
    "targetFieldName": "count",
    "conditionGrns": [
    ],
    "rate": 1.0
}

Buff Application Condition Model

Gs2Money:Wallet

Wallet

Example Master Data
"conditionGrns": [
    {
        "targetModelName": "Gs2Money:Wallet",
        "targetGrn": "grn:gs2:{region}:{ownerId}:money:{namespaceName}:user:{userId}:wallet:{slot}"
    }
]

Gs2Money:Withdraw

Consume balance from wallet

Target fields for buff application

count

Wallet - Wallet

TypeConditionRequiredDefaultValue LimitsDescription
countint
1 ~ 2147483646Quantity of premium currency to be consumed
Example Master Data
"targetAction": {
    "targetActionName": "Gs2Money:Withdraw",
    "targetFieldName": "count",
    "conditionGrns": [
    ],
    "rate": 1.0
}

Buff Application Condition Model

Gs2Money:Wallet

Wallet

Example Master Data
"conditionGrns": [
    {
        "targetModelName": "Gs2Money:Wallet",
        "targetGrn": "grn:gs2:{region}:{ownerId}:money:{namespaceName}:user:{userId}:wallet:{slot}"
    }
]

Gs2Money:WithdrawByUserId

Consume balance from wallet by specifying a user ID

Target fields for buff application

count

Wallet - Wallet

TypeConditionRequiredDefaultValue LimitsDescription
countint
1 ~ 2147483646Quantity of premium currency to be consumed
Example Master Data
"targetAction": {
    "targetActionName": "Gs2Money:WithdrawByUserId",
    "targetFieldName": "count",
    "conditionGrns": [
    ],
    "rate": 1.0
}

Buff Application Condition Model

Gs2Money:Wallet

Wallet

Example Master Data
"conditionGrns": [
    {
        "targetModelName": "Gs2Money:Wallet",
        "targetGrn": "grn:gs2:{region}:{ownerId}:money:{namespaceName}:user:{userId}:wallet:{slot}"
    }
]