home » builders » builder's lessons » sample objects - furniture and trash

Sample objects - furniture and trash

Trash

Because an item is trash doesn't mean it should be discarded. The ITEM_TYPE_TRASH is often used for items that don't fit in as any other type. Applies and wear locations can be given to trash as with many of the other item types. You may find that you have to apply value as well when the item you have made has value in the game but the fact that it is type trash has lowered the value in the game. Trash items default to 1 copper in the shops.

#8320
waterdeep newspaper waterdeepnews~
{70}the waterdeep news paper~
{70}A newspaper flutters about here.~
~
ITEM_TYPE_TRASH
0
CAN_WEAR_TAKE|CAN_WEAR_HOLD
QUALITY_AVERAGE MATERIAL_PAPER COND_PERFECT SIZE_MEDIUM
0 0 0 0 0 0
E
paper waterdeep news~
It is a small paper printed with small print.
~
>exa_prog 100~
mpechoat $n You take a look at the Newspaper with interest.
mpechoaround $n $n takes a look at the Newspaper with some interest.
if rand(30)
  mpforce $n help waterdeepnews
else
  mpforce $n help waterdeepnews2
endif
~
|

Furniture

Furniture is usually reserved for items that are not takable and not fountains. Remember that chests need to be containers.

#8614
large banner~
{E0}a large banner~
{E0}A large banner hangs from the gate towers.~
~
ITEM_TYPE_FURNITURE
0
0
QUALITY_AVERAGE MATERIAL_CLOTH COND_PERFECT SIZE_MEDIUM
0 0 0 0 0 0
>exa_prog 100~
mpforce $n help waterdeepbannerone
~
|

If furniture is either a bed, chair, lecturn or altar, it can be set in the code so PC's can interact with it. See the Furniture Flags Listing for more information. Value2 is set for the kind of furniture that it is.

#4232
altar golden torm~
{B0}the golden altar~
{B0}A golden altar to Torm glows here.~
~
ITEM_TYPE_FURNITURE
FLAG_GLOW|FLAG_MAGIC
0
QUALITY_AVERAGE MATERIAL_GOLD COND_PERFECT SIZE_MEDIUM
0 0 FURNITURE_ALTAR 0 0 0
E
altar golden torm~
A well crafted altar dedicated to Torm.
~