I was am trying to create a simple text based randomly generated fighting game, and have create the game logic(ish). Now i would like to receive input using TextIO. I know how to receive one char, boolean, int and double. I have tried to use this (missing all other game logic), but it doesn't work
String input = null;
input = TextIO.getlnString();
if (input == "help"){
System.out.println("You are currently in "+ sTerrain + " terrain.\nAre you fighting: " + sFighting
+ "\nAre you alive: " + sLife + "\nAre there any NPC's: " + sNpc
+ "\nWhich type of NPCs: " + npc + "\nYour health is: " + currHealth + "/" + health);
} // Closes off help
If anyone has some expertise with TextIO, and could help me with allowing multiple outputs for different inputs, using the same String, it would be apprecaited
-Jordan