desc when going thru exit

Posted by Swimming on Wed 03 May 2006 02:34 AM — 5 posts, 18,123 views.

#0
I'm looking to make certain exits have descriptions you get when you travel through them.

like:
>east
You tromp through the bushes and wind up in a stream.

then show the room desc and stuff


i'll try my hand and begin fiddlin' with stuff, but in the meanwhile any suggestions will be most helpful.

rock on

USA #1
This might already be implemented with exit descs, but that might also be a feature added to my codebase before I took over.

Anyhow, the idea is pretty straightforward; just add an extra field to your exit_data structure called "exit_desc" or something similar, and whenever somebody takes an exit, if the exit's exit_desc is not null, print it to them.
#2
yay!
figured it out..
that was easy.
thanks anyways.
#3
Out of curiosity, Swimming, what was your solution?
#4
added a movedesc to exit_data structure,
stuck it in after keyords of the exit in the area files,

and in act_mov.c, in ch_ret move_char
after
char_from_room( ch );

if (pexit->movedesc && pexit->movedesc[0] != '\0')
send_to_char(pexit->movedesc,ch);

before
char_to_room( ch, to_room );

working ok so far.