I have a class from the help of "setrofim".
- Code: Select all
def __init__(self, race, health, strength, defence, magic, agaility, ranged):
self.race = race
self.strength = strength
self.defence = defence
self.magic = magic
self.agility = agility
self.ranged = ranged
characters = [
Character("Org", 100, 10, 10, 5, 8, 5),
Character("Elf", 90, 8, 8, 10, 10, 12),
Character("Templar", 120, 10, 12, 10, 5, 5),
But I have no idee on how to use it the way I want.
You get to you your own char with his own stats from another clas with the same format as above called "orace"
And now I want to be able to mach the character wich the player chose against one of the npc's(the characters from the above class)agains each other to have a winner but I don't know how to mach them against each other and I don't know how to have constant print on the screen that shows the stats (like the health) that updates itself as the player progresses
Any idees on how I woud go about this?
Srry if I'm vague on wat I want tryd my best to explain it
Thank for reading and help!!!