write.c

lima-1.0b5/lib/cmds/verbs/write.c · 434 B

From the archive lima-1.0b5+driver.tar.gz

Download the archive   « Back to the archive contents

/* Do not remove the headers from this file! see /USAGE for more info. */

inherit VERB_OB;

mixed can_verb_rule() {
    return check_vision();
}

void do_write_str_on_obj(string str, object ob) {
    ob->add_text(str);
    write("Done.\n");
}

void do_write_obj_with_str(object ob, string str) {
    ob->add_text(str);
    write("Done.\n");
}

void create()
{
    add_rules( ({ "STR on OBJ", "OBJ with STR" }), ({ "inscribe" }) );
}

Site Stats

Snippets: 1791
Codebases: 571