diff --git a/moss-n-puddles.org b/moss-n-puddles.org
index db56235..64b9d73 100644
--- a/moss-n-puddles.org
+++ b/moss-n-puddles.org
@@ -83,7 +83,7 @@ I can then log in, perhaps using [[https://github.com/blightmud/blightmud][Bligh
** Shell
Start the shell to test Python changes in a REPL. Note: If the Evennia /virtual environment/ contains =ipython=, it can use it as its shell.
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC sh :tangle no
evennia shell
#+end_src
@@ -104,21 +104,21 @@ The first character is special, as it can really /own/ the server. I don’t use
An avatar in the original sense of a housing for a god-like entity.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@name self = Avatar
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@setdesc A translucent being of light and energy. The surrounding world seems vivid and vibrant as it basks in the radience.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@sdesc angelic being
#+END_SRC
And to pose:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
py self.db.pose = True
#
pose looking awesome
@@ -156,7 +156,7 @@ I also thought they could type =help start=, to see, but this is easier to [[fil
#+end_example
** Map Locations
-#+begin_src pikchr :file moss-n-puddles-map.svg :results file :exports both :dark-mode
+#+BEGIN_SRC pikchr :file moss-n-puddles-map.svg :results file :exports both :dark-mode
# bgcolor = 0x1d2021
# fgcolor = 0xeeeeee
@@ -383,7 +383,7 @@ The testing account is currently the =guest= account:
Note that creating the testing character is not sufficient in and of itself (works the first time, obviously), but while it is logged in, we need to give the command:
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@teleport/quiet mp01
#
@set goblin/guest_account = True
@@ -456,13 +456,13 @@ Let’s get building this world!
** The Grove of the Matriarchs
Rename the Limbo (or starting place) with the name *Grove of the Matriarchs*. Note the term =mp01= as a global label that matches my map. My original term for “forest” is too general, as it sounds like the place should be /named/ with some sort of title.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@name here = Grove of the Matriarchs;mp01
#+END_SRC
The description will take advantage of the /seasons/ and /times/ of the day:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc here = A giant, moss-covered |Yboulder|n hides a |Yhollow recess|n as it stands among immense |Ytrees|n that etch the sky and slice the clouds in the darkening twilightawakening dawnlazy afternoonnight sky. With the morning light, you can hear the dawn chorus of birdsThe afternoon breeze carries the buzzing of insects around giant colorful |Yflowers|nYou can't hear much now as most of the forest creatures are settling down for the nightIn the darkness, you can hear crickets and an occasional owl. A footpath winds around the giant, moss-covered tree roots to the East and West. To the south, a dock juts into a lavender sea.
#+end_src
@@ -494,7 +494,7 @@ And a brief test of the time states in the output of the =look= command:
#+END_SRC
Need to add weather and time data to this:
-#+begin_src evennia
+#+BEGIN_SRC evennia
@update here = typeclasses.rooms_weather.TimeWeatherRoom
#+end_src
@@ -502,7 +502,7 @@ Derived from the original [[~/src/moss-n-puddles/.venv/lib/python3.12/site-packa
Describe the trees, flowers, and of course, the alcove:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail trees = You feel dwarfed by colossal trees whose moss-covered roots are difficult to peer over. An occassional breeze often smells of flowers and at other times earthy. While the leafy canopy hides the sky, you certainly can |wfeel|n the weather. Attribute it to pareidolia, but the bark on one particular |Ytree|n looks like a face.
#
@detail flower;flowers = Beautiful, but giant flowers look down on you and nod a friendly greeting.
@@ -579,19 +579,19 @@ And we can have our test account verify that =hint= works:
*** Puddle
With my name, I need to have an object to go with it.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop puddle : typeclasses.things.Puddle
#+END_SRC
And an elusive description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc puddle = A large puddle, formed from a recent rain shower, invites you to shed your years and |gjump|n in and splash around to reconnect with your youth.
#+END_SRC
And keep it locked down:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock puddle = get:false()
#
@set puddle/get_err_msg = "As the water slips through your fingers, you realize the apt metaphor of attempting to grasp at your youth."
@@ -613,7 +613,7 @@ And a test of our ability to jump in the puddle:
*** Sticks
I will have a script auto generate the sticks on a regular basis, but for now, let’s just make one that I can drop.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
py timed_script = evennia.create_script(
key="Create Sticks",
typeclass='typeclasses.scripts.CreateSticks',
@@ -653,7 +653,7 @@ And let’s see if the stick behaves:
*** Guest Book
Players can leave messages in this book. We’ll see how long I want to leave this.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop guest book:typeclasses.readables.WriteableBook
#
@set guest book/inside = "file:world/guest-book.md"
@@ -663,13 +663,13 @@ Players can leave messages in this book. We’ll see how long I want to leave th
Note that we don’t mention this in the area’s description.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc guest book = In a hollow recess underneath the boulder, you find a leather-bound book entitled |wGuest Book|n perched atop a giant mushroom. Protected from the elements, this natural desk includes a feather |Yquill|n and an |Yink|n |Ywell|n inviting you to |gread|n and even |gwrite|n a note for other travelers.
#+END_SRC
Can’t get it:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock guest book = get:false()
#
@set guest book/get_err_msg = "The owner designed a guest book to be read and written by guests. Pocketing it for selfish interests sort of defeats the purpose."
@@ -677,7 +677,7 @@ Can’t get it:
And some details:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail quill = The black feathered quill may once belonged to a raven, but if so, it must have been large.
#
@detail ink = Black, like the ichor of the gods ... or perhaps, someone just started a squid.
@@ -687,7 +687,7 @@ And some details:
How should the book start?
-#+begin_src markdown :tangle ~/src/moss-n-puddles/world/guest-book.md
+#+BEGIN_SRC markdown :tangle ~/src/moss-n-puddles/world/guest-book.md
# Introduction
For repayment of a boon, The Summer Queen granted a charter to me, The
@@ -781,13 +781,13 @@ When we look at something hidden, i.e. the /thing/ has a view lock of a particul
To use this to hide an object, add the following lock:
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@lock thing = view:tag(hidden_thing)
#+END_SRC
Where /thing/ is the single name of the hidden object. Find the code [[file:~/src/moss-n-puddles/typeclasses/objects.py::o][in objects.py]].
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@create/drop duck
@set duck/hidden_tag = "hidden_ducky"
@lock duck = view:tag(hidden_ducky)
@@ -802,50 +802,50 @@ Where /thing/ is the single name of the hidden object. Find the code [[file:~/sr
*** Boulder
More details about the room that describes aspects of the boulder in the =desc= above. First, the symbol:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail symbol = You move an ivy runner to see three curves join together as if it were three legs.
#+END_SRC
The moss is purdy:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail moss = "Even in this light, the moss radiates a surreal color of green."
#+END_SRC
And the ivy is … uh.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail ivy = "You see...well, ivy. Uhm, it's green, and..."
#+END_SRC
The runes use multi-byte Unicode which screws up the =telnet= client.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail runes;rune = The runes read ᛞ ᚪ ᛒ ᛚ ᚱ
#+END_SRC
The top of the boulder should be another room, accessible by the =climb=, but maybe it isn’t “seen” until the boulder has been looked? First, we put some weather at the top of the boulder:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@dig Boulder Top;mp02 : typeclasses.rooms_weather.TimeWeatherRoom = climb boulder;boulder;climb,climb down;climb;down
#+END_SRC
The ability to /climb/ the boulder isn’t immediately obvious, so let’s make it a bit of a secret:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc boulder = A boulder with patches of |Ymoss|n and delicate clover. A carved |Ysymbol|n and even some |Yrunes|n try to hide behind rope-like |Yvines|n and tendrils of |Yivy|n as if keeping a secret.|/|/You notice a foot hold, and then another. You can |Gclimb|n this boulder!
#+END_SRC
To take advantage of our [[Hidden Things]], we put the right tag on it:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set boulder/hidden_tag = "hidden_boulder"
#
@lock boulder = view:tag(hidden_boulder)
#+END_SRC
And give it some aliases:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@name boulder = climb the boulder;boulder;climb;climb up;climb boulder
#+END_SRC
And a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set boulder/traverse_msg = "You grab hold of some the |Yvines|n and ivy and pick your way up the boulder from one hold to another... Hrm, these vines would make a great rope."
#+END_SRC
@@ -880,24 +880,24 @@ Let’s test that the boulder (which we create in the next section), is indeed h
In case they attempt to get vines here:
Let’s make a nice spot to sit down on:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop dangling vine;vines;vine
#+END_SRC
With a nice description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc vines = Strong vines twisted to look like rope. This could be helpful.
#+END_SRC
Can’t take it here, you have to climb the boulder first:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock vines = get:false()
#
@set vines/get_err_msg = "The vines are too strong to break or cut. Perhaps they could be detached from the top of the |Yboulder|n?"
#+END_SRC
Can we hide it too?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock vines = view:tag(hidden_vines)
#
@set vines/hidden_tag = "hidden_vines"
@@ -905,7 +905,7 @@ Can we hide it too?
What about pushing and pulling messages?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set vines/pull_msg = "You pull the vines, but they don't let go. Perhaps you could detach them if you were on |wtop|n of the |Yboulder|n?"
#
@set vines/push_msg = "That doesn't seem to do much."
@@ -934,7 +934,7 @@ And the vines as well:
** Top of Boulder
Let’s jump to the top of the boulder to proceed:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp02
#+END_SRC
@@ -949,22 +949,22 @@ And to test to see if we can climb the boulder:
#+END_SRC
And the description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc here = While high, the |Ytrees|n still tower over you. Still, a nice view. Lots of patches of |Ymoss|n to |gsit|n down and relax.
#+END_SRC
More details:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail tree;trees = You feel dwarfed by colossal trees whose moss-covered roots are difficult to peer over. An occassional breeze often smells of flowers and other times earthy. While the leafy canopy hides the sky, you certainly can |wfeel|n the weather.
#+END_SRC
And a description of the climb:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc climb = The climb seemed easy, but you're not sure you can handle the footholds going the other way around.
#+END_SRC
And describe the journey:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set climb/traverse_msg = "You crawl backwards, feeling with your foot for a hold. Got it! Then another one...hoping the vines and the moss' rhizoids hold..."
#+end_src
@@ -984,33 +984,33 @@ Sitting on a patch of moss is a squirrel dressed in Buddhist monk robes with clo
#+end_example
*** Moss
Let’s make a nice spot to sit down on:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop patch of moss;moss:typeclasses.sittables.Sittable
#+END_SRC
With a nice description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc patch of moss = A cushioned patch of moss of the most vibrant green.
#+END_SRC
Can’t take the moss with you:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock patch of moss = get:false()
#+END_SRC
Can we hide it too?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock patch of moss = view:tag(hidden_moss)
#
@set patch of moss/hidden_tag = "hidden_moss"
#+END_SRC
And a lovely message about why you can’t steal moss:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set moss/get_err_msg = "The moss is a bryophyte, and as such, has attached itself to boulder by rhizoids, which are one cell thick root structures. While this helps with water absorption, you didn't think you were going to get a biology lesson, did you? tl;dr You can't get it."
#+END_SRC
Is /pulling/ on moss the same as attempting to =get= it?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set moss/pull_msg = "The moss is a bryophyte, and as such, has attached itself firmly to boulder by rhizoids. So pulling on it doesn't do much good."
#+END_SRC
@@ -1031,7 +1031,7 @@ Let’s test if we can sit on the moss:
*** Upper Vines
Let’s cover top of the boulder with rope-like vines. The vine can be a [[file:~/src/moss-n-puddles/typeclasses/consumables.py::class Producer(Object):][producer]] that makes ropes … needed to get into the hut.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp02
#
@create/drop lot of vines;vine;rope: typeclasses.consumables.Producer
@@ -1039,46 +1039,46 @@ Let’s cover top of the boulder with rope-like vines. The vine can be a [[file:
With a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc vines = While difficult to cut, the study and tough vines are easy to pull from this point on the boulder. You could probably make a sturdy rope from them.
#+END_SRC
We have to have the vines describe what it /makes/:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set vines/make_name = "coil of rope"
#+END_SRC
And a verb when they /get/ the consumable:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set vines/make_verb = "$conj(yank) and $conj(shape) a"
#+END_SRC
And a commentary:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set vines/make_note = " from the vines"
#+END_SRC
This one is optional as it defaults to Consumable:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set vines/make_class = "typeclasses.things.Rope"
#+END_SRC
And the vines needs to know the /description/ of the Consumable, so that it can attach that:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set vines/make_desc = "Made from vines, but could be a good lasso."
#+END_SRC
How much is there when you pick them?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set vines/make_amount = 1
#+END_SRC
What if they do something other than =get= the vines?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set vines/pull_msg = "You pull the vines, and notice they detach easily from the rock. Perhaps you should |gget|n these and make something with them."
#
@set vines/push_msg = "You push the vines out of the way showing the rock boulder below. Perhaps you should |gget|n these and make something with them."
@@ -1140,7 +1140,7 @@ Colorful gigglecaps prefer well drained locations to grow, like on the top of ro
And we create a /patch/ of them for the picking:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
# @teleport/quiet mp02
#
@create/drop patch of mushrooms;mushrooms;mushroom: typeclasses.consumables.Producer
@@ -1209,55 +1209,55 @@ And turn on the real sayings:
** Frog Meadow
To the east, let’s make a nice meadow. Start at the Forest:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp01
#+END_SRC
And we use the =tunnel= command this time:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@dig Frog Meadow;mp05 : typeclasses.rooms_weather.TimeWeatherRoom = east footpath to meadow;east;e;path;footpath,west footpath to forest;footpath;west;w;path
#+END_SRC
A description if they look east:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc east = A winding footpath that may lead out of the forest... Is that a meadow?
#+END_SRC
And a nice journey message to go east out of the forest:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set east/traverse_msg = "The mossy tree roots that borders this footpath begin to thin out to clover and flowers..."
#+END_SRC
Before we label it, we follow =east=:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp05
#+END_SRC
And a description that takes advantage of the time of day. We should get busy and get some seasonal description here.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc here = A large |Ywaterfall|n cascades on the far side of this meadow creating a |Ystream|n that meanders through the tall grass and large yellow |Yflowers|n. They nod their sleepy heads to you as you pass by in the darkening twilightawakening dawnlazy afternoondark night. A gap in the trees show how you can return to the footpath in the forest.
#+END_SRC
Along with a message:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set footpath/traverse_msg = "You leave the open meadow for the footpath through the giant trees. The yellow flowers nod goodbye to you..."
#+end_src
And a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc footpath = This footpath goes in a forest of immense trees.
#+END_SRC
And details of the field.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail stream = The slow-moving |Ystream|n meanders like a snake in the grassy field. Little green |Yfrogs|n cling to grass stems hanging over the water.
#+END_SRC
And detail the frogs:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail frog;frogs = Cute little guys with their big black eyes and tiny gold crowns. Too quick to catch.
#
@detail flowers;yellow flowers = "Aren't daffodils just flowers with big ol' schnozzes?"
@@ -1287,28 +1287,28 @@ Hiding in the grass is a friendly looking big hairy beast reminiscent of Where t
*** Waterfall
This is special, in that it should be hidden:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop waterfall
#+END_SRC
And the description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc waterfall = Cascading down the cliff in three sections, each section of this giant waterfall widens ending in a large |Ypool|n.|/|/Wait! Is there a large |Ycave|n entrance hidden behind the water?
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock waterfall = get:false()
#+END_SRC
Looking at the waterfall, shows the cave entrance:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set waterfall/hidden_tag = "hidden_cave;hidden_waterfall"
#
@lock waterfall = view:tag(hidden_waterfall)
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail pool = A pool of cool, clear water.
#+END_SRC
@@ -1344,7 +1344,7 @@ Once seen, we should see both:
*** Fizzy Water
The waterfall causes the water in the stream to be /fizzy/, to be part of the [[Potions and their Ingredients][Alchemist Path]] to create a [[Laughing Potion]].
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
# @teleport/quiet mp05
#
@create/drop stream;water: typeclasses.drinkables.Water
@@ -1384,7 +1384,7 @@ A purple grass, often called tickleweed since it vibrates as if laughing. The he
And we create it:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
# @teleport/quiet mp05
#
@create/drop patch of tickleweed;tickleweed: typeclasses.consumables.Producer
@@ -1478,53 +1478,53 @@ And some tests of the hint system?
** The Lair of the Beast
To create a place for our big, hairy beast to sleep, first jump to the Meadow:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp05
#+END_SRC
From the Meadow, we create a lair /behind/ the water.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@dig Lair;mp07 = cave entrance;cave;lair;inside,outside;leave;meadow
#+END_SRC
And we make it hidden:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set cave/hidden_tag = "hidden_cave"
#
@lock cave = view:tag(hidden_cave)
#+END_SRC
And a description if they look:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc cave = A large entrance to a dark, and foul-smelling cave. The waterfall is so loud, you can't hear anything that may live there.
#+END_SRC
And a description when entering …
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set cave/traverse_msg = "You venture inside the dark cave."
#+END_SRC
Let’s step inside to finish this:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp07
#+END_SRC
And a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc here = Vaulted stone ceiling harbors the darkness that hovers over a large |Ymattress|n.
#+END_SRC
And a description of leaving:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc leave = You can see the waterfall cascading outside the cave entrance.
#+END_SRC
And the leaving message:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set leave/traverse_msg = "You leave the dark cave and pass behind the waterfall for the meadow beyond."
#+END_SRC
@@ -1543,23 +1543,23 @@ Test the cave entrance:
*** Mattress
Create a mattress you can sit on (and maybe /push/ to get to a secret door):
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop mattress:typeclasses.sittables.Sittables
#+END_SRC
And the description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc mattress = Looks comfortable, albeit tall, but doesn't smell good. Perhaps that is due to the |Ymushrooms|n sprouting from its base?|/|/The corner of the mattress covers a |Ytrapdoor|n!?
#+END_SRC
And a /detail/ of the mushrooms that may show if are not an alchemist:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail mushrooms;fungus = Slender blue tendrils of a fungus encircle the base of the mattress. Subtle white dots on the cap suggests caution.
#+END_SRC
Can’t steal ‘it:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock mattress = get:false()
#
@set mattress/get_err_msg = "It's way too heavy for you to lift."
@@ -1574,7 +1574,7 @@ Can you /push/ or /pull/ it?
#+END_SRC
And textual descriptions the object can use:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set mattress/adjective = "on"
#
@set mattress/article = "the"
@@ -1592,7 +1592,7 @@ And a better description when sitting down:
And a trim on the things to see:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock mattress = view:tag(hidden_mattress)
#
@set mattress/hidden_tag = "hidden_mattress"
@@ -1623,7 +1623,7 @@ Part of the [[Potions and their Ingredients][Alchemist Path]], we use /dream mus
Dreamshade mushrooms feed on floating dreams, and often congregate where dreamers sleep.
#+end_quote
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
# @teleport/quiet mp07
#
@create/drop cluster of mushrooms;mushroom;mushrooms: typeclasses.consumables.Producer
@@ -1654,18 +1654,18 @@ And test that we can’t see them right now.
*** Beast
And we create the Big, Hairy Beast:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop big hairy beast;bhb;beast;hairy beast;monster;shadow: typeclasses.pets.BHB
#+END_SRC
And a general description that will be /expanded/ with its current reaction.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc beast = A big, hairy beast with long claws and teeth.
#+END_SRC
Can’t get this:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock beast = get:false()
#
@set beast/get_err_msg = "You can't pick that up, as that beast is far larger than you."
@@ -1673,13 +1673,13 @@ Can’t get this:
And set its sleepy time at 8pm …
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set beast/sleep_hour = 21
#+END_SRC
It will wake at 8am …
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set beast/wake_hour = 8
#+END_SRC
@@ -1691,55 +1691,55 @@ Unlike most other creatures, the beast’s circadian rhythm is determined by the
Let’s set some behavior levels. For instance, the beast is sad when he doesn’t see its friends:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set beast/loneliness_amount = -2
#+END_SRC
It seem to warm up the to new characters hanging around the area, but not as much as those that would interact with it:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set beast/shyness_amount = 3
#+END_SRC
How active should this pet be? Seems like at the moment, it shouldn’t be too obnoxious. This setting is a percentage, so 12 is /12%/, which returns a message only 12% of the /ticks/ (where a tick is about a minute).
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set beast/active_amount = 10
#+END_SRC
It isn’t that scared of new people, as it will ignore them when someone it knows is around.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set beast/new_character_reaction = 'ignores'
#+END_SRC
Seems we should make descriptions for all the states that happen when you look at them. These are appended to the standard description.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set beast/scared_msg = "It seems <> as it tries to hide behind a tall clump of grass. Yeah, it doesn't do a good job of hiding."
#+END_SRC
Concerned level:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set beast/concerned_msg = "Its large, yellow eyes stare at you from a safe distance."
#+END_SRC
Interested level:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set beast/interested_msg = "It seems <> in what you are doing <>. ;; Its << ^ large, ^ big,>> yellow eyes watch your every move."
#+END_SRC
Friendly level:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set beast/friendly_msg = "It sits next to you, as its big, friendly eyes gaze as you. ;; It <> to you, wagging its tail-less behind. ;; It lays down next to you."
#+END_SRC
When the beast is sleeping, we can some times spam the room with the snores:
-#+begin_src evennia
+#+BEGIN_SRC evennia
@set beast/sleeping_actions = "The <> <> <> lets loose a <> snore. ;; The <> <> <> growls in its sleep. ;; The <> <> <> twitches its <>. ;; The <> <> <> <> on its <> mattress."
#+end_src
@@ -1747,38 +1747,38 @@ We base the actions of the beast on the most friendly person in the area.
The scared level doesn’t last long, so let’s just leave one message:
-#+begin_src evennia
+#+BEGIN_SRC evennia
@set beast/scared_actions = "A tremendously large and hairy beast attempts to nervously (and almost comically) hide"
#+end_src
Concerned actions:
-#+begin_src evennia
+#+BEGIN_SRC evennia
@set beast/concerned_actions = "The <> <> <> <> concerned by your presence in the <>. ;; The <> <> <> seems concerned. Maybe it's hungry. ;; The <> <> <> seems concerned and keeps its distance."
#+end_src
Interested actions:
-#+begin_src evennia
+#+BEGIN_SRC evennia
@set beast/interested_actions = "The <> <> <> seems <> in $you(). ;; The <> <> <> seems curious about $you(). ;; The <> <> <> stands on its hind legs. ;; The <> <> <> <> $you() with its <> yellow eyes."
#+end_src
Friendly actions:
-#+begin_src evennia
+#+BEGIN_SRC evennia
@set beast/friendly_actions = "The <> <> <> <> <> wagging its backend<<, ^ as it seems>> happy to see $you(). ;; The <> <> <> <> <> hoping to play with $you(). ;; The <> <> <> flops over in front of $you() wriggling <> on the ground. ;; The <> <> <> <> <> next to $you(). ;; The <> <> <> chases butterflies around the <>."
#+end_src
The ecstatic states are just a bit more than friendly.
-#+begin_src evennia
+#+BEGIN_SRC evennia
@set beast/ecstatic_actions = "The <> <> <> <> <> to give $you() a sloppy <>. ;; The <> <> <> <> <> wagging its backend as it seems <> excited to see $you(). ;; The <> <> <> <> <> hoping to play with $you(). ;; The <> <> <> flops over in front of $you() happily wriggling on the ground. ;; The <> <> <> excitedly <> <> next to you. ;; The <> <> <> <> leaps into air. ;; The <> <> <> chases butterflies around the <>."
#+end_src
And the responses to being /pet/:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set beast/pet_sleeping_response = "Petting a sleeping beast of that size isn't your best idea."
#
@set beast/pet_scared_response = "$You() can't get near the wild beast to pet it. It seems scared."
@@ -1837,17 +1837,17 @@ This is an /under construction/ sort of room, and isn’t that interesting at th
** Glittering Glade
To the east of the meadow, let’s make a glade back inside the Forest:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp05
#+END_SRC
And we use the =tunnel= command this time:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@dig Glittering Glade;mp19 : typeclasses.rooms.Room = east footpath into another forest;east;glade;e,west footpath to meadow;footpath;west;w;path
#+END_SRC
A description if they look east:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc east = Looking at the forest on the east side shows a footpath illuminated by dancing glowing orbs.
#+END_SRC
@@ -1856,13 +1856,13 @@ A description if they look east:
#+END_SRC
And a nice journey message to go east out of the forest:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set east/traverse_msg = "You step into this dark forest onto a footpath illuminated by swirling orbs of light. You follow the path until it opens into a glade."
#+END_SRC
Before we label it, we follow =east=:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp19
#+END_SRC
@@ -1885,12 +1885,12 @@ And the description won’t have day/night, but we can /reference/ it:
#+END_SRC
A description if they look back towards the west:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc west = The footpath leads out of the forest to a meadow.
#+END_SRC
And a nice journey message to go east out of the forest:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set west/traverse_msg = "You followed the illuminated footpath until you exit the forest into a meadow."
#+END_SRC
@@ -1926,7 +1926,7 @@ And some flavor that offers a hint to the answer of the riddle, to combine Water
#+END_SRC
The table shouldn’t be steal-able:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock table = get:false()
#
@set table/get_err_msg = "That table is much too big for you to lift."
@@ -1994,7 +1994,7 @@ And let’s not test /everything/ here:
** Tavern: Wyldwood Bar
This now needs to be transferred from the [[file:mud-rpg.org][mud-rpg]] file.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@dig Wyldwood Bar;mp10 = blue door;door,blue door to forest;leave;outside
#+end_src
*** Blue Door
@@ -2036,7 +2036,7 @@ And give the password to open the blue door:
#+END_SRC
Let’s have an interesting phrase entering the bar …
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set door/traverse_msg = "You open the blue door and enter inside the tree... and find yourself in a mirror copy of the glade you just left, but this glade looks like a |wtavern|n."
#+END_SRC
@@ -2078,35 +2078,35 @@ And describe the door leaving the bar:
#+END_SRC
Let’s have an interesting phrase entering the bar …
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set blue door/traverse_msg = "You open the blue door and enter inside the tree... and find yourself back in the first glade, with a path that leads through a forest."
#+END_SRC
*** Bar Stools
And [[file:~/src/moss-n-puddles/typeclasses/sittables.py::class Sittables(Sittable):][the stools]] is a /plural/ location to sit, allowing anyone to sit down.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop bar stools;stools;chairs:typeclasses.sittables.Sittables
#+END_SRC
This only works if we make it plural:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bar stools/plural = True
#+END_SRC
And the description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc bar stools = You didn't know trees could grow in the shape of bar stools, and yet, the places you can sit seem quite organic.
#+END_SRC
Can’t steal ‘em:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock stools = get:false()
#
@set stools/get_err_msg = "The stool may actually be part of the decor and can't be moved."
#+END_SRC
And textual descriptions the object can use:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stools/singular = "one of the stools at the bar"
#+end_src
@@ -2654,7 +2654,7 @@ And resetting the chalkboard.
** Mellow Marsh
The river from the flows into a marsh:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp05
#
@dig Mellow Marsh;mp08 :typeclasses.rooms_weather.TimeWeatherRoom = south to marsh;south;marsh;s,north to meadow;n;north;meadow
@@ -2662,19 +2662,19 @@ The river from the flows into a marsh:
And =look south= should show:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc south = Looks like the river spreads into a marsh. Is that a hut you can see?
#+END_SRC
Describe the muddy marsh:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set south/traverse_msg = "The ground gets muddier and harder to walk the further into the marsh you go..."
#+END_SRC
And a description of the marsh:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp08
#
@desc here = The river spreads into a muddy marsh full of |Ygrass|n and tall, white-topped |Yreeds|n. Colorful |Ybirds|n in the sparse tree surrounding the marsh yell out a loud chorus. Purple herons and other marsh |Ybirds|n hunt in the tall swamp grass. Glowing |Yfireflies|n create a synchronized light show over the swamp grass in the deepening dusk. Giant pink and purple |Ymoths|n flutter over the dark flowers.|/A small |Yhut|n, perched on three |Ystilts|n to keep it dry, stands in middle of the slough.
@@ -2682,54 +2682,54 @@ And a description of the marsh:
And a new state when the house is bound:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc/bound here = The river spreads into a muddy marsh full of |Ygrass|n and tall, white-topped |Yreeds|n. Colorful |Ybirds|n in the sparse tree surrounding the marsh yell out a loud chorus. Purple herons and other marsh |Ybirds|n hunt in the tall swamp grass. Glowing |Yfireflies|n create a synchronized light show over the swamp grass in the deepening dusk. Giant pink and purple |Ymoths|n flutter over the dark flowers.|/|/A pissed-off looking |Yhut|n, with its lasso'd stilt-like legs, struggles against its bounds in the middle of the slough.
#+END_SRC
And =look north= should show:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc north = The meadow to the north looks easier to walk around.
#+END_SRC
Describe the muddy marsh:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set north/traverse_msg = "The ground gets drier and easier to walk as you approach the meadow..."
#+END_SRC
Details for a more immersive experience:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail stilts;stilt = Those stilts are scaly...and clawed...and, are they chicken legs? How expected.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail birds = Birds of every color on the rainbow and beyond, fly and squawk around you, but keep their distance.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail moths;moth = On closer inspection, the moths are really |Ysprites|n playing a strange chasing game.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail sprites;sprite = Seems that sprites with pink wings are on one team, and purple winged sprits on the other. The game became exciting as one sprite, holding aloft a flag is trying to avoid others as it streaks to the far side of the marsh.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail fireflies = A passing firefly shows it to actually be a |Ypixie|n holding two colorful lanterns.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail pixie;pixies = The pixies ignore you as their choreography keeps them focused on their dance.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail grass = Guess this kind of grass doesn't mind the wet environment.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail mud = Pretty brown and sticky.
#+END_SRC
@@ -2799,7 +2799,7 @@ Add a purple-feathered heron.
*** Muddy Water
As a future idea of making potions, we can collect /muddy water/, which needs to be turned to wine.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
# @teleport/quiet mp08
#
@create/drop muddy river;river;stream;water: typeclasses.drinkables.Water
@@ -2831,7 +2831,7 @@ And test looking at it:
*** Purple Heron
Create a puppet of the bird hunting frogs and pixies. :-D
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop purple heron;heron: typeclasses.chatbots.ChatBot
#
@set heron/pose = "stalking the swamp grass"
@@ -2847,7 +2847,7 @@ Create a puppet of the bird hunting frogs and pixies. :-D
What data file of responses should we use?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set heron/data_file = "npcs.txt"
#
@set heron/speech_vocalizations = ["says", "croaks", "squawks"]
@@ -2855,19 +2855,19 @@ What data file of responses should we use?
Note that we give him a male gender:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set heron/gender = "male"
#+END_SRC
Prefix article?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set heron/article = "The"
#+END_SRC
And a good description that I can rework:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc heron = Shades of violet and purple adorn the feathers of this majestically tall heron, that stalks the marsh |Ygrass|n, hunting small critters.
#+END_SRC
@@ -2879,7 +2879,7 @@ Let’s turn it on:
Since it is an NPC it has certain mutterings it can do:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set heron/muttering_file = "jethro_tull_songs.txt"
#
@set heron/muttering_gap = 7
@@ -2887,7 +2887,7 @@ Since it is an NPC it has certain mutterings it can do:
@set heron/muttering_interval = 360 # Little over 3 minutes
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set heron/muttering_formats = [
"sings to |oself as if no one is listening, \"{0}\"",
"continues to sing to |oself, \"{0}\"",
@@ -2898,7 +2898,7 @@ Since it is an NPC it has certain mutterings it can do:
And add the absent-minded singing script:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@script heron = typeclasses.scripts.Muttering
#+END_SRC
@@ -2949,7 +2949,7 @@ And the generate description:
And now for a list of the contents:
- #+BEGIN_SRC evennia
+#+BEGIN_SRC evennia
@set birds/descs = (
"a melancholic Soliloquy Raven, whistling a sad song",
"a purple throated Cinnabar Hearth-Finch",
@@ -2968,7 +2968,7 @@ And now for a list of the contents:
The /feathers/ is a hidden Producer:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop feathers: typeclasses.consumables.Producer
#
@set feathers/plural = True
@@ -2979,17 +2979,17 @@ The /feathers/ is a hidden Producer:
#+END_SRC
With a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc feathers = Perhaps the molting season, stress, nutritional deficiencies, or |wyour desire to help|n, you find various colored feathers available for the taking.
#+END_SRC
We have to have the feathers describe what it /makes/:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set feathers/make_name = "a bunch of feathers"
#+END_SRC
And a verb when they /get/ the consumable:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set feathers/make_verb = "$conj(gather) "
#+END_SRC
@@ -3002,12 +3002,12 @@ They shouldn’t be able to make too many feathers:
#+END_SRC
And the feathers needs to know the /description/ of the Consumable, so that it can attach that:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set feathers/make_desc = "A brightly colored collection"
#+END_SRC
How much is there when you pick them?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set feathers/make_amount = 1
#+END_SRC
@@ -3026,28 +3026,28 @@ And let’s test that we can get a feather:
*** Ten-foot Poles
The reed can be a [[file:~/src/moss-n-puddles/typeclasses/consumables.py::class Producer(Object):][producer]] that makes ten foot poles … needed to get into the hut.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop lot of tall reeds;tall reeds;reeds: typeclasses.consumables.Producer
#+END_SRC
With a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc reeds = Extremely tall, white reeds tipped with white gooey clumps. One could hazzard a guess that with a little manipulation, one could make something from them.
#+END_SRC
We have to have the reeds describe what it /makes/:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set reeds/make_name = "ten-foot pole"
#+END_SRC
And a verb when they /get/ the consumable:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set reeds/make_verb = "$conj(pluck) and $conj(shape) a"
#+END_SRC
And a commentary:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set reeds/make_note = " from a marsh reed."
#+END_SRC
@@ -3061,17 +3061,17 @@ They shouldn’t be able to make too many poles:
A ten-foot pole should act like a stick:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set reeds/make_class = "typeclasses.things.Stick"
#+END_SRC
And the reeds needs to know the /description/ of the Consumable, so that it can attach that:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set reeds/make_desc = "A long pole shaved from a marsh reed."
#+END_SRC
How much is there when you pick them?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set reeds/make_amount = 1
#+END_SRC
@@ -3095,7 +3095,7 @@ I’ve noticed Pixies often dance in the marshlands to the East, but are often i
And create it here in the Marsh:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
# @teleport/quiet mp08
#
@create/drop patch of glitter;pixie dust;dust: typeclasses.consumables.Producer
@@ -3156,7 +3156,7 @@ The heron should give the hints, but we need to make it different enough, for ge
** Trampoli’s Hut on Stilts
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp08
#
@dig Homey Hut;mp09 = hut on stilts;hut,leave;outside;marsh
@@ -3164,65 +3164,65 @@ The heron should give the hints, but we need to make it different enough, for ge
And describe it as =hut=:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc hut on stilts = Apparently made from swamp |Ygrass|n, the homey-looking hut has a wood door high above ground. Baskets of potted flowers and herbs garnish every window.
#+END_SRC
Let’s keep most characters out of the hut. The idea is you need to fly to get in. But we have a sequence For the initial exit, it is just always impossible to use:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock hut on stilts = traverse:tag(enter_hut_nope, mp)
#+END_SRC
Let’s add an alias:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@alias hut on stilts = hut
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set hut on stilts/err_traverse = "Upon approaching the hut, the hut scurries away on its stilt-like legs."
#+END_SRC
And we need to create a second exit:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@open rope-bound hut = Homey Hut
#+END_SRC
Let’s add an alias:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@alias rope-bound hut = hut
#+END_SRC
And describe it:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc rope-bound hut = The hut doesn't look happy, straining at its bonds that keep somewhat in place. The wood door to the hut, and its landing, continue to be too hign and out of your reach.
#+END_SRC
If the other exit is here, you just need the pole:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock rope-bound hut = traverse:holds('ten-foot pole')
#+END_SRC
And a good reason why you need the pole:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set rope-bound hut/err_traverse = "The door, and its landing, are still too high and out of reach, and riding a bucking owlbear may be easier than climbing the stilt-legs that immediately throw you to the ground."
#+END_SRC
If you do figure out how to get through the hut:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set rope-bound hut/traverse_msg = "You use your pole to vault yourself up through the door of the hut..."
#+END_SRC
Let’s put this second exit away until the [[file:~/src/moss-n-puddles/typeclasses/things.py::class Rope(Object):][rope calls]] it:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport/tonone rope-bound hut
#+END_SRC
@@ -3239,7 +3239,7 @@ We have a rope and the ten-foot pole, let’s see if we can get in:
*** Inside Trampoli’s Hut
Let’s go inside to decorate:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp09
#
@desc here = A homey room cluttered with drying |Yherbs|n, |Yjars|n of preserves, and natural made |Ytalismans|n. Even the table and chairs, covered in jars, |Ybags|n and boxes, indicate the owner doesn't entertain much. Stairs lead up to a spacious loft with a bed.
@@ -3247,42 +3247,42 @@ Let’s go inside to decorate:
And describe leaving:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc leave = From the doorway, you see the marshland below.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set leave/traverse_msg = "You open the door of the hut, and scramble down to the marsh below. Surely the ground the moist and soft to break your fall."
#+END_SRC
And the details:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail herbs = Clusters of plants, a mixture of flowers and herbal leaves, all bound with twine and reeds, hang from spots around the room, fragranting the air.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail jars = Sealed jars of fruits, vegetables, herbs and spices.
#+END_SRC
*** Chair
A chair to sit while working
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop chair:typeclasses.sittables.Sittable
#+END_SRC
How descriptive:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc chair = A chair next to the table.
#+END_SRC
Can’t steal this chair either:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock chair = get:false()
#+END_SRC
Let’s do a funnier message:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set chair/get_err_msg = "Stop trying to steal everything not nailed down."
#+end_src
@@ -3330,7 +3330,7 @@ And the generate description:
And now for a list of the contents:
- #+BEGIN_SRC evennia
+#+BEGIN_SRC evennia
@set jars/descs = (
"Dragon's Breath|n. A swirling mist of iridescent smoke that changes color, said to contain the essence of fire.",
"Phoenix Ashes|n. A small jar filled with fine, red and gold ash, said to have the power of rebirth.",
@@ -3409,17 +3409,17 @@ And the individual choices are more appearance, and possibly smell, without clai
*** Bag of Mermaid Tears
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop couple of bags of dried Mermaid Tears;bags;bag: typeclasses.consumables.Producer
#+END_SRC
With a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc bags = The bags, tied with a string, has a paper tag that reads |wMermaid Tears, dried.|n. The back of the tag has a note, |wIf I have to listen to another sob story about a clueless prince who just doesn't understand...|n
#+END_SRC
We have to have the bush describe what it /makes/:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bags/make_name = "bag"
#
@set bags/make_verb = "$conj(pick up) a"
@@ -3436,14 +3436,14 @@ We have to have the bush describe what it /makes/:
*** Talismans
To give some character, we create some interesting art that decorates this hut.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail talismans;talisman = A wood |Ycarving|n, a painted |Yskull|n, and curiously shaped |Ysculpture|n made from bundles of reeds, give the impression of inducing luck while showing a level of respect for the land.
#+END_SRC
**** Horned Wolf Skull
For each talisman, we could create an object, but it wouldn’t be able to be taken, and instead of “can’t find skull”, we could give a better error message.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop painted skull
#ve
@desc skull = Painted with arcane symbols, a wolf skull sports curving, corrugated goat horns.
@@ -3475,7 +3475,7 @@ And test it:
**** Demon Carving
Perhaps the carving is actually the maid or something that could give hints.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop wood carving;carvings;daemon;imp
#
@desc carving = While rustic, the carving shows exquisite craftsmanship and artistry in its rendering of an daemon creature, less sinister and more impish.
@@ -3507,7 +3507,7 @@ And test it:
**** Reed Sculpture
The reeds should give a subtle hint to something that could be /spoken/ aloud.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop reed sculpture;reed;sculpture
#
@desc reed = The reed bundle, twisted and shaped in a six-spoke star, sports a blue tie.
@@ -3540,31 +3540,31 @@ And test it:
*** Torches
The reed can be a [[file:~/src/moss-n-puddles/typeclasses/consumables.py::class Producer(Object):][producer]] that makes ten foot poles … needed to get into the hut.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop a bucket of torches: typeclasses.consumables.Producer
#+END_SRC
With a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc bucket = A tall wood bucket full of resin-coated torches.
#+END_SRC
We have to have the bucket describe what it /makes/:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bucket/make_name = "torch"
#+END_SRC
And a verb when they /get/ the consumable:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bucket/make_verb = "$conj(take) a"
#+END_SRC
And a commentary:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bucket/make_note = " from the bucket"
#+END_SRC
@@ -3578,18 +3578,18 @@ How many torches can they steal?
The torches are special in that they last longer.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bucket/make_class = "typeclasses.lightables.Torch"
#+END_SRC
And the bucket needs to know the /description/ of the Consumable, so that it can attach that:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bucket/make_desc = "Made from marsh grass and reeds."
#+END_SRC
How much is there when you pick them?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bucket/make_amount = 1
#+END_SRC
@@ -3606,20 +3606,20 @@ Let’s get two:
*** Trampoli the Witch
Create a puppet of the lady that owns the hut.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop Trampoli;old lady: typeclasses.chatbots.Witch
# @update Trampoli = typeclasses.chatbots.Witch
#+END_SRC
Note that we give him a male gender:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set old lady/gender = 'female'
#+END_SRC
Work around the =pose= bug:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@py bt = self.search('old lady'); bt.db._sdesc="old lady" ; bt.sdesc.add('old lady'); bt.home = here ; bt.db.pose = 'playing with a deck of cards'
#+END_SRC
@@ -3633,7 +3633,7 @@ Let’s set this Chatbot to use [[file:~/src/moss-n-puddles/personalities/witch.
And some poses:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set old lady/pose_sleep = "napping soundly in bed on the upstairs loft"
#
@pose default old lady = playing with a deck of cards
@@ -3641,31 +3641,31 @@ And some poses:
And a good description that I can rework:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc old lady = A blue shawl, adorned with arcane symbols in gold embroidery, covers the head of this small woman. Her large nose protruding from under the shawl, gives the appearance of a blue bird with bright green eyes.
#+END_SRC
And an un-puppeted, sleeping, description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set old lady/desc_unpuppeted = "A blue shawl, adorned with arcane symbols in gold embroidery, covers the head of this small, napping woman. Her large nose protruding from under the shawl, as she snores loudly."
#+END_SRC
If I do this, then she can’t really be puppeted.
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@set old lady/arrive = "5 ;; gm The old lady, seated at a table notices you, and smiles. \"Welcome, dearie,\" she says, \"What can I do for you?\""
#+END_SRC
And the old sleeping lady …
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@set old lady/arrive = "45 ;; gm You hear someone in the loft up the stairs stirring in their bed. ;; 55 ;; pose looking confused ;; emote The /me wakes up and says, \"What's all this then?\" ;; 5 ;; say Who are you, dearie? ;; 10 ;; say I'd think I have an intruder in my home! ;; 1 ;; emote grabs her broom and with a sweeping motion from the stairs, sends her intruder flying out the door! ;; teleport {3} = Mellow Marsh ;; 3 ;; gm/#457 You hear a voice coming from the hut, \"Scat!\" ;; emote heads up the stairs to bed. ;; pose sleeping in a bed up in the loft"
#+END_SRC
Turn it off when needed.
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@set old lady/arrive = None
#+END_SRC
@@ -3752,38 +3752,38 @@ At this point, we need to get our testing character where we can migrate them ov
The dock leads out into a strange sea. The break in the trees lets you see the sky. Looks like a nice place to relax.
Return to the Forest:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp01
#+END_SRC
And tunnel to the dock:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@dig Lazy Dock;mp06 :typeclasses.rooms_weather.TimeWeatherRoom = south to dock;south;s,north to forest;north;n;footpath
#+END_SRC
With a message about leaving the trees so that I don’t have to repeat that in the room description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set south/traverse_msg = "You follow a path down and step out from under giant trees to see the sky."
#+END_SRC
And a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc south = You see a dock on a lavender sea... Is that a comfortable-looking chair you can |gsit|n on?
#+END_SRC
And move ourselves there:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp06
#+END_SRC
And describe this.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc here = The dock you stand on juts into a |Ysea|n the color of |Ylavender flowers|n. Mesmerizing and calming from the way the sound of the |Ywaves|n lap along the |Yshore|n.
Someone has set a nice |Ychair|n for viewing.
#+end_src
And details?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail waves = Despite the inclement weather, the waves ripple softly against the shore. Seems nice for fishing.
#
@detail boat;ship = The mastless ship looks like a giant leaf. Wonder if it comes to shore?
@@ -3792,12 +3792,12 @@ And details?
#+END_SRC
And describe the walk back into the forest:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set north/traverse_msg = "You walk up a path and back into the forest of giant trees."
#+END_SRC
And a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc north = This path leads into the forest of collosal trees.
#+END_SRC
@@ -3828,7 +3828,7 @@ Now test all of these:
*** Lavender Sea
We’ll get ready for making potions by allowing one to collect water from _all_ the places, like the salty sea:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
# @teleport/quiet mp06
#
@create/drop lavender sea;sea;water;bay: typeclasses.drinkables.Water
@@ -3859,17 +3859,17 @@ And we’ll test looking at it:
*** Chair
A nice chair to sit on the dock by the bay, watching the clouds as they drift away.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop chair;lounge chair:typeclasses.sittables.Sittable
#+END_SRC
How descriptive:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc chair = A cushioned wood chair of craftsmanship.|/Looks good for being out in the weather.
#+END_SRC
Can’t steal this chair either:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock chair = get:false()
#
@set chair/get_err_msg = "It's way too heavy for you to lift."
@@ -3893,18 +3893,18 @@ Let’s see if we can sit down:
*** Fishing Pole
It we are going to sit on a chair by the dock, why not go fishing?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop fishing pole;pole:typeclasses.fishing.FishingPole
#+end_src
With a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc pole = A nice pole for catching fish. It even has a hook, and is ready to go!
#+END_SRC
And tether it to the Dock, which we need to reset if the ID numbers ever change.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock pole = tethered:id(Lazy Dock)
#
@set pole/tethered_msg = "Let's leave the fishing pole here at the dock for others to fish...besides, where else are you going to go fishing around here?"
@@ -3912,12 +3912,12 @@ And tether it to the Dock, which we need to reset if the ID numbers ever change.
Issues?
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@teleport/quiet fishing pole = Lazy Dock
#+END_SRC
What about some details:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail hook;bait = One of those shiny lures, made from gold coins. Curiouser. Seems you don't need to bait this hook.
#+END_SRC
@@ -3940,22 +3940,22 @@ Let’s see if we can fish:
*** Sign
Need to make the fishing pole “stay” at the Dock. Maybe with a message about sticking around for the next person.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop sign:typeclasses.readables.Readable
#+END_SRC
Should the description also be the message?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc sign = You see a wood sign tied with a rope around the back of the chair. It reads, |wFish at your own annoyance. Please return pole when finished.|n
#+END_SRC
Might as well allow the user to read it:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set sign/inside = "Fish at your own annoyance. Please return pole when finished."
#+END_SRC
And lock down the sign:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock sign = get:false()
#
@set sign/get_err_msg = "This granny knot holding the sign to the chair is serious. You can't take it."
@@ -4315,60 +4315,60 @@ Back to the Grove:
** Grotto
Return to the forest:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp01
#+END_SRC
Let’s travel west along the path in the forest:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@dig Grotto;mp04 :typeclasses.rooms_weather.TimeWeatherRoom = west footpath;west;w,east footpath;east;e;path;footpath
#+END_SRC
With a nice message about wandering:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set west/traverse_msg = "You meander between mossy tree roots along a footpath for a while until it ends in a grotto."
#+END_SRC
And a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc west = A footpath winds between the roots of a tree. You try to jump to look over the roots, and something red catches your eye.
#+END_SRC
Jump into the new room:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp04
#+END_SRC
And describe the tree and the door:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc here = The trickling sound of a small stream drops down a lush hill between |Yferns|n and brambleberry |Ybushes|n. The path ends at a small |Ybridge|n that leads to a red door embedded at the base of a giant |Ytree|n. A carved sign over the door reads, |wDabblers|n.
#+end_src
A description if they look east:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc east = A winding footpath leads through the forest of giant trees.
#+END_SRC
And a nice journey message to go east in of the forest:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set east/traverse_msg = "The mossy tree roots makes for an interesting path..."
#+END_SRC
And extra things to see:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail trees;tree = The trees in this forest are massive, but a smaller tree has a red door. Must lead to a closet!
#+END_SRC
And the bridge:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail bridge = A small wooden bridge leads over a tiny |Ystream|n. Hard to see the water on account of the giant leafed skunk |Ycabbages|n.
#+END_SRC
And the cabbages? And ferns?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail cabbage;cabbages;skunk cabbage;skunk cabbages = Large glossy green leaves with big yellow flowers that looks like cobras in drag. They hiss as you cross the |Ybridge|n.
#
@detail fern;ferns = Sword ferns rattling sabers against the wards from the Maiden Hairs' flailing their fronds.
@@ -4407,61 +4407,61 @@ Generate a watercolor with pen and ink outlining in the style of David Brayne, d
*** Berry Bush
The berry bush is a [[file:~/src/moss-n-puddles/typeclasses/consumables.py::class Producer(Object):][producer]] that makes /berries/, which is something to eat and use to feed the wildlife.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop berry bush;bush : typeclasses.consumables.Producer
#+END_SRC
With a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc bush = A bush laden with bright red brambleberries. You've heard that they are good.
#+END_SRC
We have to have the bush describe what it /makes/:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bush/make_name = "berry"
#+END_SRC
Including some plural aliases:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bush/make_aliases = ["berries", "brambleberry", "brambleberries"]
#+END_SRC
And a verb when they /get/ the consumable:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bush/make_verb = "$conj(pick) a"
#+END_SRC
This one is optional as it defaults to Consumable:
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@set bush/make_class = "typeclasses.consumables.Consumable"
#+END_SRC
And the bush needs to know the /description/ of the Consumable, so that it can attach that:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bush/make_desc = "Bright red with flecks of orange, about grape-sized"
#+END_SRC
How many berries are there when you pick them?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bush/make_amount = 1
#+END_SRC
How many berries do you eat at a time:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bush/make_eat_amount = 1
#+END_SRC
We can either have a single /eat/ message:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bush/make_eat_msg = "Sweet and slightly tart. <>."
#+END_SRC
Or many messages that can be randomly selected:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bush/make_eat_msgs = [ "Sweet and slightly tart.", "<>.", "Ooo...quite sour.", "A bit ripe, but still good.", "So sweet with a hint of <>." ]
#+END_SRC
Let the user know when they consumed them all.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set bush/make_finish_msg =
#"Those were <>."
#+END_SRC
@@ -4482,7 +4482,7 @@ Can we get and eat them?
*** Spring Water
Part of the [[Potions and their Ingredients][Alchemist Path]], we use spring water to create a [[Trippy Potion]].
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
# @teleport/quiet mp04
#
@create/drop stream of spring water;stream;spring;water: typeclasses.drinkables.Water
@@ -4517,48 +4517,48 @@ TODO: What happens if we drink it?
The knocker has the ability to make the door “open” using [[https://www.evennia.com/docs/latest/api/evennia.objects.objects.html][on_traverse]] hooks?
Most of the work of the /knocker/ is in the Python code:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop knocker: typeclasses.things.Knocker
#+END_SRC
Let’s make the knocker be a surprise.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set knocker/hidden_tag = "hidden_knocker"
#
@lock knocker = view:tag(hidden_knocker)
#+END_SRC
The knocker shouldn’t be steal-able:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock knocker = get:false()
#
@set knocker/get_err_msg = "It appears firmly attached to the door."
#+END_SRC
The description is dynamic from the Python code, so we don’t need this statement:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc knocker = The brass face looks at you and winks.
#+end_src
In order for us to /knock/ on the door, we have to give a =knock= command to the /room/.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set knocker/room_to_msg = "mp03"
#+END_SRC
The python object has all the knowledge about knocking and whatnot, but we should have the descriptions here. First, what the knocker reads:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set here/knock_msg = "You grab the ring"
#+END_SRC
Then, what the other’s in the room read:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set here/knock_other_msg = "grabs the ring and knocks firmly on the door."
#+END_SRC
And an error message if the ring is not with the goblin:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set here/knock_err_msg = "This door knocker is defective, as it doesn't have a ring to...er, do the knockin'."
#+END_SRC
@@ -4575,22 +4575,22 @@ The rest of testing the knocker will come later…
*** Ring
Since we can remove the ring, let’s create it:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create ring: typeclasses.things.Ring
#+END_SRC
And give it an alias:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@name ring = brass ring;ring
#+END_SRC
And a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc ring = A brass ring that should be in the door knocker's mouth. How else are you going to knock on a door?
#+END_SRC
Although we can interact with it, let’s not make it obvious that it is an object:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set ring/hidden_tag = "hidden_ring"
#
@lock ring = view:tag(hidden_ring)
@@ -4598,20 +4598,20 @@ Although we can interact with it, let’s not make it obvious that it is an obje
And let’s make it so we can take that:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set ring/can_take = True
#+END_SRC
Let’s tether the ring to the knocker …
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock ring = tethered:id(knocker)
#
@set ring/tethered_msg = "You put the ring back in the knocker's mouth. \"Mmmuufffmm,\" says the door knocker."
#+END_SRC
And put the ring in the knocker’s mouth:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport/quiet ring = knocker
#+END_SRC
@@ -4684,7 +4684,7 @@ And let’s not test /everything/ here:
** Cozy House
Add the Python /special-ness/ for [[file:~/src/moss-n-puddles/typeclasses/rooms.py::class DabblersRoom(Room):][this room]]:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@dig Cozy House;mp03: typeclasses.rooms.DabblersRoom = red door;door;inside,outside;leave
#+end_src
@@ -4697,46 +4697,46 @@ Let’s get our testing character inside, shall we?
*** Red Door
The door description should match the artwork on the website:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc red door = A painted red door where the round top of the door fits snugly in the bark of the tree. Along with a large brass doorknob, the door sports the most curious door knocker in the shape of a goblin's face.
#+END_SRC
This exit should be special. First, it is locked unless a character has the =open_red_door= tag.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock door = traverse:tag(open_red_door, mp)
#+END_SRC
Needs a message why one can’t walk through:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set door/err_traverse = "The door seems locked."
#+END_SRC
If you do figure out how to get through the door:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set door/traverse_msg = "You stoop as you step through the doorway..."
#+END_SRC
We described [[Knocker][the knocker]] earlier, as it holds the /virtual key/ for unlocking the door. But looking at the door, should show the knocker too.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set door/hidden_tag = "hidden_knocker"
#+END_SRC
*** Inside
Fix the inside of the “House”:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp03
#+END_SRC
And the best description ever that we don’t use:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc here = An enormous stone hearth overshadows this round room with dark paneling. A subtle smell of tea and incense. Large, overstuffed chairs sit invitingly by the fireplace. Oddly angled shelves with books and knickknackery adorn the walls and the smell of fresh-baked scones come from the kitchen.
#+END_SRC
Since we want the description to include the state of the fire, we need some /parts/ to assemble. Still not sure how this should be done.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set here/initial_desc = "You found a cozy, cornerless room."
# Ravenous State
@@ -4757,14 +4757,14 @@ Since we want the description to include the state of the fire, we need some /pa
And details:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail hearth = An enormous stone hearth overshadows this round room with dark |Ypaneling|n. |YStairs|n lead up and behind it.
#
@detail paneling = The seamless paneling, stretches from floor up into the darkness above.
#+END_SRC
Touch up the exit:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc leave = A wood door with a large brass knob leads to the outside.
#
@set leave/traverse_msg = "You open the door and step outside..."
@@ -4790,7 +4790,7 @@ Generate a painting of a dark, cozy room using the style of the uploaded image.
#+end_quote
*** Tapestry Story
The tapestry should tell our /creation myth/.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail tapestry = The muted colors of the tapestry either show its age or its location over the sometimes smokey |Yhearth|n. It depicts four scenes... |/|/The first scene shows a small, old |Yman|n with blue hair watering a wilted |Yrose|n in a desert landscape. |/|/The second scene shows the man and the rose next to a radiant |Yqueen|n handing the man a |Ypaper|n with a gold seal. |/|/The third scene shows the man standing between two |Ytrees|n, The final scene shows the man |Ywhispering|n to one of the trees, now visually further apart than in the third scene.
#
@detail man = The old man in the |Ytapestry|n is small, sporting a white vandyke-styles beard and blue tipped hair. He wears spectacles and a brown cloak covering his bright red jacket. Looks familiar.
@@ -4832,31 +4832,31 @@ Make sure we can see all of this.
#+END_SRC
*** Fireplace
And a fire in the fireplace is a type of /pet/, since we can feed it:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop fireplace;fire;embers : typeclasses.pets.Fire
#+END_SRC
How about some aliases:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock fire = get:false()
#+END_SRC
And a description that will be overridden:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc fireplace = A stone fireplace with a carved wooden mantel supporting small |Ypictures|n, some |Ybooks|n and a black |Ystatue|n.
#+END_SRC
Since we mentioned some details, we better mention them:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail pictures = Two small framed pictures perch above the fireplace mantle. One is of a satyr playing a saxophone, and the other is of a fish with a big smile.
#+end_src
This reference in this detail is obviously, only for me:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail statue = A small, black statue of a salamander curled around a book, engraved with a title, "Seeing Stones".
#+END_SRC
I imagine a giant picture over the fireplace … need to do something interesting with it.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail picture = Above the |Yfireplace|n is a large, somewhat abstract |Ypainting|n stretching its arm-like branches with shadowing that looks like a yawn.
#+END_SRC
@@ -4878,17 +4878,17 @@ We need to fix it so that =feed fire= just works.
*** Wood Rack
Need a way to produce wood for the fireplace.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop rack of wood;log rack;log holder;wood holder;wood;log :typeclasses.consumables.Producer
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc wood rack = Steel and leather hammock for a small pile of cut logs, perfect for |gfeed|ning to the |gfire|n.
#+END_SRC
We have to have the wood rack describe what it /makes/:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set wood rack/make_name = "log"
#
@set wood rack/make_aliase = ["wood"]
@@ -4896,33 +4896,33 @@ We have to have the wood rack describe what it /makes/:
And a verb when they /get/ the consumable:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set wood rack/make_verb = "$conj(get) a small"
#+END_SRC
And a commentary:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set wood rack/make_note = " from the wood rack"
#+END_SRC
This one is optional as it defaults to Consumable:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set wood rack/make_class = "typeclasses.things.Wood"
#+END_SRC
And the wood rack needs to know the /description/ of the Consumable, so that it can attach that:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set wood rack/make_desc = "Cut wood, perfect for feeding to the fire."
#+END_SRC
How much is there when you pick them?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set wood rack/make_amount = 1
#+END_SRC
Hide from immediate view:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set wood rack/hidden_tag = "hidden_woodrack"
#
@lock wood rack = view:tag(hidden_woodrack)
@@ -4940,13 +4940,13 @@ And testing this:
*** Knickknacks
What sort of non-books do we want to look at?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop few trinkets;trinkets;trinket;knickknacks;knickknackery;doodads;doodad;knick-knacks: typeclasses.things.Trinket
#+END_SRC
Let’s not let anything of this sort be picked up:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock trinkets = get:false()
#
@set trinkets/get_err_msg = "While interesting, perhaps you shouldn't steal Dabbler's personal collection."
@@ -4962,19 +4962,19 @@ Let’s make sure a new person always sees a trinket:
*** Magic 8 Ball
One trinket we might create to give to people as a souvenir.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create crystal ball;ball;magic ball: typeclasses.things.CrystalBall
#+END_SRC
And its description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc ball = A glass orb of billowing mist and patterns. |/When the << ^ swirling blue patterns ^ spinning octarine swirls ^ revolving stars>> clear, the glass reads,
#+END_SRC
And we should hide it:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set ball/hidden_tag = "hidden_ball"
#
@lock ball = view:tag(hidden_ball)
@@ -4986,12 +4986,12 @@ And we should hide it:
Since we mentioned shelves of books, we should create a Producer that makes a random book.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop number of bookshelves;bookshelf;shelves;bookcase;books;book:typeclasses.readables.Bookshelf
#+END_SRC
With a good description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc books = Shelves at various angles embellish the walls of this small, cozy room. Leatherbound books weigh down each shelf, while some stacks of books support other shelves.
#+end_src
@@ -5022,29 +5022,29 @@ Can we do the song and dance of getting a book? Should we simplify this?
*** Chairs
And [[file:~/src/moss-n-puddles/typeclasses/sittables.py::class Sittables(Sittable):][the chairs]] is a /plural/ location to sit, allowing anyone to sit down.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop overstuffed chairs:typeclasses.sittables.Sittables
#+END_SRC
Add aliases afterwards:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@alias overstuffed chairs = chairs;chair
# This only works if we make it plural:
@set overstuffed chairs/plural = True
#+END_SRC
And the description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc chairs = A few, dark leather, overstuffed chairs, each with a soft, colorful blanket and pillow. An invitation for a cozy nap.
#+END_SRC
Can’t steal ‘em:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock chairs = get:false()
#
@set chairs/get_err_msg = "It's way too heavy for you to lift."
#+END_SRC
And textual descriptions the object can use:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set chairs/adjective = "in"
#
@set chairs/article = "the"
@@ -5142,19 +5142,19 @@ And let’s not test /everything/ here:
*** Character: Dabbler
My characters should be NPCs, so they can stick around if I’m not logged in.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop Dabbler;gnome;old gnome: typeclasses.puppets.Puppet
#+END_SRC
Note that we give him a male gender:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set gnome/gender = 'male'
#+END_SRC
Work around the =pose= bug:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
py bt = self.search('gnome'); bt.sdesc.add('old gnome'); bt.db.pose = 'smiling at you'
#+END_SRC
@@ -5166,11 +5166,11 @@ Let’s give him a number of alternate names for the Recorder (mostly):
And give him the powers he deserves:
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@perm gnome = Admin
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set gnome/pose_sleep = "sleeping soundly in a large, overstuffed chair"
#
@set gnome/pose_default = "smoking his pipe"
@@ -5178,13 +5178,13 @@ And give him the powers he deserves:
And a good description that I can rework:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc gnome = A small, hunched old man with messy white hair, a gray vandyke and an eye twinkle.|/|/Spectacles perched precariously on the end of his hooked nose, wobble with his head. His bright crimson jacket contrasts with his dark brown cloak.
#+end_src
And an un-puppeted, sleeping, description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set gnome/desc_unpuppeted = "A small, hunched old man with messy white hair and a gray vandyke snoring soundly in one of the overstuffed chairs.|/|/Spectacles perched precariously on the end of his hooked nose, wobble with each breath. His bright crimson jacket contrasts with the dark brown blanket covering his legs."
#+END_SRC
@@ -5252,7 +5252,7 @@ And we create a couple of objects:
Like his special teacup:
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@create teacup;cup : typeclasses.drinkables.TeaCup
#
@desc teacup = A rustic teacup crafted from clay etched with leaves and runes, with an olive green and brown glaze.
@@ -5293,7 +5293,7 @@ And set the /typical/ state of =main=:
**** Staff
And my staff:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create gnarled staff;staff: typeclasses.things.Wand
#
@desc staff = An oaken staff with a sprig of two leaves next to a swirling ball of crystal embedded near the top.
@@ -5303,7 +5303,7 @@ And my staff:
And his spells that go with the staff:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set gnome/disappear_msg = "After a raspberry sound, the gnome, Dabbler, disappears in a wisp of smoke."
#
@set gnome/reappear_msg = "<> mist appears...along with the smell of sulphur... ;; When the smoke clears, an old gnome <>."
@@ -5315,7 +5315,7 @@ And his spells that go with the staff:
And help with the =fly= spell:
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
nick meadow = fly Frog Meadow
nick bar = fly Wyldwood Bar
#+END_SRC
@@ -5328,7 +5328,7 @@ This /crystal ball/ can be used to see what is going on in any area of the realm
And a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc scrying ball = A crystal orb that shows what's abroad.
#
@give scrying ball = gnome
@@ -5338,13 +5338,13 @@ And a description:
**** Pipe
The pipe is little more than messages to the smoker and everyone else in the room.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create carved pipe: typeclasses.things.Pipe
#+END_SRC
And a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc pipe = As tall as its owner with etchings of birds, leaves and magical symbols.
#
@give pipe = gnome
@@ -5422,13 +5422,13 @@ Start the hiders …
**** Journal
The pipe is little more than messages to the smoker and everyone else in the room.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create large book;journal: typeclasses.readables.Journal
#+END_SRC
Writing descriptions:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set journal/pre_write_msg = "With a small octarine spark, a quill appears in the air. $You() $conj(grab) the quill and begin to write in $pron(your) large book."
#
@set journal/post_write_msg = "The quill disappears in a small puff of smoke, as $you() $conj(close) $pron(your) book."
@@ -5436,7 +5436,7 @@ Writing descriptions:
And a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc journal = Leather-bound book, cracked and worn from ages.
#
@give journal = gnome
@@ -5449,19 +5449,19 @@ Need an interesting creature that likes to sleep by the fire, and perhaps give h
Do I match the Big Hairy Beast, or do I create it as a puppet?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop wee beastie;Mochi;stoat;pet: typeclasses.pets.WeeBeastie
#+END_SRC
And its description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc stoat = A charming creature with a slender, elongated body covered in soft, white fur that glistens like freshly fallen snow. When open, its large, round eyes are a striking shade of lavender, and its bushy tail, tipped with a hint of violet.
#+END_SRC
Can’t get this guy:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock stoat = get:false()
#
@set stoat/get_err_msg = "Each time you try to pick it up, it serpentines it way back to the chair."
@@ -5469,79 +5469,79 @@ Can’t get this guy:
Let’s get a bit more interaction with this pet:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stoat/active_amount = 8
#+END_SRC
It’s level doesn’t change much. :-D It is always less interested, just like a cat.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stoat/scared_msg = "Currently, coiled like a sleeping snake on one of the chairs."
#+END_SRC
And petting it when someone first comes in?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stoat/pet_scared_response = "While it doesn't stop $you() << from petting it ^ >>, the beastie flashes its long teeth."
#+END_SRC
And actions if a friendly person isn’t around:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stoat/scared_actions = "The wee beastie << asleep on the chair ^ >> let's out a yawn brandishing its large canines. ;; The wee beastie << asleep on the chair ^ >> uncoils itself, stretches, and recoils again. ;; You hear a deep throated rumbling from the wee beastie << asleep on the chair ^ >> . ;; The wee beastie twitches in its sleep, as if chasing down imaginary prey."
#+END_SRC
Concerned level:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stoat/concerned_msg = "Currently, curled into a ball on one of the chairs."
#+END_SRC
Pets?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stoat/pet_concerned_response = "$You() get little response from << your pets of ^ >> << the wee beastie ^ the beastie >>. "
#+END_SRC
And actions at this level are more cute than sinister:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stoat/concerned_actions = "The wee beastie << asleep on the chair ^ >> let's out an adorable yawn. ;; The wee beastie << asleep on the chair ^ >> uncurls itself, stretches, and recurls again. ;; You hear a deep purring sounds from the wee beastie << asleep on the chair ^ >>. ;; The wee beastie twitches in its sleep, as if playing with dream toys."
#+END_SRC
Interested level:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stoat/interested_msg = "<< Currently ^ It is >> curled into a ball asleep."
#+END_SRC
Pets
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stoat/pet_interested_response = "The << wee ^ >> beastie adorably moves its head into $your() pets."
#+END_SRC
And actions at this level are about as cute as a cat can be:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stoat/interested_actions = "The << sleepy ^ wee >> beastie << on $your() lap ^ >> let's out an adorable yawn. ;; The << sleepy ^ wee >> beastie << on $your() lap ^ >> uncurls itself, stretches, and recurls again. ;; $You() $conj(pet) the << sleepy ^ wee >> beastie << on |p lap ^ >> as it snuggles << close ^ >>. ;; You hear a deep purring sounds from the << sleepy ^ wee >> beastie << on $your() lap ^ >>. ;; The << sleepy ^ wee >> beastie twitches in its sleep, as if playing with dream toys."
#+END_SRC
Friendly level:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stoat/friendly_msg = "<< Currently ^ It is >> purring while curled up sleep."
#+END_SRC
Pets
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stoat/pet_friendly_response = "The << wee ^ >> beastie adorably moves its head into $your() pets. ;; $You() << $conj(rub) ^ $conj(pet) >> the stubby but soft ears of the << wee ^ >> beastie, as it lets out a little purr. ;; The << wee ^ >> beastie rolls onto its back while $you() $conj(rub) its tummy. It lets out a little purr. ;; $You() << $conj(scratch) ^ $conj(massage) >> the soft << back ^ rump >> of the << wee ^ >> beastie. It wriggles around trying to get the most of this attention."
#+END_SRC
And actions at this level are about as cute as a cat can be:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stoat/friendly_actions = "The << sleepy ^ wee >> beastie << on $your() lap ^ >> let's out an adorable yawn. ;; The << sleepy ^ wee >> beastie << on $your() lap ^ >> uncurls itself, stretches, and recurls again. ;; $You() $conj(pet) the << sleepy ^ wee >> beastie << on |p lap ^ >> as it snuggles << close ^ >>. ;; You hear a deep purring sounds from the << sleepy ^ wee >> beastie << on $your() lap ^ >>. ;; The << sleepy ^ wee >> beastie twitches in its sleep, as if playing with dream toys."
#+END_SRC
@@ -5574,7 +5574,7 @@ Fix bug of =get trinket= gives the player “a few tinkets” that are nothing s
And this pet loves his gnome.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set gnome/wee_beastie_friendly_level=500
#+END_SRC
@@ -5613,13 +5613,13 @@ Let’s test this creature:
** Kitchen
Better place to put the tea and scones.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@dig Cramped Kitchen;mp11 = archway to kitchen;kitchen;archway,back to main room;leave;main;back
#+END_SRC
And describe the exit:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc archway = Knarled roots of a tree forms an opening where you can see cabinets, a stove and even a teapot.
#
@set archway/traverse_msg = "You stoop again to enter the cramped room."
@@ -5627,7 +5627,7 @@ And describe the exit:
And describing the room:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp11
#
@desc here = This small, oddly shaped room contains low |Ycabinets|n. The |Yteapot|n on the |Ystove|n seems warm as if finishing the ritual of brewing tea. A |Yplate|n of |Yscones|n on the |Ycountertop|n smell inviting.
@@ -5635,7 +5635,7 @@ And describing the room:
And the exit:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc leave = Knarled roots of a tree forms an opening where you can see cabinets, a stove and even a teapot.
#
@set leave/traverse_msg = "You stoop again and leave the cramped room."
@@ -5643,15 +5643,15 @@ And the exit:
And some details:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail stove = Black, iron stove with rounded corners trimmed in gold. While cold, the |Yteapot|n on the |Ystove|n seems like it just made a tea. And yeah, the |Yscones|n seem fresh baked as well.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail countertop;countertops;counter = Covered in hand-sized black tiles with gold flecks that match the |Ystove|n. The |Yplate|n of |Yscones|n look freshly baked.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail plate = On the tiled |Ycountertop|n, a large plate carries a stack of fresh-baked |Yscones|n.
#
@detail scone;scones = A scones look tempting. Perhaps no one will miss one...
@@ -5672,12 +5672,12 @@ The style is a blend of Anglo-Saxon, fantasy elements.
*** Cabinets and Counter-tops
The Trolley [[file:~/src/moss-n-puddles/typeclasses/consumables.py::class Producer(Object):][produces]] teacups and random scones, which, like the [[Berry Trolley][berries]] can be eaten or fed to the wildlife.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop cabinet;cabinets : typeclasses.consumables.Trolley
#+END_SRC
We mentioned a /trolley/ with tea, cups and scones:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc cabinet = The cabinets contain an assortment of tea cups.
#+END_SRC
@@ -5690,7 +5690,7 @@ The cabinet can /bake/ scones:
#+END_SRC
We have to have the trolley bake something with the Python command:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
py here.search("cabinet").do_bake()
#+END_SRC
@@ -5714,7 +5714,7 @@ And let’s have the test grab a scone:
*** Tea Service
The “room” gives the teacups, and the “teapot” fills the cups, so we just need descriptions:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail teacups = An odd, yet interesting assortment of teacups. Take one.
#
@detail teacup = Each cup is unique. Take one to look further.
@@ -5723,7 +5723,7 @@ The “room” gives the teacups, and the “teapot” fills the cups, so we jus
A [[file:~/src/moss-n-puddles/typeclasses/drinkables.py::class Teapot(Object):][teapot]] will contain a type of tea … either given or randomly chosen.
A teapot will “fill” a teacup forever, until it is “remade”.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop teapot;pot;tea pot:typeclasses.drinkables.Teapot
#
@desc teapot = An adorable brown teapot, full of tea. You feel you could |gmake|n a fresh pot.
@@ -5731,7 +5731,7 @@ A teapot will “fill” a teacup forever, until it is “remade”.
And of course, you can’t steal the tea pot:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock teapot = get:false()
#
@set teapot/get_err_msg = "You don't need to carry it around to make tea."
@@ -5790,7 +5790,7 @@ And test the hints, just to be sure:
** Secret Room
Pulling on a candle opens a secret staircase!
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport/quiet mp03
#
@dig Secret Room;mp12:typeclasses.rooms_dark.DarkRoom = stairs behind bookcase;down;down stairs;secret passage;bookcase;passage,up the stairs;stairs;leave;up
@@ -5798,7 +5798,7 @@ Pulling on a candle opens a secret staircase!
Look and traverse:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc stairs = Behind the protruding bookcase, you see a staircase leading down into the darkness.
#
@set stairs/traverse_msg = "You carefully creep down the stairs behind the bookcase, lit by the candle in its holder. You hear the bookcase shut behind you."
@@ -5814,17 +5814,17 @@ We left the tester in the kitchen, let’s get him in the Cozy Room:
*** Sconce
The Candle holder must be both an Opener (with a =do_pull= method) and a Producer (making long-lasting candles).
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop sconce;candle holder;candle: typeclasses.consumables.Sconce
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc sconce = A black iron sconce holding a single lit |Ycandle|n. On closer examination, the bottom of this fixture appears to have a hinge?
#+END_SRC
Connect the exit:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set sconce/exit = $search(stairs behind bookcase)
#
@set sconce/room = $search(Cozy House)
@@ -5832,7 +5832,7 @@ Connect the exit:
Hide it a bit?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set sconce/hidden_tag = "hidden_sconce"
#
@lock sconce = view:tag(hidden_sconce)
@@ -5840,31 +5840,31 @@ Hide it a bit?
We can =get= an endless supply of candles here:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set sconce/make_name = "candle"
#+END_SRC
And a verb when they /get/ the consumable:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set sconce/make_verb = "$conj(take) the"
#
@set sconce/make_note = ", but another magically appears in its place"
#+END_SRC
This one is optional as it defaults to Consumable:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set sconce/make_class = "typeclasses.lightables.Candle"
#+END_SRC
And the sconce needs to know the /description/ of the Consumable, so that it can attach that:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set sconce/make_desc = "Curiously shaped taper with scales like a snake."
#+END_SRC
How much is there when you pick them?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set sconce/make_amount = 1
#+END_SRC
@@ -5886,13 +5886,13 @@ Can we see it?
*** Pulling Sconce
Temporarily move the exit into the room.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set sconce/pull_msg = "You hear a click, and the bookcase next to the candle swings forward revealing a |Ysecret passage|n."
#+END_SRC
Let’s reset it to start:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport/tonone stairs behind bookcase
#+END_SRC
@@ -5912,7 +5912,7 @@ Can we pull the sconce to reveal the secret bookcase?
*** Inside the Secret Room
Time to create the secret lab, the *Secret Room*.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport mp12
#
@desc here = A curious little room containing a |Ystool|n next to a |Ytable|n covered with alchemical |Yequipment|n--a testament to the arcane arts--cluttered yet meticulously organized.
@@ -5920,7 +5920,7 @@ Time to create the secret lab, the *Secret Room*.
Add aliases that make sense:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc stairs = Stone steps leading back to the surface. You are sure you will be able to find the latch to let yourself out.
#
@set stairs/traverse_msg = "You climb the stone stairs. Feeling around, you find the latch and let yourself out."
@@ -5928,31 +5928,31 @@ Add aliases that make sense:
Until we decide if we want to do something with the table:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail table = Made from a polish black wood, etched with intricate runes that shimmer faintly in the candlelight.
#+END_SRC
Are the equipment stuff we could =use=?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail equipment;alchemical;alchemical equipment = A |Ymortar|n and |Ypestle|n, |Yvials|n, crystal |Yphials|n, |Yjars|n, and |Ytools|n all surround a black |Ycauldron|n.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail mortar;pestle;mortar and pestle = An obsidian mortar, its surface smooth and cool to the touch. Beside it, a pestle carved from a single piece of ancient bone, adorned with carvings of arcane symbols.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail vials = Scattered across a small shelf, an array of empty glass vials. Perhaps you could fill these with potions yet to be created?
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail phials = Delicate crystal phials, each shaped like a teardrop, attach to a wrought iron rack. Each contain vibrant liquids that swirl with colors not found in nature. Magically sealed, these phials may store volatile substances, which require special containment to prevent their magical properties from dissipating.
#+END_SRC
And tools that definitely need to /stay here/:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail tools = A set of finely crafted tools lies neatly arranged on a velvet cloth: a pair of tweezers for handling delicate ingredients, a small scalpel for precise cutting, and a set of measuring spoons made from silver, each engraved with different symbols representing the elements.
#+END_SRC
@@ -6057,22 +6057,22 @@ How can we test this cool feature?
*** Stool
A stool to sit while working
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop stool:typeclasses.sittables.Sittable
#+END_SRC
How descriptive:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc stool = A place to sit while synthesizing experiments.
#+END_SRC
Can’t steal this stool either:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock stool = get:false()
#+END_SRC
Let’s do a funnier message:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set stool/get_err_msg = "Stop trying to steal everything not nailed down."
#+end_src
@@ -6095,19 +6095,19 @@ And test this out;
A mystic book of potions can add a new dimension to the game.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop leather-bound book;book;grimoire:typeclasses.readables.Book
#+END_SRC
The book’s title and description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc grimoire = An old brown book where even the cover has seen considerable wear with stains and scratches in the leather. The band connect to a gold ring, itself attached to a chain that hooks it to the table. The title reads, |MFavorite Potions|n. Inside, written in beautiful penmanship, the book contains recipes.
#+END_SRC
Lock it down.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock grimoire = get:false()
#
@set grimoire/get_err_msg = "The book is chained to the table."
@@ -6115,7 +6115,7 @@ Lock it down.
And of course, the inside.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set grimoire/inside = "file:world/alchemy-book.md"
#+END_SRC
@@ -6123,7 +6123,7 @@ The contents must be in a file, and we need to add a pager.
The prefix can be:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set grimoire/prefix = "Undoing the brass clasp that bind the old leather book, you open to page one and begin reading the elegant calligraphy..."
#+END_SRC
@@ -6152,18 +6152,18 @@ What about these commands?
- =crush= for use in mortal and pestle
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop black cauldron: typeclasses.alchemy.Cauldron
#+END_SRC
And the details:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc cauldron = A small, cast-iron cauldron sits on an iron stand, its interior stained from countless brews. Someone surrounded the cauldron with a ring of salt, a protective barrier against unwanted energies. A small fire burns beneath it, ready to heat concoctions.
#+END_SRC
Lock it down:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock cauldron = get:false()
#+END_SRC
@@ -6181,24 +6181,24 @@ Make sure we can’t take it:
The table is a producer of /bottles/.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop shelf of empty bottles;shelf;bottles;bottle: typeclasses.consumables.Producer
#+END_SRC
With a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc shelf = Cluttered with some empty brown |Ybottles|n. Perhaps you can fill these with liquid ingredients and bring them back here.
#+END_SRC
We have to have the bush describe what it /makes/:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set shelf/make_name = "bottle"
#
@set shelf/make_verb = "$conj(pick up) a"
#+END_SRC
This one is optional as it defaults to Consumable:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set shelf/make_class = "typeclasses.drinkables.Bottle"
#
@set shelf/make_desc = "A brown glass bottle. Currently empty."
@@ -6220,23 +6220,23 @@ Our tests from here on out demand a bottle…
*** Imp
Every secret alchemical lab should have an Imp familiar.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop Impetus;imp: typeclasses.puppets.Puppet
#+END_SRC
Note that we give him a male gender:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set imp/gender = "neutral"
#+END_SRC
Work around the =pose= bug:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
py bt = self.search('imp'); bt.sdesc.add('imp'); bt.db.pose = 'sitting on an ornate perch'
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set imp/pose_sleep = "sitting on an ornate perch"
#
@pose default imp = sitting on an ornate perch
@@ -6244,25 +6244,25 @@ Work around the =pose= bug:
And a good description that I can rework:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc imp = Peculiar little fellow gives you a quizical look from its roost on a wrought iron perch that it clutches with its clawed feet and barbed, prehensile tail.
#+END_SRC
And an un-puppeted, sleeping, description:
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@set imp/desc_unpuppeted = "... not used ..."
#+END_SRC
When any one arrives, we assume that they are no longer a beginner, and have /graduated/ to see the world in a different way, and we use the tag, =alchemist= as a view lock on all the ingredients.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set imp/arrive = "tag_all alchemist ;; untag_all beginner ;; 240 ;; emote yawns."
#+END_SRC
Would be nice if it has a variety of responses to speech.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set imp/say = "1 ;; emote << nods ^ looks at you quizically ^ stares at you curiously ^ shrugs ^ investigates its fingerclaws ^ winks ^ smirks ^ raises an eyebrow ... well, if it had one, it would ^ stares at you ^ squints its eyes >>."
#+END_SRC
@@ -6442,7 +6442,7 @@ How can the Imp help here? Telepathy? Pointing?
** Bedroom
A bedroom with a wardrobe that goes to another land sounds great.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport/quiet mp03
#
@dig Bedroom;mp13:typeclasses.rooms.OpenableRoom = stairs up to a loft;up stairs;up;loft;bedroom,down the stairs;down;stairs;leave
@@ -6450,14 +6450,14 @@ A bedroom with a wardrobe that goes to another land sounds great.
Look see:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc loft = Ornate black irons banister outline the thick wood planks that form steps leading to some lofty alcove.
#
@set loft/traverse_msg = "You walk up the shadowy stairs..."
#+END_SRC
And a description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport/quiet mp13
#
@desc here = Like the shadows that dance here, this oddly shaped room hugs its contents: a thick wooden framed |Ybed|n piled high with warm |Yblankets|n and fluffy |Ypillows|n, keep out the chill; a thick burgundy |Ycarpet|n sporting a pair of |Yslippers|n; and a |Ywardrobe|n decorated with ornate leaves and berries.
@@ -6465,7 +6465,7 @@ And a description:
And describe the exit:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc down the stairs = Ornate black irons banister outline the thick wood planks that form steps leading down to living space below.
#
@set down the stairs/traverse_msg = "You walk down the stairs to the living space below."
@@ -6473,7 +6473,7 @@ And describe the exit:
And of course, you can see more details:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail bed = Cozy and inviting, like most things in this house, someone covered this bed in warm blankets and fluffy pillows in rich, warm colors. The frame, formed from a single tree that grew to hold this bed.
#
@detail blankets = Thick and warm to ward off the outside rain and chill.
@@ -6485,7 +6485,7 @@ And of course, you can see more details:
Are the slippers just a red herring?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop pair slippers
#
@desc slippers = Red-leather and worn with an ornate tassel on top.
@@ -6526,13 +6526,13 @@ Generate a watercolor with pen and ink outlining in the style of David Brayne, d
*** Wardrobe
One needs to open it to go to another world.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@dig Prairie;mp14 = through the wardrobe;wardrobe,copse of pinion pines;pines;copse;trees;leave
#+END_SRC
And describe the exit:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc wardrobe = Behind the cloaks and jackets, you see long, green needles from pine trees, and beyond that, a clearing!
#
@set wardrobe/traverse_msg = "You part and push through the cloaks, jackets and waistcoats, and into a copse of pinion trees, to reach a wide open space of grass."
@@ -6548,7 +6548,7 @@ And describe the exit:
And messages for opening and closing the wardrobe:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set here/open_exit_msg = "$You() $conj(open) the wardrobe, revealing the cloaks, jackets, and ... green needles from pine trees? What is going on here? Between the trees, you see a clearing!"
#
# Not sure if the door closed automatically, or if someone closed it, so we use a passive sentence:
@@ -6557,7 +6557,7 @@ And messages for opening and closing the wardrobe:
How will we distinguish between the wardrobe, the exit and the object that controls the exit? The room could have an “open” and “close” that could teleport and remove the exit.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop wardrobe
#
@desc wardrobe = While resting on the floor, this wardrobe scratches the ceiling. Large furniture, or perhaps a small room? Gorgeously ornate with carvings of leaves and berries. Carved above the doors, are the words, |wUKRAH|n. The latch is undone, and can be |gopen|ned.
@@ -6565,13 +6565,13 @@ How will we distinguish between the wardrobe, the exit and the object that contr
The =look= command could be distinguishing using aliases of “the exit” and “the furniture”?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@alias wardrobe = the object
#+END_SRC
Don’t allow it to get taken:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock wardrobe = get:false()
#
@set wardrobe/get_err_msg = "The wardrobe is way too big to lift."
@@ -6613,7 +6613,7 @@ Sooo obvious. But what is the narrator here?
** Southwest Prairie
What am I doing here?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport/quiet mp14
#
@desc here = On the edge of a small |Yknoll|n with a |Ycopse|n of trees, the space stretches to a rolling dawnclear, blue skies pushing down the horizona distant sunset attempting to pull the sky down with it bright, star painted skies.
@@ -6621,7 +6621,7 @@ What am I doing here?
Describe the exit:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc copse = A copse of trees covers the top of the knoll. Hanging from a tree, a lit |Ylantern|n, as if showing the way to another world.
#
@set copse/traverse_msg = "You push through the tree's long pine needles to then push through the cloaks and jackets to exit the wardrobe."
@@ -6629,7 +6629,7 @@ Describe the exit:
Details?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail knoll;hillock;knell = The land stretches and buckles in small rolls. You find yourself and one of the high points, allowing you to absorb the immense view.
#
@detail lantern = Curious iron worked lantern sways in the subtle breeze.
@@ -6664,23 +6664,23 @@ Create a watercolor image of a grassy prairie during the evening with a small ca
*** Mare’s Head
Taken from [[https://en.wikipedia.org/wiki/Mare%27s_Head][Wikipedia]].
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop Mares Head;head: typeclasses.puppets.Puppet
#+END_SRC
Note that we give him a male gender:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set mares head/gender = "neutral"
#+END_SRC
Work around the =pose= bug:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
py bt = self.search('head'); bt.sdesc.add('curious figure'); bt.db.pose = 'sitting next to a small |Ycampfire|n'
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set mares head/pose_sleep = "sitting next to a small |Ycampfire|n"
#
@set mares head/pose_default = "sitting next to a small |Ycampfire|n"
@@ -6690,23 +6690,23 @@ Work around the =pose= bug:
And a good description that I can rework:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc mares head = A curious figure wearing dark robes and a gleaming white skull of a mare. Interestingly, the skull has velvety horse |Years|n.
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail ears;ear = They look real, and twitch as if alive.
#+END_SRC
And when someone arrives:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set mares head/arrive = "4 ;; emote nods its skull in greeting. ;; 30 ;; emote stares at you with its empty sockets. ;; emote reaches into the fire, pulls out a branch, and brushes off the soot. ;; scoring get_pipe to {0} ;; gift pipe to {0}"
#+END_SRC
And what if they attempt to interact?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set mares head/say = "3 ;; emote << nods ^ shakes it head...er, skull ^ looks at you with its empty eye sockets ^ shrugs ^ pokes the fire with a stick ^ raises an eyebrow ... well, if it had one, it would ^ shifts from his log seat. As it does, its black cloak billows ^ squints its eyes...er, eye sockets? Best not think about it ^ A fuzzy ear on the skull of the /me twitches >>."
#+END_SRC
@@ -6742,24 +6742,24 @@ Because this is a under construction section, we will:
Let’s allow anyone here to sit on a log next to the campfire ..
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop couple long log;log:typeclasses.sittables.Sittables
#+END_SRC
And the description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc log = A long, smooth log rests next to the inviting campfire.
#+END_SRC
Can’t steal ‘em:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock log = get:false()
#
@set chairs/get_err_msg = "It's way too heavy for you to lift. Besides, were you planning on burning it or something?"
#+END_SRC
And textual descriptions the object can use:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set log/article = "the"
#
@set log/singular = "the log next to the campfire"
@@ -6812,7 +6812,7 @@ The entrance to the dungeon experience will be under the mattress in [[Lair][the
And we create a trapdoor in the Lair:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop trapdoor: typeclasses.things.ClosingDoor
#
@desc trapdoor = A wood door with reinforced iron bands on the floor, under the heavy mattress.
@@ -6891,7 +6891,7 @@ Let’s check it out:
*** Murky Stream, Lower
This murky stream that comes from the crack in the wall, could be turned into scotch with the right about of puzzle solving.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
# @teleport/quiet mp20
#
@create/drop stream of murky water: typeclasses.drinkables.Water
@@ -7021,13 +7021,6 @@ How can we test this cool feature?
expect -re "You (look|notice)"
#+END_SRC
-Return to the Dark Tunnel:
-
-#+BEGIN_SRC tcl
- send "leave\n"
- expectit "Tunnel"
-#+END_SRC
-
*** The Project
Let’s create a project that can be completed by the player.
@@ -7070,6 +7063,18 @@ And this is the name and description when the project is finished:
#+END_SRC
Let’s assume that George will tell the user that he needs feathers in order to finish the project.
+
+#+BEGIN_SRC tcl
+ send "look project\n"
+ expectit "might help it fly"
+
+ send "give feathers to george\n"
+ expectit "george"
+
+ send "look project\n"
+ expectit "flies about"
+#+END_SRC
+
*** George the Dwarf Tinkerer
:PROPERTIES:
:header-args:markdown: :tangle personalities/dwarf.md
@@ -7154,6 +7159,13 @@ And let’s awaken him:
py dwarf = me.search("dwarf") ; dwarf.backstory("dwarf")
#+END_SRC
+While here, let’s return the test subject to the Dark Tunnel:
+
+#+BEGIN_SRC tcl
+ send "leave\n"
+ expectit "Tunnel"
+#+END_SRC
+
** Damp Cave
:PROPERTIES:
:header-args:markdown: :tangle personalities/tea-party.md
@@ -7196,7 +7208,7 @@ And test it:
expectit "Damp Cave"
#+END_SRC
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail party = The |Ygoblin|n has made an inconceivable attempt at a tea party, including |Ycookies|n. Perhaps the chips in the |Yteacups|n are still |wtea-worthy|n.
#+END_SRC
@@ -7207,7 +7219,7 @@ And test it:
*** Mucky Stream, Upper
This murky stream that comes from the crack in the wall, could be turned into scotch with the right about of puzzle solving.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
# @teleport/quiet mp20
#
@create/drop stream of mucky water: typeclasses.drinkables.Water
@@ -7245,7 +7257,7 @@ And since we already mentioned the stream, we don’t need to see it in the list
*** Tea Service
The Trolley class (we stole from Dabbler’s Kitchen) [[file:~/src/moss-n-puddles/typeclasses/consumables.py::class Producer(Object):][produces]] teacups and random food items.
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop table;plank : typeclasses.consumables.Trolley
#+END_SRC
@@ -7287,13 +7299,13 @@ And how do new cookies appear?
#+END_SRC
We have to have the trolley bake something with the Python command:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
py here.search("table").do_bake()
#+END_SRC
We mentioned a /trolley/ with teacups, but we need to change the teacup descriptions:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@detail teacups = An odd, yet interesting assortment of chipped teacups. Take one.
#
@detail teacup = Each cup is unique. Take one to look further.
@@ -7331,41 +7343,41 @@ Should we create a tea pot for filling the tea cups? Or do we just fill the teac
#+END_SRC
*** Rocky Chair
Let’s make a nice rock to sit down on:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@create/drop flat rock:typeclasses.sittables.Sittable
#+END_SRC
With a nice description:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc flat rock = A flat rock placed next to the |Ytable|n.
#+END_SRC
Can’t take the moss with you:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock flat rock = get:false()
#+END_SRC
Can we hide it too?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@lock flat rock = view:tag(hidden_rock)
#
@set flat rock/hidden_tag = "hidden_rock"
#+END_SRC
And a lovely message about why you can’t the goblin’s chair:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set rock/get_err_msg = "You can't take it. Why? A bit big. A bit heavy. Mostly this rock was selected because of the buttockally-shaped divets that make it an ideal perch when attending a tea party."
#+END_SRC
Is /pulling/ on moss the same as attempting to =get= it?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set rock/pull_msg = "You pull the rock closer to the |Ytable|n, as you want in on all this tea party action."
#+END_SRC
What about pushing?
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set rock/push_msg = "You push the rock away from the |Ytable|n. Too much tea?"
#+END_SRC
@@ -7553,12 +7565,12 @@ And create an easy exit back to the game:
And do the usual tricks on Exits:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@desc portal = Octarine sparks spiral in the mists that swirl between the stones.
#+END_SRC
And a nice journey message to go east out of the forest:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@set portal/traverse_msg = "As soon as you step between the stones, you feel like you are carried away..."
#+END_SRC
*** Sir Roblees the Flamboyant Dragon
@@ -7637,7 +7649,7 @@ Next, his personality:
And what he knows:
-#+BEGIN_SRC markdown :tangle personalities/dragon.md
+#+BEGIN_SRC markdown
What you know:
Your friend, Dabbler, an old gnome who lives in a tree on the path that goes to the west.
Dabbler is gracious allowing anyone to help themselves to his scones and tea.
@@ -7707,7 +7719,7 @@ And get him moving:
Like other NPCs, an AI prompt can get this guy more interesting that anything I can program. First, we begin with the standard statement that begins all the prompts:
-#+BEGIN_SRC markdown :tangle personalities/hobbit.md
+#+BEGIN_SRC markdown
Assume the role of the following fictional character in a fantasy role
playing game in a mythical forest in the Feywild.
Although, you should never mention the word "Feywild", but instead,
@@ -7724,7 +7736,7 @@ Limit your response to three or less lines unless you are telling a story.
Next, his personality:
-#+BEGIN_SRC markdown :tangle personalities/hobbit.md
+#+BEGIN_SRC markdown
Name: Darol
Gender: male
Description: An adventurous looking chap with brown mutton chops matching his curly brown hair and his brown cloak. His emerald green eyes match his coat that ends just above his large gold belt buckle, which in turn, matches his gold hoop earring. His backpack sports a pin with a mysterious insignia that he won't divulge any details, but becomes vague and illusive.
@@ -7734,7 +7746,7 @@ Next, his personality:
And what he knows:
-#+BEGIN_SRC markdown :tangle personalities/hobbit.md
+#+BEGIN_SRC markdown
You have traveled all over the land, and know the following things:
- The beast in the meadow is sweet, but scared. It likes berries, but likes scones even better.
- The raven on the dock is friendly, but obnoxious. Almost as obnoxious as the fish you can catch.
@@ -8130,7 +8142,7 @@ This grass, often called seagrass since it vibrates as if laughing. The herb hun
And we create it:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport/quiet gr02
#
@create/drop patch of seagrass;seagrass;sea grass;grass: typeclasses.consumables.Producer
@@ -8620,7 +8632,7 @@ Which should show us all three pets (BHB, wee beastie and the fireplace) as well
And now that we are done, say it:
-#+BEGIN_src evennia
+#+BEGIN_SRC evennia
@teleport/quiet mp01
#
say I have finished this, the first version, of my creation.
@@ -8780,29 +8792,6 @@ Let’s try the next potion, the /Somnium Illusorium/:
send "west\n"
expectit "Grove"
- send "south\n"
- expectit "Lazy Dock"
-
- # WHAT!?
- send "disembark\n"
- expectit "Lonely Island"
-
- send "get moonberry\n"
- expectit "You collect a handful of moonberries"
-
- # While we are here, we should solve the puzzle...but...
- # we will just jump back on the boat before it leaves.
-
- send "boat\n"
- expectit "The giant leaf slows as it arrives and docks allowing you to disembark"
-
- send "disembark\n"
- expectit "Lazy Dock"
- set timeout 30
-
- send "north\n"
- expectit "Grove"
-
send "west\n"
expectit "Grotto"
@@ -9037,7 +9026,7 @@ If a person creates a character, instead of giving them a personal letter, let
Each section should have a list of phrases spoken or “done” on a timer.
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
You see a tiny bird with blue feathers trimmed with white. It's large black eyes looks at you quizically. It seems friendly, and overly helpful.
#+END_SRC
@@ -9110,19 +9099,19 @@ Each section should have a list of phrases spoken or “done” on a timer.
* Evennia Details
** Scripts
This is an obnoxious, but interesting effects:
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@script self = tutorials.bodyfunctions.BodyFunctions
#+end_src
And stop it with:
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@script/stop self = tutorials.bodyfunctions.BodyFunctions
#+end_src
** Accounts
Can we fix the permissions for our friends:
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
perm/account steve = Builders
#+END_SRC
@@ -9205,13 +9194,13 @@ py cuddly = evennia.search_object("Cuddly")[0] ; cuddly.move_around()
Or:
-#+BEGIN_src evennia :tangle no
+#+BEGIN_SRC evennia :tangle no
@create/drop Fluffy:typeclasses.monsters.Dragon
#+end_src
* Server Deployment
Created the following section in =/etc/apache2/sites-enabled/howardabrams.conf=:
-#+BEGIN_SRC conf
+#+BEGIN_SRC conf :tangle no
# Proxy all websocket traffic to port 4002 in Evennia
ProxyPass /ws ws://127.0.0.1:4002/
ProxyPassReverse /ws ws://127.0.0.1:4002/
diff --git a/typeclasses/objects.py b/typeclasses/objects.py
index ecfaabd..01674ef 100755
--- a/typeclasses/objects.py
+++ b/typeclasses/objects.py
@@ -355,7 +355,7 @@ class Object(ObjectParent, ContribRPObject):
get_display_things(looker, **kwargs)
get_display_footer(looker, **kwargs)
format_appearance(appearance, looker, **kwargs)
- return_apperance(looker, **kwargs)
+ return_appearance(looker, **kwargs)
* Hooks (these are class methods, so args should start with self):
diff --git a/typeclasses/readables.py b/typeclasses/readables.py
index 63b8332..a85c468 100755
--- a/typeclasses/readables.py
+++ b/typeclasses/readables.py
@@ -239,7 +239,7 @@ class Bookshelf(Producer):
return (
title,
routput("""a <>
- <> book, titled, |w{0}|n
+ <> |Ybook|n, titled, |w{0}|n
""", title),
routput(
"""
diff --git a/world/test-run.exp b/world/test-run.exp
index 5c66125..9b7fd87 100755
--- a/world/test-run.exp
+++ b/world/test-run.exp
@@ -1144,6 +1144,15 @@ expectit "Workshop"
send "look gadget\n"
expect -re "You (look|notice)"
+send "look project\n"
+expectit "might help it fly"
+
+send "give feathers to george\n"
+expectit "george"
+
+send "look project\n"
+expectit "flies about"
+
send "leave\n"
expectit "Tunnel"
@@ -1455,25 +1464,6 @@ expectit "Frog Meadow"
send "west\n"
expectit "Grove"
-send "disembark\n"
-expectit "Lonely Island"
-
-send "get moonberry\n"
-expectit "You collect a handful of moonberries"
-
-# While we are here, we should solve the puzzle...but...
-# we will just jump back on the boat before it leaves.
-
-send "boat\n"
-expectit "The giant leaf slows as it arrives and docks allowing you to disembark"
-
-send "disembark\n"
-expectit "Lazy Dock"
-set timeout 30
-
-send "north\n"
-expectit "Grove"
-
send "west\n"
expectit "Grotto"
diff --git a/world/version1.ev b/world/version1.ev
index 750bef2..d83b42c 100644
--- a/world/version1.ev
+++ b/world/version1.ev
@@ -3785,7 +3785,7 @@ py me.search("raven").backstory("raven")
# [[file:../moss-n-puddles.org::*Wood Rack][Wood Rack:1]]
-@create/drop wood rack;log rack;log holder;wood holder;wood;log :typeclasses.consumables.Producer
+@create/drop rack of wood;log rack;log holder;wood holder;wood;log :typeclasses.consumables.Producer
# Wood Rack:1 ends here
# [[file:../moss-n-puddles.org::*Wood Rack][Wood Rack:2]]
@@ -4398,6 +4398,33 @@ give monocle to Dabbler
+# Since the beastie doesn’t go anywhere, we could probably attach the following “room actions” to it?
+
+# - The scent of fresh-baked scones drifts from the kitchen, rich with butter.
+# - A book from the shelf slides out, and flaps it pages like a bird before resting on another shelf.
+# - A swirling portal of magic opens near a bookcase, a devilish head emerges and looks around. It shakes it head and returns into the energy. With a pop of octarine, the portal closes.
+# - The tiny brass dragon on the mantel turns its head to watch you pass.
+# - The brass dragon on the mantel sneezes a puff of harmless sparks.
+# - The smoke from the old man’s pipe curls into tiny dancing gnomes before vanishing in the darkness of the ceiling.
+# - Among the books on the shelf, the clock ticks backward for three beats, then resumes its proper rhythm.
+# - A porcelain frog on the mantel croaks. ;; “Sorry,” says the frog, “I’ll try to be more quiet.”
+# - A silver mouse wind-up toy patrols the bookshelves, stopping to salute every portrait.
+# A china owl blinks awake at midnight and asks if anyone has seen its spectacles.
+# A brass beetle scuttles across the mantel, polishing every trinket it passes with its tiny feet.
+# A painted cat on a teacup flicks its tail whenever the tea is too strong.
+# A little stone gargoyle atop the hearth coughs whenever the fire pops, then pretends it was clearing its throat.
+
+# Many of these require details or knick-knacks to back it up:
+# - brass dragon
+# - clock
+# - porcelain frog
+# - owl
+# - brass beetle
+# - gargoyle
+# - tarot cards
+
+# Fix bug of =get trinket= gives the player “a few tinkets” that are nothing special.
+
# And this pet loves his gnome.
@@ -4411,7 +4438,7 @@ give monocle to Dabbler
# [[file:../moss-n-puddles.org::*Stoat the Wee Beastie][Stoat the Wee Beastie:18]]
-@set stoat/arrive = "5 ;; gma {0} = A sleeping << wee ^ >> beastie, opens one curious eye to look at $you()."
+@set stoat/arrive = "5 ;; gma {0} = A << sleeping ^ dozing ^ >> << wee ^ >> beastie, opens one curious eye to look at $you()."
#
# @set stoat/sit = "3 ;; gm A sleeping << wee ^ >> beastie, opens one curious eye to see who arrived."
# Stoat the Wee Beastie:18 ends here