Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from evennia.commands.default.muxcommand import MuxCommand
- from evennia import Command as BaseCommand
- from evennia import default_cmds
- from django.conf import settings
- from evennia import Command, create_object, utils
- from evennia.utils import create, utils
- from evennia.commands.default import unloggedin
- from evennia.utils import evform, evtable
- class OverLook(default_cmds.CmdLook):
- key = "look"
- def func(self):
- if(self.caller.db.alive == 1 and self.caller.db.conscious == 1):
- super(OverLook, self).func()
- else:
- self.caller.msg("You can't see.")
- class OverInventory(default_cmds.CmdInventory):
- key = "i"
- def func(self):
- if(self.caller.db.conscious == 1):
- self.caller.msg("test")
- else:
- self.caller.msg("You can't do that while unconscious")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement