# Attributes DOCUMENTATION

Attributes functions for POL097 distro, by Austin Heilman.

## Config Files

files in attributes/config directory
attributes.cfg
The following is a list of keys in the distro attributes.cfg
AttributeType | "Stat" or "Skill". Used to retrieve lists of either skill or stats.
SkillId | Only used by the AP_ functions to convert between attribute and skillid
Title | Used in titles. See titles.inc
StatCheck | Used to apply bonus stat advances when using a skill. The statcheck lists the attribute, the % chance of applying a stat bonus and the amount of the bonus as a die roll.
Script | Used by keyboard macros and the skills buttons to figure out which script to run for each skill.
settings.cfg
These are documented in config settings. Settings are pre-set values store in cfg files for any package. Their purpose is to allow package parameters to change without re-compiling.
titles.cfg
This is a list of skill level titles. By default they are:
Untrained | 10.0
Neophyte | 40.0
Novice | 50.0
Apprentice | 60.0
Journeyman | 70.0
Expert | 80.0
Adept | 00.0
Master | 100.0
GrandMaster | 130.0
uoclient.cfg
The distro uses a standard pol uoclient.cfg file with the following definitions in the "General" section
Strength Intelligence Dexterity Hits Mana Stamina MaxSkillID | Strength Intelligence Dexterity Hits Mana Stamina 51
uoskills.cfg
The distro uses a standard pol uoskills.cfg file with each skill mapped to the attribute entry found in attributes.cfg. Note there is no skills.cfg required or used by the distro. Eg: Skill 0 { Attribute Alchemy }
vitals.cfg
The distro uses the vitals.cfg file in the normal way - ie it points to the functions that regenerate and get maximum values for the vitals. The file is:
Vital Hits { Alias Life RegenRateFunction :attributes:hooks/vitalInit:GetHitsRegenRate MaximumFunction :attributes:hooks/vitalInit:GetHitsMaximumValue } Vital Mana { RegenRateFunction :attributes:hooks/vitalInit:GetManaRegenRate MaximumFunction :attributes:hooks/vitalInit:GetManaMaximumValue } Vital Stamina { RegenRateFunction :attributes:hooks/vitalInit:GetStaminaRegenRate MaximumFunction :attributes:hooks/vitalInit:GetStaminaMaximumValue } Vital Hunger { // Note: This vital is not linked to any attributes. RegenRateFunction :attributes:hooks/vitalInit:GetHungerRegenRate MaximumFunction :attributes:hooks/vitalInit:GetHungerMaximumValue RegenWhileDead 1 }