[Package Index | Mudlib Index | Effect Index]

File /d/klatch/ephebe/inherit/ephebe_description_inherit.c

This function may be called from a room chat to drop a bird poo on a random individual in the room.

Inherits

This class inherits the following classes /d/klatch/utils/scent_inherit.c

Includes

This class includes the following files /include/tasks.h, /include/weather.h, /d/klatch/ephebe/inherit/path.h, /include/armoury.h and /d/klatch/ephebe/path.h

Method index

Public Functions

These are functions that everyone can access.

add_ephebe_item
void add_ephebe_item(string ephebe_item)

This function is the local add_item function for adding the same add_item or groups of add_items in several rooms. You can get a list of the possible items by using "grep case" on the file. Many of the items are added automatically if you add room chats from this file.

Parameters:
ephebe_item - The add_item or group of add_items to add

See also:
skill_desc(), skill_desc_check(), outside_day_chats(), tree_day_chats(), tree_night_chats(), outside_night_chats(), near_citadel_day_chats(), near_citadel_night_chats(), distance_citadel_day_chats(), distance_citadel_night_chats(), distance_lighthouse_day_chats() and distance_lighthouse_night_chats()


add_leaf_type
void add_leaf_type(string leaf)

This function adds a leaf type to an array of leaf types that might appear in the room.
cover_someone_in_crap
void cover_someone_in_crap()
distance_citadel_day_chats
string * distance_citadel_day_chats()

The day chats for rooms greater than 4 or so rooms from the citadel. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_day_chat( ({50,80,
        distance_citadel_day_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

distance_citadel_night_chats
string * distance_citadel_night_chats()

The night chats for rooms greater than 4 or so rooms from the citadel. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_night_chat( ({50,80,
        distance_citadel_night_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

distance_lighthouse_day_chats
string * distance_lighthouse_day_chats()

The day chats for rooms greter than 6 or so rooms from the lighthouse. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_day_chat( ({50,80,
        distance_lighthouse_day_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

distance_lighthouse_night_chats
string * distance_lighthouse_night_chats()

The night chats for rooms greter than 6 or so rooms from the lighthouse. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_night_chat( ({50,80,
        distance_lighthouse_night_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

distance_monastery_day_chats
string * distance_monastery_day_chats()

The day chats for rooms greater than 4 or so rooms from the monastery. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_day_chat( ({50,80,
        distance_monastery_day_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

distance_monastery_night_chats
string * distance_monastery_night_chats()

The night chats for rooms greater than 4 or so rooms from the monastery. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_night_chat( ({50,80,
        distance_monastery_night_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

do_get_leaf
mixed do_get_leaf(string verb,
                  object * dest)

This function creates a leaf and moves it to the players inventory. It picks a random leaf from the array of leaf types that are collectable in the room.
extra_look
string extra_look()
leaf_chat
string leaf_chat(string species)

This returns a string for a roomchat about leaves that varies with the windspeed. These shouldn't be used directly, as they are called by tree_chats.

Parameters:
species - The species of the tree present


near_citadel_day_chats
string * near_citadel_day_chats()

The day chats for rooms within 4 or so rooms of the citadel. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_day_chat( ({50,80,
        near_citadel_day_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

near_citadel_night_chats
string * near_citadel_night_chats()

The night chats for rooms within 4 or so rooms of the citadel. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_night_chat( ({50,80,
        near_citadel_night_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

near_lighthouse_day_chats
string * near_lighthouse_day_chats()

The day chats for rooms within 6 or so rooms from the lighthouse. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_day_chat( ({50,80,
        near_lighthouse_day_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

near_lighthouse_night_chats
string * near_lighthouse_night_chats()

The night chats for rooms gwithin 6 or so rooms of the lighthouse. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_night_chat( ({50,80,
        near_lighthouse_night_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

near_monastery_day_chats
string * near_monastery_day_chats()

The day chats for rooms within 4 or so rooms of the monastery. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_day_chat( ({50,80,
        near_monastery_day_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

near_monastery_night_chats
string * near_monastery_night_chats()

The night chats for within 4 or so rooms of the monastery.. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_night_chat( ({50,80,
        near_monastery_night_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

outside_day_chats
string * outside_day_chats()

The roomchats for outside rooms by day. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_day_chat( ({50,80,
        outside_day_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

outside_night_chats
string * outside_night_chats()

The roomchats for outside rooms by night. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_night_chat( ({50,80,
        outside_night_chats() |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );

query_leaf_types
varargs string * query_leaf_types()

This function returns an array of types of leaf that may be collected in the room.
skill_desc
string skill_desc(string subject,
                  int type)

This function stores the descriptions for skill checking. For each item in the switch statement there are four possible strings that can be returned, the first is the long description if the skill check is passed, the second is the short description if the skill check is passed, the third and forth are the long and short descriptions respectively for when the skillcheck fails.

Parameters:
subject - The subject of the add_item being looked at
type - Which description in the array to return


skill_desc_check
mixed skill_desc_check(string subject,
                       string type,
                       string skill,
                       int difficulty)

The function takes the skill and difficulty specified in add_ephebe_item and uses the tasker to do the skill check. It then gets the description based on whether the check is passed or failed from the skill_desc function.

Parameters:
subject - The subject of the add_item
type - Whether the description is the long or short desc
skill - Which skill to do the skill-check against
difficulty - the bonus at which the skill check should pass


tree_day_chats
string * tree_day_chats(string species)

The roomchats for the rooms with a tree in them, a species needs to be specified for it to work. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_day_chat( ({50,80,
        tree_day_chats("great scots pine") |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );


Parameters:
species - The species of the tree present


tree_night_chats
string * tree_night_chats(string species)

The roomchats for the rooms with a tree in them, a species needs to be specified for it to work. It automatically adds add_items to match the roomchats that it adds. The chats can be used by adding them to the room_chats of the room inheriting ephebe_inherit like this:
    room_night_chat( ({50,80,
        tree_night_chats("great scots pine") |
        ({
            "An insect buzzes around.",
            "A seagull swoops right past your nose."
        }) }) );


Parameters:
species - The species of the tree present


wet_exit
int wet_exit()

This makes someone damp from walking through an exit if added as the function for modify_exit. For example:
   modify_exit( "east",
       ({
           "move mess",
           "You step through the curtain of water and out onto the "
           *Street of Enlightenment.\n",
           "function",
           (: wet_exit :)
       }) );