Buff Reference of GS2-Inventory

GS2-Buff for defining the fields whose parameters can be adjusted and the scope in which the buffs are applied

Model

Types of models that can apply buffs

Gs2Inventory:Inventory

Inventory

Fields affected by the buff

currentInventoryMaxCapacity
TypeConditionRequiredDefaultValue LimitsDescription
currentInventoryMaxCapacityint
1 ~ 2147483646Maximum capacity
Example of Master Data Description

rate specifies the multiplier applied to the target field.

"targetModel": {
    "targetModelName": "Gs2Inventory:Inventory",
    "targetFieldName": "currentInventoryMaxCapacity",
    "conditionGrns": [
    ],
    "rate": 1.0
}

Buff Application Condition Model

Gs2Inventory:InventoryModel

Inventory Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:InventoryModel",
        "targetGrn": "grn:gs2:any:any:inventory:{namespaceName}:model:{inventoryName}"
    }
]

Action

Types of actions that can apply buffs

Gs2Inventory:AcquireItemSetByUserId

Acquire Item Sets by specifying the user ID

An Item Set holds the item model name, quantity held, expiration date, and other details.

Fields affected by the buff

acquireCount

ItemSet - Item Set

TypeConditionRequiredDefaultValue LimitsDescription
acquireCountlong
1 ~ 9223372036854775805Acquisition quantity
Master Data Description Example
"targetAction": {
    "targetActionName": "Gs2Inventory:AcquireItemSetByUserId",
    "targetFieldName": "acquireCount",
    "conditionGrns": [
    ],
    "rate": 1.0
}

Buff Application Condition Model

Gs2Inventory:InventoryModel

Inventory Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:InventoryModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:model:{inventoryName}"
    }
]
Gs2Inventory:ItemModel

Item Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:ItemModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:model:{inventoryName}:item:{itemName}"
    }
]

Gs2Inventory:ConsumeItemSet

Consume Item Sets

Fields affected by the buff

consumeCount

ItemSet - Item Set

TypeConditionRequiredDefaultValue LimitsDescription
consumeCountlong
1 ~ 9223372036854775805Consumption quantity
Master Data Description Example
"targetAction": {
    "targetActionName": "Gs2Inventory:ConsumeItemSet",
    "targetFieldName": "consumeCount",
    "conditionGrns": [
    ],
    "rate": 1.0
}

Buff Application Condition Model

Gs2Inventory:InventoryModel

Inventory Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:InventoryModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:model:{inventoryName}"
    }
]
Gs2Inventory:ItemModel

Item Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:ItemModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:model:{inventoryName}:item:{itemName}"
    }
]

Gs2Inventory:ConsumeItemSetByUserId

Consume Item Sets by specifying the user ID

An Item Set holds the item model name, quantity held, expiration date, and other details.

Fields affected by the buff

consumeCount

ItemSet - Item Set

TypeConditionRequiredDefaultValue LimitsDescription
consumeCountlong
1 ~ 9223372036854775805Consumption quantity
Master Data Description Example
"targetAction": {
    "targetActionName": "Gs2Inventory:ConsumeItemSetByUserId",
    "targetFieldName": "consumeCount",
    "conditionGrns": [
    ],
    "rate": 1.0
}

Buff Application Condition Model

Gs2Inventory:InventoryModel

Inventory Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:InventoryModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:model:{inventoryName}"
    }
]
Gs2Inventory:ItemModel

Item Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:ItemModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:model:{inventoryName}:item:{itemName}"
    }
]

Gs2Inventory:AcquireSimpleItemsByUserId

Acquire Simple Items by specifying a user ID

Fields affected by the buff

acquireCounts

SimpleItem - Simple Item

TypeConditionRequiredDefaultValue LimitsDescription
acquireCountsList<AcquireCount>
1 ~ 100 itemsList of acquisition quantities for Simple Items
Master Data Description Example
"targetAction": {
    "targetActionName": "Gs2Inventory:AcquireSimpleItemsByUserId",
    "targetFieldName": "acquireCounts",
    "conditionGrns": [
    ],
    "rate": 1.0
}

Buff Application Condition Model

Gs2Inventory:SimpleInventoryModel

Simple Inventory Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:SimpleInventoryModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:simple:model:{inventoryName}"
    }
]
Gs2Inventory:SimpleItemModel

Simple Item Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:SimpleItemModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:simple:model:{inventoryName}:item:{itemName}"
    }
]

Gs2Inventory:ConsumeSimpleItems

Consume Simple Items

Fields affected by the buff

