Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randrange
- player = ()
- player_exp = 0
- player_hp = 20
- player_strength = randrange(3, 9)
- player_level = 1
- imp_hp = 20
- imp_strength = randrange(3, 5)
- if player_exp == 10:
- player_level = 2
- player_hp = 31
- player_strength = randrange(4, 10)
- if player_exp == 20:
- player_level = 3
- player_hp = 39
- player_strength = randrange(5, 11)
- print("You enter a cave to eliminate the demons. You have been ordered by a nearby towns Mayor to complete this task.")
- print("As you enter a cave, the first room contains a small, flying creature. You ready your iron blade.")
- input("\nEnter any key to commence battle: ")
- print("\nThe small creature see you and rushes to attack!")
- while imp_hp >= 1:
- input("Enter a key to roll an attack: ")
- Battle = imp_hp - player_strength
- print("You inflict")
- print(player_strength)
- print("Enemy's remaining HP:")
- print(Battle)
- imp_hp = Battle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement