44 lines
970 B
Python
Executable file
44 lines
970 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
from evennia import Command, CmdSet
|
|
|
|
class CmdSit(Command):
|
|
"""
|
|
If the place you are at has something worthy of of your tushy, you will sit down there-on.
|
|
|
|
Sure, you can attempt to 'sit' anywhere.
|
|
"""
|
|
key = "sit"
|
|
def func(self):
|
|
self.obj.do_sit(self.caller)
|
|
|
|
class CmdStand(Command):
|
|
"""
|
|
If you are sitting, you will stand up. You may need to do this in order to leave.
|
|
"""
|
|
key = "stand"
|
|
locks = "cmd:sitsonthis()"
|
|
|
|
def func(self):
|
|
self.obj.do_stand(self.caller)
|
|
|
|
|
|
class CmdSetSit(CmdSet):
|
|
priority = 1
|
|
def at_cmdset_creation(self):
|
|
self.add(CmdSit)
|
|
self.add(CmdStand)
|
|
|
|
class CmdNoSitStand(Command):
|
|
"""
|
|
Sit down or Stand up
|
|
"""
|
|
key = "sit"
|
|
aliases = ["stand"]
|
|
|
|
def func(self):
|
|
if self.cmdname == "sit":
|
|
self.msg("You have nothing to sit on.")
|
|
else:
|
|
self.msg("You are not sitting down.")
|