Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. # input "look [object]"
  2. target = self.db.ev_location
  3. # If given input. Must be in form 'look target'
  4. txt = txt.split(" ", 1)[1]
  5. if txt:
  6. result = search.object_search(txt, candidates=self.db.ev_location.contents)
  7. target = result[0] if result else None
  8. if not target:
  9. text = "'%s' could not be located." % txt
  10. else:
  11. text = target.return_appearance(self.db.puppetdict[user])
  12. self.msg((text, {"type":"privmsg"}), from_obj=self, user=user)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement