Hello, I'm trying to make myself a very very basic game, and so far so good. But since i haven't gotten that "far" itsn't not very great either...
Anyway, the problem's at line 20, whereas i want it to cout my little message. It just doesn't, for some reason which i cannot figure out by myself. So i figured you guys would be able to stupidify me and solve this one in the blink of an eye! :)
This time i decided to experiment with separate function calls to check the players and the enemies hp and such. I've also got another function that is supposed to decrease the enemies hp, but it appears that it's not changed, even though i have referenced it.
Apologies, i didn't mean to sound ungreatful... It's a nice solution, and i will use it if this gets to the point where i can't use the solution i'm looking for.
Basically, i'm looking for a solution as to why the enemies hp is not decreasing, a solution that provides me with a simple change to the code within the functions (preferably without touching main) because i must have missed something essential here...