catch_destroy_act

Response Typescript
EntitiesRooms, Mobiles, Objects
Parameters-

    This trigger fires when an item is destroyed and can be caught by the room
in which they die or by any mobiles or objects present in the room. The
following variables are made available to the script:

@n, @source - The source, if any, of the destruction.

@t, @target - The target item that is being destroyed, just
before it is purged.

@destroyType - The manner of destruction occurring.

The @target variable contains a valid pointer to the item before it is
destroyed. Immediately after the script returns the item is removed from
the game and the @target pointer will be invalid. For this reason, if any
information about the item is required, then it should b acted upon or
extracted before control is passed back to the MUD engine. This is usually
facilitated via a protected block of code.

The type of destruction occuring can be determined by the value of
@destroyType. So far the following values exist:

damage - this generally occurs in combat

repair - attempt at repair failed