Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. if not self.propname:
  2.                 # this means we just list the values
  3.                 output = "Properties of %s:" % npc.key
  4.                 for propname in allowed_propnames:
  5.                     propvalue = npc.attributes.get(propname, default="N/A")
  6.                     output += "\n %s = %s" % (propname, propvalue)
  7.                 caller.msg(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement