An effect is a timed (or permanent) status that pushes attribute modifiers and tags onto a
character while it’s active, and cleanly removes them when it expires or is removed.
Register a definition
Fields
Effect modifiers use attribute_id (not attribute). The equip block on items uses
attribute, a small naming difference between the two systems.
Apply it
The source_id lets you remove everything from one source later with
fe:RemoveEffectsBySource(characterId, "campfire"). While the effect is active, the character’s
attr:wisdom reads +3 (computed at read time by forge-attributes); when it expires, the modifier
is removed automatically.
Grant it from an item
A consumable can apply an effect on use, set its use.outcome to the effect kind:
The shipped effect:well_fed (granted by eating bread) is exactly this pattern. To ship your own
neutral default effect, add it to forge-effects’ shared/data/effects.lua.