Author
|
Topic: Rings Annoy Me
|
Myhrginoc Honorary Warlord
   
Posts: 1326 From: Percussion U Registered: Dec 2001 |
posted 28 January 2002 21:55
I have been having problems making a second ring type, so I could have two in a set. I cloned the ring line in both ItemTypes and Misc to new lines, called the type "Rin2" and the TLC "rig" (no conflicts there), and wrote up some stuff in string.tbl and cubemain.txt so you would have no way of knowing by behavior that one type was any different than the other. (I did make all the graphics for blue rings go one way and red rings go the other.)Everything appears to work fine. Except about half the time I get normal rings on the new type! Since I cloned the whole row, the magic and rare columns have 1 in them, 0 for normal. Any ideas what I need to do next?

|
jbouley Forum Admin.
    
Posts: 4907 From: Portland, Maine, USA Registered: Jan 2001 |
posted 29 January 2002 16:07
Is the code for your new ring type in both the magicprefix and magicsuffix files? You know, like normal rings now.You problem might be that the game cannot apply an affix because the item is not mentioned in the appropriate affix file. Given that your problem occurs 50% of the time, you probably put your new rings in either the prefix or suffix file and forgot to do it in the other one. ------------------ - JEFF "A hero is no braver than anyone else. He is only brave five minutes longer." For my latest mod (for LoD/expansion), download Version 1.1 of Sanctuary in Chaos - Or for old stuff (for classic D2), visit my orignal mod site at www.planetdiablo.com/sanctuary

|
Myhrginoc Honorary Warlord
   
Posts: 1326 From: Percussion U Registered: Dec 2001 |
posted 29 January 2002 23:13
Actually I cheated there a bit. I made a new general item type, jewelry (code jwlr), and made ring, rin2 and amul subsets of jwlr by putting "jwlr" in the Equiv2 column.Then I went in and changed every occurrance in magicprefix and magicsuffix to "jwlr" whenever both ring and amul were present, freeing up one column.  If there were entries with rings only, I put rin2 in the next open column. I made some cube recipes so rin2 would function same as ring type. I tested it by putting a magic red-gem ring in with two blue-gem rings and got an amulet as expected. (red is rin2 and blue is ring) So the upshot is when it does drop as magic it behaves fine. I just wish I understood where the normals come from.  I did think up a way to fudge it in TreasureClassEx, but that is inelegant. I define a rin2 class special drop high up in the table, that has magic 1024, set/rare/unique less, so if it does try to be normal it should be dropped as magic at least.

| |