destroy

Settable:
no
Arguments:
(1) character
(2) object
Return Value:
none

This destroys the given object or character. If the destroyee is a player, there is no xp loss and the character's equipment will be present when he logs in again; it is similar to the immortal command 'purge'. If an object is destroyed, it is removed from any container or wherever it might be. If a container is destroyed, its contents are also destroyed.

Because of the way MUDL handles nulls, it is generally safe to destroy objects or characters at any point in a MUDL script. The script will continue to execute, it will simply not execute commands that directly depend on the destroyed object or character. The exception is that if the destroyed object or character is the entity that bore the currently-executing MUDL script, then execution will stop immediately.