Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not self.propname:
- # this means we just list the values
- output = "Properties of %s:" % npc.key
- for propname in allowed_propnames:
- propvalue = npc.attributes.get(propname, default="N/A")
- output += "\n %s = %s" % (propname, propvalue)
- caller.msg(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement