Saltar al contenido principal

Constrain Player Stat

Hold a player statistic between bounds while they are somewhere

Campos

CampoTipoPredeterminadoDescripción
statIdString—The statistic's id, as declared in the RPGCore stat definitions.
sourceString—A name for this constraint, used to lift it again. Two constraints sharing it replace each other.
minDouble?—Lowest value the statistic may hold here. Leave empty for no floor.
maxDouble?—Highest value the statistic may hold here. Leave empty for no ceiling.
Campos comunes de TypeWriter (criteria, modifiers, triggers)
CampoTipoPredeterminadoDescripción
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<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.