- Code: Select all
def Charack(self, Health, Defense, Strenght):
#self.NPC = Npc
self.Health = 10
self.Defense = 12
self.Strenght = 15
def Npc(race, Org, Elf):
race.Org = ["10", "15", "20"]
race.Elf = ["10", "20", "1"]
I get this error
"Traceback (most recent call last):
File "C:\Documents and Settings\Owner\My Documents\Chars.py", line 11, in <module>
TypeError: Npc() missing 2 required positional arguments: 'Org' and 'Elf'"
Ok so I'm trying to get it so that I can call a race and call a skill of the race like health.
I know I had help with a class in another post but I don't know how to use is and this is a bit simpler but still good for now.
Any idee wat my problem is?
Fist time I'm getiing an error like this ad I'm missing something right infront of me
Ty guys for reading helping