From the NannyMUD documentation
2001-11-16
score_hooks - Hooks for the score.
The hook code resides in /obj/hook.c. It is inherited into /obj/player, and supported from there.
Any object can use hooks.
value_pre_score_hook value_post_score_hook value_score_hook
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.
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.
NAME
value_pre_score_hook - Pre-score hookSYNTAX
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 scoreRETURN VALUES
Mixed, the array of strings to prepend to the result of 'score'.
FUNCTION
NAME
value_post_score_hook - Post-score hookSYNTAX
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 scoreRETURN VALUES
Mixed, the array of strings to append to the result of 'score'.
FUNCTION
NAME
value_score_hook - Score hookSYNTAX
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 scoreRETURN VALUES
Mixed, the array of strings to replace the normal mud score text.