Constrain Player Stat
Hold a player statistic between bounds while they are somewhere
Campos
| Campo | Tipo | Predeterminado | Descripción |
|---|---|---|---|
statId | String | — | The statistic's id, as declared in the RPGCore stat definitions. |
source | String | — | A name for this constraint, used to lift it again. Two constraints sharing it replace each other. |
min | Double? | — | Lowest value the statistic may hold here. Leave empty for no floor. |
max | Double? | — | Highest value the statistic may hold here. Leave empty for no ceiling. |
Campos comunes de TypeWriter (criteria, modifiers, triggers)
| Campo | Tipo | Predeterminado | Descripción |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
Give the constraint a source name and at least one of min or max. Use the same source and statId in Release Stat Constraint to lift it, typically on a region exit event. Applying the same source again replaces it. Constraints are not saved: they are dropped when the player leaves the server.