Esempio n. 1
0
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))
Esempio n. 2
0
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))
Esempio n. 3
0
 def Name(self):
     return upper_first(self.name)
Esempio n. 4
0
 def Name(self):
     return upper_first(self.name)