SHOW:
|
|
- or go back to the newest paste.
1 | - | abilties.py (command): |
1 | + | |
2 | - | """ |
2 | + | |
3 | - | Commands |
3 | + | |
4 | ||
5 | - | Commands describe the input the account can do to the game. |
5 | + | |
6 | abilities | |
7 | - | """ |
7 | + | |
8 | Displays a list of your current ability values. | |
9 | - | from evennia.commands.command import Command as BaseCommand |
9 | + | |
10 | key = "abilities" | |
11 | - | # from evennia import default_cmds |
11 | + | |
12 | lock = "cmd:all()" | |
13 | help_category = "General" | |
14 | - | class Command(BaseCommand): |
14 | + | |
15 | def func(self): | |
16 | - | Inherit from this if you want to create your own command styles |
16 | + | |
17 | - | from scratch. Note that Evennia's default commands inherits from |
17 | + | |
18 | - | MuxCommand instead. |
18 | + | str, agi, mag = self.caller.get_abilities() |
19 | string = "STR: %s, AGI: %s, MAG: %s" % (str, agi, mag) | |
20 | - | Note that the class's `__doc__` string (this text) is |
20 | + | self.caller.msg(string) |