Rare item creation
#10
A few points of clarity on this matter. This is from those that have looked at the coding of the way the game generates the affixes for the items.

For a rare item the game will select which set to generate an affix from (prefix/suffix).

Then it will build a list of those affixes that are of that type (prefix/suffix), can be used on that item type, have a level greater than or equal to the items alvl and a maxlevel that is less than or equal to the items alvl (if there is a value for this field), has a frequency greater than zero, has spawnable=1, has a version of 1 or 100 for LoD (version=1 is only for D2C and version=0 is for leagacy items prior to D2v1.07), has rare=1 AND does not have a group number equal to one that has already been applied to the item. It will then pick from these affixes based on the frequency values for the affixes in the list. This list has a maximum number of entries that it can contain (512? I forget); but this is really only of concern to modders that build very large affix tables since the games default ones are small enough to not run into this limitation.

For each succesive affix it will repeat the process by building a new list for each time that it picks an affix.

Basically the two ways of looking at it are the same, but there could arise some situations were the subtly of the difference could play a part. As such it is better to stick with knowing the way the game does actually do the process rather than possibly getting tripped up later by a misunderstanding of a minor point.

References to things like version, spawnable, rare, level, maxlevel, frequency and group are from the data fields of the files magicprefix.txt, magicsuffix.txt and automagic.txt files in the games MPQs.
Reply


Messages In This Thread
Rare item creation - by whathuh - 10-06-2004, 09:24 PM
Rare item creation - by adeyke - 10-07-2004, 02:14 AM
Rare item creation - by gta-maloy] - 10-07-2004, 02:59 PM
Rare item creation - by adeyke - 10-07-2004, 03:45 PM
Rare item creation - by gta-maloy] - 10-07-2004, 05:41 PM
Rare item creation - by whathuh - 10-07-2004, 08:35 PM
Rare item creation - by adeyke - 10-08-2004, 02:29 AM
Rare item creation - by whathuh - 10-08-2004, 02:11 PM
Rare item creation - by adeyke - 10-08-2004, 04:41 PM
Rare item creation - by Ruvanal - 10-09-2004, 01:27 PM
Rare item creation - by whathuh - 10-10-2004, 09:13 PM
Rare item creation - by adeyke - 10-10-2004, 10:22 PM
Rare item creation - by whathuh - 10-11-2004, 08:35 PM
Rare item creation - by adeyke - 10-11-2004, 11:27 PM
Rare item creation - by whathuh - 10-12-2004, 02:49 PM
Rare item creation - by adeyke - 10-12-2004, 04:02 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)