DESOLATION

Help manual · Example Code

Example Room

Wrapping on this needs to be cleaned up some…

void setup() {
    set_room_icon("%^RESET%^ORANGE%^|%^RESET%^");
    set_objects( ([
    ]) );
    
    set_area("ranger-center");
    set_brief("%^RESET%^GREEN%^Ranger %^ORANGE%^Center%^RESET%^ - %^BWHITE%^Foyer%^RESET%^");
    set_long("You step into the beginning of a long hallway, and can %^ORANGE%^vaguely%^RESET%^ see " 
             "through the %^BOLD%^dimly%^RESET%^ lit overhead lighting fixtures what looks to be"
             " a large chain of %^CYAN%^offices%^RESET%^ to the south. Alongside of you is a panel"
             " of %^BOLD%^glass%^RESET%^ set into the wall, with a small room behind it which once"
             " used to have a guard posted at all times in case of a %^ORANGE%^revolt%^RESET%^, or to"
             " allow civilians access through the %^BOLD%^now-jammed%^RESET%^ open door that rests"
             " to the north of here. The room it displays seems to be filled with"
             " a collection of old security equipment and other %^ORANGE%^discarded%^RESET%^ items,"
             " but, as you look around, you see that there doesn't appear to be"
             " a way inside of the room from here. As you ponder all of your"
             " surroundings, you %^BOLD%^suddenly%^RESET%^ take notice of a slight harsh, heat-ridden"
             " %^CYAN%^draft%^RESET%^ filling the corridor, and spot %^BOLD%^another%^RESET%^ branching hallway,"
             " besides the one expanding towards the south, that you determine to"
             " be the source of the air.");

   set_exits( ([
       "north" : "rcentrance.c",
       "south" : "hallway2.c",
       "west"  : "plhallway.c",
   
   ]) );

    set_objects( ([
        "liv/door_guard_1"    : 1,
    ]) );

    add_item("glass", "Apparentally this glass covering over the wall was
installed so that the guard posted here could see whomever he was dealing with,
with providing ample protection to him because of its resistance to gunfire
other external forces.");
    add_item("lights", "light", "These overhead lights have seen a lot of use,
and over time, have grown to their present condition...Although they don't
provide the light they used to, its rare to find something from before the war
that even works these days.");
    add_item("equipment", "items", "It looks though just the old secruity
monitors and radios are stored in the office, and by the way they look, you
wouldn't be surprized if they didn't work any longer.");
    
} 

Category:Example Code