Add buff {0} to stat {1} with value {2} and tags {3}
Adds a permanent buff to the object. If a buff with the same ID already exists it will be replaced. Use tags to group buffs together for easy removal later.
Add buff from JSON: {0}
Registers a buff from a JSON string. Useful for loading buffs from files or variables. The JSON must follow the buff definition format from the documentation.
Add buff {0} to stat {1} value {2} mode {3} tags {4} source {5}
Adds a permanent buff with full control over all options in a single action. The source lets you label who created this buff so you can remove it all at once later (e.g. when an item is unequipped).
Add buff {0} to stat {1} value {2} mode {3} tags {4}
Adds a permanent buff and lets you choose how it stacks with other buffs on the same stat. Add = flat bonus, Multiply = percentage bonus, Override = force to a specific value.
Add debuff {0} to stat {1} with value {2} and tags {3}
Adds a permanent debuff to the object. Automatically includes the 'debuff' tag so you can cleanse all debuffs at once. Any extra tags you supply are added alongside it.
Add debuff {0} to stat {1} value {2} mode {3} tags {4} source {5}
Adds a permanent debuff with full control over stacking mode, tags, and source. Automatically includes the 'debuff' tag. The source lets you remove all debuffs from the same origin at once.
Add debuff {0} to stat {1} value {2} mode {3} tags {4}
Adds a permanent debuff with a chosen stacking mode. Automatically includes the 'debuff' tag. Use 'multiply' for percentage penalties (e.g. -30 = -30% speed) and 'override' to hard-cap a stat.
Add timed buff {0} to stat {1} value {2} for {3} seconds tags {4}
Adds a buff that automatically expires after the given number of seconds. Fires 'On buff expired' and 'On buff removed' when time runs out.
Add timed buff {0} to stat {1} value {2} mode {3} for {4}s tags {5} source {6}
Adds a timed buff with full control: stacking mode, duration, tags, and source all in one action.
Add timed debuff {0} to stat {1} value {2} for {3} seconds tags {4}
Adds a debuff that automatically expires after the given number of seconds. Automatically includes the 'debuff' tag. Fires 'On buff expired' and 'On buff removed' when time runs out.
Add timed debuff {0} to stat {1} value {2} mode {3} for {4}s tags {5} source {6}
Adds a timed debuff with full control: stacking mode, duration, extra tags, and source all in one action. Automatically includes the 'debuff' tag.
Clear all buffs
Removes every buff from this object at once. Fires 'On buff removed' for each buff, then 'On stack cleared' once at the end.
Load buff stack from JSON: {0}
Loads a JSON array of buff objects and adds them all to the stack in one action. Use this in 'On start of layout' to pre-load a character's starting buffs from a variable, JSON plugin, or inline string.
Remove buff {0}
Removes the buff with this ID. If no buff with this ID exists nothing happens.
Remove all buffs with tag {0}
Removes every buff that has the given tag. Fires 'On buff removed' for each one.
Remove buffs matching tags {0} ({1})
Removes buffs that match a list of tags. 'Any' removes buffs that have at least one of the tags. 'All' removes only buffs that have every tag in the list.
Remove all buffs on stat {0}
Removes every buff that targets the given stat, regardless of their tags or source.