Basic command framework to get items into your inventory, drop items
from your inventory, and list items in your inventory. No
functionality is yet implemented by these.
"""User command functions for the mudpy engine."""
"""User command functions for the mudpy engine."""
-# Copyright (c) 2004-2020 mudpy authors. Permission to use, copy,
+# Copyright (c) 2004-2022 mudpy authors. Permission to use, copy,
# modify, and distribute this software is granted under terms
# provided in the LICENSE file distributed with this software.
# modify, and distribute this software is granted under terms
# provided in the LICENSE file distributed with this software.
+def c_get(actor, parameters):
+ """Move a prop into inventory."""
+ if not parameters:
+ message = "What do you wish to get?"
+ else:
+ message = ('Not yet implemented.')
+ actor.send(message)
+ return True
+
+
+def drop(actor, parameters):
+ """Move a prop out of inventory."""
+ if not parameters:
+ message = "What do you wish to drop?"
+ else:
+ message = ('Not yet implemented.')
+ actor.send(message)
+ return True
+
+
def halt(actor, parameters):
"""Halt the world."""
if actor.owner:
def halt(actor, parameters):
"""Halt the world."""
if actor.owner:
+def inventory(actor, parameters):
+ """List the inventory."""
+ message = ('Not yet implemented.')
+ actor.send(message)
+ return True
+
+
def look(actor, parameters):
"""Look around."""
if parameters:
def look(actor, parameters):
"""Look around."""
if parameters:
-_copy: Copyright (c) 2004-2020 mudpy authors. Permission to use, copy,
+_copy: Copyright (c) 2004-2022 mudpy authors. Permission to use, copy,
modify, and distribute this software is granted under terms
provided in the LICENSE file distributed with this software.
modify, and distribute this software is granted under terms
provided in the LICENSE file distributed with this software.
useful for inspecting the contents of in-memory objects, for
example:$(eol)$(eol) evaluate universe.groups['actor'].keys()
useful for inspecting the contents of in-memory objects, for
example:$(eol)$(eol) evaluate universe.groups['actor'].keys()
+command.get.action: command.c_get
+command.get.description: Pick up or retrieve an item.
+command.get.help: To retrieve something from your environment into your
+ inventory, get it by whatever name is shown, or even a subset or keyword
+ which you think might relate to it.
+
+command.drop.description: Put an item onto the ground.
+command.drop.help: To drop something, reference it by whatever name is shown in
+ your inventory.
+
command.halt.administrative: true
command.halt.description: Shut down the world.
command.halt.help: This will save all active accounts, disconnect all clients
command.halt.administrative: true
command.halt.description: Shut down the world.
command.halt.help: This will save all active accounts, disconnect all clients
a brief description or, alternatively, give you detailed information on one
command.
a brief description or, alternatively, give you detailed information on one
command.
+command.inventory.description: Look in your inventory.
+command.inventory.help: List the items you're currently carrying around.
+
command.look.description: Look around.
command.look.help: With the look command, you can see where you are.
command.look.description: Look around.
command.look.help: With the look command, you can see where you are.