def dialogue(actor, second_person_verb, third_person_verb, message): if not actor.is_(Spatial): actor.tell("You're unable to do that.") return message = upper_first(message.strip().replace('"', "'")) if not message[-1] in ('.', '?', '!'): message += '.' actor.tell('You {0}: "{1}"'.format(second_person_verb, message)) actor.Spatial.emit('{0.Named.Name} {1}: "{2}"'.format(actor, third_person_verb, message))
def dialogue(actor, second_person_verb, third_person_verb, message): if not actor.is_(Spatial): actor.tell("You're unable to do that.") return message = upper_first(message.strip().replace('"', "'")) if not message[-1] in (".", "?", "!"): message += "." actor.tell('You {0}: "{1}"'.format(second_person_verb, message)) actor.Spatial.emit('{0.Named.Name} {1}: "{2}"'.format( actor, third_person_verb, message))
def Name(self): return upper_first(self.name)
def Name(self): return upper_first(self.name)