Master Data Reference of GS2-Buff
Master Data Format
{
"version": "2024-04-15",
"buffEntryModels": [
{
"name": "[string]Buff entry model name",
"metadata": "[string?]Metadata",
"expression": "[string enum]Application type of buff",
"targetType": "[string enum]Type of target to apply buff",
"targetModel": {
"targetModelName": "[string]Types of model to apply buffs",
"targetFieldName": "[string]Field name to which the buff is applied",
"conditionGrns": [
{
"targetModelName": "[string]Buff application condition model name",
"targetGrn": "[string]Buff application condition GRN"
}
],
"rate": "[float]Rate"
},
"targetAction": {
"targetActionName": "[string]Types of action to apply buffs",
"targetFieldName": "[string]Field name to which the buff is applied",
"conditionGrns": [
{
"targetModelName": "[string]Buff application condition model name",
"targetGrn": "[string]Buff application condition GRN"
}
],
"rate": "[float]Rate"
},
"priority": "[int]Priority of buff application",
"applyPeriodScheduleEventId": "[string?]Event holding period GRN to apply buff"
}
]
}| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| version | string | ✓ | 2024-04-15 | Format version of master data | ||
| buffEntryModels | List<BuffEntryModel> | ~ 100 items | Buff Entry Model The amount of buff is managed by BuffEntryModel, and it is possible to associate multiple BuffEntryModels with a specific entry. The application order of BuffEntryModel is managed by the priority of BuffEntryModel, and the smaller the value of priority, the higher the priority.Three buff application methods exist: “Rate Add”, ‘Mul’, and “Value Add”. Rate Add is an instruction that adds to the buff application rate. Mul is an instruction that multiplies the buff application rate. Value Add is an instruction that adds to the value after buff correction calculations. For example, if the default rate is 1.0 and Add 0.2 is set, the buff application rate becomes 1.2. Setting Mul 0.5 reduces the buff application rate to 0.5 times. BuffEntryModel can be associated with events of GS2-Schedule, and it is possible to set to apply buffs only during the event holding period. |
Model
BuffEntryModel
Buff Entry Model
The amount of buff is managed by BuffEntryModel, and it is possible to associate multiple BuffEntryModels with a specific entry.
The application order of BuffEntryModel is managed by the priority of BuffEntryModel, and the smaller the value of priority, the higher the priority.
Three buff application methods exist: “Rate Add”, ‘Mul’, and “Value Add”. Rate Add is an instruction that adds to the buff application rate. Mul is an instruction that multiplies the buff application rate. Value Add is an instruction that adds to the value after buff correction calculations. For example, if the default rate is 1.0 and Add 0.2 is set, the buff application rate becomes 1.2. Setting Mul 0.5 reduces the buff application rate to 0.5 times.
BuffEntryModel can be associated with events of GS2-Schedule, and it is possible to set to apply buffs only during the event holding period.
| Type | Condition | Required | Default | Value Limits | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| buffEntryModelId | string | ✓* | ~ 1024 chars | Buff entry model GRN * Automatically configured on the server | ||||||||||
| name | string | ✓ | ~ 128 chars | Buff entry model name Buff entry model-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.). | ||||||||||
| metadata | string | ~ 2048 chars | Metadata Arbitrary values can be set in the metadata. Since they do not affect GS2’s behavior, they can be used to store information used in the game. | |||||||||||
| expression | String Enum enum { “rate_add”, “mul”, “value_add” } | ✓ | Application type of buff
| |||||||||||
| targetType | String Enum enum { “model”, “action” } | ✓ | Type of target to apply buff
| |||||||||||
| targetModel | BuffTargetModel | {targetType} == “model” | ✓* | Model to apply buff * Required if targetType is “model” | ||||||||||
| targetAction | BuffTargetAction | {targetType} == “action” | ✓* | Action to apply buff * Required if targetType is “action” | ||||||||||
| priority | int | ✓ | 0 ~ 2147483646 | Priority of buff application | ||||||||||
| applyPeriodScheduleEventId | string | ~ 1024 chars | Event holding period GRN to apply buff |
BuffTargetModel
Buff Target Model
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| targetModelName | String Enum enum { "Gs2Exchange:RateModel", "Gs2Exchange:IncrementalRateModel", "Gs2Experience:Status", "Gs2Formation:Mold", "Gs2Idle:Status", "Gs2Idle:CategoryModel", "Gs2Inventory:Inventory", "Gs2LoginReward:BonusModel", "Gs2Mission:MissionTaskModel", "Gs2Quest:QuestModel", "Gs2Showcase:DisplayItem", "Gs2Showcase:RandomDisplayItemModel", "Gs2SkillTree:NodeModel", "Gs2Stamina:Stamina", } | ✓ | Types of model to apply buffs | |||
| targetFieldName | string | ✓ | ~ 64 chars | Field name to which the buff is applied | ||
| conditionGrns | List<BuffTargetGrn> | ✓ | 1 ~ 10 items | List of buff application condition GRNs | ||
| rate | float | ✓ | 0 ~ 1000000 | Rate |
BuffTargetAction
Buff Target Action
BuffTargetGrn
Buff Target GRN pattern
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| targetModelName | string | ✓ | ~ 64 chars | Buff application condition model name | ||
| targetGrn | string | ✓ | ~ 1024 chars | Buff application condition GRN |