Modifying Exits

Posted by Gareth555 on Mon 23 Jun 2003 12:58 PM — 2 posts, 10,765 views.

#0
I'd like to change
the exit prompt to read (for example)

The obvious exits are:
S W NE E

instead of SOUTHWEST SOUTHEAST etc etc

Anyone got a handy dandy code idea for it? :)


Australia Forum Administrator #1
In do_exits in act_info.c there is a reference to dir_name which is declared like this ...


char *  const   dir_name        []              =
{
    "north", "east", "south", "west", "up", "down",
    "northeast", "northwest", "southeast", "southwest", "somewhere"
};


You could make that dir_short_name and set up a second array with the shorter names in it.