Item Filtering: Difference between revisions

added basic CHARSTAT info - codes that do something fundamentally character-focused and different than regular STAT codes such as CHARSTAT14/CHARSTAT15 should probably have their own subcategory
(added basic CHARSTAT info - codes that do something fundamentally character-focused and different than regular STAT codes such as CHARSTAT14/CHARSTAT15 should probably have their own subcategory)
Line 382:
=== Boolean Conditions ===
==== Mutable Codes ====
Contrary to most "immutable" codes which refer to static item properties, these conditions depend on where and how the item is being viewed. Some value conditions are also "mutable" in this way: [[Item_Filtering#Info_Codes|CLVL, CRAFTALVL, DIFF, FILTLVL, MAPID]], and MAPID[[Item_Filtering#Numbered_Attribute_Codes|CHARSTAT codes]].
{| class="wikitable"
! Code !! Description
Line 672:
 
==== Numbered Attribute Codes ====
The relevant number for each code is shown as N. In many cases, ifIf N is absent, it is often either 0 or 1. For codes that refer to attributes which are based on character level, N is often a multiple of Y (as in "+Y per Character Level") such as 8Y for STAT214 or 2Y for STAT224.
 
Some numbered attribute codes (shown in <span style="color:gray;">gray</span>) refer to the same attributes as [[Item_Filtering#Named_Attribute_Codes|named attribute codes]] or other named codes, which can be used instead for better readability.
 
To refer to stats that have multiple parts such as chance-to-cast effects or skill charges, the '''MULTI''' condition must be used instead of '''STAT''': see [[Item_Filtering#Multi-layered_Stats|Multi-Layered Stats]]
 
All these numbered attribute '''STAT''' codes refer to individual items in the same way that most codes do - they are "immutable" and don't change depending on the character viewing the item. There are also corresponding '''CHARSTAT''' codes for each attribute which are "mutable" and can change based on other factors - rather than checking whether an ''item'' has the attribute, these codes check whether the ''character'' has the attribute. In most cases, that means checking whether the character is wearing an item with the attribute. But there are also some "non-item" codes such as '''CHARSTAT14''' and '''CHARSTAT15''' which refer to how much gold the character is carrying and how much gold they have in their stash, respectively.
 
<div><ul style="margin-left:0px;">