Advertisement
Kovitikus

Proper get_abilities

Mar 27th, 2021
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class CmdAbilities(Command):
  2.     """
  3.    List abilities
  4.  
  5.    Usage:
  6.        abilities
  7.  
  8.    Displays a list of your current ability values.
  9.    """
  10.     key = "abilities"
  11.     aliases = ["abi", "stats", "statistics"]
  12.     lock = "cmd:all()"
  13.     help_category = "General"
  14.  
  15.     def func(self):
  16.         "implements the actual functionality"
  17.  
  18.         str, agi, mag = self.caller.get_abilities()
  19.         string = "STR: %s, AGI: %s, MAG: %s" % (str, agi, mag)
  20.         self.caller.msg(string)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement