Trying to get a method to work
I'm very new to code.
On the first image you'll see from line 58 to 62 the method I've declared.
On line 94 you'll see where the method is being used. Unfortunately the line appears to be ignored. Why is that?
I could just write Monster1.hp -= attroll; but I'm trying to learn methods and be more object oriented.
On the first image you'll see from line 58 to 62 the method I've declared.
On line 94 you'll see where the method is being used. Unfortunately the line appears to be ignored. Why is that?
I could just write Monster1.hp -= attroll; but I'm trying to learn methods and be more object oriented.