Creating new objects
by Cosmic Gerbil
Part One
The items used in FuryBand are kept in the k_info file, which can be found in the lib/edit folder. There are lots of different kinds of items; from weapons and armour to magic wands and rings.
Creating a new item depends on what type you wish to make. Here I will write about creating the main item types.
Food
The powers for the mushrooms are hard coded, so let’s just look at normal food items.
N:21:& Ration~ of Cram
G:,:U
I:80:35:5000
W:0:0:10:3
P:0:0d0:0:0:0
A:0/1:10/1:5/1
D:It is biscuitish, keeps good indefinitely, is supposed to be D:sustaining but certainly not entertaining. Its origin is Esgaroth, D:the city of Lake-men. You can 'E'at it.
N:21 is the index in k_info. This number is hard coded in relation to the Hobbit’s cook food racial power, so number 21 must always be a ration of cram.
The ~ symbol are the word ration is for plurals, so that if there are more than one of an item, it will say “rations of cram”. For slime mold, the ~ is after mold, so you read slime molds for more than one J
G:,:U This line deals with the ASCII picture of the item and the colour. The , symbol is used to represent food and the “U” is the colour code meaning light umber. For a full description of all the colours in FuryBand, check out the colours file.
I:80:35:5000
The number 80 corresponds to the object’s TVAL. The items are defined by TVAL, SVAL and PVAL. If you look in the help folder and open the file “defines”, you will see a list of items and their TVALS and SVALS. TVAL is the type of item, for example a sword or a polearm. So all food (including mushrooms) are represented by the number 80. The number 35 corresponds to the SVAL, which is the sub-type of the item. If you scroll down to the bottom of the defines file, you will see a list of all the food SVALS.
The 5000 is the PVAL, the objects power value. With food, it is to do with how much the food fills you up. The higher the number, the more the food fills you up.
W:0:0:10:3
The numbers in the W column stand for: depth (in the dungeon), rarity, weight and cost. So the higher the depth number, the deeper in the dungeon the item is found. The ration of cram has a depth of 0, so it is found on all levels of the dungeon. Usually more valuable objects are found deeper in the dungeon.
Also the higher that the rarity number is, the rarer the object. Rations of cram are common.
The same rule applies fro weight. The ration of cram is quite light. Finally the number 3 is how many gold pieces you will receive if you sell the ration of cram in a store.
P:0:0d0:0:0:0
A:0/1:10/1:5/1
The P line is not used for food items. The A line is also concerned with depth and rarity. I’m not quite sure how it works though.
Finally, all the lines starting with “D” are description lines and they simply describe the object.
To design a new food item, you have to use a SVAL that has not already been used. In FuryBand, the numbers 1 to 45 are used, so you can use any number over 45. A new food item may look like this:
N:444:& Bar~ of chocolate
G:,:u
I:80:46:2500
W:0:0:10:3
P:0:0d0:0:0:0
A:0/1:10/1:5/1
D:A yummy bar of chocolate
The SVAL is 46, an unused number. The PVAL is only 2500 because a bar of chocolate is not as filling as a food ration J
To include this food, scroll down k_info until you find an empty slot. You could use 444 to 464 for example. Simply paste into the free slot.
Now start up a game of FuryBand and after exploring the dungeon, you should soon find the bar of chocolate.