diff --git a/commands/everyone.py b/commands/everyone.py index 7de1319..496adbc 100755 --- a/commands/everyone.py +++ b/commands/everyone.py @@ -7,7 +7,7 @@ from commands.command import Command from evennia.commands.default.general import CmdGet, NumberedTargetCommand from evennia.commands.default.muxcommand import MuxCommand from evennia.contrib.rpg.rpsystem import send_emote -from evennia.utils import iter_to_str, logger +from evennia.utils import evmore, iter_to_str, logger from typeclasses.characters import Character from typeclasses.tutorial import TutorBird, TutorialState @@ -478,7 +478,13 @@ class CmdRead(Command): book = self.find_readable(self.caller, target_str) if book: - self.caller.msg(book.db.inside) + contents = book.db.inside + if contents.startswith("file:"): + filename = contents[5:] + with open(filename, "r") as myfile: + evmore.msg(self.caller, myfile.read()) + else: + self.caller.msg(contents) class CmdTake(CmdGet, NumberedTargetCommand): diff --git a/world/alchemy-book.md b/world/alchemy-book.md new file mode 100644 index 0000000..19b99e6 --- /dev/null +++ b/world/alchemy-book.md @@ -0,0 +1,20 @@ +Covered in herbs, mushrooms and moss, this land invites me to produce potions. To work such craft, one must have the proper equipment, which I imported from Twilight Spire outside Mistwood. Most experiments have been successful, and I record them here. + +|BEver Laughter|n + +While saccharine, this potion induces a state of euphoria finding everything, including one's own thoughts, hilarious. + +|wIngredients|n + + - 2 Gigglecap mushrooms + - 4 Brambleberries + - 1 bottle of bubblefizz water + +Step 1, |gcrush|n the brambleberries into a paste +Step 2. |gadd|n all ingredients to the caldron +Step 3. |gmix|n under a low heat +Step 4. |gbottle|n the concoction into a vial + +...interestingly, the rest of the book is blank... + +|bNote: This is still a work in progress... What do you think of this idea? You would gather herbs and whatnot, put them in the cauldron and then make potions! Seems intriguing...|n