import random class player(): hp = 10 attack = random.randint(0,5)
class monster(): hp = 10 attack = random.randint(0,4) def battle(): print ("a wild mosnter appered!") print ("would you like to battle?") answer = input() if answer == ("yes"): while monster.hp >=0: print ("you do", player.attack, "damage") monster.hp -= player.attack print (monster.hp) elif answer == ("no"): print ("you run away") else: print("you stand there") battle() Hello! just wanted to show you guys how its coming together, im starting to understand it abit more (hopefully it's right) at the moment it seems to only roll the attack once and uses that value but that's another issue all together that i bother you with (yet anyway). thanks again guys you are awesome -- http://mail.python.org/mailman/listinfo/python-list