Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1.  
  2. from evennia.commands.default.muxcommand import MuxCommand
  3. from evennia import Command as BaseCommand
  4. from evennia import default_cmds
  5. from django.conf import settings
  6. from evennia import Command, create_object, utils
  7. from evennia.utils import create, utils
  8. from evennia.commands.default import unloggedin
  9. from evennia.utils import evform, evtable
  10.  
  11.  
  12. class OverLook(default_cmds.CmdLook):
  13. key = "look"
  14. def func(self):
  15. if(self.caller.db.alive == 1 and self.caller.db.conscious == 1):
  16. super(OverLook, self).func()
  17. else:
  18. self.caller.msg("You can't see.")
  19.  
  20. class OverInventory(default_cmds.CmdInventory):
  21. key = "i"
  22. def func(self):
  23. if(self.caller.db.conscious == 1):
  24. self.caller.msg("test")
  25. else:
  26. self.caller.msg("You can't do that while unconscious")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement