Share your repls and programming experiences

← Back to all posts
why can't it find the attribute?
xolyon (343)

I made a simple fighting system which works with my inventory system, but I can't seem to attributes 'atk' I checked and changed everything and the error still shows up

Comments
hotnewtop
slip1244 (256)


you swapped these around. you're supposed to do self.atk = atk and so on

slip1244 (256)

@xolyon plz mark me as best answer thanks

xolyon (343)

@nithilan4 I cant since its not a question, sorry

[deleted]

Shouldn’t this be in ask, not share?

xolyon (343)

@CodeABC123 oh yh lol I just clicked the share button while in the IDE and forgot to check