↜ Add yellow/green affixes to the game! by WNG ↝
IntroductionHello! This small tutorial will show you how to invent and implent new affixes that can appear on all items. The process is simple, quick and has a world of possibilities.
I may assume you have some basic knowledge and overlook some manipulations. Feel free to tell me if anything is unclear.Without further ado, let's get started.
I. Creating the affixes filesI. Create a first affix file charisma
Open your Art Manager. Select the Database tab and, on the right window, right-click > New > Record. Double click on it, and when you will be prompted to choose its template, select LootRandomizer.tpl.
You can now begin to create your affix. Check the spoiler below for the parameters to edit. Parameters that are irrelevant will be omitted, as always.
Spoiler for Hiden:
General ParametersConfigurationAffixes' Bonuses ParametersSpoiler for Hiden:
This is a review of the many (not all!) basic parameters you may set on your item. If you know about those, skip this.Many of the parameters share the same proprietes. I'll explain them once.Offensive ParametersSpoiler for Hiden:
Offensive Global (for offensive bonuses with a global chance (5% of +10% Total Damage, +20% Poison Damage, ...))
Offensive Absolute (for flat/percent based damage bonuses)
Offensive Duration (for damage/debuffs over time bonuses)
Offensive Influence (for debuffs for a set duration, such as Confusion, Mind-Control, etc.)
Retaliation ParametersSpoiler for Hiden:
Retaliation Global (for retaliation bonuses with a global chance (5% of 15 Piercing Retaliation, 20 Elemental Retaliation, ...))
Retaliation Absolute (for flat retaliation bonuses)
Retaliation Duration (for DoT retaliation bonuses)
Defensive ParametersSpoiler for Hiden:
Defensive Absolute (for resistances bonuses)
Defensive Special (for resistances versus certain DoTs)
Defensive Misc (for blocking/reflecting bonuses)
Defensive Influence (for secondary resistances)
Monster Defense (for tertiary resistances)
Character ParametersSpoiler for Hiden:
Character Base Attributes (Is irrelevant, do not touch.)
Character Bonus Attributes (for direct stats bonuses)
Character Speed (for speed bonuses)
Character Regeneration (for regeneration bonuses)
Character Ability (for dodge/critical hit bonuses)
Character Reserve (for mana reservation reduction bonuses)
Requirement Reduction (for requirement reduction bonuses)
Spoiler for Hiden:
Self-explanatory. Also, you do
NOT need to add the negative.
Skill Parameters (for bonuses that regard spells)
Spoiler for Hiden:
Skill Reduction (for reduced recharge and mana costs)
Projectile Bonus (for projectile speed)
Skill Augment (boosts or grants skills)
Racial Bonus (for increased offense/defense versus certain races)
Pet Bonus (for bonuses to all pets)
Notice how you are not asked to define whether your affix is a prefix or a suffix. This is because the prefixes and suffixes are stored in different tables. You will see this below shortly.
II. Create multiple versionsDepending on what you have in mind, you might want to create upgraded versions of your affix (of Life < of Endurance < of Survival ...). Doing this is very simple, as you only have to copy and paste your .dbr the number of times you wish, rename the new .dbrs accordingly and make the needed changes, that is increase the power of the bonus, increase the cost and perhaps even a new name. Once your work is done, do not forget to build your .dbrs.
III. Include your affixes to tablesNow that your affixes are fully done, it is now time to include them in the affixes tables to finally make them appear on items from chests and merchants. To do so, you will need to import the needed tables. This is where they are located.
records\item\lootmagicalaffixes\... => for the Vanilla Game
records\xpack\item\lootmagicalaffixes\... => for the Immortal Throne Expansion
*Ragnarök does not have its own tables, therefore it uses the same as IT's.From there, you will have to select if you want to add your affix to the prefix or suffix tables. With this exemple, I'll go with suffixes.
records\item\lootmagicalaffixes\suffix...
records\xpack\item\lootmagicalaffixes\suffix...
Thereafter, you select for what type of item it'll be. My suffixes will be exclusively for shields (but nothing prevents you from including it to swords and mage bracelets at the same time.)
records\item\lootmagicalaffixes\suffix\tablesshields...
records\xpack\item\lootmagicalaffixes\tablesshields...
Here you see the .dbr files that contain all possible affixes for specified category of items, for the difficulty X and the act Y. If I want to include it from the beginning to the end of the game, I'll need to import all the entirety of the two folders mentionned just above.
Open the files you just imported. You will see an array containing other affixes (or in this case, suffixes) that can drop. To include yours, all you need to do is to double-click on an empty space named "randomizerNameX" and insert the access path of the .dbr of your affix.
Just under, there should be a slot "randomizerWeightX". Here, input a flat number that will act as the odds for your affix to be selected by the table.
Keep on editing all the tables you have imported and build them when your work is done. Since those tables are the ones used by the original game, your work is now over, and your new affixes may now begin to appear.