I think you need more lessons in C++ before tackling a game.
Oh and code like this:
Code:
else if (input=="jump") {if (rope_above==true) {z=z+1;} else cout<< "Nothing above me\n";//Jump up, if a rope is above, grab it
else if (input=="dig") {if (hole_below==true) {z=z-1;} else cout<< "Nothing below me\n";//Dig if you can
Is only going to cause headaches.
It should probably look like this:
Code:
else if (input == "jump")
{
if (rope_above == true)
z = z + 1;
else
cout << "Nothing above me\n"; //Jump up, if a rope is above, grab it
}
else if (input == "dig")
{
if (hole_below == true)
z = z - 1;
else
cout << "Nothing below me\n"; //Dig if you can
}
See the difference in the easiness in reading? I do, and I can even see you missed a }.