diff --git a/the elder scrolls VII.py b/the elder scrolls VII.py new file mode 100644 index 0000000..68ec2c6 --- /dev/null +++ b/the elder scrolls VII.py @@ -0,0 +1,48 @@ +class Personnage: + def __init__(self,nom,exp,cat,inventaire): + self.nom=nom + self.pdv=20 + self.exp=exp + self.cat=cat + self.inventaire=inventaire + def jet_attaque(self): + return + def jet_defense(self): + return + def change_pdv(self): + return + def change_exp(self): + return + def affiche_caracteristiques(self): + return + def affiche_inventaire(self): + return +def menu1(answer): + if answer=="help": + answer=5 + try: + answer=int(answer) + except: + print("Entrez une réponse valide") + answer=0 + if answer==5: + print(helpprofile) + back="invalid" + elif int(answer)>0 and int(answer)<5: + back=gamedata[0][answer-1] + else : + back="invalid" + return back +gamedata=[["Le Guerrier","Le Magicien","Le Voleur","L'Elfe"],[10,10,3,8],[8,7,9,10]] +exp=1 +helpprofile="Encyclopédie :"+chr(10)+"Le Guerrier : --- Attaque 10 --- Défense 8 ---"+chr(10)+"Le Magicien : --- Attaque 10 --- Défense 7 ---"+chr(10)+"Le Voleur : --- Attaque 3 --- Défense 9 ---"+chr(10)+"L'Elfe : --- Attaque 8 --- Défense 10 ---" +print("Bienvenue dans The Elder Scrolls VII") +nom=input("Entrez votre nom : ") +print("Choisissez votre catégorie :",chr(10),"1)Le Guerrier",chr(10),"2)Le Magicien",chr(10),"3)Le Voleur",chr(10),"4)L'Elfe",chr(10),"entrez 'help' pour avoir le profil de chaque catégorie") +command=input("entrez un numéro (1 à 4) pour devenir membre de la catégorie correspondante : ") +command=menu1(command) +if command=="invalid": + while command=="invalid": + command=menu1(input()) +cat=command +print("Bonjour",nom,cat) \ No newline at end of file