vengi/docs/Attributes.md

16 lines
771 B
Markdown
Raw Permalink Normal View History

# Attributes
2020-07-22 10:49:39 -07:00
The attrib module manages containers with attributes that can be attached to any item or entity in the world.
Attributes are things like speed, strength, intelligence (see the network definition for a full list).
The attributes are then calculated by the different containers an entity has assigned (via equipment, or directly
to the character). The absolute values are summed up, and then the percentage modifiers are added on top.
If you e.g. get a buff or debuff this is just applying a container to your entity. The values are communicated
2020-07-22 10:49:39 -07:00
to the client and some are also broadcasted to other clients that are seeing you.
## LUA
2020-07-22 10:49:39 -07:00
The containers are defined in lua scripts. See the attribute files that are coming with the tests, or with the server.