%getLeader()

Aliases%leader( ), %getLeader( )
Parameterscharacter @entity [, integer @defaultSelf]

    If the character is currently following someone then a pointer to the
leader will be returned. Otherwise null is returned. Character entity may
be a character pointer or keyword. If the optional @defaultSelf parameter
is set to a non zero value then if no leader is found the
@entity itself will be returned.

Example:

if( %getLeader( @n ) )
{
talk @n Take me to your leader!
}
endif

Example:

cast soul strike %getLeader( @n, 1 )