set_piece_description |
Discworld food help |
set_piece_description |
Name
set_piece_description - Long used for the pieces.
Syntax
int set_piece_description(string str);
Description
The long description used for the pieces. When the object is cut up this is used as its long description.
If this is set then the short of the object is changed to 'piece of cake'. If the piece description is not set the short description of the object is not changed.
Example
inherit "/obj/food";
void setup() {
set_name("cake");
set_short("chocolate cake");
add_adjective("chocolate");
set_long("The brown soft moist cake looks totaly wonderful. You want to "
"eat it!\n")
set_piece_description("The brown soft moist cake looks totaly "
"wonderful. You want to eat it!\n");
set_weight(20);
set_weight_per_bite(1);
} /* setup() */
See also
query_piece_description, query_in_pieces