the Phrozen Forums
  General Mod Making
  Rings Annoy Me

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Rings Annoy Me
Myhrginoc
Honorary Warlord

Posts: 1326
From: Percussion U
Registered: Dec 2001

posted 28 January 2002 21:55     Click Here to See the Profile for Myhrginoc   Click Here to Email Myhrginoc        Reply w/Quote   
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?

IP Logged

jbouley
Forum Admin.

Posts: 4907
From: Portland, Maine, USA
Registered: Jan 2001

posted 29 January 2002 16:07     Click Here to See the Profile for jbouley   Click Here to Email jbouley        Reply w/Quote   Visit jbouley's Homepage!
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

IP Logged

Myhrginoc
Honorary Warlord

Posts: 1326
From: Percussion U
Registered: Dec 2001

posted 29 January 2002 23:13     Click Here to See the Profile for Myhrginoc   Click Here to Email Myhrginoc        Reply w/Quote   
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.

IP Logged

All times are Central Standard Time

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | The PhrozenKeep

© PhrozenKeep.com . all buttons made by the Evilenglishman . swords and shields by DigiBO.


Ultimate Bulletin Board 5.47c