Buff Reference of GS2-Stamina
GS2-Buff for setting the fields whose parameters can be corrected and the range of their applicability
Note
See BuffEntryModel for more information on the buff entry model.Model
Types of models that can apply buffs
Gs2Stamina:Stamina
Stamina
Fields affected by the buff
maxValue
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| maxValue | int | ✓ | 1 ~ 2147483646 | Maximum Stamina |
Example of Master Data Description
"targetModel": {
"targetModelName": "Gs2Stamina:Stamina",
"targetFieldName": "maxValue",
"conditionGrns": [
],
"rate": 1.0
}Model for buff application conditions
Gs2Stamina:StaminaModel
Stamina Model
Example of Master Data Description
"conditionGrns": [
{
"targetModelName": "Gs2Stamina:StaminaModel",
"targetGrn": "grn:gs2:any:any:stamina:{namespaceName}:model:{staminaName}"
}
]recoverIntervalMinutes
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| recoverIntervalMinutes | int | 1 ~ 2147483646 | Stamina recovery interval (minutes) |
Example of Master Data Description
"targetModel": {
"targetModelName": "Gs2Stamina:Stamina",
"targetFieldName": "recoverIntervalMinutes",
"conditionGrns": [
],
"rate": 1.0
}Model for buff application conditions
Gs2Stamina:StaminaModel
Stamina Model
Example of Master Data Description
"conditionGrns": [
{
"targetModelName": "Gs2Stamina:StaminaModel",
"targetGrn": "grn:gs2:any:any:stamina:{namespaceName}:model:{staminaName}"
}
]recoverValue
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| recoverValue | int | 1 ~ 2147483646 | Stamina recovery value |
Example of Master Data Description
"targetModel": {
"targetModelName": "Gs2Stamina:Stamina",
"targetFieldName": "recoverValue",
"conditionGrns": [
],
"rate": 1.0
}Model for buff application conditions
Gs2Stamina:StaminaModel
Stamina Model
Example of Master Data Description
"conditionGrns": [
{
"targetModelName": "Gs2Stamina:StaminaModel",
"targetGrn": "grn:gs2:any:any:stamina:{namespaceName}:model:{staminaName}"
}
]Action
Types of actions that can apply buffs
Gs2Stamina:ConsumeStamina
Consumes stamina
Fields affected by the buff
consumeValue
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| consumeValue | int | ✓ | 1 ~ 2147483646 | Amount of stamina consumed |
Master Data Description Example
"targetAction": {
"targetActionName": "Gs2Stamina:ConsumeStamina",
"targetFieldName": "consumeValue",
"conditionGrns": [
],
"rate": 1.0
}Buff Application Condition Model
Gs2Stamina:StaminaModel
Stamina Model
Example of Master Data Description
"conditionGrns": [
{
"targetModelName": "Gs2Stamina:StaminaModel",
"targetGrn": "grn:gs2:{region}:{ownerId}:stamina:{namespaceName}:model:{staminaName}"
}
]Gs2Stamina:ConsumeStaminaByUserId
Consume stamina by specifying user ID
Fields affected by the buff
consumeValue
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| consumeValue | int | ✓ | 1 ~ 2147483646 | Amount of stamina consumed |
Master Data Description Example
"targetAction": {
"targetActionName": "Gs2Stamina:ConsumeStaminaByUserId",
"targetFieldName": "consumeValue",
"conditionGrns": [
],
"rate": 1.0
}Buff Application Condition Model
Gs2Stamina:StaminaModel
Stamina Model
Example of Master Data Description
"conditionGrns": [
{
"targetModelName": "Gs2Stamina:StaminaModel",
"targetGrn": "grn:gs2:{region}:{ownerId}:stamina:{namespaceName}:model:{staminaName}"
}
]Gs2Stamina:RecoverStaminaByUserId
Recover stamina by specifying user ID
Fields affected by the buff
recoverValue
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| recoverValue | int | ✓ | 1 ~ 2147483646 | Amount of stamina recovery |
Master Data Description Example
"targetAction": {
"targetActionName": "Gs2Stamina:RecoverStaminaByUserId",
"targetFieldName": "recoverValue",
"conditionGrns": [
],
"rate": 1.0
}Buff Application Condition Model
Gs2Stamina:StaminaModel
Stamina Model
Example of Master Data Description
"conditionGrns": [
{
"targetModelName": "Gs2Stamina:StaminaModel",
"targetGrn": "grn:gs2:{region}:{ownerId}:stamina:{namespaceName}:model:{staminaName}"
}
]