def talk_with_bob(self, Bob, surface): status = progress.getProgress('bi_bob') name = progress.getProgress('name') if status == 0: answer = engine.getInput((Bob.lines['l1a'], ), Bob.lines['l1q'], surface, 2) progress.setProgress('bi_library', 2) if answer == 'yes': answer = engine.getInput((Bob.lines['l2yes'], ), Bob.lines['l2q'], surface, 2) progress.setProgress('name', answer) engine.displayMessage( ((Bob.lines['l3a'] + cryptofunctions.encrypt(answer, 'bob')), Bob.lines['l3b']), surface) engine.wait() engine.getInput((Bob.lines['l4a'], ), Bob.lines['l4q'], surface, 2) engine.displayMessage((Bob.lines['l5'], ), surface) progress.setProgress('bi_bob', 1) else: engine.displayMessage((Bob.lines['l2no'], ), surface) elif status == 1: engine.displayMessage((Bob.lines['l6'], ), surface) engine.wait()
def talk_with_save(self, Save, surface): name = progress.getProgress('name') answer = engine.getInput( (Save.lines['l1a'], (Save.lines['l1b'] + name)), Save.lines['l1q'], surface, 1) if answer == 'yes': engine.displayMessage((Save.lines['l2'], ), surface) engine.wait() elif answer == 'change name': answer = engine.getInput((Save.lines['l3'], ), ' ', surface, 2) progress.setProgress('name', answer)