Attributes - Atherys/AtherysRPG GitHub Wiki

At their simplest, attributes are numbers that can be stored on living entities (players, monsters, animals, etc) and on items. The types of attributes are configurable, allowing you to create as many as you need. The primary way players view and interact with their attributes is through the /attributes command menu.

Players can click the [+] on the left to increase their attributes with experience, if the given attribute is configured to be upgradeable. The player experience pool is shared between skills and attributes, and there are multiple general configuration options related to gaining attributes.

# The maximum amount of any one attribute a player can have as base
attribute-max=99.0

# The minimum amount of any one attribute a player can have as base
attribute-min=0.0

# How much experience players are allowed to spend on attributes
attribute-spending-limit=100000.0

# How much it costs to add a single point of an attribute
attribute-upgrade-cost=100.0

Since experience is shared, there is also a experience-spending-limit for the combined expenditure on both skills and attributes.

Configuring Attributes

Attributes are entirely configurable in attributes.conf.

Expressions

Expressions are the major way to really change how AtherysRPG functions. Let us analyze an expression to understand how they work.

resource-limit-calculation="(SOURCE_ENERGY+(SOURCE_INT*4))*(SOURCE_ENERGYMULTI/100)"

This is an example expression for the maximum energy for a player. Whatever the result of this calculation, that is a player's maximum energy. Player attributes are accessed with SOURCE_SHORTNAME. An attribute's short name can be configured, and is provided merely as a convenience while writing expressions. Sometimes, an expression might include TARGET, which is treated the same way as SOURCE.

A list of operations supported by expressions can be found here.