Ok, I think I'm heading in the right direction, but I'm still not seeing any results. The code for my signpost is as follows:
#include <mudlib.h>
inherit OBJECT;
void create()
{
::create();
set("name","signpost");
set("short","a signpost");
set("id",({"sign","sign post","post","signpost"}));
set("long", "This is a sign post");
set("level",1);
set("bulk",500);
set("weight",2500);
set("value",0);
set("type/other", 1);
set("prevent_get","How do you propose doing that?\n");
set("prevent_insert","How do you propose doing that?\n");
}
void init()
{
add_action("_touch", "touch");
}
string _touch()
{
string sign_desc;
sign_desc = read_file("/u/d/dorrin/obj/signpost_descs/workroom");
this_player()->write("Signpost Desc: " + sign_desc);
return 1;
}
I have also tried to just return sign_desc, return "Signpost Desc: " + sign_desc and all I get is either nothing or
~/obj> touch
Signpost Desc: 0
~/obj>
Eventually this will go into the long as an @@query_long and a dynamic lookup of the file name based on the room name, but I tried to dumb it down just to get it working