From the NannyMUD documentation

LAST CHANGE

2001-11-16

NAME

        score_hooks - Hooks for the score.

LOCATION

        The hook code resides in /obj/hook.c. It is inherited into
        /obj/player, and supported from there.

AVAILABILITY

        Any object can use hooks.

FUNCTIONS

OTHER FUNCTIONS

        value_pre_score_hook
        value_post_score_hook
        value_score_hook

DESCRIPTION

        When a player types score, the value_pre_score_hook and the
        value_post_score_hook is called. The value returned from the
        pre-score hook is prepended to the score command body, while
        the value from the post-score hook is appended to it.

        If the value_score_hook returns data, that data replaces the
        body of the score text.

NOTE

        The "Argument" to the 'score' command is simply what the
        player typed as argument to the command 'score'. If he typed
        'score foo', then 'foo' will be the argument.
        
        You should only use value_score_hook if you really know what
        you are doing. It is usually only needed for guilds. Clubs
        etc. should only use the pre-hook and post-hook.

FUNCTION


NAME

        value_pre_score_hook - Pre-score hook

SYNTAX

mixed value_pre_score_hook(mixed arr, object player)

DESCRIPTION

        The arguments to the hook are as follows:
          ({ Argument to the 'score' command. }),
          The player typing score

RETURN VALUES

        Mixed, the array of strings to prepend to the result of
        'score'.

FUNCTION


NAME

        value_post_score_hook - Post-score hook

SYNTAX

mixed value_post_score_hook(mixed arr, object player)

DESCRIPTION

        The arguments to the hook are as follows:
        For value_post_score_hook:
          ({ Argument to the 'score' command. }),
          The player typing score

RETURN VALUES

        Mixed, the array of strings to append to the result of
        'score'.

FUNCTION


NAME

        value_score_hook - Score hook

SYNTAX

mixed value_score_hook(mixed arr, object player)

DESCRIPTION

        The arguments to the hook are as follows:
            ({The pre score string.,
              The score text, as it looks up til now.,
              The post score string.,
              Argument to the 'score' command.})
            The player typing score

RETURN VALUES

        Mixed, the array of strings to replace the normal mud score
        text.