Twilight's Developer Test
From LSWiki
(Difference between revisions)
Revision as of 15:24, 26 May 2008 (edit) Aedhan (Talk | contribs) ← Previous diff |
Revision as of 15:52, 13 February 2010 (edit) Chaos (Talk | contribs) (tweaked for style) Next diff → |
||
Line 14: | Line 14: | ||
void configure() { | void configure() { | ||
- | ::configure(); | + | ::configure(); |
- | set_code("the White Sprite"); | + | set_code("the White Sprite"); |
- | set_short("the White Sprite Bar and Grill"); | + | set_short("the {{bright white}White Sprite Bar and Grill}"); |
- | add_abstract_item(([ | + | add_abstract_item(([ |
- | Abstract_Item_Identity : ([ | + | Abstract_Item_Identity : ([ |
- | Identity_Adjectives : ({ "solid" }), | + | Identity_Adjectives : ({ "solid" }), |
- | Identity_Nouns : ({ "walls", "wall" }), | + | Identity_Nouns : ({ "walls", "wall" }), |
- | ]), | + | ]), |
- | Abstract_Item_Descriptions : ({({ | + | Abstract_Item_Descriptions : ({ |
- | ({ 't', 0, }), "are thick and well-interlocked, for the most part hiding the motley", | + | ({ |
- | "exterior. What few gaps there are let in the", | + | ({ 't', 0, }), "are thick and well-interlocked, for the most part hiding the motley exterior.", |
- | "shadows cast by the light of strange chaotic energies", | + | }), |
- | "playing across the metal scraps and twisted wires that hold this place together." | + | ({ |
- | })}), | + | "What few gaps there are let in the {{black}shadows} cast by the {{random, random, random, and random}light of " |
- | Abstract_Item_Attach_Description : ([ | + | "strange chaotic energies} playing across the {{gray}metal scraps} and {{copper}twisted wires} that hold this " |
- | Description_Type : Description_Type_Simple, | + | "place together.", |
- | Description_Content : ({ | + | }), |
- | "The inner walls of the room are composed of", | + | }), |
- | Description(([ | + | Abstract_Item_Attach_Description : ([ |
- | Description_Type : Description_Type_Element_Name, | + | Description_Type : Description_Type_Simple, |
- | Description_Content : ({ "irregular triangular", "slabs" }), | + | Description_Content : ({ |
- | ])), | + | "The inner walls of the room are composed of", |
- | "that form a large circle with dome-like slope to the ceiling." | + | Description(([ |
- | }), | + | Description_Type : Description_Type_Element_Name, |
- | Description_Order : Description_Order_Early, | + | Description_Content : ({ "irregular triangular", "slabs" }), |
- | ]), | + | ])), |
- | Abstract_Item_Elements : ({ | + | "that form a large circle with dome-like slope to the ceiling." |
- | ([ | + | }), |
- | Element_Type : Material_Iron, | + | Description_Order : Description_Order_Early, |
- | ]), | + | ]), |
- | }), | + | Abstract_Item_Elements : Material_Iron, |
- | ])); | + | ])); |
- | add_abstract_item(([ | + | add_abstract_item(([ |
- | Abstract_Item_Identity : ([ | + | Abstract_Item_Identity : ([ |
- | Identity_Adjectives : ({ "long" }), | + | Identity_Adjectives : ({ "long" }), |
- | Identity_Nouns : ({ "bar" }), | + | Identity_Nouns : ({ "bar" }), |
- | ]), | + | ]), |
- | Abstract_Item_Descriptions : ({({ | + | Abstract_Item_Descriptions : ({ |
- | "The bar is made of the same", | + | ({ |
- | Description(Description_Type_Element_Subdescription), | + | "The bar is made of the same", |
- | "and excellent craftsmanship as the door. It's edges are", | + | Description(Description_Type_Element_Subdescription), |
- | "gently etched with depictions of", | + | "and", |
- | "sprites of various poses and likenesses." | + | Description(Description_Type_Craftsmanship_Name), |
- | })}), | + | "craftsmanship as the door.", |
- | Abstract_Item_Attach_Description : ([ | + | }), |
- | Description_Type : Description_Type_Simple, | + | ({ |
- | Description_Content : ({ | + | ({ 'r', 0, "edges" }), "are lightly etched with depictions of sprites of various poses and likenesses.", |
- | ({ 'a', 0 }), "curves around the edge of half the room", | + | }), |
- | }), | + | }), |
- | Description_Order : Description_Order_Early, | + | Abstract_Item_Attach_Description : ([ |
- | ]), | + | Description_Type : Description_Type_Simple, |
- | Abstract_Item_Elements : ({ | + | Description_Content : ({ |
- | ([ | + | ({ 'a', 0 }), "curves around the edge of half the room", |
- | Element_Type : Material_Gold, | + | }), |
- | Element_Color : "white", | + | Description_Order : Description_Order_Early, |
- | ]), | + | ]), |
- | }), | + | Abstract_Item_Elements : ({ |
- | ])); | + | ([ |
- | add_abstract_item(([ | + | Element_Type : Material_Gold, |
- | Abstract_Item_Identity : ([ | + | Element_Color : "white", |
- | Identity_Nouns : ({ | + | ]), |
- | "furniture", "tables", "chairs", "barstools", "table", "chair", "barstool" | + | }), |
- | }), | + | Abstract_Item_Craft : Craft_Excellent, |
- | ]), | + | ])); |
- | Abstract_Item_Descriptions : ({({ | + | add_abstract_item(([ |
- | ({ 't', 0 }), "is all of the same make and style,", | + | Abstract_Item_Identity : ([ |
- | "spartan and durable, but not without some of the beauty of", | + | Identity_Nouns : ({ |
- | "fine craftsmanship." | + | "furniture", "tables", "chairs", "barstools", "table", "chair", "barstool" |
- | })}), | + | }), |
- | Abstract_Item_Attach_Description : ([ | + | ]), |
- | Description_Type : Description_Type_Simple, | + | Abstract_Item_Descriptions : ({({ |
- | Description_Content : ({ | + | ({ 't', 0 }), "is all of the same make and style, spartan and durable, but not without some of the beauty of", |
- | Description(([ | + | Description(Description_Type_Craftsmanship_Name), |
- | Description_Type : Description_Type_Element_Name, | + | "craftsmanship.", |
- | Description_Content : "tables, chairs, and barstools", | + | })}), |
- | ])), | + | Abstract_Item_Attach_Description : ([ |
- | "furnish the room", | + | Description_Type : Description_Type_Simple, |
- | }), | + | Description_Content : ({ |
- | Description_Order : Description_Order_Early, | + | Description(([ |
- | ]), | + | Description_Type : Description_Type_Element_Name, |
- | Abstract_Item_Elements : ({ | + | Description_Content : "tables, chairs, and barstools", |
- | ([ | + | ])), |
- | Element_Type : Material_Oak, | + | "furnish the room", |
- | Element_Color : "black", | + | }), |
- | ]), | + | Description_Order : Description_Order_Early, |
- | }), | + | ]), |
- | ])); | + | Abstract_Item_Elements : ({ |
- | add_abstract_item(([ | + | ([ |
- | Abstract_Item_Identity : ([ | + | Element_Type : Material_Oak, |
- | Identity_Adjectives : ({ "sparkling" }), | + | Element_Color : "black", |
- | Identity_Nouns : ({ "lantern", "light" }), | + | ]), |
- | ]), | + | }), |
- | Abstract_Item_Descriptions : ({({ | + | Abstract_Item_Craft : Craft_Excellent, |
- | ({ 't', 0 }), "is of traditional design, designed to take", | + | ])); |
- | "oil and burn with fire, but has been enchanted by someone", | + | add_abstract_item(([ |
- | "to burn with a crackling glow that shoots", | + | Abstract_Item_Identity : ([ |
- | "off dazzling white sparks. It hangs from", | + | Identity_Adjectives : ({ "sparkling" }), |
- | "the ceiling by", 'a', | + | Identity_Nouns : ({ "lantern", "light" }), |
- | Description(([ | + | ]), |
- | Description_Type : Description_Type_Element_Name, | + | Abstract_Item_Descriptions : ({ |
- | Description_Index : ([ | + | ({ |
- | Element_Part : Part_Binding, | + | ({ 't', 0 }), "is of traditional design, designed to take oil and burn with fire, but has been enchanted by " |
- | ]), | + | "someone to burn with a {{sparkling white}crackling glow} that shoots off {{bright white}dazzling white sparks}.", |
- | Description_Content : "string", | + | }), |
- | ])), | + | ({ |
- | + | ({ 'p', 0 }), ({ "hang", }), "from the ceiling by", | |
- | })}), | + | ({ 'a', |
- | Abstract_Item_Attach_Description : ([ | + | Description(([ |
- | Description_Type : Description_Type_Simple, | + | Description_Type : Description_Type_Element_Name, |
- | Description_Content : ({ | + | Description_Index : ([ |
- | ({ 'a', 0 }), "hangs from the center of the ceiling,", | + | Element_Part : Part_Binding, |
- | "casting the room in a stark, flickering illumination", | + | ]), |
- | }), | + | Description_Content : "string", |
- | Description_Order : Description_Order_Early, | + | ])), |
- | ]), | + | }), |
- | Abstract_Item_Elements : ({ | + | ".", |
- | ([ | + | }), |
- | Element_Type : Material_Paper, | + | }), |
- | Element_Color : "white", | + | Abstract_Item_Attach_Description : ([ |
- | ]), | + | Description_Type : Description_Type_Simple, |
- | ([ | + | Description_Content : ({ |
- | Element_Type : Material_Hemp, | + | ({ 'a', 0 }), "hangs from the center of the ceiling, casting the room in a {{sparkling white}stark, flickering " |
- | Element_Color : "gray", | + | "illumination}", |
- | Element_Part : Part_Binding, | + | }), |
- | Element_Proportion : 0.1, | + | Description_Order : Description_Order_Early, |
- | Element_Form : Form_String, | + | ]), |
- | Element_Flags : Element_Flag_Secondary, | + | Abstract_Item_Elements : ({ |
- | ]), | + | ([ |
- | ([ | + | Element_Type : Material_Paper, |
- | Element_Type : Material_Dweomer, | + | Element_Color : "white", |
- | Element_Color : "sparkling white", | + | ]), |
- | Element_Part : Part_Infusion, | + | ([ |
- | Element_Flags : Element_Flag_Secondary, | + | Element_Type : Material_Hemp, |
- | ]), | + | Element_Color : "gray", |
- | ([ | + | Element_Part : Part_Binding, |
- | Element_Type : Material_Light, | + | Element_Proportion : 0.1, |
- | Element_Color : "sparkling white", | + | Element_Form : Form_String, |
- | Element_Part : Part_Setting, | + | Element_Flags : Element_Flag_Secondary, |
- | Element_Flags : Element_Flag_Secondary, | + | ]), |
- | ]), | + | ([ |
- | }), | + | Element_Type : Material_Dweomer, |
- | ])); | + | Element_Color : "sparkling white", |
- | add_description(([ | + | Element_Part : Part_Infusion, |
- | Description_Type : Description_Type_Simple, | + | Element_Flags : Element_Flag_Secondary, |
- | Description_Content : ({ | + | ]), |
- | "The decor of the room is overall elegant and esthetically unified,", | + | ([ |
- | "deliberately muted in color with a few riches for adornment,", | + | Element_Type : Material_Light, |
- | "with only the crude", | + | Element_Color : "sparkling white", |
- | Description(([ | + | Element_Part : Part_Setting, |
- | Description_Type : Description_Type_Element_Subdescription, | + | Element_Flags : Element_Flag_Secondary, |
- | Description_Index : Element(([ Element_Type : Material_Iron ])), | + | ]), |
- | ])), | + | }), |
- | "of the walls serving as a reminder of the harsh exterior architecture." | + | ])); |
- | }), | + | add_description(([ |
- | Description_Order : Description_Order_Slightly_Early, | + | Description_Type : Description_Type_Simple, |
- | ])); | + | Description_Content : ({ |
- | add_exit("out", Spilskinanke_Room("spil_-1_-1_-3")); | + | "The decor of the room is overall elegant and esthetically unified, deliberately muted in color with a few riches for " |
- | add_door("out", Spilskinanke_Misc("white_sprite_door")); | + | "adornment, with only the crude", |
- | add_realm("Spilskinanke_White_Sprite"); | + | Description(([ |
- | add_realm("Spilskinanke_Business"); | + | Description_Type : Description_Type_Element_Subdescription, |
+ | Description_Index : ([ | ||
+ | Element_Type : Material_Iron, | ||
+ | ]), | ||
+ | ])), | ||
+ | "of the walls serving as a reminder of the harsh exterior architecture.", | ||
+ | }), | ||
+ | Description_Order : Description_Order_Slightly_Early, | ||
+ | ])); | ||
+ | add_exit(Direction_Out, Spilskinanke_Room("spil_-1_-1_-3")); | ||
+ | add_door(Direction_Out, Spilskinanke_Misc("white_sprite_door")); | ||
+ | add_realm("Spilskinanke_White_Sprite"); | ||
+ | add_realm("Spilskinanke_Business"); | ||
} | } | ||
Revision as of 15:52, 13 February 2010
Here's a little "test" of what it's like being a developer.
Here's a room description:
The inner walls of the room are composed of irregular triangular iron slabs that form a large circle with dome-like slope to the ceiling. A long white gold bar curves around the edge of half the room. Black oak tables, chairs, and barstools furnish the room. A sparkling paper lantern hangs from the center of the ceiling, casting the room in a stark, flickering illumination. The decor of the room is overall elegant and esthetically unified, deliberately muted in color with a few riches for adornment, with only the crude iron of the walls serving as a reminder of the harsh exterior architecture.
Pretty simple. Here's the code for that room description:
void configure() { ::configure(); set_code("the White Sprite"); set_short("the {{bright white}White Sprite Bar and Grill}"); add_abstract_item(([ Abstract_Item_Identity : ([ Identity_Adjectives : ({ "solid" }), Identity_Nouns : ({ "walls", "wall" }), ]), Abstract_Item_Descriptions : ({ ({ ({ 't', 0, }), "are thick and well-interlocked, for the most part hiding the motley exterior.", }), ({ "What few gaps there are let in the {{black}shadows} cast by the {{random, random, random, and random}light of " "strange chaotic energies} playing across the {{gray}metal scraps} and {{copper}twisted wires} that hold this " "place together.", }), }), Abstract_Item_Attach_Description : ([ Description_Type : Description_Type_Simple, Description_Content : ({ "The inner walls of the room are composed of", Description(([ Description_Type : Description_Type_Element_Name, Description_Content : ({ "irregular triangular", "slabs" }), ])), "that form a large circle with dome-like slope to the ceiling." }), Description_Order : Description_Order_Early, ]), Abstract_Item_Elements : Material_Iron, ])); add_abstract_item(([ Abstract_Item_Identity : ([ Identity_Adjectives : ({ "long" }), Identity_Nouns : ({ "bar" }), ]), Abstract_Item_Descriptions : ({ ({ "The bar is made of the same", Description(Description_Type_Element_Subdescription), "and", Description(Description_Type_Craftsmanship_Name), "craftsmanship as the door.", }), ({ ({ 'r', 0, "edges" }), "are lightly etched with depictions of sprites of various poses and likenesses.", }), }), Abstract_Item_Attach_Description : ([ Description_Type : Description_Type_Simple, Description_Content : ({ ({ 'a', 0 }), "curves around the edge of half the room", }), Description_Order : Description_Order_Early, ]), Abstract_Item_Elements : ({ ([ Element_Type : Material_Gold, Element_Color : "white", ]), }), Abstract_Item_Craft : Craft_Excellent, ])); add_abstract_item(([ Abstract_Item_Identity : ([ Identity_Nouns : ({ "furniture", "tables", "chairs", "barstools", "table", "chair", "barstool" }), ]), Abstract_Item_Descriptions : ({({ ({ 't', 0 }), "is all of the same make and style, spartan and durable, but not without some of the beauty of", Description(Description_Type_Craftsmanship_Name), "craftsmanship.", })}), Abstract_Item_Attach_Description : ([ Description_Type : Description_Type_Simple, Description_Content : ({ Description(([ Description_Type : Description_Type_Element_Name, Description_Content : "tables, chairs, and barstools", ])), "furnish the room", }), Description_Order : Description_Order_Early, ]), Abstract_Item_Elements : ({ ([ Element_Type : Material_Oak, Element_Color : "black", ]), }), Abstract_Item_Craft : Craft_Excellent, ])); add_abstract_item(([ Abstract_Item_Identity : ([ Identity_Adjectives : ({ "sparkling" }), Identity_Nouns : ({ "lantern", "light" }), ]), Abstract_Item_Descriptions : ({ ({ ({ 't', 0 }), "is of traditional design, designed to take oil and burn with fire, but has been enchanted by " "someone to burn with a {{sparkling white}crackling glow} that shoots off {{bright white}dazzling white sparks}.", }), ({ ({ 'p', 0 }), ({ "hang", }), "from the ceiling by", ({ 'a', Description(([ Description_Type : Description_Type_Element_Name, Description_Index : ([ Element_Part : Part_Binding, ]), Description_Content : "string", ])), }), ".", }), }), Abstract_Item_Attach_Description : ([ Description_Type : Description_Type_Simple, Description_Content : ({ ({ 'a', 0 }), "hangs from the center of the ceiling, casting the room in a {{sparkling white}stark, flickering " "illumination}", }), Description_Order : Description_Order_Early, ]), Abstract_Item_Elements : ({ ([ Element_Type : Material_Paper, Element_Color : "white", ]), ([ Element_Type : Material_Hemp, Element_Color : "gray", Element_Part : Part_Binding, Element_Proportion : 0.1, Element_Form : Form_String, Element_Flags : Element_Flag_Secondary, ]), ([ Element_Type : Material_Dweomer, Element_Color : "sparkling white", Element_Part : Part_Infusion, Element_Flags : Element_Flag_Secondary, ]), ([ Element_Type : Material_Light, Element_Color : "sparkling white", Element_Part : Part_Setting, Element_Flags : Element_Flag_Secondary, ]), }), ])); add_description(([ Description_Type : Description_Type_Simple, Description_Content : ({ "The decor of the room is overall elegant and esthetically unified, deliberately muted in color with a few riches for " "adornment, with only the crude", Description(([ Description_Type : Description_Type_Element_Subdescription, Description_Index : ([ Element_Type : Material_Iron, ]), ])), "of the walls serving as a reminder of the harsh exterior architecture.", }), Description_Order : Description_Order_Slightly_Early, ])); add_exit(Direction_Out, Spilskinanke_Room("spil_-1_-1_-3")); add_door(Direction_Out, Spilskinanke_Misc("white_sprite_door")); add_realm("Spilskinanke_White_Sprite"); add_realm("Spilskinanke_Business"); }
If every time you want a four sentence description, you're willing to do all that, then maybe, just maybe, you can consider being a developer.