consumeCounts

SimpleItem - Simple Item

TypeConditionRequiredDefaultValue LimitsDescription
consumeCountsList<ConsumeCount>
1 ~ 100 itemsList of consumption quantities of Simple Items
Master Data Description Example
"targetAction": {
    "targetActionName": "Gs2Inventory:ConsumeSimpleItems",
    "targetFieldName": "consumeCounts",
    "conditionGrns": [
    ],
    "rate": 1.0
}

Buff Application Condition Model

Gs2Inventory:SimpleInventoryModel

Simple Inventory Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:SimpleInventoryModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:simple:model:{inventoryName}"
    }
]
Gs2Inventory:SimpleItemModel

Simple Item Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:SimpleItemModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:simple:model:{inventoryName}:item:{itemName}"
    }
]

Gs2Inventory:ConsumeSimpleItemsByUserId

Consume Simple Items by specifying a user ID

Fields affected by the buff

consumeCounts

SimpleItem - Simple Item

TypeConditionRequiredDefaultValue LimitsDescription
consumeCountsList<ConsumeCount>
1 ~ 100 itemsList of consumption quantities of Simple Items
Master Data Description Example
"targetAction": {
    "targetActionName": "Gs2Inventory:ConsumeSimpleItemsByUserId",
    "targetFieldName": "consumeCounts",
    "conditionGrns": [
    ],
    "rate": 1.0
}

Buff Application Condition Model

Gs2Inventory:SimpleInventoryModel

Simple Inventory Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:SimpleInventoryModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:simple:model:{inventoryName}"
    }
]
Gs2Inventory:SimpleItemModel

Simple Item Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:SimpleItemModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:simple:model:{inventoryName}:item:{itemName}"
    }
]

Gs2Inventory:AcquireBigItemByUserId

Acquire Big Item by specifying a user ID

Fields affected by the buff

acquireCount

BigItem - Big Item

TypeConditionRequiredDefaultValue LimitsDescription
acquireCountstring
~ 1024 charsAcquisition quantity for a Big Item
Integer value strings up to 1024 digits
Master Data Description Example
"targetAction": {
    "targetActionName": "Gs2Inventory:AcquireBigItemByUserId",
    "targetFieldName": "acquireCount",
    "conditionGrns": [
    ],
    "rate": 1.0
}

Buff Application Condition Model

Gs2Inventory:BigInventoryModel

Big Inventory Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:BigInventoryModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:big:model:{inventoryName}"
    }
]
Gs2Inventory:BigItemModel

Big Item Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:BigItemModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:big:model:{inventoryName}:item:{itemName}"
    }
]

Gs2Inventory:ConsumeBigItem

Consume Big Items

Fields affected by the buff

consumeCount

BigItem - Big Item

TypeConditionRequiredDefaultValue LimitsDescription
consumeCountstring
~ 1024 charsConsumption quantity of a Big Item
Integer value strings up to 1024 digits
Master Data Description Example
"targetAction": {
    "targetActionName": "Gs2Inventory:ConsumeBigItem",
    "targetFieldName": "consumeCount",
    "conditionGrns": [
    ],
    "rate": 1.0
}

Buff Application Condition Model

Gs2Inventory:BigInventoryModel

Big Inventory Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:BigInventoryModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:big:model:{inventoryName}"
    }
]
Gs2Inventory:BigItemModel

Big Item Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:BigItemModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:big:model:{inventoryName}:item:{itemName}"
    }
]

Gs2Inventory:ConsumeBigItemByUserId

Consume Big Items by specifying a user ID

Fields affected by the buff

consumeCount

BigItem - Big Item

TypeConditionRequiredDefaultValue LimitsDescription
consumeCountstring
~ 1024 charsConsumption quantity of a Big Item
Integer value strings up to 1024 digits
Master Data Description Example
"targetAction": {
    "targetActionName": "Gs2Inventory:ConsumeBigItemByUserId",
    "targetFieldName": "consumeCount",
    "conditionGrns": [
    ],
    "rate": 1.0
}

Buff Application Condition Model

Gs2Inventory:BigInventoryModel

Big Inventory Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:BigInventoryModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:big:model:{inventoryName}"
    }
]
Gs2Inventory:BigItemModel

Big Item Model

Example of Master Data Description
"conditionGrns": [
    {
        "targetModelName": "Gs2Inventory:BigItemModel",
        "targetGrn": "grn:gs2:{region}:{ownerId}:inventory:{namespaceName}:big:model:{inventoryName}:item:{itemName}"
    }
]