Fix knock command

This commit is contained in:
Howard Abrams 2025-04-18 17:07:54 -07:00
parent 21747092b8
commit 3c0a4951e7
2 changed files with 29 additions and 3 deletions

View file

@ -114,7 +114,7 @@ class KnockScript(Script):
if room:
room.msg_contents("Someone is knocking on the door...")
god = Character.objects.search_object("#1")[0]
god = knocker.global_search("#1")
if god:
god.msg(f"With your seer stone, you see the knocker is {knocker.key}.")

View file

@ -85,6 +85,23 @@ nick meadow = ^fly Frog Meadow
# Character: Dabble:8 ends here
# The pipe is little more than messages to the smoker and everyone else in the room.
# [[file:../../../Dropbox/org/projects/mud.org::*Pipe][Pipe:1]]
@create pipe: typeclasses.things.Pipe
# Pipe:1 ends here
# And a desciption:
# [[file:../../../Dropbox/org/projects/mud.org::*Pipe][Pipe:2]]
@desc pipe = As tall as its owner with etchings of birds, leaves and magical symbols.
# Pipe:2 ends here
# Rename the Limbo (or starting place) with the name *Forest*. Note the term =mp01= as a global label that matches my map.
@ -1562,9 +1579,18 @@ py here.search("trolley").do_bake()
# And now that we are done, say it:
# And we need to update the Knocker to get the “knock” command going:
# [[file:../../../Dropbox/org/projects/mud.org::*Chairs][Chairs:7]]
say I have finished this, the first version, of my creation.
@update knocker = typeclasses.things.Knocker
# Chairs:7 ends here
# And now that we are done, say it:
# [[file:../../../Dropbox/org/projects/mud.org::*Chairs][Chairs:8]]
say I have finished this, the first version, of my creation.
# Chairs:8 ends here