Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Output when typing "mark home": home was added to your list of marks as #2.
- At location 'Limbo(#2)'.
- Persistent attributes:
- desc = This is User #1.
- prelogout_location = Limbo
- strength = 5
- agility = 4
- magic = 2
- power = 10
- combat_score = 69
- mark = {' home': '#2'}
- """
- class CmdMark(Command):
- """
- Mark the current location.
- Usage:
- mark <custom mark name>
- Marks the player's current location, using the provided arguments.
- For a list of marks, simply type 'mark' with no argument.
- """
- key = "mark"
- def func(self):
- if not self.caller.db.mark:
- self.caller.db.mark = {}
- current_location = self.caller.location.dbref
- self.caller.db.mark[f'{self.args}'] = current_location
- self.caller.msg(f"{self.args} was added to your list of marks as {current_location}.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement