User Tools

Site Tools


affix_editor

Affix Editor

By: Chthon

Note: Excerpt from a post by lolesch in the TM forums, where Chthon answers his question about the properties settings in the Affix Editor.

NameThe internal name
PrefixFor items. The prefix that's added to the item's displayname if it has this affix on it. (Example: “Healthy” is a prefix in “Healthy Leather Pants.”)
SuffixSame as prefix. I'm not sure, but I believe this is unused in TL2. The vanilla affixes all seem to use prefix even when they are grammatically suffixes. (You might try this out to see if it even works. And post your findings.)
RankI believe this is the priority for this affix's prefix/suffix to appear in the displayname versus the prefixes/suffixes coming from other items. (Example: If your leather pants have both +hp and +electric damage, the rank on the affixes determines whether the displayname ends up as “Healthy Leather Pants” or “Shocking Leather Pants”)
Play Hit ParticleI believe this controls whether the light burst and sound effect displays when the enchanter adds this to an item.
High QualityControls whether the affix counts as a “strong enchantment” that gets the special light burst and sound effect when an enchanter adds this to an item.
Spawn rangeOn what level units can this affix spawn.
DurationProvides overrides duration for the effects in this affix. Some over-time effects behave differently if duration is set in both places.
WeightUsed for spawn chance. The odds of a particular affix spawning are that affix's weight divided by the sum of all the weights of affixes that are eligible to spawn (i.e. meet the level range, unit type, and difficulty level requirements). If zero, this affix will never spawn randomly and must be manually assigned.
Slots occupyEach grade of item has a certain number of “slots” for affixes to go in(defined in globals.dat). Each affix takes up a certain number of slots. When an item is generated, unless it already has affixes assigned to it, it keeps rolling affixes until all its slots are full.
Unittypes * What unit types the affix is allowed to spawn on.
Not Unittypes * What unit types the affix is not allowed to spawn on. “Not unitypes” takes precedence over “unittypes.”
Difficulties allowed inWhich difficulty levels will this affix operate in. If this box isn't checked, the affix does nothing in that difficulty level. I've used this to make monster skills that are balanced differently for different difficulty levels.
Enchanters and socketables work funky – you need to include the unit types it can apply to in “unittypes,” and also exclude those same unittypes in “not unittypes,” and include the enchanter's unit type or “socketable” in “unittypes.” Somehow the game understands this as saying “never spawn this affix on these item types, but do let enchanters/socketables add it to these item types.” Your picture provides an example.

Enchanter Affixes

