Taglines.c

Uploaded: 20 Feb, 2009
Previous uploads by this submitter: 0

Author: Imapopsycle

Downloads: 52

Hello,

The other day I was messing with the stock mudschool and midgaard. I made a change to bool can_see_room so that the exit/entrance to mudschool is no longer available after level 1.

EG:

if (IS_SET (pRoomIndex->room_flags, ROOM_LVLONE_ONLY)
&& ch->level > 1 && !IS_IMMORTAL (ch))
return FALSE;


Ok, so now, when you are in the temple of midgaard, you no longer see the UP exit but the room description still lists the last paragragh as Mudschool being up.

The included file in called Taglines and allows you to parse bb style codes from within your area files. Using this code, You can hide parts of the room descriptions based on the players level and so on. There are a lot of examples in the file.

EXAMPLE USAGE: In act_info.c do_look;
change
send_to_char(ch->in_room->description, ch);


To this:
tagline_to_char(ch->in_room->description, ch);


In midgaard.are, add the [#level < 5: around the mudschool text followed by an ending bracket, ]

EG:
[#level < 5: 
Equally large steps lead UP through a small door into the ENTRANCE to MUD
SCHOOL. (type 'up' to go to MUD SCHOOL.)]


Now, that block of text is only shown to Players level 5 and under!

Chris