1) add an attribute definition to the player.ini file in the install folder
Code: Select all
[gold]
initial = 0
low = 0
high = 999
2) add an item definiton to the inventory.ini in the install folder (I'm assuming that you just want the item to show up in the inventory, otherwise you must use a different catagory)
Code: Select all
[gold]
catagory = static
image = gold.bmp
imagealpha = a_gold.bmp
text = gold
3) place the bitmaps for the inventory screen (gold.bmp, a_gold.bmp) in the media/bitmaps/inventory folder
4) in your level add an Attribute entity that increases the gold attribute value
5) run the level pick up the attribute press the inventory key select the items submenu in the inventory and the gold attribute should be there