%canWear()

Aliases%canWear( )
Parameters@mobile, @item [, @location]

    Returns 1 if the @mobile can wear the @item on the given @location.  The
@location parameter is optional in which case the function just tests to
see if the mobile can wear the item somewhere. The @mobile and @item
parameters should be pointers to a mobile and item respectively. If the
@location parameter is used then it should be one of the following
location names:

light arms
lFinger shield
leftFinger about
left finger waist
rFinger lWrist
rightFinger leftWrist
right finger left wrist
neck1 rWrist
neck 1 rightWrist
neck2 right wrist
neck 2 wield
body wielded
head wielding
legs held
feet hold
hands holding

Example:

if( %canWear( @actor, @item, "head" ) )
{
%move( @item, @actor, "head" );
}
else
{
%echoTo( "You can't wear it on your head!", @actor )

if( !%canWear( @actor, @item ) )
{
%echoTo( "You can't wear it anywhere!", @actor )
}
endif
}
endif