More wedding stuff!
[mudsync.git] / worlds / bricabrac.scm
index b3ff7e0ec95694a787807e205f30cd4308c2abb3..1f8995b8153436058db00bb9f2b50cbd49ea616a 100644 (file)
@@ -2364,6 +2364,170 @@ Photo | | | |_| :  Dance   :  .|_|.  | Cake
             |      Entrance   |
             '-----------------'")
 
+
+(define-class <semi-edible-chatty-npc> (<chatty-npc>)
+  (commands
+   #:allocation #:each-subclass
+   #:init-thunk (build-commands
+                (("eat") ((direct-command cmd-eat)))))
+  (eat-catchphrase
+   #:init-keyword #:eat-catchphrase
+   #:accessor .eat-catchphrase
+   #:init-value "Should you really eat this?")
+  (actions #:allocation #:each-subclass
+           #:init-thunk
+           (build-actions
+            (cmd-eat cmd-eat-semi-edible-chatty-npc))))
+
+(define* (cmd-eat-semi-edible-chatty-npc actor message #:key direct-obj)
+  (<- (message-from message) 'tell
+      #:text (.eat-catchphrase actor)))
+
+(define-class <dancers> (<chatty-npc>)
+  (commands
+   #:allocation #:each-subclass
+   #:init-thunk (build-commands
+                (("dance") ((direct-command cmd-dance)))))
+  (actions #:allocation #:each-subclass
+           #:init-thunk
+           (build-actions
+            (cmd-dance cmd-dance-dancers))))
+
+(define* (cmd-dance-dancers actor message #:key direct-obj)
+  (define player (message-from message))
+  (define player-loc (mbody-val (<-wait player 'get-loc)))
+  (define player-name (mbody-val (<-wait player 'get-name)))
+  (<- (message-from message) 'tell
+      #:text '((p "You join in dancing with the dancers.  You spin and
+get woozy... you feel wonderful... like you could dance forever...")
+              (p "You step out just in time, lest you be caught in
+the dancing for eternity!")))
+  (<- player-loc 'tell-room
+      #:text `((p ,player-name " begins dancing with the fairies and
+spins around and around... as if they might dance forever!")
+              (p "But " ,player-name " steps back just in time!
+Their eyes are cloudy and woozy, but they look happy..."))
+      #:exclude player))
+
+(define-class <swing> (<gameobj>)
+  (commands
+   #:allocation #:each-subclass
+   #:init-thunk (build-commands
+                (("sit" "swing") ((direct-command cmd-swing)))))
+  (actions #:allocation #:each-subclass
+           #:init-thunk
+           (build-actions
+            (cmd-swing cmd-swing-on-swing))))
+
+(define* (cmd-swing-on-swing actor message #:key direct-obj)
+  (define player (message-from message))
+  (define player-loc (mbody-val (<-wait player 'get-loc)))
+  (define player-name (mbody-val (<-wait player 'get-name)))
+  (<- (message-from message) 'tell
+      #:text '((p "You swing on the swing and feel younger again
+as you rock to the motion, as if your movements resemble your
+traversal through the flow of time itself.  You feel happy.")))
+  (<- player-loc 'tell-room
+      #:text `((p ,player-name " looks very happy as they swing
+on the swing."))
+      #:exclude player))
+
+(define-actor <cake> (<semi-edible-chatty-npc>)
+  ((cmd-take cake-cmd-take)))
+
+(define-actor <slice-of-cake> (<gameobj>)
+  ((cmd-nibble slice-of-cake-cmd-nibble)
+   (cmd-eat slice-of-cake-cmd-eat))
+  (contained-commands
+   #:allocation #:each-subclass
+   #:init-thunk (build-commands
+                 ("nibble" ((direct-command cmd-nibble)))
+                 ("eat" ((direct-command cmd-eat)))))
+  
+  (bites-left #:init-value 4
+              #:accessor .bites-left)
+  (name #:init-value "a slice of cake")
+  (take-me? #:init-value #t)
+  (goes-by #:init-value '("slice of cake" "slice" "slice of wedding cake"
+                         "piece of cake" "piece of wedding cake"))
+  (desc #:init-value "It's a slice of wedding cake!  You could nibble on it
+or just plain eat it!"))
+
+(define (slice-of-cake-cmd-eat slice-of-cake message . _)
+  (define player (message-from message))
+  (define player-loc (mbody-val (<-wait player 'get-loc)))
+  (define player-name (mbody-val (<-wait player 'get-name)))
+  (<- player 'tell
+      #:text "You wolf down your piece of wedding cake all at once like some
+kind of hungry animal!  You're making a huge mess!")
+  (<- player-loc 'tell-room
+      #:text `(,player-name
+               " wolfs down a piece of wedding cake all at once!
+They're making a huge mess!")
+      #:exclude player)
+  (gameobj-self-destruct slice-of-cake))
+
+(define (slice-of-cake-cmd-nibble slice-of-cake message . _)
+  (define player (message-from message))
+  (define player-loc (mbody-val (<-wait player 'get-loc)))
+  (define player-name (mbody-val (<-wait player 'get-name)))
+  (set! (.bites-left slice-of-cake) (- (.bites-left slice-of-cake) 1))
+  (<- player 'tell
+      #:text "You take a nibble of your piece of wedding cake.
+How dignified!")
+  (<- player-loc 'tell-room
+      #:text `(,player-name
+               " takes a nibble of their piece of wedding cake.
+How dignified!")
+      #:exclude player)
+  (when (= (.bites-left slice-of-cake) 0)
+    (<- player 'tell
+        #:text "You've finished your slice of wedding cake!")
+    (<- player-loc 'tell-room
+        #:text `(,player-name
+                 " finishes their slice of wedding cake!")
+        #:exclude player)
+    (gameobj-self-destruct slice-of-cake)))
+
+(define* (cake-cmd-take gameobj message
+                        #:key direct-obj
+                        (player (message-from message)))
+  (create-gameobj <slice-of-cake> (gameobj-gm gameobj)
+                  player)  ;; set loc to player to put in player's inventory
+  (<- player 'tell
+      #:text '((p "You slice off a piece of the tiered wedding cake.
+The cake fills itself back in as if by magic!  Oh no, it's not alive, is it?")
+              (p "You take the slice of wedding cake with you.")))
+  (<- (gameobj-loc gameobj) 'tell-room
+        #:text `(,(mbody-val (<-wait player 'get-name))
+                 " slices off a piece of the cake and the cake fills itself
+back in!  How strange!")
+        #:exclude player))
+
+(define-class <flowers> (<gameobj>)
+  (commands
+   #:allocation #:each-subclass
+   #:init-thunk (build-commands
+                (("smell" "sniff") ((direct-command cmd-smell)))))
+  (actions #:allocation #:each-subclass
+           #:init-thunk
+           (build-actions
+            (cmd-smell flowers-cmd-smell))))
+
+(define* (flowers-cmd-smell actor message #:key direct-obj)
+  (define player (message-from message))
+  (define player-loc (mbody-val (<-wait player 'get-loc)))
+  (define player-name (mbody-val (<-wait player 'get-name)))
+  (<- (message-from message) 'tell
+      #:text '((p "You smell the flower and... whoa.  Wait.  What kind
+of flower is this?")
+              (p "You teeter as the room spins and then politely
+re-orients itself.")))
+  (<- player-loc 'tell-room
+      #:text `((p ,player-name " smells the flower and teeters around
+a bit."))
+      #:exclude player))
+
 (define wedding
   (lol
    ;; Courtyard
@@ -2421,6 +2585,7 @@ To the south is the forest."))
          (make <exit>
            #:name "north"
            #:to 'vaulted-tunnel)))
+   
    ;; map
    ('wedding-entrance:map
     <readable> 'wedding-entrance
@@ -2464,6 +2629,8 @@ At the center is a dance floor where fairies are dancing in rows of
 concentric circles. The lights that appear in unstructured smatterings
 throughout the mystical space have formed themselves into an elaborate
 chandelier above the dancers.")
+      (p "There are green tables and blue tables surrounding the dancers.
+Various creatures are sitting at them, sitting champagne, and laughing.")
       (p "To the south the trees intertwine forming an entrance.
 The ballroom extends in every other cardinal direction."))
     #:exits
@@ -2491,15 +2658,56 @@ The ballroom extends in every other cardinal direction."))
          (make <exit>
            #:name "northwest"
            #:to 'fairy-go-round)))
+   ('dance-floor:dancers
+    <dancers> 'dance-floor
+    #:name "some dancers"
+    #:desc
+    '((p "They dance at a frantic pace, moving too quickly to get any idea of how many of them there are what they look like.")
+      (p "You could dance with one of them, should you so dare.
+But remember what your parents warned you about dancing fairires..."))
+    #:chat-format (lambda _ "You try talking to the dancers.  They
+laugh and tell you that you should join in the dance with them!  Do you
+dare to do it?  You've vaguely heard about people being lost in time...")
+    #:catchphrases
+    '("Dance with us!  Dance!"
+      "You should be dancing!"
+      "There is nothing but the dance, the dance!")
+    #:goes-by
+    '("some dancers" "dancer" "dancers" "fairy" "fairies"))
+   ('dance-floor:green-table
+    <furniture> 'dance-floor
+    #:name "a green table"
+    #:desc "Each table is draped with layers of gossamer cloth in shades of green. The places are set with translucent china with cups the shape of tulips. The rose gold tableware is decorated with a delicate vine pattern snaking up the handles. In the center of the table is an elaborate arrangement of mauve roses and white lilies."
+    #:goes-by '("green table" "table")
+    #:sit-phrase "pull up a chair at"
+    #:sit-phrase-third-person "pulls up a chair at"
+    #:sit-name "a green table")
+   ('dance-floor:blue-table
+    <furniture> 'dance-floor
+    #:name "a blue table"
+    #:desc "Each table is draped with layers of gossamer cloth in shades of blue. The places are set with translucent china with cups the shape of lotus blossoms. The silver tableware is decorated with a delicate vine pattern snaking up the handles. In the center of the table is an elaborate arrangement of delphiniums and irises."
+    #:goes-by '("blue table")
+    #:sit-phrase "pull up a chair at"
+    #:sit-phrase-third-person "pulls up a chair at"
+    #:sit-name "a blue table")
+   ('dance-floor:chandelier
+    <gameobj> 'dance-floor
+    #:name "a chandelier"
+    #:desc
+    "The chandelier is beautiful with many lovely gems hanging from it.
+Light bounces through it and seems to dance through the room just as much
+as the fairies below it."
+    #:goes-by
+    '("chandelier"))
    ('banquet
     <room> #f
-    #:name "Banquet Hall"
+    #:name "A Lovely Banquet"
     #:desc
-    ;; TODO: The brownie disappears when you look directly at it.
     '((p "A large banquet table fills this space.
 Out of the corner of your eye you see a brownie tidying up the
 table while eating brownies.")
-      (p "An ornate set of stairs moves"))
+      (p "An ornate set of stairs goes up and into the distance.
+The ballroom extends to the west, south, and east."))
     #:exits
     (list (make <exit>
            #:name "south"
@@ -2519,6 +2727,46 @@ table while eating brownies.")
          (make <exit>
            #:name "up"
            #:to 'the-stairs)))
+   ('banquet:brownie
+    <semi-edible-chatty-npc> 'banquet
+    #:chat-format (lambda _ "The brownie disappears when you try to
+talk to her!  But she reappears once you stop talking.")
+    #:eat-catchphrase "The brownie shrieks with surprise as you try
+to eat her! She swats you away!"
+    #:name "a brownie"
+    #:desc "The brownie disappears out of sight when you try to
+look directly at her!  However if you look just off to the side you
+can see her positively devouring that plate of brownies."
+    #:take-me? (lambda _
+                 (values #f
+                         #:why-not
+                         `("The brownie swats your hand away when you try to take her!")))
+    #:goes-by '("brownie"))
+   ('banquet:brownies
+    <semi-edible-chatty-npc> 'banquet
+    #:chat-format (lambda _ "You try to chat with the brownies but
+they are inanimate!  The brownie looks at you strangely from the corner
+of her eye.  She's clearly judging you.")
+    #:eat-catchphrase "You reach forward to eat one of the brownies,
+but the brownie snarls at you and you think better of it.  Best to leave them
+to her."
+    #:name "brownies"
+    #:desc "It's a plate of brownies.  They look delicious and you desperately
+wish to eat one."
+    #:take-me? (lambda _
+                 (values #f
+                         #:why-not
+                         `("The brownie swats your hand away when you try to take
+one of the brownies!  She leans over the plate of brownies protectively!")))
+    #:goes-by '("brownies" "plate of brownies"))
+   ('banquet:stairs
+    <gameobj> 'banquet
+    #:name "the stairs"
+    #:invisible? #t
+    #:desc "From here it's clearly a nice set of stairs.
+But you get the impression that to really see the stairs, you
+should go upward and get a view from on the stairs themselves."
+    #:goes-by '("stairs" "stairwell" "stairwell entrance"))
    ('banquet:banquet-table
     <gameobj> 'banquet
     #:name "a banquet table"
@@ -2532,7 +2780,8 @@ exotic dishes in bowls and platters in the shapes of various flowers."
     #:desc
     '((p "An orchestra of fairies plays the high-tempo ethereal music
 for the frenzied dancers. In the back is a harpsichord, accompanied
-by various fiddles, a cello, a harp, and a flute."))
+by various fiddles, a cello, a harp, and a flute.")
+      (p "The ballroom extends to the west and south."))
     #:exits
     (list (make <exit>
            #:name "west"
@@ -2543,12 +2792,40 @@ by various fiddles, a cello, a harp, and a flute."))
          (make <exit>
            #:name "south"
            #:to 'cake-wing)))
+   ('orchestra:orchestra
+    <chatty-npc> 'orchestra
+    #:name "the orchestra"
+    #:desc
+    '((p "The orchestra members are playing their songs.  The music
+and their instruments seem as much a part of them as their bodies."))
+    #:goes-by
+    '("orchestra" "fairies"))
+   ('orchestra:instruments
+    <chatty-npc> 'orchestra
+    #:name "instruments"
+    #:desc
+    '((p "Each instrument seems beautifully made, the best of its kind.
+But you sense that only the most skilled players could play them."))
+    #:take-me?
+    (lambda _
+      (values #f
+              #:why-not
+              `((p "No way.  Are you kidding me?  They're playing those
+instruments right now!  Rude."))))
+    #:goes-by
+    '("instrument" "instruments"
+      "hapsichord" "hapsichords"
+      "harp" "harps"
+      "flute" "flutes"
+      "fiddle" "fiddles"
+      "cello" "cellos"))
    ('cake-wing
     <room> #f
     #:name "The Cake Wing"
     #:desc
     '((p "A large tree stump sits in the middle of the space with a
-massive tiered cake atop it."))
+massive tiered cake atop it.")
+      (p "The ballroom extends to the north, west, and south."))
     #:exits
     (list (make <exit>
            #:name "north"
@@ -2564,22 +2841,36 @@ massive tiered cake atop it."))
            #:to 'flower-field)))
    ;; TODO: You should be able to take a slice of cake
    ('cake-wing:cake
-    <gameobj> 'cake-wing
+    <cake> 'cake-wing
     #:name "the wedding cake"
+    #:chat-format (lambda _ '((p "Okay the wedding cake seems kinda
+alive, but it doesn't seem "
+                                (i "that")
+                                " alive.")))
     #:desc "The lowest tier is a dark green with a fondant vine
 scrolling around it. The second tier is light blue with delphiniums
 painted onto it and mauve fondant roses lining the transition between
 the tiers. The third tier is sky blue, with clouds painted onto the
 frosting. The cake is topped with figurines of four fairies dancing
 in a circle."
-    #:goes-by '("wedding cake" "cake"))
+    #:eat-catchphrase "You think about just eating the cake right here
+and now, but it seems rude."
+    #:goes-by '("wedding cake" "cake" "tiered cake" "tiered wedding cake"))
+   ('cake-wing:stump
+    <gameobj> 'cake-wing
+    #:name "a tree stump"
+    #:invisible? #t
+    #:desc "The cake's sitting on the tree stump.  Otherwise else there's
+not too much to say about this thing."
+    #:goes-by '("stump" "tree stump"))
    ('flower-field
     <room> #f
     #:name "Field of Flowers"
     #:desc
     '((p "A field of wildflowers stretches out before you, far further
 than the confines of the space you saw from the outside. Groups of fairies
-are frolicking about."))
+are frolicking about.")
+      (p "The ballroom extends to the north."))
     #:exits
     (list (make <exit>
            #:name "north"
@@ -2587,6 +2878,28 @@ are frolicking about."))
          (make <exit>
            #:name "northwest"
            #:to 'dance-floor)))
+   ('flower-field:fairies
+    <chatty-npc> 'flower-field
+    #:name "group of fairies"
+    #:chat-format (lambda _
+                   '((p "You try chatting with these fairies but they seem
+kinda unresponsive.  Wait, just what kinds of flowers are these?")))
+    #:desc "There really are just like, a ton of fairies around here aren't
+there?  Anyway these ones are really into these flowers, like, *really* into
+them."
+    #:goes-by '("fairies" "some fairies" "group of fairies"))
+   ('flower-field:flowers
+    <flowers> 'flower-field
+    #:name "flowers"
+    #:desc "The flowers are beautiful... they're also fragrant..."
+    #:take-me?
+    (lambda _
+      (values #f
+              #:why-not
+              `((p "That's not a good idea.  Just look at how much work went
+into this place.  No way... the wedding planner would probably kill you.")
+               (p "I mean, not literally.  Okay, maybe literally."))))
+    #:goes-by '("flowers" "flower"))
    ('playground
     <room> #f
     #:name "Playground"
@@ -2595,7 +2908,8 @@ are frolicking about."))
 playing. Vines hang from the boughs above forming swings of varying
 heights and sizes. Young fairies climb up an obliging maple tree and
 use the helicopter seeds to float back to the ground. An enchanted
-see-saw hovers a foot from the soft grass below."))
+see-saw hovers a foot from the soft grass below.")
+      (p "The ballroom extends to the north."))
     #:exits
     (list (make <exit>
            #:name "north"
@@ -2603,6 +2917,13 @@ see-saw hovers a foot from the soft grass below."))
          (make <exit>
            #:name "northeast"
            #:to 'dance-floor)))
+   ('playground:swing
+    <swing> 'playground
+    #:name "a swing"
+    #:desc "There's an open swing here you could swing on.  It sways
+back and forth gently.  You feel as if to sit on it would help you
+feel younger again, to experience time itself..."
+    #:goes-by '("swing"))
    ('photo-booth-wing
     <room> #f
     #:name "The Photo Booth Wing"
@@ -2610,7 +2931,8 @@ see-saw hovers a foot from the soft grass below."))
     '((p "There is a photographer with A Victorian bellows camera for guests to
 have their portrait taken. The trunks of the trees lining this section
 are covered in photographs of fairies and historical fairy
-‘hoaxes’."))
+‘hoaxes’.")
+      (p "The ballroom extends to the north, east, and south."))
     #:exits
     (list (make <exit>
            #:name "north"
@@ -2657,7 +2979,8 @@ and a magical glow suffuses everything."
     #:desc
     '((p "A large carousel fills the space. The seating arrangement alternates
 between vine swings that move up and down and large mums that serve as
-stools."))
+stools.")
+      (p "The ballroom extends to the east and south."))
     #:exits
     (list (make <exit>
            #:name "east"
@@ -2674,25 +2997,37 @@ stools."))
     #:desc
     '((p "A grand staircase springs from the ground, the twisting branches and
 vines woven into an ornate pattern up the balustrade. At the foot of
-the stairs is a fairy dreamily looking up at them."))
+the stairs is a fairy dreamily looking up at them.")
+      (p "The stairwell's entrance from the ballroom goes down.  Looking
+up fills you with a sense of wonder as the stairs open into the canopy above."))
     #:exits
     (list (make <exit>
            #:name "up"
-           #:to 'wedding-canopy)
+           #:to 'canopy)
          (make <exit>
            #:name "down"
            #:to 'banquet)))
    ('the-stairs:fairy
     <chatty-npc> 'the-stairs
     #:name "a serene young fairy"
-    #:desc "You suppose there's a person under the drapery of the
-camera somewhere, though all you can see are his legs."
+    #:desc "A serene, young fairy wearing a long gossamer dress.
+She stares upwards at the stairs, in true wonder."
     #:goes-by '("serene young fairy" "serene fairy" "fairy" "young fairy")
     #:catchphrases
-    '("Alright, smile for me real big everyone!"
-      "It's real difficult to get fairies to sit still enough to take
-a clear photo of them.  That's my specialty... and it's still tough, heh."
-      ))   
+    '("The stairs, just look at those stairs!"
+      "I'd like to thank everyone who made this possible... and most
+importantly... I'd like to thank the stairs."
+      "What a beautiful mind... what a beautiful mind must have made
+these stairs."
+      "They go on, and upward, the stairs... they're so... beautiful..."))
+   ('the-stairs:stairs
+    <gameobj> 'the-stairs
+    #:name "the stairs"
+    #:desc "They're some beautiful stairs all right.  Whoever made these
+must have been an incredible architect.  Entrancing... maybe too entrancing.
+You fear that if you look at them too long, you might risk not being
+able to think of anything else."
+    #:goes-by '("stairs"))
    ('canopy
     <room> #f
     #:name "The Canopy"
@@ -2705,6 +3040,22 @@ around."))
     (list (make <exit>
            #:name "down"
            #:to 'the-stairs)))
+   ('canopy:pair-of-cats
+    <chatty-npc> 'canopy
+    #:name "a pair of cats"
+    #:desc
+    '((p "These cats are very well dressed!  They're both wearing top
+hats.  They are somewhat gender ambiguous but one seems to lean more
+feminine and the other one leans more masculine.  They look delighted
+from the festivities but also exhausted, as if the party was for them,
+but also as if they planned the whole thing, or whether they're just
+representationally appearing to fill such roles."))
+    #:catchphrases
+    '("Oh yes... hello!  This was a fun time."
+      "It's nice to get away and be here at the same time."
+      "Later maybe we'll have a nice vacation."
+      "Twice is twice as nice, right?")
+    #:goes-by '("cat" "cats" "pair of cats"))
 
 ;;    ('ballroom
 ;;     <room> #f