builder's lessons » drop prog

Drop programs

This program is an object program that is activated when the object is dropped. It can be activated a certain percentage of the time. <\p>

>drop_prog 100~
mpecho $O disintegrates as they touch the ground.
mppurge $o

This prog is on the plain equipment from the temple. When a player drops the equipment it echos to the room ($O is the object's short desc), and then it purges the object. There is of course a lot more possibility for such a prog. For instance you could make a ball bounce away, or a magical object explode and so on.