Steam user ADEC very kindly allowed us to reproduce his analysis of the affixes used by enchanters here on the wiki (from his notes on https://pastebin.com/0P1upkUf ). I will present it within this page talking about the affix editor for now - if it needs to be moved to its own section feel free to do so, or pass me the reasons why it should be moved and i'll take care of it ;)

Armor (does not include shield)

  • +X Vitality Attribute bonus of_attrib_defense.dat Weight: 32
  • +X Dexterity Attribute bonus of_attrib_dexterity.dat Weight: 32
  • +X Focus Attribute bonus of_attrib_magic.dat Weight: 32
  • +X Strength Attribute bonus of_attrib_strength.dat Weight: 32
  • +1% increase in the amount of gold found ofthemiser.dat Weight: 24 Level: 10+
  • +X Health oftheelephant.dat Weight: 96
  • +X Mana oftheowl.dat Weight: 48
  • X Physical damage reflected ofthethorn.dat Weight: 16 Level: 5+
  • +X Physical Armor oftheturtle.dat Weight: 64

Boots

  • 10% Knockback resistance ofthemule.dat Weight: 24 Level: 12+

Chest

  • X Health recovery per second of_tl2_health_regen.dat Weight: 32 Level: 8+
  • X Mana recovery per second of_tl2_mana_regen.dat Weight: 32 Level: 5+
  • +5% pet and minion damage of_tl2_petdamage.dat Weight: 32 Level: 5+
  • +5% pet and minion health of_tl2_pethealth.dat Weight: 32 Level: 5+
  • +3% Cast speed ofthemage.dat Weight: 40 Level: 9+
  • +X Health/sec for every monster within 3 meters of_tl2_drawhealth.dat Weight: 32 Level: 66+

Gloves

  • X Health recovery per second of_tl2_health_regen.dat Weight: 32 Level: 8+
  • X Mana recovery per second of_tl2_mana_regen.dat Weight: 32 Level: 5+
  • +5% pet and minion damage of_tl2_petdamage.dat Weight: 32 Level: 5+
  • +5% pet and minion health of_tl2_pethealth.dat Weight: 32 Level: 5+
  • +3% Cast speed ofthemage.dat Weight: 40 Level: 9+
  • +1% increase in the amount of experience gained ofthesage.dat Weight: 12 Level: 5+
  • +X Health/sec for every monster within 3 meters of_tl2_drawhealth.dat Weight: 32 Level: 66+

Helmet

  • X Mana recovery per second of_tl2_mana_regen.dat Weight: 32 Level: 5+
  • +3% Cast speed ofthemage.dat Weight: 40 Level: 9+
  • +1% increase in the amount of experience gained ofthesage.dat Weight: 12 Level: 5+
  • +1% increase in magic-finding Luck oftheseeker.dat Weight: 32 Level: 8+
  • +X Mana/sec for every monster within 3 meters of_tl2_drawmana.dat Weight: 32 Level: 66+

Pants

  • X Health recovery per second of_tl2_health_regen.dat Weight: 32 Level: 8+
  • +5% pet and minion damage of_tl2_petdamage.dat Weight: 32 Level: 5+
  • +5% pet and minion health of_tl2_pethealth.dat Weight: 32 Level: 5+

Shoulder

  • X Mana recovery per second of_tl2_mana_regen.dat Weight: 32 Level: 5+
  • 10% Knockback resistance ofthemule.dat Weight: 24 Level: 12+
  • -1.5% Physical damage taken for every monster within 3 meters of_tl2_drawarmor_physical.dat Weight: 32 Level: 66+

Trinkets

  • +1% to all damage of_percent_all.dat Weight: 40 Level: 11+
  • +2-3% to Electric damage of_percent_electric.dat Weight: 40 Level: 11+
  • +2-3% to Fire damage of_percent_flame.dat Weight: 40 Level: 11+
  • +2-3% to Ice damage of_percent_ice.dat Weight: 40 Level: 11+
  • +2-3% to Poison damage of_percent_poison.dat Weight: 40 Level: 11+
  • +1% increase in the amount of gold found ofthemiser.dat Weight: 24 Level: 10+
  • +1-2% increase in the amount of gold found trinket_goldfind.dat Weight: 3
  • +X Health hp_adder.dat Weight: 40
  • +X Mana mana_adder.dat Weight: 40
  • +X Mana oftheowl.dat Weight: 48
  • Electric damage taken is reduced by 2% trinket_electricpercent_defense.dat Weight: 9 Level: 25+
  • Fire damage taken is reduced by 2% trinket_firepercent_defense.dat Weight: 9 Level: 25+
  • Ice damage taken is reduced by 2% trinket_icepercent_defense.dat Weight: 9 Level: 25+
  • Poison damage taken is reduced by 2% trinket_poisonpercent_defense.dat Weight: 9 Level: 25+
  • +1-2% increase in magic-finding Luck trinket_magicfind.dat Weight: 3
  • +X Vitality Attribute bonus trinket_stat_defense.dat Weight: 4
  • +X Dexterity Attribute bonus trinket_stat_dexterity.dat Weight: 4
  • +X Focus Attribute bonus trinket_stat_magic.dat Weight: 4
  • +X Strength Attribute bonus trinket_stat_strength.dat Weight: 4
  • +X Electric damage trinket_electric_bonus.dat Weight: 3
  • +X Fire damage trinket_fire_bonus.dat Weight: 3
  • +X Ice damage trinket_ice_bonus.dat Weight: 3
  • +X Poison damage trinket_poison_bonus.dat Weight: 3
  • +X Electric armor trinket_electricdefense.dat Weight: 6
  • +X Fire armor trinket_firedefense.dat Weight: 6
  • +X Ice armor trinket_icedefense.dat Weight: 6
  • +X Poison armor trinket_poisondefense.dat Weight: 6
  • +2% to Electric damage trinket_electric_percent.dat Weight: 8 Level: 15+
  • +2% to Fire damage trinket_fire_percent.dat Weight: 8 Level: 15+
  • +2% to Ice damage trinket_ice_percent.dat Weight: 8 Level: 15+
  • +2% to Poison damage trinket_poison_percent.dat Weight: 8 Level: 15+

Belt

  • X Health recovery per second of_tl2_health_regen.dat Weight: 32 Level: 8+
  • +5% pet and minion damage of_tl2_petdamage.dat Weight: 32 Level: 5+
  • +5% pet and minion health of_tl2_pethealth.dat Weight: 32 Level: 5+
  • -1% all damage taken for every monster within 3 meters of_tl2_drawarmor.dat Weight: 32 Level: 66+

Necklace

  • 1% chance to cast Fully Heal Self when you get hit of_procgethit_fullheal_1.dat Weight: 80 Level: 45+
  • 5% chance to cast Fully Heal Self on kill of_prockill_fullheal_5.dat Weight: 80 Level: 60+
  • -1% all damage taken for every monster within 3 meters of_tl2_drawarmor.dat Weight: 32 Level: 66+

Ring

  • +X Mana/sec for every monster within 3 meters of_tl2_drawmana.dat Weight: 32 Level: 66+

Weapons

  • 1% chance to cast Fully Heal Self on kill of_prockill_fullheal_1.dat Weight: 80 Level: 45+
  • 10% bonus to Critical Damage of_tl2_criticaldamage.dat Weight: 32 Level: 8+
  • 3% reduction in Fumble chance of_tl2_fumblechance.dat Weight: 24 Level: 17+
  • +1% Critical Hit chance ofthemaster.dat Weight: 40
  • Conveys X Physical Damage over 5 seconds of_tl2_damageovertime.dat Weight: 48
  • -X to All Armor per hit ofthesavage.dat Weight: 60 Level: 9+
  • +2.1% Attack Speed (2.1 displayed, 3 real) ofthetiger.dat Weight: 32 Level: 3+
  • +X Physical Damage ofthebear.dat Weight: 128 (except wand and staff)

Melee Weapons (does not include staff)

  • Conveys Silence for 1 second of_tl2_silence.dat Weight: 24 Level: 6+
  • +15% Damage to secondary targets of_tl2_splash.dat Weight: 32 Level: 11+ (except claw)

Ranged Weapons (includes wand)

  • Conveys 5% chance of 66% Blindness for 4 seconds of_tl2_blinding.dat Weight: 32 Level: 7+ (except rifle)
  • +15 Knockback ofhteram.dat Weight: 32 Level: 11+

1Handed Weapons

  • 4% damage bonus when dual-wielding of_tl2_dualwieldbonus.dat Weight: 32 Level: 13+
  • +5% chance to Execute of_tl2_execute.dat Weight: 32 Level: 9+

2Handed Melee (includes staff)

  • +5% chance to Stun for 2 seconds of_tl2_shortstun.dat Weight: 32 Level: 7+
  • Conveys Silence for 1 second of_tl2_silence.dat Weight: 24 Level: 6+
  • +15% Damage to secondary targets of_tl2_splash.dat Weight: 32 Level: 11+

Maces

  • 10% chance to break enemy shields of_tl2_shieldbreak.dat Weight: 12

2Handed Axes

  • 10% chance to break enemy shields of_tl2_shieldbreak.dat Weight: 12

Crossbows

  • 10% chance to break enemy shields of_tl2_shieldbreak.dat Weight: 12

Polearms

  • 10% chance to break enemy shields of_tl2_shieldbreak.dat Weight: 12

Wand and Staff

  • +3% Cast speed ofthemage.dat Weight: 40 Level: 9+
  • 1-2% to all damage of_percent_all_wands.dat Weight: 120
  • +2-3% to Electric damage of_percent_electric_wands.dat Weight: 120
  • +2-3% to Fire damage of_percent_flame_wands.dat Weight: 120
  • +2-3% to Ice damage of_percent_ice_wands.dat Weight: 120
  • Conveys 2% chance that target Flees for 3 seconds of_tl2_fear.dat Weight: 32 Level: 17+
  • Conveys Silence for 1 second of_tl2_silence_staffandwand.dat Weight: 72 Level: 6+
  • +X Fire damage offlame.dat Weight: 96
  • +X Ice damage ofice.dat Weight: 96
  • +X Electric damage oflightning.dat Weight: 96
  • +X Poison damage ofvenom.dat Weight: 96

Shields

  • 10% Knockback resistance ofthemule.dat Weight: 24 Level: 12+
  • -1.5% Physical damage taken for every monster within 3 meters of_tl2_drawarmor_physical.dat Weight: 32 Level: 66+
  • 6% chance to reflect missiles at 50% weapon dps ofthestorms.dat Weight: 64
  • +2% chance to Block ofthebattlements.dat Weight: 80
  • +1% increase in the amount of gold found ofthemiser.dat Weight: 24 Level: 10+
  • +X Mana oftheowl.dat Weight: 48
affix_editor.txt · Last modified: 2019/10/13 02:02 by phanjam