Esempio n. 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (button2.Text == "Investigate hole")
     {
         if (intel >= 4 && per >= 2)
         {
             des.Text     = "The hole seems to be some type of lock";
             button1.Text = ("Pick Lock");
         }
         else
         {
             des.Text     = "It appears to be a small metal hole in the wall";
             button1.Text = "Break Down Door";
         }
     }
     if (button2.Text == "Break Down Door")
     {
         if (strength >= 5)
         {
             des.Text = "You manage to break down the door with ease.";
             Room2 xd = new Room2(hel, agil, stel, strength, per, intel, CName.Text, Class.Text);
             button3.Text = "Go To Next Room";
         }
         else
         {
             des.Text    = "You barely manage to break down the door and you take one damage.";
             hel         = hel - 1;
             Health.Text = Convert.ToString(hel);
             Convert.ToInt32(hel);
             button3.Text = "Go To Next Room";
         }
     }
 }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (button1.Text == "Search Room")
            {
                des.Text     = "You look around the room And you find a small crack in the wall.\n Through the crack you can see a dim candle light. You keep shearching and\n find a small metal hole in the wall";
                button2.Text = "Investigate hole";
            }
            if (button1.Text == "Dodge")
            {
                if (agil >= 4)
                {
                    des.Text     = "You manage to dodge the arrow just in time! You Look back at the hole\n is now closed.";
                    button2.Text = "Break Down Door";
                    button1.Text = "";
                }
                else
                {
                    des.Text    = "You aren't quick enough and the arrow strick you in th arm. You take two\n damage and the hole in now closed.";
                    hel         = hel - 2;
                    Health.Text = Convert.ToString(hel);
                    Convert.ToInt32(hel);
                    button2.Text = "Break Down Door";
                    button1.Text = "";
                }
            }
            if (button1.Text == "Pick Lock")
            {
                if (intel >= 5)
                {
                    des.Text     = "You have succesfully picked the lock and the door gently creeks open";
                    button3.Text = "Go To Next Room";
                }
                else
                {
                    des.Text     = "While you are picking the lock you start hearing a clicking sound. You\n countinue picking the lock and out of the corner of your eye you see a trap\n door open and out comes a flying arrow";
                    button1.Text = "Dodge";
                    button2.Text = "";
                }
            }

            if (button1.Text == "Break Down Door")
            {
                if (strength >= 5)
                {
                    des.Text = "You manage to break down the door with ease.";
                    Room2 xd = new Room2(hel, agil, stel, strength, per, intel, CName.Text, Class.Text);
                    button3.Text = "Go To Next Room";
                }
                else
                {
                    des.Text    = "You barely manage to break down the door and you take one damage.";
                    hel         = hel - 1;
                    Health.Text = Convert.ToString(hel);
                    Convert.ToInt32(hel);
                    button3.Text = "Go To Next Room";
                }
            }
        }
Esempio n. 3
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (button3.Text == "Go To Next Room")
     {
         Room2 xd = new Room2(hel, agil, stel, strength, per, intel, CName.Text, Class.Text);
         xd.Show();
         Hide();
     }
 }