def create(self): print bcolors.bcolors.WARNING +"Welcome in the player creation" + bcolors.bcolors.ENDC time.sleep(2) routines.slow_type("We are going to help you in the difficult process of player creation") message="Please enter the name of your character" validate_message="Are you sure of this name ?" self.name=routines.check(message,validate_message) time.sleep(2) self.hp=10 self.max_hp=10 self.inventory = [] self.armor=None self.weapon=None
def intro(self): routines.clear() routines.slow_type("Well... That was not very hard...") routines.slow_type("Until now ....") routines.slow_type("Hahahahahaha (-:C") time.sleep(2) routines.clear() print "" print bcolors.bcolors.HEADER + bcolors.bcolors.BOLD + bcolors.bcolors.UNDERLINE + "\tYour story, your adventure ..." + bcolors.bcolors.ENDC print "" routines.slow_type_delete("A long time ago in a realm of fairies and princess...") routines.slow_type("No... You know what ?") routines.slow_type("You were expecting some classical console-based RPG ?") routines.slow_type("You were expecting something boring and easy to beat ?") routines.slow_type("Screw that shit ! You are going to be suprized !") time.sleep(2) routines.clear() print "" print bcolors.bcolors.FAIL + bcolors.bcolors.BOLD + bcolors.bcolors.UNDERLINE + "\tYour story, your adventure, your death ..." + bcolors.bcolors.ENDC print "" routines.slow_type("You feel with your hands a smooth sensation of grass.") routines.slow_type("You suffer from a really bad headache and you barly manage to open your eyes.") routines.slow_type("The sun seems to be already quite high in the sky.") routines.slow_type("All around you can see very high trees. The kind of three you never saw before.") routines.slow_type("What did happend to you ? Who are you ?") routines.slow_type("Those questions act like echos in your painfull head.") routines.slow_type("Your breath does not seem to smell like alcohol and your pockets are empty.") routines.slow_type("It is all up to you now ....") time.sleep(2)