help.c
nightmare4_fluffos_v1/lib/lib/help.c · 566 B
From the archive nightmare4_fluffos_v1.zip
Download the archive « Back to the archive contents
/* /lib/help.c
* From the Nightmare V Object Library
* Provides an interface to the help system for objects that want it
* Created by Descartes of Borg 960116
* Version: @(#) help.c 1.2@(#)
* Last modified: 96/12/17
*/
private static mapping Help = ([ "default" : "No help has been provided." ]);
string GetHelp(string topic) {
if( !topic || !Help[topic] ) {
topic = "default";
}
return Help[topic];
}
static mapping SetHelp(mixed val) {
if( stringp(val) ) {
val = ([ "default" : val ]);
}
return (Help = val);
}