home » builders » builder's lessons » sample objects - lights
Sample objects - lights
Lights can be worn in any location and they can be layered. It must make IC sense for an item to be a light if its not in the normal hold or float locations. Lights are lit automatically when held by the player. The light below will last for 40 game hours before going out. When a light goes out it junks.
#8546 torch~ {B0}a torch~ {30}A torch lies on the ground here.~ ~ ITEM_TYPE_LIGHT 0 CAN_WEAR_TAKE|CAN_WEAR_HOLD QUALITY_AVERAGE MATERIAL_WOOD COND_PERFECT SIZE_SMALL 0 0 40 0 0 0 E torch~ It is a bundle of dried sticks tied together with the end soaked in pitch. ~
The light below floats around the users head. It will last 100 game hours before going out. Because it is floating, it would be considered to have some sort of magic to allow it to do so, so we suggest in most instance that it should have a magic flag.
#8100 brightly coloured ball light~ {B0}a {C0}coloured {D0}ball {E0}of {F0}light~ {B0}A brightly coloured ball of light floats here.~ ~ ITEM_TYPE_LIGHT FLAG_MAGIC CAN_WEAR_TAKE|CAN_WEAR_FLOATING QUALITY_AVERAGE MATERIAL_ENERGY COND_PERFECT SIZE_MEDIUM 0 0 100 0 0 0
Notes
Lights will only work in the inventory of a PC. If you wish to have a light that works in the room (ie like a torch on the wall) then use ITEM_TYPE_FIRE.