def __init__(self, topics={}, answers={}, orders={}): Property.__init__(self) self.topics = topics '''Dict containing topics you can tell this NPC about.''' self.answers = answers '''Dict containing topics you can ask this NPC about.''' self.orders = orders '''Dict containing topics can ask this NPC to do.'''
def __init__(self, long=None, short=None, inv=None, descIn={}): Property.__init__(self) self.long = long '''Long description of the object.''' self.short = short '''Short description of the object. Typically shown as part of object owner's long description.''' self.inv = inv '''Invoked when player examines inventory.''' self.descIn = descIn '''A dict containing specific descriptions for the object if contained in another
def __init__(self, droppable=True, takeable=True, movable=True, autoDescribe=True): Property.__init__(self) self.droppable=droppable '''True if item can be dropped.''' self.takeable = takeable '''True if item can be taken.''' self.dropped = False '''True if item is not in its original location.''' self.movable = movable '''True if player can push this.''' self.autoDescribe = autoDescribe
def __init__(self, droppable=True, takeable=True, movable=True, autoDescribe=True): Property.__init__(self) self.droppable = droppable '''True if item can be dropped.''' self.takeable = takeable '''True if item can be taken.''' self.dropped = False '''True if item is not in its original location.''' self.movable = movable '''True if player can push this.''' self.autoDescribe = autoDescribe
def __init__(self, on=True, inverse=False): Property.__init__(self) self.on = on '''Whether it's currently emitting light.''' self.inverse = inverse '''True if item should suck light from container rather than emit it.'''
def __init__(self, light=False): Property.__init__(self) self.light = light
def __init__(self, closed=True, locked=False, key=None): Property.__init__(self) self.closed = closed self.locked = locked self.key = key
def __init__(self, hot=True): Property.__init__(self) self.hot = hot '''True if object is too hot to touch directly.'''
def __init__(self, on=False): Property.__init__(self) self.on = on