From 08b49274ebc8c87ebb1688a16980d4e8189bf4ed Mon Sep 17 00:00:00 2001 From: Henddher Pedroza Date: Sun, 17 May 2020 16:26:38 -0400 Subject: [PATCH] Make Puzzle's use command user-friendly. --- evennia/contrib/puzzles.py | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/evennia/contrib/puzzles.py b/evennia/contrib/puzzles.py index 5eef1f77e2..924addfc32 100644 --- a/evennia/contrib/puzzles.py +++ b/evennia/contrib/puzzles.py @@ -588,15 +588,30 @@ def _matching_puzzles(puzzles, puzzlename_tags_dict, puzzle_ingredients): class CmdUsePuzzleParts(MuxCommand): + """ + Use an object, or a group of objects at once. + + + Example: + You look around you and see a pole, a long string, and a needle. + + use pole, long string, needle + + Genius! You built a fishing pole. + + + Usage: + use [,obj2,...] + """ + + # Technical explanation """ Searches for all puzzles whose parts match the given set of objects. If there are matching puzzles, the result objects are spawned in their corresponding location if all parts have been passed in. - - Usage: - use ] """ + key = "use" aliases = "combine" locks = "cmd:pperm(use) or pperm(Player)"