may wrote:Hello. This is my first post. It is dfn related so I figure this is correct forum. I am trying to create a magic_item.dfn file. I want to put all armour, and weapons that are magical that drop from monsters into one file. I will be adding all magic items that existed in 1997 and 1998, including magic weapons that were silver.
Hello, and welcome
may wrote:I have been looking at the base_item.dfn and there are a few lines that confuse me because the base_item.dfn lacks comments per line. So my questions are:
1. Can I put magic armour and weapons into one file called magic_item.dfn?
Yes. UOX3 will read and load data from any text-file with the .dfn file extension from the DFNDATA folders, as long as the data contained in them is formatted correctly. Also make sure that you use unique header-IDs for your items - i.e. two items with headers [magicweapon1] and [magicweapon2] will work, while [magicweapon] and [magicweapon], or [0x04a9] and [0x04a9] will not.
may wrote:2. Under base_item.dfn what do the following lines mean and their values?
The tags in base_item.dfn contain default values for any item definitions that contain the
get=base_item tag, and no value specified is basically the same as a value of zero - which UOX3 will not save to the worldfiles, and thus save space and time. It will assume that any tag it can't find when reading the worldfiles defaults to 0.
may wrote:3. I looked in the races.dfn and found undead listed as 11. I now have race=11 in my silver katana item. Assuming this is correct.. I have not tried testing this ingame yet, question three can be scratched off my post above.
Sounds about right
may wrote:4. Also a katana has a weight of 6, but I have seen weight listed as 600. How does weight work?
1250 = 12.5 stones
600 = 6.00 stones
438 = 4.38 stones
87 = 0.87 stones
4 = 0.04 stones
may wrote:Many thanks in advance. I am just starting my uox3 journey and looking forward to it!
Enjoy the journey, it's great fun
