They're not different classes. I wrote the first one to test the battle system I had been programming, and then replaced it with the second one...
Type: Posts; User: NTWolf1220
They're not different classes. I wrote the first one to test the battle system I had been programming, and then replaced it with the second one...
I'm sorry I didn't clarify more. Main.main are both the same method in the same class, but one of them executes correctly (the one where it's basically just a test for my battle class.) and one that...
Hi, so I've been working on several simple text rpgs for a long time, and I think this one is my best yet. For some reason, my battle system only seems to work when I tried doing just a battle in the...
Thanks a ton! I read up on the break statement and implemented it with two more if statements, and it works perfectly!
while (monster.hp > 0)
{
wrAttack(player, monster);
if...
I've been working on a text-based RPG game with a simple turn based battle system. After a lot of work, I've managed to get the battle system working fine. However, the loop lets the monster you're...
I've got a lot of code, and I'm not entirely sure what I've done wrong. My IDE isn't showing any errors, but I've got NullPointerExceptions in three of my classes.
What should I do?
Player...
Hi, I'm very new to Java and I've run into a strange problem while I was writing a calculator class.
For some reason, anytime I run the program it prints this part twice:
It's a pretty...