Skip to content

Items

Items functions.

GET_ARMOR_BASE_AC patch

Returns current armor's base AC. If base AC is not found, defaults to 100.

ReturnDescriptionType
base_acbase ACint

INFER_ARMOR_ENCHANTMENT patch

Returns current armor enchantment level (Leather Armor +1 will return 1). Ankeg armor and Red Dragon scales are considered +2. Defaults to -1 if enchantment couldn't be determined.

ReturnDescriptionType
enchantmentArmor enchantmentint

INFER_ARMOR_TYPE patch

Returns current armor type.

INT_VARDescriptionTypeDefault
warnWarn if the item is not an armorboolTrue
ReturnDescriptionType
typeleather, studded_leather, chain, splint, plate, full_plate or unknown.string