Skip to main content

SetStat

This effect allows you to set the value of a particular stat. If manually adding to the stat value, consider using addToStat instead (you will find an extensive example in its documentation). setStat will utilize value overrides as opposed to modifier overrides (which addToStat would use instead).

JSON Format

{
"type": "setStat",
"stat": ...,
"meta_stat": ...,
"new_value": ...,
"aggregation_type": ...,
"calculated_aggregation_type": ...
}

Fields

FieldTypeRequiredDescription
calculated_aggregation_typeStatFormulaComponentTo be used when the aggregation type should be calculated in runtime. Otherwise, use aggregation_type. If aggregation_type is also defined, this property will be ignored. This stat formula must return a string value matching one of the AggregationType values.
@type string