Sn = input("To heal yourself, you need to go to the shop. Type("The word you have entered is invalid. You can use your skill point(s) to upgrade your stats, such as, your maximum health, and your attack power.")Ĭontinu = input("Say, *back*, to go back to your inventory screen. This skill point is then used while in your inventory by saying the word *level*. Once you level up, you gain one skill point. Although, each time you level up, they get harder to defeat. To go to the shop, just say *shop* when you are in your inventory. You can spend these *crystals* at the shop. Type("The goal of this game is to fight all the enemies, kill the miniboss, and finally, kill the boss! each time you kill an enemy you gain *crystals*, currency which you can use to buy weapons, armor, and health. Print("Success! Your name has been changed to ", c.name) Say, *shop* to go to the shop, say *name* to change your name, say, *next* to fight another battle, say, *level* to use your skill point(s), or say, *help* for help: ") Print("Attack Power: Adds", dtop, "% of sword damage") Print("Armor Damage Reduction: ", c.armorReduction) Print("Weapon Attack Damage: ", c.weaponAttack) import randomĪsk = input("Would you like to check you player stats and inventory or go to the next battle? Say inventory for inventory or say next for the next battle: ") The lines above is where i'm positive that the error is coming from, but just in case, here's the rest of the code. Print("It does ", weaponAttacks," attack power!") class Cloud:Īddaps = self.cweaponAttack * self.attackPowerĪrmors = I'm having trouble with my code and I have checked for spelling errors everywhere but I haven't found any. Here's the error I'm getting: Traceback (most recent call last):įile "E:\python\cloud.py", line 18, in _init_
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |