Im trying to get this working but my if statments dont work or am i just doing them wrong ?
cout << "You see a house, what do you do?\n1. Run away\n2. Walk inside" << endl;
cin >> Input;
if (Input == "Run away"){
PowerLevel_Final = PowerLevel_Final - 9036;
cout << "You got hit by a tree, this drained your power level"<< PowerLevel_Final << endl;
cout << "You have died." << endl;
}
else if (Input == "Walk inside"){
PowerLevel_Final = PowerLevel_Final - 35;
cout << "You walked into the house.\nThis drained your power level." << PowerLevel_Final << endl;
cout << "You see a knife, what do you do?\n1. Pick up the knife\nWalk past the knife." << endl;
cin >> Input;
if (Input == "Pick up the knife"){
cout <<"Knife has been added to your inventory.";
}
else if (Input == "Walk past the knife"){
cout << "You have died.";
}
}
HUDK();
Also can i just make it so if the Input is equal to one make it start reading from another Cpp file