diff --git a/typeclasses/scripts.py b/typeclasses/scripts.py index 78f1a34..6fc30dd 100644 --- a/typeclasses/scripts.py +++ b/typeclasses/scripts.py @@ -17,6 +17,7 @@ from evennia.scripts.scripts import DefaultScript from evennia.prototypes.spawner import spawn from evennia.utils import logger +from .characters import Character class Script(DefaultScript): """ @@ -115,10 +116,17 @@ class KnockScript(Script): if room: room.msg_contents("Someone is knocking on the door...") - god = knocker.global_search("#1") + god = knocker.search("#1", quiet=True, global_search=True) if god: god.msg(f"With your seer stone, you see the knocker is {knocker.key}.") + gnome = knocker.search("Dabbler", quiet=True, + global_search=True) + if isinstance(gnome, list): + gnome = gnome[0] + if gnome: + gnome.msg(f"With your seer stone, you see the knocker is {knocker.key}, {knocker.db._sdesc}.") + def at_repeat(self, **kwargs): waker = self.attributes.get("waker") if waker: