/* // File : /domains/Examples/virtual/start.c // Comment : A linking room for all virtual areas. // 94-05-13 : Written by Pallando @ Nightmare */ #include <lib.h> inherit LIB_ROOM; void create() { ::create(); SetProperties( ([ "light" : 3, "night light" : 1 ]) ); SetProperty( "indoors", 1 ); SetShort( "The Nexus" ); SetLong( "Neon blue light beams strike off to infinity in all directions " "forming a giant 3D lattice against the otherwise featureless void. " "This is The Nexus - the focal point of all virtual servers - and the " "gateway into the myriad realities supported by them." ); SetListen( "default", "You feel in your bones the vibrations from a deep background hum." ); /* These are here to show you how if you want them in your rooms SetSmell( "mildew", "That really makes you sick!" ); SetSmell( "default", "Mildew fills your lungs, nearly making you sick." ); SetListen( ({ "floorboards", "floorboard" }), "Old and unhappy with your presence, they are crying out." ); */ SetItems( ([ ({ "floorboard", "floorboards" }) : "Be careful where you walk, they are rotting through in places.", "woods" : "The great woods which surround the shack.", ]) ); SetExits( ([ "exampleA" : "/domains/Examples/virtual/exaA/one.exaA", "exampleB" : "/domains/Examples/virtual/exaB/3,1.exaB", "down" : "/domains/Desert/room/500,500.d", ]) ); // set_pre_exit_functions( ({ "up" }), ({ "cmd_up" }) ); } int cmd_up( string arg ) { message("my_action","You grab the lowest branch and pull yourselfup.", this_player() ); message( "other_action", this_player()->GetName()+" grabjumps up", this_object(), ({ this_player() }) ); return 1; } void init() { ::init(); add_action( "doclimb", "climb" ); } void reset() { ::reset(); SetSearch("brush", (: "search_brush" :)); } int search_brush(string str) { write( "Foo!" ); RemoveSearch("brush"); }