Beispiel #1
0
/*
 * Function name: create_object
 * Description  : Constructor. It is called to create this object.
 */
nomask public void
create_object()
{
    set_name("editor");
    set_pname("editors");
    add_name("edit");
    add_name("date_edit");
    set_adj("data");

    set_short("data editor");
    set_pshort("data editors");

    set_long(break_string("With this data editor it is possible to list " +
	"and manipulate LPC-datafiles. One command, data_edit, is linked to " +
	"this editor. There is a general help-page on the command. Also, " +
	"within the editor, you can get help by typing ? or h[elp]. The " +
	"syntax for data_edit is 'data_edit <filename>'.", 75) + "\n");

    remove_prop(OBJ_I_VALUE);
    remove_prop(OBJ_I_VOLUME);
    remove_prop(OBJ_I_WEIGHT);

    add_prop(OBJ_I_NO_STEAL,    1);
    add_prop(OBJ_I_NO_TELEPORT, 1);
    add_prop(OBJ_S_WIZINFO,
	"Just examine the data editor for information. /Mercade\n");
}
Beispiel #2
0
void
create_object()
{
    set_name("funtest");
    set_pname("funtest");
    set_short("funtest");
    set_pshort("funtest");
    set_long("test object, don't use it\n");
}
Beispiel #3
0
void
create_weapon()
{
    set_name("knife"); set_pname("knives");
    set_short("small knife"); set_pshort("small knives");
    set_adj("small");
    set_long("It is a very simple looking knife, quite deadly though.\n");

    set_default_weapon();
}