First of all, congratulations! Writing your own adventure game is a labor of love (I spent 4 years of grad school and 5 years at my first job hacking
Collosal Cave Adventure[
^]) from which you could learn a lot of about programming.
Next, sorry but you're going about this the wrong way.
- For starters, you're missing a few curly braces (that will ensure the player is asked Mage/Warrior specific questions only if they are a Mage or Warrior).
- More importantly, ditch the idea of a scripted set of questions and logic. Instead, have an ask/respond loop that handles the game's logic. And before you can do this, you'll need to design your game (in minute detail on paper - or at least softcopy) before you write a stitch of code.
Play existing text adventure games to get a feel for how the games respond. Above all, have fun and learn as much as you can. Writing code can be an immensely fulfilling activity and in some cases (like mine) can take over your life.
/ravi