From 45959b01ce7d0887f8a0db8b738f11382ba6a62e Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Sun, 13 Apr 2025 21:43:26 -0700 Subject: [PATCH] We now have a living Big Hairy Beast --- commands/feedables.py | 1 - typeclasses/characters.py | 8 +- typeclasses/objects.py | 3 + typeclasses/pets.py | 172 +++++++++- typeclasses/rooms.py | 13 + typeclasses/rooms_weather.py | 20 +- typeclasses/things.py | 28 +- utils/word_list.py | 30 +- world/version1.ev | 612 +++++++++++++++++++++++++---------- 9 files changed, 668 insertions(+), 219 deletions(-) diff --git a/commands/feedables.py b/commands/feedables.py index 2abe717..e9120f3 100755 --- a/commands/feedables.py +++ b/commands/feedables.py @@ -24,7 +24,6 @@ class CmdFeed(Command, NumberedTargetCommand): self.caller.msg("Feed what?") elif not self.rhs: target = self.caller.search(self.lhs) - self.caller.msg(f"Feeding {target}") if target: target.feed(self.caller) else: diff --git a/typeclasses/characters.py b/typeclasses/characters.py index ad7f1d0..b71d70f 100644 --- a/typeclasses/characters.py +++ b/typeclasses/characters.py @@ -90,8 +90,6 @@ class Character(Object, DefaultCharacter): return self.msg(f"{victim.key} doesn't have a {to_take} you can take.") - else: - self.msg(f"You don't see {from_whom}.") def at_pre_move(self, destination, **kwargs): """ @@ -143,12 +141,12 @@ class Character(Object, DefaultCharacter): Where thing is the single name of the hidden object. """ - hidden_tag = f"hidden_{target}" - lock_string = f"view:tag({hidden_tag}, mp)" + hidden_tag = target.db.hidden_tag or f"hidden_{target}" + lock_string = f"view:tag({hidden_tag})" view_lock = target.locks.get("view") if view_lock == lock_string: - self.tags.add(hidden_tag, category="mp") + self.tags.add(hidden_tag) if target.is_typeclass("typeclasses.rooms.Room"): self.db.tutorstate = self.db.tutorstate | TutorialState.LOOK.value diff --git a/typeclasses/objects.py b/typeclasses/objects.py index 7a33836..5d2a669 100755 --- a/typeclasses/objects.py +++ b/typeclasses/objects.py @@ -1,5 +1,8 @@ #!/usr/bin/env python +import datetime + +from evennia import gametime from evennia.utils import delay, logger """ diff --git a/typeclasses/pets.py b/typeclasses/pets.py index fbd6445..9be8eaf 100755 --- a/typeclasses/pets.py +++ b/typeclasses/pets.py @@ -16,12 +16,13 @@ from time import time import random from evennia import TICKER_HANDLER +from evennia.utils.gametime import schedule from typeclasses.objects import Object from typeclasses.characters import Character # from typeclasses.lightables import LightSource from commands.feedables import CmdFeedSet -from utils.word_list import squish, choices +from utils.word_list import squish, choices, split_party_msg class Hunger(Enum): @@ -67,11 +68,8 @@ class Pet(Object): self.db.hunger_level = Hunger.FULL.value - # subscribe ourselves to a ticker to repeatedly call the hook - # "update_weather" on this object. The interval is randomized - # so as to not have all weather rooms update at the same time. - self.db.interval = random.randint(70, 90) - TICKER_HANDLER.add(interval=self.db.interval, callback=self.update_state) + # Update the state (whatever that may mean), each minute: + TICKER_HANDLER.add(interval=60, callback=self.update_state) super().at_object_creation() @@ -92,9 +90,9 @@ class Pet(Object): def update_state(self, *args, **kwargs): """ - Called by the tickerhandler at regular intervals. Even so, we + Called by the TickerHandler at regular intervals. Even so, we only update at a hungry_rate of the time, picking a random weather message - when we do. The tickerhandler requires that this hook accepts + when we do. The TickerHandler requires that this hook accepts any arguments and keyword arguments (hence the *args, **kwargs even though we don't actually use them in this example) """ @@ -195,6 +193,9 @@ class Fire(Pet): return True +# ---------------------------------------------------------------------- +# Migrating Pets move from room to room during particular times + # ---------------------------------------------------------------------- # Friendly @@ -219,6 +220,9 @@ class Friendly(Pet): """ super().at_object_creation() + # We have a list of actions that were spammed to the room: + self.db.last_actions = [] + # The higher this value the more "spammy" a pet is in making # comments in the room: self.db.active_amount = 3 @@ -374,10 +378,8 @@ class Friendly(Pet): self.adjust_all_locally(self.db.shyness_amount or 5) # How spammy do we want the pet to be? - if random.randint(0, 100) < self.db.active_amount: + if random.randint(0, 100) < (self.db.active_amount or 3): self.do_action() - else: - print("Nope") def do_action(self): # Do something based on the highest friendly level is the same area! @@ -396,8 +398,146 @@ class Friendly(Pet): # If we have an ecstatic message, use it otherwise, grab the friendly: msg = choices(self.db.ecstatic_actions or self.db.friendly_actions) - focus.msg( - sub("", "You", sub("", "you", msg)) - ) - self.location.msg_contents(sub("<[Yy]ou>", focus.name.title(), msg), - exclude=focus) + if msg and msg not in self.db.last_actions: + self.db.last_actions.append(msg) + # Limit this list so it doesn't grow too large: + self.db.last_actions = self.db.last_actions[-5:] + split_party_msg(focus, msg) + + +class BHB(Friendly): + def return_appearance(self, looker): + if self.db.is_awake: + return super().return_appearance(looker) + else: + return "It currently slumbers on its huge mattress." + + def update_state(self): + + wake_hour = self.db.wake_hour or 8 + sleep_hour = self.db.sleep_hour or 20 + + (minute, hour, tod, season) = self.location.get_time() + + if hour >= wake_hour and hour < sleep_hour and minute > 6: + self.db.is_awake = True + else: + self.db.is_awake = False + + noun = random.choice(["beast", "BHB", "monstrous beast", + "big, hairy beast"]) + + if hour == wake_hour: + if minute == 0: + msg = f"The {noun} begins to stir from slumber." + elif minute == 3: + msg = f"The {noun} rises and stretches ..." + elif minute == 5: + msg = f"The {noun} lets loose a big yawn." + + if hour == sleep_hour: + if minute == 0: + msg = f"The {noun} look up at the darkening sky." + elif minute == 3: + msg = f"The {noun} lets loose a big yawn." + + if self.db.is_awake and self.location == self.global_search('The Cave'): + self.execute_cmd("leave") + elif not self.db.is_awake and self.location == self.global_search('Meadow'): + self.execute_cmd("cave") + + if msg and self.location: + self.location.msg_contents(msg) + else: + # This might call the do_action(): + super().update_state(*args, **kwargs) + + def do_action(self): + """ + We only override the Friendly 'do_action' if the beast is + asleep on its huge pilla'. + """ + if self.db.is_awake: + super().do_action() + else: + msg = choices(self.db.sleeping_actions) + if msg != self.db.last_actions: + self.db.last_actions.append(msg) + # Limit this list so it doesn't grow too large: + self.db.last_actions = self.db.last_actions[-5:] + + self.location.msg_contents(msg) + + def feed(self, feeder, item=None): + """ + Feeding the beast. If item is None, we choose something + the character has, and go with that... + """ + # Categorize items that can be used to feed the beast: + def is_berry(item): + return (not item and feeder.has("berries")) or (item and item.key == 'berries') + def is_scone(item): + return (not item and feeder.has("scone")) or (item and item.key == 'scone') + + # Based on the reaction to the feeder, the adjectives may alter: + noun = "The " + random.choice(["huge", "big, hairy"]) + " beast" + + match self.friendly_reaction(feeder): + case Reaction.SCARED: + how_sniff = "carefully" + how_eat = "cautiously" + and_then = "an then runs away to the edge of the meadow" + case Reaction.CONCERNED: + how_sniff = "cautiously" + how_eat = "gingerly" + and_then = "slowly backs away to a safe distance" + case Reaction.INTERESTED: + how_sniff = "curiously" + how_eat = "quickly" + and_then = "waits to see what else you might have" + case _: + how_sniff = "eagerly" + how_eat = "excitedly" + and_then = "gives you a big lick as if to say, Thank you" + + if is_scone(item): + msg = f"{noun} {how_sniff} sniffs your outstretched arm holding the scone. It {how_eat} eats it, and {and_then}." + self.adjust_character(feeder, 100) + feeder.has('scone').delete() + elif is_berry(item): + msg = f"{noun} {how_sniff} sniffs your outstretched arm with a handful of berries. It {how_eat} eats them, and {and_then}." + self.adjust_character(feeder, 40) + feeder.has('berries').delete() + else: + msg = f"{noun} doesn't appear interesting in anything you have." + + feeder.msg(msg) + + def thrown_stick(self, thrower): + """ + Called when thrower is in the vicinity of the beast, and + throws a stick they may have. + """ + match self.friendly_reaction(thrower): + case Reaction.SCARED: + msg = "The beast runs away when you throw the stick." + case Reaction.CONCERNED: + msg = "The beast walks over to the stick, sniffs it, and backs away." + self.adjust_character(thrower, 5) + + case Reaction.INTERESTED: + msg = choices(""" + The beast [runs|hurries] at the stick, then looks at , [wondering|curious as to|pondering] what to do with a stick the flies back to its owner. ;; + The beast [rushes|runs at] the stick, and then veers off, thundering around the [field|meadow]. The stick returns to your hand. + """) + self.adjust_character(thrower, 30) + + case _: + msg = choices(""" + The [big hairy|] beast [dashes|runs|jumps|leaps into the air|leaps] and [catches|snags|grabs] the stick in midair, and drops it in front of . ;; + The [big hairy|] beast [gallops|trumbles|trots] over to the stick and [dances|prances|hops] around the stick before bringing it back to . ;; + The [big hairy|] beast [gallops|trumbles|trots] over to the stick and [dances|prances|hops] around the stick before bringing it back to . ;; + """) + self.adjust_character(thrower, 10) + if msg: + split_party_msg(thrower, msg) diff --git a/typeclasses/rooms.py b/typeclasses/rooms.py index 30c4557..617ce0c 100644 --- a/typeclasses/rooms.py +++ b/typeclasses/rooms.py @@ -5,7 +5,10 @@ Rooms are simple containers that has no location of their own. """ +import datetime + from evennia import utils +from evennia.utils import gametime from evennia.contrib.grid.extended_room import ExtendedRoom from django.conf import settings @@ -30,6 +33,16 @@ class Room(ObjectParent, ExtendedRoom): is_dark = False has_weather = False + def get_time(self): + """ + Return tuple of current time of this location. + (Minute, Hour, Time of Day, Season) + """ + timestamp = gametime.gametime(absolute=True) + datestamp = datetime.datetime.fromtimestamp(timestamp) + return (datestamp.minute, datestamp.hour, + self.get_time_of_day(), self.get_season()) + class DabblersRoom(Room): def get_display_desc(self, looker): diff --git a/typeclasses/rooms_weather.py b/typeclasses/rooms_weather.py index 529a784..bea59fc 100755 --- a/typeclasses/rooms_weather.py +++ b/typeclasses/rooms_weather.py @@ -22,8 +22,8 @@ TIMEBASE_WEATHER_MSGS = [ "The clouds part and you can see stars glitter against the black velvet night.", "You hear distant howls as the moon appears.", # Cloudy - "The clouds gather making the night dark and hard to see." - "The rain slows while ghostly mists weave through the trees." + "The clouds gather making the night dark and hard to see.", + "The rain slows while ghostly mists weave through the trees.", # Rainy "The rain coming down from the inky, black sky intensifies.", "For a moment it looks like the rain is slowing, then it begins anew with renewed force.", @@ -38,19 +38,19 @@ TIMEBASE_WEATHER_MSGS = [ # Morning [ # Clear "The clouds part creating a dazzling sunrise of colors.", - "Bird song fills the air with the dawn chorus." + "Bird song fills the air with the dawn chorus.", # Cloudy - "The clouds accumulate making the morning last." - "The rain slows to a drizzle as the moss begins to glow in the brightening light." + "The clouds accumulate making the morning last.", + "The rain slows to a drizzle as the moss begins to glow in the brightening light.", # Rainy "The falling rain intensifies creating vibrating puddles.", - "The morning breeze smells sweet." + "The morning breeze smells sweet.", # Windy "The wind is picking up. Today may be a good day for a kite.", ], # Noon [ - "The clouds part and the sun illuminates the scene. The morning's rain evaporates, warming the air." + "The clouds part and the sun illuminates the scene. The morning's rain evaporates, warming the air.", ], # Afternoon [ @@ -62,10 +62,10 @@ TIMEBASE_WEATHER_MSGS = [ [ # Clear "The clouds part creating a dazzling sunset of colors.", - "Bird song fills the air with the evening chorus." + "Bird song fills the air with the evening chorus.", # Cloudy - "The clouds accumulate. Night is approaching." - "The rain slows while ghostly mist weave through the darkening gloom." + "The clouds accumulate. Night is approaching.", + "The rain slows while ghostly mist weave through the darkening gloom.", # Rainy "The falling rain intensifies making the evening somber.", "For a moment it looks like the rain is slowing, then it begins anew with renewed force.", diff --git a/typeclasses/things.py b/typeclasses/things.py index bdfb679..090b42e 100755 --- a/typeclasses/things.py +++ b/typeclasses/things.py @@ -42,18 +42,24 @@ class Stick(Object): self.cmdset.add_default(CmdSetStick) def do_throw(self, thrower): - thrower.db.thrown_times = (thrower.db.thrown_times or 0) + 1 - if thrower.db.jumped_times == 1: - thrower.msg("The stick flies through the air, and just as you thought, it comes back to you!") + beast = thrower.location.search('beast') + if beast and beast.db.is_awake: + beast.thrown_stick(thrower) + elif thrower.location.is_typeclass("typeclasses.rooms_weather.TimeWeatherRoom"): + thrower.db.thrown_times = (thrower.db.thrown_times or 0) + 1 + if thrower.db.thrown_times == 1: + thrower.msg("The stick flies through the air, and just as you thought, it comes back to you!") + else: + thrower.msg(routput(choice([ + f"Yer a wizard, {thrower.name.capitalize()}!", + "[Did you see that?|] It clipped the leaf on that tree before returning.", + "This is a [fun|pleasant|nice] [past-time|game].", + "Maybe we should get a pet [or beast|beastie] in here who would love to play.", + ]))) + self.location.msg_contents(f"{thrower.name} throws a stick.", + exclude=thrower) else: - thrower.msg(routput(choice([ - f"Yer a wizard, {thrower.name.capitalize()}!", - "[Did you see that?|] It clipped the leaf on that tree before returning.", - "This is a [fun|pleasant|nice] [past-time|game].", - "Maybe we should get a pet [or beast|beastie] in here who would love to play.", - ]))) - self.location.msg_contents(f"{thrower.name} throws a stick.", - exclude=thrower) + thrower.msg("I think you should be outside or a place with more room before you throw that stick around.") class Puddle(Object): diff --git a/utils/word_list.py b/utils/word_list.py index e2cbab0..64c221d 100755 --- a/utils/word_list.py +++ b/utils/word_list.py @@ -22,25 +22,35 @@ def routput(text, substitution=None): 'This feels cozy.' 'This feels very comfortable.' """ - acc = [] - for s in text.split("["): - selections, *rest = s.split("]") - choice = random.choice(selections.split('|')) - acc = acc + [choice] + rest + if text: + acc = [] + for s in text.split("["): + selections, *rest = s.split("]") + choice = random.choice(selections.split('|')) + acc = acc + [choice] + rest - return squish(''.join(acc).format(substitution or "")) + return squish(''.join(acc).format(substitution or "")) def choices(text, substitution=None): """ Returns a section of 'text' based on separating semicolons. """ - selections = text.split(';;') - return routput(random.choice(selections), substitution) + if text: + selections = text.split(';;') + return routput(random.choice(selections), substitution) -def split_party(text, viewer): - return text.sub(r"", viewer.name) +def split_party_msg(viewer, msg): + # First a message for the view: + viewer.msg( + re.sub("", "You", re.sub("", "you", msg)) + ) + # Then the message for the rest of the area: + viewer.location.msg_contents(re.sub("<[Yy]ou>", + viewer.name.title(), msg), + exclude=viewer) + # def searsonal(text, **kwargs): # season = kwargs['season'] or kwargs['location'].get_season() # time_of_day = kwargs['time_of_day'] or kwargs['location'].get_time_of_day() diff --git a/world/version1.ev b/world/version1.ev index 9a77152..96dbd23 100644 --- a/world/version1.ev +++ b/world/version1.ev @@ -1,12 +1,12 @@ -# [[file:../../../projects/mud.org::*Shell][Shell:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Shell][Shell:4]] # # -*- mode:ruby; -*- # Shell:4 ends here -# Character: Dabble + # Can I rename myself? -# [[file:../../../projects/mud.org::*Character: Dabble][Character: Dabble:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Character: Dabble][Character: Dabble:1]] @name self = Dabbler;gnome;old gnome # Character: Dabble:1 ends here @@ -15,17 +15,17 @@ # And a good description that I can rework: -# [[file:../../../projects/mud.org::*Character: Dabble][Character: Dabble:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Character: Dabble][Character: Dabble:2]] @desc self = A small, hunched old man with a gray vandyke and an eye twinkle. Spectacles perched precariously on the end of his hooked nose, wobble with his head. A jaunty crimson cap contrasts with his dark brown cloak. # Character: Dabble:2 ends here -# The Forest + # Rename the Limbo (or starting place) with the name *Forest*. Note the term =mp01= as a global label that matches my map. -# [[file:../../../projects/mud.org::*The Forest][The Forest:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*The Forest][The Forest:1]] @name here = The Forest;mp01 # The Forest:1 ends here @@ -34,7 +34,7 @@ Spectacles perched precariously on the end of his hooked nose, wobble with his h # The description will take advantage of the /seasons/ and /times/ of the day: -# [[file:../../../projects/mud.org::*The Forest][The Forest:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*The Forest][The Forest:2]] @desc here = A giant, moss-covered boulder stands among immense trees that etch the sky and slice the clouds in the darkening twilightawakening dawnlazy afternoonnight sky. Since it is morning, you can hear the dawn chorus of birdsafternoon, you can hear the buzzing of insects around giant colorful flowersevening, you can hear much as most of the forest creatures are settling down for the nightnight, you can hear crickets and an occassional owl. A footpath winds around the giant, moss-covered tree roots to the East and West. To the south, a dock lounges on a large pond. # The Forest:2 ends here @@ -42,7 +42,7 @@ Spectacles perched precariously on the end of his hooked nose, wobble with his h # Need to add weather and time data to this: -# [[file:../../../projects/mud.org::*The Forest][The Forest:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*The Forest][The Forest:3]] # from evennia.contrib.tutorials.tutorial_world.rooms import WeatherRoom @update here = typeclasses.rooms_weather.TimeWeatherRoom # The Forest:3 ends here @@ -53,7 +53,7 @@ Spectacles perched precariously on the end of his hooked nose, wobble with his h # Describe the trees: -# [[file:../../../projects/mud.org::*The Forest][The Forest:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*The Forest][The Forest:4]] @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. # The Forest:4 ends here @@ -61,15 +61,15 @@ Spectacles perched precariously on the end of his hooked nose, wobble with his h # And the flowers: -# [[file:../../../projects/mud.org::*The Forest][The Forest:5]] +# [[file:../../../Dropbox/org/projects/mud.org::*The Forest][The Forest:5]] @detail flower;flowers = Beautiful, but giant flowers look down on you and nod a friendly greeting. # The Forest:5 ends here -# Puddles + # With my name, I need to have an object to go with it. -# [[file:../../../projects/mud.org::*Puddles][Puddles:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Puddles][Puddles:1]] @create/drop puddle : typeclasses.things.Puddle # Puddles:1 ends here @@ -78,7 +78,7 @@ Spectacles perched precariously on the end of his hooked nose, wobble with his h # And an elusive description: -# [[file:../../../projects/mud.org::*Puddles][Puddles:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Puddles][Puddles:2]] @desc puddle = A large puddle formed from a recent rainshower, invites you to shed your years and jump in and splash around to reconnect with your youth. # Puddles:2 ends here @@ -87,17 +87,17 @@ Spectacles perched precariously on the end of his hooked nose, wobble with his h # And keep it locked down: -# [[file:../../../projects/mud.org::*Puddles][Puddles:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Puddles][Puddles:3]] @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. # Puddles:3 ends here -# 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. -# [[file:../../../projects/mud.org::*Sticks][Sticks:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Sticks][Sticks:1]] @create/drop stick : typeclasses.things.Stick # Sticks:1 ends here @@ -106,7 +106,7 @@ Spectacles perched precariously on the end of his hooked nose, wobble with his h # And the description … perhaps this could change for every stick? -# [[file:../../../projects/mud.org::*Sticks][Sticks:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Sticks][Sticks:2]] @desc stick = Its brown and sticky. Well, by sticky, we mean, stick-like. @@ -114,10 +114,10 @@ Well, by sticky, we mean, stick-like. Maybe, by sticky, we mean, wizardly-sticky...an absolutely amazing looking stick...definitely a wizardly stick. # Sticks:2 ends here -# Boulder + # More details about the room that describes aspects of the boulder in the =desc= above. First, the symbol: -# [[file:../../../projects/mud.org::*Boulder][Boulder:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Boulder][Boulder:1]] @detail symbol = You move an ivy runner to see three curves join together as if it were three legs. # Boulder:1 ends here @@ -125,7 +125,7 @@ Maybe, by sticky, we mean, wizardly-sticky...an absolutely amazing looking stick # The moss is purdy: -# [[file:../../../projects/mud.org::*Boulder][Boulder:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Boulder][Boulder:2]] @detail moss = "Even in this light, the moss radiates a surreal color of green." # Boulder:2 ends here @@ -133,7 +133,7 @@ Maybe, by sticky, we mean, wizardly-sticky...an absolutely amazing looking stick # And the ivy is … uh. -# [[file:../../../projects/mud.org::*Boulder][Boulder:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Boulder][Boulder:3]] @detail ivy = "You see...well, ivy. Uhm, it's green, and..." # Boulder:3 ends here @@ -141,7 +141,7 @@ Maybe, by sticky, we mean, wizardly-sticky...an absolutely amazing looking stick # The runes use multibyte unicode which screws up the =telnet= client. -# [[file:../../../projects/mud.org::*Boulder][Boulder:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Boulder][Boulder:4]] @detail runes;rune = The runes read ᛞ ᚪ ᛒ ᛚ ᚱ # Boulder:4 ends here @@ -150,7 +150,7 @@ Maybe, by sticky, we mean, wizardly-sticky...an absolutely amazing looking stick # 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: -# [[file:../../../projects/mud.org::*Boulder][Boulder:5]] +# [[file:../../../Dropbox/org/projects/mud.org::*Boulder][Boulder:5]] @dig Top of Boulder;mp02 : typeclasses.rooms_weather.TimeWeatherRoom = boulder,climb # Boulder:5 ends here @@ -158,7 +158,7 @@ Maybe, by sticky, we mean, wizardly-sticky...an absolutely amazing looking stick # The ability to /climb/ the boulder isn’t immediately obvious, so let’s make it a bit of a secret: -# [[file:../../../projects/mud.org::*Boulder][Boulder:6]] +# [[file:../../../Dropbox/org/projects/mud.org::*Boulder][Boulder:6]] @desc boulder = A boulder with patches of moss and delicate clover. A carved symbol and even some runes try to hide behind tendrils of ivy as if keeping a secret. Wait! You notice a foot hold, and then another. You can |bclimb|n this boulder! @@ -168,7 +168,7 @@ Wait! You notice a foot hold, and then another. You can |bclimb|n this boulder! # To take advantage of our [[Hidden Things]], we put the right tag on it: -# [[file:../../../projects/mud.org::*Boulder][Boulder:7]] +# [[file:../../../Dropbox/org/projects/mud.org::*Boulder][Boulder:7]] @lock boulder = view:tag(hidden_boulder, mp) # Boulder:7 ends here @@ -176,19 +176,19 @@ Wait! You notice a foot hold, and then another. You can |bclimb|n this boulder! # And give it some aliases: -# [[file:../../../projects/mud.org::*Boulder][Boulder:8]] +# [[file:../../../Dropbox/org/projects/mud.org::*Boulder][Boulder:8]] @name boulder = boulder;climb;climb up # Boulder:8 ends here -# [[file:../../../projects/mud.org::*Boulder][Boulder:9]] +# [[file:../../../Dropbox/org/projects/mud.org::*Boulder][Boulder:9]] @set boulder/traverse_msg = "You move some ivy out of the way and pick your way up the boulder from one hold to another..." # Boulder:9 ends here -# Top of Boulder + # Let’s jump to the top of the boulder to proceed: -# [[file:../../../projects/mud.org::*Top of Boulder][Top of Boulder:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Top of Boulder][Top of Boulder:1]] @teleport mp02 # @name here = Top of Boulder;mp02 # Top of Boulder:1 ends here @@ -197,7 +197,7 @@ Wait! You notice a foot hold, and then another. You can |bclimb|n this boulder! # And the description: -# [[file:../../../projects/mud.org::*Top of Boulder][Top of Boulder:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Top of Boulder][Top of Boulder:2]] @desc here = While high, the trees still tower over you. Still, a nice view. Lots of patches of moss to sit down and relax. # Top of Boulder:2 ends here @@ -205,21 +205,21 @@ Wait! You notice a foot hold, and then another. You can |bclimb|n this boulder! # Describe the climb down: -# [[file:../../../projects/mud.org::*Top of Boulder][Top of Boulder:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Top of Boulder][Top of Boulder:3]] @name climb = climb back down;climb down;climb;down # Top of Boulder:3 ends here # And a description of the climb: -# [[file:../../../projects/mud.org::*Top of Boulder][Top of Boulder:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Top of Boulder][Top of Boulder:4]] @desc climb = The climb seemed easy, but you're not sure you can handle the footholds going the other way around. # Top of Boulder:4 ends here # And describe the journey: -# [[file:../../../projects/mud.org::*Top of Boulder][Top of Boulder:5]] +# [[file:../../../Dropbox/org/projects/mud.org::*Top of Boulder][Top of Boulder:5]] @set climb/traverse_msg = "You crawl backwards, feeling with your foot for a hold. Got it! Then another one...hoping the moss' rhizoids hold..." # Top of Boulder:5 ends here @@ -227,42 +227,42 @@ Wait! You notice a foot hold, and then another. You can |bclimb|n this boulder! # Let’s make a nice spot to sit down on: -# [[file:../../../projects/mud.org::*Top of Boulder][Top of Boulder:6]] +# [[file:../../../Dropbox/org/projects/mud.org::*Top of Boulder][Top of Boulder:6]] @create/drop moss;patch:typeclasses.sittables.Sittable # Top of Boulder:6 ends here # With a nice description: -# [[file:../../../projects/mud.org::*Top of Boulder][Top of Boulder:7]] +# [[file:../../../Dropbox/org/projects/mud.org::*Top of Boulder][Top of Boulder:7]] @desc moss = A cushioned patch of moss of the most vibrant green. # Top of Boulder:7 ends here # Can’t take the moss with you: -# [[file:../../../projects/mud.org::*Top of Boulder][Top of Boulder:8]] +# [[file:../../../Dropbox/org/projects/mud.org::*Top of Boulder][Top of Boulder:8]] @lock moss = get:false() # Top of Boulder:8 ends here # Can we hide it too? -# [[file:../../../projects/mud.org::*Top of Boulder][Top of Boulder:9]] +# [[file:../../../Dropbox/org/projects/mud.org::*Top of Boulder][Top of Boulder:9]] @lock moss = view:tag(hidden_moss, mp) # Top of Boulder:9 ends here # And a lovely message about why you can’t steal moss: -# [[file:../../../projects/mud.org::*Top of Boulder][Top of Boulder:10]] +# [[file:../../../Dropbox/org/projects/mud.org::*Top of Boulder][Top of Boulder:10]] @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. # Top of Boulder:10 ends here -# Field + # To the east, let’s make a nice meadow. Start at the Forest: -# [[file:../../../projects/mud.org::*Field][Field:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:1]] @teleport mp01 # Field:1 ends here @@ -270,7 +270,7 @@ Wait! You notice a foot hold, and then another. You can |bclimb|n this boulder! # And we use the =tunnel= command this time: -# [[file:../../../projects/mud.org::*Field][Field:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:2]] @tunnel e = path # Field:2 ends here @@ -278,14 +278,14 @@ Wait! You notice a foot hold, and then another. You can |bclimb|n this boulder! # And some aliases: -# [[file:../../../projects/mud.org::*Field][Field:3]] -@name east = east;e;meadow +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:3]] +@name east = east;e # Field:3 ends here # A description if they look east: -# [[file:../../../projects/mud.org::*Field][Field:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:4]] @desc east = A winding footpath that may lead out of the forest... Is that a meadow? # Field:4 ends here @@ -293,7 +293,7 @@ Wait! You notice a foot hold, and then another. You can |bclimb|n this boulder! # And a nice journey message to go east out of the forest: -# [[file:../../../projects/mud.org::*Field][Field:5]] +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:5]] @set east/traverse_msg = "The mossy tree roots that borders this footpath begin to thin out to clover and flowers..." # Field:5 ends here @@ -301,7 +301,7 @@ Wait! You notice a foot hold, and then another. You can |bclimb|n this boulder! # Before we label it, we follow =east=: -# [[file:../../../projects/mud.org::*Field][Field:6]] +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:6]] east # Field:6 ends here @@ -309,7 +309,7 @@ east # And we give this area a name: -# [[file:../../../projects/mud.org::*Field][Field:7]] +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:7]] @name here = Meadow;mp05 # Field:7 ends here @@ -318,29 +318,29 @@ east # And a description that takes advantage of the time of day. We should get busy and get some seasonal description here. -# [[file:../../../projects/mud.org::*Field][Field:8]] -@desc here = The giant trees ring this meadow full of tall grass and large yellow flowers, who nod their heads to you as you pass by in the darkening twilightawakening dawnlazy afternoonnight sky. A gap in the trees show how you can return to the footpath in the forest. +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:8]] +@desc here = A large waterfall cascades on the far side of this meadow creating a stream that meanders through the tall grass and large yellow flowers. They nod their heads to you as you pass by in the darkening twilightawakening dawnlazy afternoonnight sky. A gap in the trees show how you can return to the footpath in the forest. # Field:8 ends here # Since we use the =tunnel= command, we need to update the weather system: -# [[file:../../../projects/mud.org::*Field][Field:9]] +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:9]] @update here = typeclasses.rooms_weather.TimeWeatherRoom # Field:9 ends here # And describe the way out: -# [[file:../../../projects/mud.org::*Field][Field:10]] +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:10]] @name west = footpath;forest;west;w # Field:10 ends here # Along with a mesage: -# [[file:../../../projects/mud.org::*Field][Field:11]] +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:11]] @set footpath/traverse_msg = "You leave the open meadow for the footpath through the giant trees. The yellow flowers nod goodbye to you..." # Field:11 ends here @@ -348,37 +348,319 @@ east # And a description: -# [[file:../../../projects/mud.org::*Field][Field:12]] +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:12]] @desc footpath = This footpath goes in a forest of immense trees. # Field:12 ends here -# The Dock + + +# Can the waterfall be a detail or an actual object? + + +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:13]] +@detail stream;field = A slow-moving stream meanders like a snake in the grassy field. Tiny, cute green frogs cling to grass stems that hang over the water. +# Field:13 ends here + +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:14]] +@detail waterfall;water = Cascading down the cliff in three sections, each section of this giant waterfall widens ending in a large pool. + +Wait! Is there a large cave hidden behind the water? +# Field:14 ends here + + + +# Can a detail cover its hidden-ness? + + +# [[file:../../../Dropbox/org/projects/mud.org::*Field][Field:15]] +@detail lair = A large entrance to a dark, and foul-smelling cave. The waterfall is so loud, you can't hear anything that may live there. +# Field:15 ends here + + +# To create a place for our big, hairy beast to sleep, first jump to the Meadow: + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:1]] +@teleport mp05 +# The Lair of the Beast:1 ends here + + + +# From the Meadow, we create a lair /behind/ the water. + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:2]] +@dig lair = cave;lair;inside,outside;leave +# The Lair of the Beast:2 ends here + + + +# And we make it hidden: + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:3]] +@lock lair = view:tag(hidden_cave, mp) +# The Lair of the Beast:3 ends here + + + +# And a description if they look: + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:4]] +@desc lair = A large entrance to a dark, and foul-smelling cave. The waterfall is so loud, you can't hear anything that may live there. +# The Lair of the Beast:4 ends here + + + +# And a description when entering … + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:5]] +@set lair/traverse_msg = "You venture inside the dark cave." +# The Lair of the Beast:5 ends here + + + +# Let’s step inside to finish this: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:6]] +lair +# The Lair of the Beast:6 ends here + + + +# And a good name: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:7]] +@name here = Cave;mp07 +# The Lair of the Beast:7 ends here + + + +# And a description: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:8]] +@desc here = Vaulted stone ceiling harbors the darkness that hovers a large mattress, so tall, you can barely see what might be resting on it. +# The Lair of the Beast:8 ends here + + + +# And a description of the mattress: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:9]] +@detail mattress = Looks comfortable, if you could just get a leg up to get on it... +# The Lair of the Beast:9 ends here + + + +# And we create the Big, Hairy Beast: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:10]] +@create/drop big hairy beast;bhb;beast;hairy beast;monster: typeclasses.pets.BHB +# The Lair of the Beast:10 ends here + + + +# And a general description that will be /expanded/ with its current reaction. + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:11]] +@desc beast = A big, hairy beast with long claws and teeth. +# The Lair of the Beast:11 ends here + + + +# Can’t get this: + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:12]] +@lock beast = get:false() +# +@set beast/get_err_msg = "You can't pick that up, as that beast is far larger than you." +# The Lair of the Beast:12 ends here + + + +# And set its sleepy time at 8pm … + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:13]] +@set beast/sleep_hour = 21 +# The Lair of the Beast:13 ends here + + + +# It will wake at 8am … + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:14]] +@set beast/wake_hour = 8 +# The Lair of the Beast:14 ends here + + + +# Let’s set some behavior levels. For instance, the beast is sad when he doesn’t see its friends: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:15]] +@set beast/loneliness_amount = -2 +# The Lair of the Beast:15 ends here + + + +# It seem to warm up the to new characters hanging around the area, but not as much as those that would interact with it: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:16]] +@set beast/shyness_amount = 3 +# The Lair of the Beast:16 ends here + + + +# 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). + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:17]] +@set beast/active_amount = 10 +# The Lair of the Beast:17 ends here + + + +# It isn’t that scared of new people, as it will ignore them when someone it knows is around. + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:18]] +@set beast/new_character_reaction = 'ignores' +# The Lair of the Beast:18 ends here + + + +# Seems we should make descriptions for all the states that happen when you look at them. These are appended to the standard description. + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:19]] +@set beast/scared_msg = "It seems [skiddish|afraid|skiddish and afraid] as it tries to hide behind a tall clump of grass. Yeah, it doesn't do a good job of hiding." +# The Lair of the Beast:19 ends here + + + +# Concerned level: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:20]] +@set beast/concerned_msg = "Its large, yellow eyes stare at you from a safe distance." +# The Lair of the Beast:20 ends here + + + +# Interested level: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:21]] +@set beast/interested_msg = "It seems [curious|interested] in what you are doing [here|]. ;; Its [|large,|big,] yellow eyes watch your every move." +# The Lair of the Beast:21 ends here + + + +# Friendly level: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:22]] +@set beast/friendly_msg = "It sits next to you, as its big, friendly eyes gaze as you. ;; It [leaps over|runs up|bounces up|] to you, wagging its tail-less behind. ;; It lays down next to you." +# The Lair of the Beast:22 ends here + + + +# When the beast is sleeping, we can some times spam the room with the snores: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:23]] +@set beast/sleeping_actions = "The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] lets loose a [big,|huge,|large,|tremendous,|] snore. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] growls in its sleep. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] twitches its [leg|legs|paw|nose]. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] [shifts|rolls] on its [big,|huge,|large,|tremendous,|] mattress." +# The Lair of the Beast:23 ends here + + + +# 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: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:24]] +@set beast/scared_actions = "A shadow hovers at the edge of the meadow.." +# The Lair of the Beast:24 ends here + + + +# And a detail if they look at it: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:25]] +@detail shadow = "You see a big, hairy beast with long teeth and claws. Its great horns, tipped in black, point to the sky." +# The Lair of the Beast:25 ends here + + + +# Concerned actions: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:26]] +@set beast/concerned_actions = "The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] [is|seems] concerned by your presence in the [meadow|field]. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] seems concerned. Maybe it's hungry.. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] seems concerned and keeps its distance.." +# The Lair of the Beast:26 ends here + + + +# Interested actions: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:27]] +@set beast/interested_actions = "The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] seems [curious|interested] in what you are doing [here|]. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] seems curious about you. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] stands on its hind legs. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] [stares at|watches|follows] you with its [large,|big,|] yellow eyes." +# The Lair of the Beast:27 ends here + + + +# Friendly actions: + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:28]] +@set beast/friendly_actions = "The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] [thunders|stomps|tramps|clomps|rumbles|rolls] [across the field|across the meadow|over] wagging its backend[,| as it seems] happy to see . ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] [thunders|stomps|tramps|clomps|rumbles|rolls] [across the field|across the meadow|over] hoping to play with . ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] flops over in front of wriggling [its back|] on the ground. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] [thunders|stomps|tramps|clomps|rumbles|rolls] [across the field|across the meadow|over] next to you. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] chases butterflies around the [field|meadow|grass|flowers]." +# The Lair of the Beast:28 ends here + + + +# The ecstatic states are just a bit more than friendly. + + +# [[file:../../../Dropbox/org/projects/mud.org::*The Lair of the Beast][The Lair of the Beast:29]] +@set beast/ecstatic_actions = "The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] [thunders|stomps|tramps|clomps|rumbles|rolls] [across the field|across the meadow|over] to give a sloppy [kiss|lick]. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] [thunders|stomps|tramps|clomps|rumbles|rolls] [across the field|across the meadow|over] wagging its backend as it seems [|very] excited to see . ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] [thunders|stomps|tramps|clomps|rumbles|rolls] [across the field|across the meadow|over] hoping to play with . ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] flops over in front of happily wriggling on the ground. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] excitedly [thunders|stomps|tramps|clomps|rumbles|rolls] [across the field|across the meadow|over] next to you. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] [happily|joyfully] leaps into air. ;; The [big,|huge,|large,|tremendous,|] [hairy|slobbery|horned|clawed|] [brute|beast|monster] chases butterflies around the [field|meadow|grass|flowers]." +# The Lair of the Beast:29 ends here + + # The dock leads out into the large pond. The break in the trees lets you see the sky. Looks like a nice place to relax. # Return to the Forest: -# [[file:../../../projects/mud.org::*The Dock][The Dock:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*The Dock][The Dock:1]] @teleport mp01 # The Dock:1 ends here # And tunnel to the pond: -# [[file:../../../projects/mud.org::*The Dock][The Dock:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*The Dock][The Dock:2]] @tunnel s = dock # The Dock:2 ends here # With a mesage about leaving the trees so that I don’t have to repeat that in the room description: -# [[file:../../../projects/mud.org::*The Dock][The Dock:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*The Dock][The Dock:3]] @set south/traverse_msg = "You follow a path down and step out from under giant trees to see the sky." # The Dock:3 ends here # And a description: -# [[file:../../../projects/mud.org::*The Dock][The Dock:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*The Dock][The Dock:4]] @desc south = You see a dock on a large pond... Is that a comfortable-looking chair you can |bsit|n on? # The Dock:4 ends here @@ -386,7 +668,7 @@ east # And move ourselves there: -# [[file:../../../projects/mud.org::*The Dock][The Dock:5]] +# [[file:../../../Dropbox/org/projects/mud.org::*The Dock][The Dock:5]] south # The Dock:5 ends here @@ -394,14 +676,14 @@ south # Since we are on a dock in the pond, we’ll emphasize that: -# [[file:../../../projects/mud.org::*The Dock][The Dock:6]] +# [[file:../../../Dropbox/org/projects/mud.org::*The Dock][The Dock:6]] @name here = Lazy Dock;mp06 # The Dock:6 ends here # And describe this. -# [[file:../../../projects/mud.org::*The Dock][The Dock:7]] +# [[file:../../../Dropbox/org/projects/mud.org::*The Dock][The Dock:7]] @desc here = The dock you stand on juts into an immense pond. Someone has set a nice chair for viewing. # The Dock:7 ends here @@ -409,21 +691,21 @@ south # And describe the walk back into the forest: -# [[file:../../../projects/mud.org::*The Dock][The Dock:8]] +# [[file:../../../Dropbox/org/projects/mud.org::*The Dock][The Dock:8]] @set north/traverse_msg = "You walk up a path and back into the forest of giant trees." # The Dock:8 ends here # And a description: -# [[file:../../../projects/mud.org::*The Dock][The Dock:9]] -@desc north = This lead into the forest of collosal trees. +# [[file:../../../Dropbox/org/projects/mud.org::*The Dock][The Dock:9]] +@desc north = This path leads into the forest of collosal trees. # The Dock:9 ends here -# Chair + # A nice chair to sit on the dock by the bay, watching the clouds as they drift away. -# [[file:../../../projects/mud.org::*Chair][Chair:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Chair][Chair:1]] @create/drop chair;lounge chair:typeclasses.sittables.Sittable # Chair:1 ends here @@ -431,7 +713,7 @@ south # How descriptive: -# [[file:../../../projects/mud.org::*Chair][Chair:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Chair][Chair:2]] @desc chair = A cushioned wood chair of craftsmanship. Looks good for being out in the weather. # Chair:2 ends here @@ -440,11 +722,11 @@ Looks good for being out in the weather. # Can’t steal this chair either: -# [[file:../../../projects/mud.org::*Chair][Chair:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Chair][Chair:3]] @lock chair = get:false() # Chair:3 ends here -# [[file:../../../projects/mud.org::*Chair][Chair:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Chair][Chair:4]] @set chair/get_err_msg = "It's way too heavy for you to lift." # Chair:4 ends here @@ -452,7 +734,7 @@ Looks good for being out in the weather. # With a description: -# [[file:../../../projects/mud.org::*Fishing Pole][Fishing Pole:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Fishing Pole][Fishing Pole:2]] @desc pole = A nice pole for catching fish. It even has a hook, and is ready to go! # Fishing Pole:2 ends here @@ -461,7 +743,7 @@ Looks good for being out in the weather. # And tether it to the Dock, #10, which we need to reset if the ID numbers ever change. -# [[file:../../../projects/mud.org::*Fishing Pole][Fishing Pole:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Fishing Pole][Fishing Pole:3]] @lock pole = tethered:id(#10) # @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?" @@ -471,7 +753,7 @@ Looks good for being out in the weather. # What about some details: -# [[file:../../../projects/mud.org::*Fishing Pole][Fishing Pole:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Fishing Pole][Fishing Pole:4]] @detail hook;bait = One of those shiny lures, made from gold coins. Curiouser. Seems you don't need to bait this hook. # @detail water;waves = Despite the weather, the water looks nice...well, nice for fishing. @@ -484,7 +766,7 @@ Looks good for being out in the weather. # Need to make the fishing pole “stay” at the Dock. Maybe with a message about sticking around for the next person. -# [[file:../../../projects/mud.org::*Fishing Pole][Fishing Pole:5]] +# [[file:../../../Dropbox/org/projects/mud.org::*Fishing Pole][Fishing Pole:5]] @create/drop sign:typeclasses.readables.Readable # Fishing Pole:5 ends here @@ -492,7 +774,7 @@ Looks good for being out in the weather. # Should the description also be the message? -# [[file:../../../projects/mud.org::*Fishing Pole][Fishing Pole:6]] +# [[file:../../../Dropbox/org/projects/mud.org::*Fishing Pole][Fishing Pole:6]] @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 # Fishing Pole:6 ends here @@ -500,7 +782,7 @@ Looks good for being out in the weather. # Might as well allow the user to read it: -# [[file:../../../projects/mud.org::*Fishing Pole][Fishing Pole:7]] +# [[file:../../../Dropbox/org/projects/mud.org::*Fishing Pole][Fishing Pole:7]] @set sign/inside = "Fish at your own annoyance. Please return pole when finished." # Fishing Pole:7 ends here @@ -508,45 +790,45 @@ Looks good for being out in the weather. # And lock down the sign: -# [[file:../../../projects/mud.org::*Fishing Pole][Fishing Pole:8]] +# [[file:../../../Dropbox/org/projects/mud.org::*Fishing Pole][Fishing Pole:8]] @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." # Fishing Pole:8 ends here -# Forest Path + # Return to the forest: -# [[file:../../../projects/mud.org::*Forest Path][Forest Path:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Forest Path][Forest Path:1]] @teleport mp01 # Forest Path:1 ends here # Let’s travel west along the path in the forest: -# [[file:../../../projects/mud.org::*Forest Path][Forest Path:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Forest Path][Forest Path:2]] @tunnel w = path # Forest Path:2 ends here # With a nice message about wandering: -# [[file:../../../projects/mud.org::*Forest Path][Forest Path:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Forest Path][Forest Path:3]] @set west/traverse_msg = "You meander between mossy tree roots along a footpath for a while..." # Forest Path:3 ends here # And some aliases: -# [[file:../../../projects/mud.org::*Forest Path][Forest Path:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Forest Path][Forest Path:4]] @name west = west;w;footpath # Forest Path:4 ends here # And a description: -# [[file:../../../projects/mud.org::*Forest Path][Forest Path:5]] +# [[file:../../../Dropbox/org/projects/mud.org::*Forest Path][Forest Path:5]] @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. # Forest Path:5 ends here @@ -555,14 +837,14 @@ Looks good for being out in the weather. # Jump into the new room: -# [[file:../../../projects/mud.org::*Forest Path][Forest Path:6]] +# [[file:../../../Dropbox/org/projects/mud.org::*Forest Path][Forest Path:6]] west # Forest Path:6 ends here # And name it: -# [[file:../../../projects/mud.org::*Forest Path][Forest Path:7]] +# [[file:../../../Dropbox/org/projects/mud.org::*Forest Path][Forest Path:7]] @name here = Forest Path;mp04 # Forest Path:7 ends here @@ -571,7 +853,7 @@ west # And describe the tree and the door: -# [[file:../../../projects/mud.org::*Forest Path][Forest Path:8]] +# [[file:../../../Dropbox/org/projects/mud.org::*Forest Path][Forest Path:8]] @desc here = Moss-covered tree roots border the meandering footpath. A red door with a round top lies at the base of a giant tree, a carved sign over it reads, |wDabblers|n. # Forest Path:8 ends here @@ -579,14 +861,14 @@ west # And some aliases: -# [[file:../../../projects/mud.org::*Forest Path][Forest Path:9]] +# [[file:../../../Dropbox/org/projects/mud.org::*Forest Path][Forest Path:9]] @name east = east;e;footpath # Forest Path:9 ends here # A description if they look east: -# [[file:../../../projects/mud.org::*Forest Path][Forest Path:10]] +# [[file:../../../Dropbox/org/projects/mud.org::*Forest Path][Forest Path:10]] @desc east = A winding footpath that leads through the forest of giant trees. # Forest Path:10 ends here @@ -594,7 +876,7 @@ west # And a nice journey message to go east in of the forest: -# [[file:../../../projects/mud.org::*Forest Path][Forest Path:11]] +# [[file:../../../Dropbox/org/projects/mud.org::*Forest Path][Forest Path:11]] @set east/traverse_msg = "The mossy tree roots makes for an interesting path..." # Forest Path:11 ends here @@ -603,15 +885,15 @@ west # And extra things to see: -# [[file:../../../projects/mud.org::*Forest Path][Forest Path:12]] +# [[file:../../../Dropbox/org/projects/mud.org::*Forest Path][Forest Path:12]] @detail trees;tree = The trees in this forest are massive, but a smaller tree has a red door. Must lead to a closet! # Forest Path:12 ends here -# 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. -# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Berry Bush][Berry Bush:1]] @create/drop berry bush;bush : typeclasses.consumables.Producer # Berry Bush:1 ends here @@ -619,7 +901,7 @@ west # With a description: -# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Berry Bush][Berry Bush:2]] @desc bush = A bush laden with bright red brambleberries. You've heard that they are good. # Berry Bush:2 ends here @@ -627,14 +909,14 @@ west # We have to have the bush describe what it /makes/: -# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Berry Bush][Berry Bush:3]] @set bush/make_name = "berries" # Berry Bush:3 ends here # Including some plural aliases: -# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Berry Bush][Berry Bush:4]] @set bush/make_aliases = ["berry", "brambleberry", "brambleberries"] # Berry Bush:4 ends here @@ -642,7 +924,7 @@ west # And a verb when they /get/ the consumable: -# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:5]] +# [[file:../../../Dropbox/org/projects/mud.org::*Berry Bush][Berry Bush:5]] @set bush/make_verb = "pick some" # Berry Bush:5 ends here @@ -650,7 +932,7 @@ west # And the bush needs to know the /description/ of the Consumable, so that it can attach that: -# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:7]] +# [[file:../../../Dropbox/org/projects/mud.org::*Berry Bush][Berry Bush:7]] @set bush/make_desc = "Bright red berry with flecks of [purple|violet|orange]." # Berry Bush:7 ends here @@ -658,7 +940,7 @@ west # How many berries are there when you pick them? -# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:8]] +# [[file:../../../Dropbox/org/projects/mud.org::*Berry Bush][Berry Bush:8]] @set bush/make_amount = 10 # Berry Bush:8 ends here @@ -666,14 +948,14 @@ west # How many berries do you eat at a time: -# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:9]] +# [[file:../../../Dropbox/org/projects/mud.org::*Berry Bush][Berry Bush:9]] @set bush/make_eat_amount = 3 # Berry Bush:9 ends here # We can either have a single /eat/ message: -# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:10]] +# [[file:../../../Dropbox/org/projects/mud.org::*Berry Bush][Berry Bush:10]] @set bush/make_eat_msg = "Sweet and slightly tart. [Delicious|Tangy|Mmmm]." # Berry Bush:10 ends here @@ -681,7 +963,7 @@ west # Or many messages that can be randomly selected: -# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:11]] +# [[file:../../../Dropbox/org/projects/mud.org::*Berry Bush][Berry Bush:11]] @set bush/make_eat_msgs = [ "Sweet and slightly tart.", "[Delicious|Tangy|Mmmm].", "Ooo...that one was sour.", "That was a bit ripe, but still good.", "So sweet with a hint of [orange|maple]." ] # Berry Bush:11 ends here @@ -689,23 +971,23 @@ west # Let the user know when they consumed them all. -# [[file:../../../projects/mud.org::*Berry Bush][Berry Bush:12]] +# [[file:../../../Dropbox/org/projects/mud.org::*Berry Bush][Berry Bush:12]] @set bush/make_finish_msg = "Those were [delicious|great]." # Berry Bush:12 ends here -# Knocker + # 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: -# [[file:../../../projects/mud.org::*Knocker][Knocker:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:1]] @create/drop knocker: typeclasses.things.Knocker # Knocker:1 ends here # If it /looks/ like a goblin… -# [[file:../../../projects/mud.org::*Knocker][Knocker:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:2]] @name knocker = Door knocker;knocker;goblin # Knocker:2 ends here @@ -713,7 +995,7 @@ west # The knocker shouldn’t be stealable: -# [[file:../../../projects/mud.org::*Knocker][Knocker:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:3]] @lock knocker = get:false() # @set knocker/get_err_msg = "It appears firmly attached to the door." @@ -723,7 +1005,7 @@ west # Since we can remove the ring, let’s create it: -# [[file:../../../projects/mud.org::*Knocker][Knocker:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:4]] @create ring: typeclasses.things.Ring # Knocker:4 ends here @@ -731,7 +1013,7 @@ west # And give it an alias: -# [[file:../../../projects/mud.org::*Knocker][Knocker:5]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:5]] @name ring = brass ring;ring # Knocker:5 ends here @@ -739,7 +1021,7 @@ west # And a description: -# [[file:../../../projects/mud.org::*Knocker][Knocker:6]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:6]] @desc ring = A brass ring that should be in the door knocker's mouth. How else are you going to knock on a door? # Knocker:6 ends here @@ -747,7 +1029,7 @@ west # Although we can interact with it, let’s not make it obvious that it is an object: -# [[file:../../../projects/mud.org::*Knocker][Knocker:7]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:7]] @lock ring = view:tag(hidden_ring, mp) # Knocker:7 ends here @@ -756,7 +1038,7 @@ west # And let’s make it so we can take that: -# [[file:../../../projects/mud.org::*Knocker][Knocker:8]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:8]] @set ring/can_take = True # Knocker:8 ends here @@ -765,7 +1047,7 @@ west # Let’s tether the ring to the knocker … -# [[file:../../../projects/mud.org::*Knocker][Knocker:9]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:9]] @lock ring = tethered:id(#21) # @set ring/tethered_msg = You put the ring back in the knocker's mouth. "Mmmuufffmm," says the door knocker. @@ -775,7 +1057,7 @@ west # And put the ring in the knocker’s mouth: -# [[file:../../../projects/mud.org::*Knocker][Knocker:10]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:10]] @give ring to knocker # Knocker:10 ends here @@ -783,7 +1065,7 @@ west # The description is dynamic from the Python code, so we don’t need this statement: -# [[file:../../../projects/mud.org::*Knocker][Knocker:11]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:11]] @desc knocker = The brass face looks at you and winks. # Knocker:11 ends here @@ -792,7 +1074,7 @@ west # In order for us to /knock/ on the door, we have to give a =knock= command to the /room/. -# [[file:../../../projects/mud.org::*Knocker][Knocker:12]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:12]] @set knocker/room_to_msg = mp03 # Knocker:12 ends here @@ -801,7 +1083,7 @@ west # The python object has all the knowledge about knocking and whatnot, but we should have the descriptions here. First, what the knocker reads: -# [[file:../../../projects/mud.org::*Knocker][Knocker:13]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:13]] @set here/knock_msg = "You grab the ring and knock firmly on the door." # Knocker:13 ends here @@ -809,7 +1091,7 @@ west # Then, what the other’s in the room read: -# [[file:../../../projects/mud.org::*Knocker][Knocker:14]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:14]] @set here/knock_other_msg = "grabs the ring and knocks firmly on the door." # Knocker:14 ends here @@ -817,20 +1099,18 @@ west # And an error message if the ring is not with the goblin: -# [[file:../../../projects/mud.org::*Knocker][Knocker:15]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knocker][Knocker:15]] @set here/knock_err_msg = "This door knocker is defective, as it doesn't have a ring to...er, do the knockin'." # Knocker:15 ends here -# Cozy Tea House - -# [[file:../../../projects/mud.org::*Cozy Tea House][Cozy Tea House:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Cozy Tea House][Cozy Tea House:1]] @dig house = red door;door;house;inside,outside;leave # Cozy Tea House:1 ends here -# Red Door + # The door description should match the artwork on the website: -# [[file:../../../projects/mud.org::*Red Door][Red Door:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Red Door][Red Door:1]] @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. # Red Door:1 ends here @@ -838,14 +1118,14 @@ west # This exit should be special. First, it is locked unless a character has the =open_red_door= tag. -# [[file:../../../projects/mud.org::*Red Door][Red Door:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Red Door][Red Door:2]] @lock door = traverse:tag(open_red_door, mp) # Red Door:2 ends here # Needs a message why one can’t walk through: -# [[file:../../../projects/mud.org::*Red Door][Red Door:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Red Door][Red Door:3]] @set door/err_traverse = "The door seems locked." # Red Door:3 ends here @@ -853,36 +1133,36 @@ west # If you do figure out how to get through the door: -# [[file:../../../projects/mud.org::*Red Door][Red Door:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Red Door][Red Door:4]] @set door/traverse_msg = "You stoop as you step through the doorway..." # Red Door:4 ends here -# Inside + # Fix the inside of the “House”: -# [[file:../../../projects/mud.org::*Inside][Inside:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Inside][Inside:1]] @teleport red door # Inside:1 ends here # Add the Python /special-ness/ for [[file:~/src/moss-n-puddles/typeclasses/rooms.py::class DabblersRoom(Room):][this room]]: -# [[file:../../../projects/mud.org::*Inside][Inside:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Inside][Inside:2]] @update here = typeclasses.rooms.DabblersRoom # Inside:2 ends here # Give it a title: -# [[file:../../../projects/mud.org::*Inside][Inside:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Inside][Inside:3]] @name here = Dabbler's House;mp03 # Inside:3 ends here # Might as well stay a while: -# [[file:../../../projects/mud.org::*Inside][Inside:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Inside][Inside:4]] @sethome me = here # Inside:4 ends here @@ -890,7 +1170,7 @@ west # And the best description ever: -# [[file:../../../projects/mud.org::*Inside][Inside:5]] +# [[file:../../../Dropbox/org/projects/mud.org::*Inside][Inside:5]] @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 while a trolley supports a large kettle, cups and scones. # Inside:5 ends here @@ -899,7 +1179,7 @@ west # 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. -# [[file:../../../projects/mud.org::*Inside][Inside:6]] +# [[file:../../../Dropbox/org/projects/mud.org::*Inside][Inside:6]] @set here/initial_desc = "You found a cozy, cornerless room." # Ravenous State @@ -924,7 +1204,7 @@ west # Let’s come up with a lot of descriptions: -# [[file:../../../projects/mud.org::*Inside][Inside:7]] +# [[file:../../../Dropbox/org/projects/mud.org::*Inside][Inside:7]] @detail tapestry = The muted colors of the tapestry either show its age or its location over the sometimes smokey hearth. It shows a gallant stag surrounded by woodland creatures. A racoon holds aloft a gold box while a wolf has a gnarled staff. A raven perched on the stag's antlers grips a blue ball in its beak. # Inside:7 ends here @@ -932,7 +1212,7 @@ west # We should describe all the objects in the tapestry, eh? -# [[file:../../../projects/mud.org::*Inside][Inside:8]] +# [[file:../../../Dropbox/org/projects/mud.org::*Inside][Inside:8]] @detail raven = The raven winks at you, and says, “Nevermore.” Really? It probably didn't. Your eyes must be playing trickster. # Inside:8 ends here @@ -940,7 +1220,7 @@ west # And the other animals: -# [[file:../../../projects/mud.org::*Inside][Inside:9]] +# [[file:../../../Dropbox/org/projects/mud.org::*Inside][Inside:9]] @detail wolf = The gnarled staff the wolf holds looks a lot like the staff the gnome, Dabbler, has. # @detail stag = A majestic looking deer with gold fur and antlers that look more like tree branches. @@ -952,7 +1232,7 @@ west # Will this staff get confused at some point? -# [[file:../../../projects/mud.org::*Inside][Inside:10]] +# [[file:../../../Dropbox/org/projects/mud.org::*Inside][Inside:10]] @detail staff = A gnarled staff made of oak has a dark petina from age. Three small leaves has sprouted from the side. # Inside:10 ends here @@ -960,24 +1240,24 @@ west # Touch up the exit: -# [[file:../../../projects/mud.org::*Inside][Inside:11]] +# [[file:../../../Dropbox/org/projects/mud.org::*Inside][Inside:11]] @open leave;outside = @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..." # Inside:11 ends here -# Fireplace + # And a fire in the fireplace is a type of /pet/, since we can feed it: -# [[file:../../../projects/mud.org::*Fireplace][Fireplace:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Fireplace][Fireplace:1]] @create/drop fireplace;fire;embers : typeclasses.pets.Fire # Fireplace:1 ends here # How about some aliases: -# [[file:../../../projects/mud.org::*Fireplace][Fireplace:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Fireplace][Fireplace:2]] @lock fire = get:false() # Fireplace:2 ends here @@ -985,7 +1265,7 @@ west # And a description that will be overridden: -# [[file:../../../projects/mud.org::*Fireplace][Fireplace:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Fireplace][Fireplace:3]] @desc fireplace = A stone fireplace with a carved wooden mantel supporting small pictures, some books and a black statue. # Fireplace:3 ends here @@ -993,7 +1273,7 @@ west # Since we mentioned some details, we better mention them: -# [[file:../../../projects/mud.org::*Fireplace][Fireplace:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Fireplace][Fireplace:4]] @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. # Fireplace:4 ends here @@ -1001,7 +1281,7 @@ west # This reference in this detail is obviously, only for me: -# [[file:../../../projects/mud.org::*Fireplace][Fireplace:5]] +# [[file:../../../Dropbox/org/projects/mud.org::*Fireplace][Fireplace:5]] @detail statue = A small, black statue of a salamander curled around a book, engraved with a title, "Seeing Stones". # Fireplace:5 ends here @@ -1009,25 +1289,25 @@ west # I imagine a giant picture over the fireplace … need to do something interesting with it. -# [[file:../../../projects/mud.org::*Fireplace][Fireplace:6]] +# [[file:../../../Dropbox/org/projects/mud.org::*Fireplace][Fireplace:6]] @detail picture = Above the fireplace is a large, somewhat abstract painting stretching its arm-like branches with shadowing that looks like a yawn. # Fireplace:6 ends here -# Knickknacks + # What sort of non-books do we want to look at? # In the meantime, let’s just have some descriptions: -# [[file:../../../projects/mud.org::*Knickknacks][Knickknacks:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Knickknacks][Knickknacks:1]] @detail knickknacks;things;knick-knacks;doodads;stuff;crap = An odd assortment of knickknacks and doodads that decorate the minimal space between the askewed books on the skewampus shelves. # Knickknacks:1 ends here -# Books + # We mentioned shelves of books: -# [[file:../../../projects/mud.org::*Books][Books:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Books][Books:1]] @detail shelves;bookshelf;bookshelves = Shelves at various angles embellish the walls of this small, cozy room. Leatherbound books weigh each shelf, while some stacks of books support other shelves. Dabbler has decorated some shelves with odd trinkets. # Books:1 ends here @@ -1035,14 +1315,14 @@ west # This should be an object of “books”, but looking should pull up a random list of books. -# [[file:../../../projects/mud.org::*Books][Books:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Books][Books:2]] @create/drop books:typeclasses.readables.Books # Books:2 ends here # I start with the name, =books=, but when we look in the room, I want to see /collection/: -# [[file:../../../projects/mud.org::*Books][Books:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Books][Books:3]] @name books = collection of books;books # Books:3 ends here @@ -1050,15 +1330,15 @@ west # With a good description: -# [[file:../../../projects/mud.org::*Books][Books:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Books][Books:4]] @desc books = Books of different sizes and colors. So many books. Perhaps you want to simply |blook|n at a |bbook|n at random? # Books:4 ends here -# Trolley of Scones + # The trolley [[file:~/src/moss-n-puddles/typeclasses/consumables.py::class Producer(Object):][produces]] random scones, which, like the [[Berry Trolley][berries]] can be eaten or fed to the wildlife. -# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Trolley of Scones][Trolley of Scones:1]] @create/drop trolley;trolly : typeclasses.consumables.Trolley # Trolley of Scones:1 ends here @@ -1066,7 +1346,7 @@ west # We mentioned a /trolley/ with tea, cups and scones: -# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Trolley of Scones][Trolley of Scones:2]] @desc trolley = A tea trolley, complete with a small collection of teacups, a magical teapot, as well as a daily assortment of scones. # Trolley of Scones:2 ends here @@ -1074,7 +1354,7 @@ west # We have to have the trolley bake something with the Python command: -# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Trolley of Scones][Trolley of Scones:3]] py here.search("trolley").do_bake() # Trolley of Scones:3 ends here @@ -1083,15 +1363,15 @@ py here.search("trolley").do_bake() # And let’s not clutter up the scene too much: -# [[file:../../../projects/mud.org::*Trolley of Scones][Trolley of Scones:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Trolley of Scones][Trolley of Scones:4]] @lock trolley = view:tag(hidden_ring, mp) # Trolley of Scones:4 ends here -# Tea Service + # The “room” gives the teacups, and the “teapot” fills the cups, so we just need descriptions: -# [[file:../../../projects/mud.org::*Tea Service][Tea Service:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Tea Service][Tea Service:1]] @detail teacups = An odd, yet interesting assortment of teacups. Take one. # @detail teacup = Each cup is unique. Take one to look further. @@ -1103,7 +1383,7 @@ py here.search("trolley").do_bake() # A teapot will “fill” a teacup forever, until it is “remade”. -# [[file:../../../projects/mud.org::*Tea Service][Tea Service:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Tea Service][Tea Service:2]] @create/drop teapot;pot;tea pot:typeclasses.drinkables.Teapot # @desc teapot = An adorable brown teapot, waiting for you to |bmake|n some tea. @@ -1112,31 +1392,31 @@ py here.search("trolley").do_bake() # And of course, you can’t steal the tea pot: -# [[file:../../../projects/mud.org::*Tea Service][Tea Service:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Tea Service][Tea Service:3]] @lock teapot = get:false() # @set teapot/get_err_msg = "You don't need to carry it around to make tea." # Tea Service:3 ends here -# 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. -# [[file:../../../projects/mud.org::*Chairs][Chairs:1]] +# [[file:../../../Dropbox/org/projects/mud.org::*Chairs][Chairs:1]] @create/drop chairs:typeclasses.sittables.Sittables # Chairs:1 ends here # Add aliases afterwards: -# [[file:../../../projects/mud.org::*Chairs][Chairs:2]] +# [[file:../../../Dropbox/org/projects/mud.org::*Chairs][Chairs:2]] @name chairs = few overstuffed chairs;overstuffed chairs;chairs;chair # Chairs:2 ends here # And the description: -# [[file:../../../projects/mud.org::*Chairs][Chairs:3]] +# [[file:../../../Dropbox/org/projects/mud.org::*Chairs][Chairs:3]] @desc chairs = A few, dark leather, overstuffed chairs, each with a soft, colorful blanket and pillow. An invitation for a cozy nap. # Chairs:3 ends here @@ -1144,7 +1424,7 @@ py here.search("trolley").do_bake() # Can’t steal ‘em: -# [[file:../../../projects/mud.org::*Chairs][Chairs:4]] +# [[file:../../../Dropbox/org/projects/mud.org::*Chairs][Chairs:4]] @lock chairs = get:false() # @set chairs/get_err_msg = "It's way too heavy for you to lift." @@ -1154,7 +1434,7 @@ py here.search("trolley").do_bake() # And textual descriptions the object can use: -# [[file:../../../projects/mud.org::*Chairs][Chairs:5]] +# [[file:../../../Dropbox/org/projects/mud.org::*Chairs][Chairs:5]] @set chairs/adjective = "in" # @set chairs/article = "the"