From 65ba00bc5730403fcba92afc3befc3df4784b188 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Sun, 16 Feb 2025 11:08:35 -0800 Subject: [PATCH] Fix the introduction --- typeclasses/characters.py | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/typeclasses/characters.py b/typeclasses/characters.py index 0ec230e..549fefd 100644 --- a/typeclasses/characters.py +++ b/typeclasses/characters.py @@ -29,6 +29,24 @@ class Character(Object, DefaultCharacter): if self.dbref != "#1": self.create_letter() + def at_post_puppet(self): + if self.db.visited: + self.msg(f""" + +You hear a whisper on the breeze, “Welcome back, {self.key.capitalize()}.” + + """) + else: + self.db.visited = True + self.msg(""" + +As the surrounding mists dissipate, you find yourself in an ancient, halcyon forest dripping with moss. + + +You see an envelope of parchment wedged under a scaly protrusion of bark...inside, a letter in familiar penmanship, personally addressed to you, which you pick up. + +(Type 'inventory' or 'inv' or just 'i' to see what you carry).""") + def create_letter(self): "create a welcome letter in a character's inventory" letter = spawn({ @@ -51,13 +69,6 @@ class Character(Object, DefaultCharacter): """ letter.location = self - self.msg(""" -As the surrounding mists dissipate, you find yourself in an ancient, halcyon forest dripping with moss. - -You see an envelope of parchment wedged under a scaly protrusion of bark...inside, a letter in familiar penmanship, personally addressed to you, which you pick up. - -(Type 'inventory' or 'inv' or just 'i' to see what you carry).""") - def do_take(self, args): """ A character has a _steal_command. What are the limitations?