home » builders » builder's lessons » object programs

Object programs

Like mobiles, objects can also have programs. Refer to the mobprogs listing to see what kind of programs work on objects. An object can have more than one program on it. The sample below has a program that triggers when the item is worn. There are more program samples in the Mud Programs section of the builders lessons.

#QQ00
ring pink ice~
{D0}a pink ice ring~
{D0}A pink ice ring is lying here.~
~
ITEM_TYPE_TREASURE
FLAG_GLOW|FLAG_MAGIC
CAN_WEAR_TAKE|CAN_WEAR_FINGER
QUALITY_AVERAGE MATERIAL_GOLD CONDITION_PERFECT SIZE_MEDIUM
0 0 0 0 LAYER_ALL 0
E
pink ice ring~
{B0}It is golden ring with {D0}a pretty pink gem in it.
~
>wear_prog 100~
mpechoat $n The ring feels cold on your finger
~
|