提示:表格向左滑动,可以看到更多内容。或横屏观看可能效果更佳(在浏览器打开,设置手机屏幕自动旋转)

显示提示 隐藏提示

Overview

This file defines how item modifiers work. It takes a stat defined from ItemStatCost.txt and uses a function to handle the stat’s “min”, “max” and “parameter” values.

Used by the following data files: UniqueItems.txt, SetItems.txt, QualityItems.txt, Sets.txt, Runes.txt

Any column field name starting with “*” is considered a comment field and is not used by the game

Data Fields

code – Defines the property ID. Used as a reference in other data files (this should not be changed)

func1 (to func7) – Code function used to define the Property. Uses numeric ID values to define what function to use.

Function IDFunction NameParametersDescription
0  null
1ItemModsSetValueRegularstatset·         Modify the stat to be randomly calculated between its “min” and “max” values·         Sets the stat value to its “max” value if the item is High Quality (Superior)
2ItemModsSetValueBaseToMaxstatsetModify the stat to always be set to its “max” value
3ItemModsSetValueRegular2statsetSame as function 1, but consecutive calls of this function will use the same stat value as the previous call
4ItemModsSetValueBaseToMax2statsetSame as function 2, but consecutive calls of this function will use the same stat value as the previous call
5ItemModsSetMinDamagesetSets the minimum damage value for an item
6ItemModsSetMaxDamagesetSets the maximum damage value for an item (dependent on its minimum value)
7ItemModsSetDamagePctsetSets the damage percent of the item based on its percentage damage “min” and “max” values
8ItemModsSetSpeedstatsetModify the stat to be randomly calculated between its “min” and “max” values
9ItemModsSetSingleSkillstatset·         Used for modifying a single skill level·         Requires the stat’s “min” and “max” values for the skill’s level modification·         Requires the stat’s “parameter” value for the skill ID
10ItemModsSetTabSkillsstatset·         Used for modifying the levels of skills from a skill tab·         The skill tab level modification is defined through the stat’s value·         The skill tab ID is defined through the stat’s “parameter” value. The stat’s “parameter” value is defined as the class ID and the number of tabs that the class has:o   0-2 = Amazon (Bow and Crossbow Skills / Javelin and Spear Skills / Passive and Magic Skills)o   3-5 = Sorceress (Fire Spells / Lightning Spells / Cold Spells)o   6-8 = Necromancer (Summoning Spells / Poison and Bone Spels / Curses)o   9-11 = Paladin (Combat Skills / Defensive Auras / Offensive Auras)o   12-14 = Barbarian (Warcries / Combat Masteries / Combat Skills)o   15-17 = Druid (Shape Shifting / Elemental / Summoning)o   18-20 = Assassin (Traps / Martial Arts / Shadow Disciplines)
11ItemModsSetSkillOnAttackstatset·         Used for item event modifiers to cast a skill·         Requires the stat’s param value as the skill ID·         Requires the stat’s “min” value as the percent chance to cast the skill (if 0, then default to 5)·         Requires the stat’s “max” value as the skill’s level
12ItemModsSetRandomParamstatset·         Uses the stat’s “min” and “max” value as a random selection of the stat’s “parameter” value
13ItemModsSetMaxDurabilitystatset·         Modify the stat to be randomly calculated between its “min” and “max” values·         Sets the stat value to its “max” value if the item is High Quality (Superior)·         Always sets the current durability to its maximum durability after the calculation of the stat value
14ItemModsSetSockets ·         Determines the number of sockets on an item·         If the stat has “min” and “max” values, then calculate a random number of sockets between these values. Otherwise, use the stat’s “parameter” value as the number of sockets·         The max number of sockets depends on the stat’s “max” size, the item’s inventory grid size, or the hard cap of 6 sockets maximum
15ItemModsSetMinstatset·         Always use the stat’s “min” value·         If the stat is physical minimum damage, then set the item’s minimum damage to the stat’s value. Otherwise, simply set the stat’s value to its “min” value.
16ItemModsSetMaxstatset·         Always use the stat’s “max” value·         If the stat is physical maximum damage, then set the item’s maximum damage to the stat’s value. Otherwise, simply set the stat’s value to its “max” value.
17ItemModsSetParamstatset·         Use the stat’s “parameter” value. Otherwise, calculate a random value between the stat’s “min” and “max” value. Otherwise, use 0.·         If the stat is physical maximum damage, then set the item’s maximum damage to the stat’s value
18ItemModsSetByTimestat·         Modifies the stat based on the current game’s time of day, and the stat’s preferred time period. The closer the current game’s time of day is to the stat’s preferred time period, then the stronger the stat’s value will be, based on its “min” and “max” values·         Requires the stat’s “parameter” value as the time period. The allowed time periods are:o   0 = Dayo   1 = Dusko   2 = Nighto   3 = Dawn
19ItemModsSetChargedSkillstat·         Used for creating a stat for a charged skill.·         Requires the stat’s “parameter” value as the skill ID·         Requires the stat’s “min” value to calculate the value MaxCharges (maximum number of charges)o   If that value equals 0, then default to 5 max chargeso   If that value is less than 0, then equal to the following calculation:
MaxCharges = |MaxCharges| + |MaxCharges| * [CURRENT ITEM LEVEL] / 8o   MaxCharges cannot exceed 255·         Requires the stat’s “max” value as the skill’s level·         The spawned number of charges is calculated as the following:o   Random(0 and (MaxCharges – MaxCharges / 8)) + MaxCharges / 8 + 1
20ItemModsSetIndestructible Adds the Indestructible stat to an item
21ItemModsSetValueRegPropValParamstatsetvalModify the stat to be randomly calculated between its “min” and “max” values and use the Property “val” value to offset the stat ID
22ItemModsSetValueRegParamstatsetModify the stat to be randomly calculated between its “min” and “max” values and use the stat’s “parameter” value to offset the stat ID
23ItemModsSetEthereal Used to add the Ethereal stat to an item, only if the item has Durability
24ItemModsSetParamAndValuestatset·         Modify the stat’s value to be randomly calculated between its “min” and “max” values and use the stat’s “parameter” value to offset the stat ID·         Consecutive calls of this function will use the same stat value as the previous call
25 to 35null null
36ItemModsSetValueRegPropValParamSwappedstatsetval·         Switches the usage of the Property “val” value with the stat’s value·         The Property “val” value is used as the stat value·         The stat’s value (based on its “min” and “max” values) is used at the Property “val” value

stat1 (to stat7) – Stat applied by the property. Used by the “func” field as a possible parameter (uses “Stat” value from ItemStatCost.txt). A stat is comprised of a “min” and “max” value which it uses to calculate the actual numeric value. Stats also can have a “parameter” value, depending on its function.

set1 (to set7) – Boolean field. Used by the “func” field as a possible parameter. If equals 1, then set the stat value regardless of its current value. If equals 0, then add to the stat value.

val1 (to val7) – Integer field. sed by the “func” field as a possible input parameter for additional function calculations