import os from game import Game def clear(): os.system('cls' if os.name == 'nt' else 'clear') def ask(x): Game.question = (x) def response(): Game.answer = (input(Game.question)) clear() def intro(): clear() # Game.name tmp = str(input("What is your name? \n")) print('tmp') print(type(tmp)) clear() ask("Your name is really %s? \n" % (name)) response() if Game.answer.lower() == "yes": print("It is a weak name, I suppose it befits a whelp like you.") else: Game.name=(input("Well, then what is it? The next thing you utter shall be what you will be known as!\n")) input("\n \nPress Enter to continue...") clear() print("Truth be told, I'm quite surprised that you remember your name at all. You were in a pretty sorry state when you were dragged in here.") input("\n \nPress Enter to continue...") clear() print("You were bleeding something fierce...those gruesome gashes all over your body. It's like something toyed with you and got bored before finishing the job.") attacker=(input("What the hell put you in that state?\n")) clear() print("%s...hm...never seen that happen to anyone 'round here before." % (attacker)) clear() Game.lover=input("You were muttering someone's name in your sleep. The way you was moanin it made me pretty sure you've got someone special. Didn't quite catch the name though, who's yer special friend?\n") def main(): story = Game() if __name__ == '__main__': main()