_status.c

foundationI_fluffos_v1/lib/cmds/mortal/_status.c · 581 B

From the archive foundation1_fluffos_v1.zip

Download the archive   « Back to the archive contents

//      _status.c
//     created by Descartes for the Nightmare mudlib 141192
 
#include <std.h>
 
inherit DAEMON;
 
int cmd_status() {
  write("hp: "+this_player()->query_hp()+"/"+this_player()->query_max_hp()+"  "
        "sp: "+this_player()->query_sp()+"/"+this_player()->query_max_sp()+"  "
        "mp: "+this_player()->query_mp()+"/"+this_player()->query_max_mp()+"  "
        "experience: "+this_player()->query_exp());
  return 1;
}
 
void help() {
    write("Syntax: <status>\n\n"+
        "Gives you your current physical status.\n"
        "See also: score\n"
    );
}

Site Stats

Snippets: 1791
Codebases: 571