Advertisement
Spectrewiz

Backup - Working TBA

Jan 28th, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 23.85 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace TBA_1___GOOD
  11. {
  12.     public partial class Form1 : Form
  13.     {
  14.         public Form1()
  15.         {
  16.             InitializeComponent();
  17.         }
  18.         void Page_Loaded(object sender, EventArgs e)
  19.         {
  20.             button3.Click += new EventHandler(button3_Click);
  21.         }
  22.         public int i = 0;
  23.         public int a = 0;
  24.         public int b = 0;
  25.         public int c = 0;
  26.         public int reset = 0;
  27.         public int starve = 0;
  28.         public void button3_Click(object sender, EventArgs e)
  29.         {
  30.             if (reset == 1)
  31.             {
  32.                 label1.Text = "I would say Welcome but that would be a lie.\nThere are no welcomes here.\nThere will never be any welcomes here.\nThe only welcome you will ever get in these lands, \nis a welcome from Satan himself.";
  33.                 reset--;
  34.             }
  35.             else if (i == 0)
  36.             {
  37.                 label1.Text = "You've been in the Slammer for more than a few months now, but even through all of the biosafety level 4 tests, you still really don't understand what's wrong with you.  All these strange people in these strange space suits go into your room every day and perform tests on you.";
  38.                 i++;
  39.             }
  40.             else if (i == 1)
  41.             {
  42.                 label1.Text = "It's been 5 days since anyone came into your biosafety level 4 room.  Normally there are no visitors (nobody tends to visit the Slammer, one because they are not allowed too, and two because they are absolutely terrified of what goes on within the 2 feet thick concrete/steel walls. Normally the decontamination showers and negative air pressure to stop viruses from leaking out of the building scares them enough that they don't think of trying to come in), but recently there hasn't even been the professional doctors that try to ''treat'' your ''illness''.";
  43.                 i++;
  44.             }
  45.             else if (i == 2)
  46.             {
  47.                 label1.TextAlign = ContentAlignment.MiddleLeft;
  48.                 label1.Text = "It seems like they won't come back so you have some choices:\n1: Get up and look around the room.\n2: Stay in bed.";
  49.                 button1.Visible = true;
  50.                 button2.Visible = true;
  51.                 button1.Enabled = true;
  52.                 button2.Enabled = true;
  53.                 button1.Text = "1";
  54.                 button2.Text = "2";
  55.                 button3.Visible = false;
  56.                 button3.Enabled = false;
  57.                 i++;
  58.             }
  59.             if (i == 4)
  60.             {
  61.                 label1.TextAlign = ContentAlignment.MiddleLeft;
  62.                 label1.Text = "This door looks like it can be opened!\n1. Try to bust the lock.\n2. Stay in the room.";
  63.                 button1.Visible = true;
  64.                 button2.Visible = true;
  65.                 button1.Enabled = true;
  66.                 button2.Enabled = true;
  67.                 button1.Text = "1";
  68.                 button2.Text = "2";
  69.                 button3.Visible = false;
  70.                 button3.Enabled = false;
  71.                 i++;
  72.             }
  73.             if (i == 800)
  74.             {
  75.                 if (starve == 10)//you cant stay forever, you will starve! True story :3
  76.                 {
  77.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  78.                     label1.Text = "You feel yourself slipping away as you starve to death.  Game Over.";
  79.                     button3.Visible = false;
  80.                     button3.Enabled = false;
  81.                 }
  82.                 else
  83.                 {
  84.                     label1.TextAlign = ContentAlignment.MiddleLeft;
  85.                     label1.Text = "Seems like they are not coming back\n1. Get up and look around the room.\n2. Stay in bed.";
  86.                     button1.Visible = true;
  87.                     button2.Visible = true;
  88.                     button1.Enabled = true;
  89.                     button2.Enabled = true;
  90.                     button1.Text = "1";
  91.                     button2.Text = "2";
  92.                     button3.Visible = false;
  93.                     button3.Enabled = false;
  94.                     i = 3;//reset to a checkpoint
  95.                 }
  96.             }
  97.             if (i == 600)
  98.             {
  99.                 if (starve == 10)//you cant stay forever, you will starve! True story :3
  100.                 {
  101.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  102.                     label1.Text = "You feel yourself slipping away as you starve to death.  Game Over.";
  103.                     button3.Visible = false;
  104.                     button3.Enabled = false;
  105.                 }
  106.                 else
  107.                 {
  108.                     label1.TextAlign = ContentAlignment.MiddleLeft;
  109.                     label1.Text = "Seems like they are not coming back\n1. Try to bust the lock.\n2. Stay in the room.";
  110.                     button1.Visible = true;
  111.                     button2.Visible = true;
  112.                     button1.Enabled = true;
  113.                     button2.Enabled = true;
  114.                     button1.Text = "1";
  115.                     button2.Text = "2";
  116.                     button3.Visible = false;
  117.                     button3.Enabled = false;
  118.                     i = 5;//reset to a checkpoint
  119.                 }
  120.             }
  121.             if (i == 6)
  122.             {
  123.                 label1.TextAlign = ContentAlignment.MiddleCenter;
  124.                 label1.Text = "You let yourself zone back to normality before you try again with the same results.";
  125.                 i++;
  126.             }
  127.             else if (i == 7)
  128.             {
  129.                 label1.Text = "You try again, but this time you have a running start. You are right about to hit the door when the door opens and you crash through into open air. You stumble and trip and end up flat on your face. You twist around and get up and see that a woman has opened your door, and recognize her as one of the doctors that study you in the space suits. It was weird not seeing her in one. You remember that she was the doctor that was nicest to you.";
  130.                 i++;
  131.             }
  132.             else if (i == 8)
  133.             {
  134.                 label1.TextAlign = ContentAlignment.MiddleLeft;
  135.                 label1.Text = "You have some choices:\n1. Ask her where everybody has gone.\n2. Run.\n3. Kill her";
  136.                 button1.Visible = true;
  137.                 button2.Visible = true;
  138.                 button1.Enabled = true;
  139.                 button2.Enabled = true;
  140.                 button1.Text = "1";
  141.                 button2.Text = "3";
  142.                 button3.Text = "2";
  143.                 i++;
  144.             }
  145.             else if (i == 9)
  146.             {
  147.                 if (c == 0 & a != 1 & b != 1)
  148.                 {
  149.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  150.                     label1.Text = "You run as fast as you can, and you come to a door. You find it unlocked and you run through. After a couple coridors down you see the decon shower and the exit, you run past the decon shower and you are right about to open the door to safety when the doctor catches up to you.";
  151.                     button3.Text = "Enter";
  152.                     button1.Enabled = false;
  153.                     button1.Visible = false;
  154.                     button2.Enabled = false;
  155.                     button2.Visible = false;
  156.                     c++;
  157.                 }
  158.                 else if (c == 1 & a != 1 & b != 1)//if choice 2 (run)
  159.                 {
  160.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  161.                     label1.Text = "The doctor suprisingly shouts ''GO!!'' as you both tumble through the door running.";
  162.                     button3.Text = "Enter";
  163.                     button1.Enabled = false;
  164.                     button1.Visible = false;
  165.                     button2.Enabled = false;
  166.                     button2.Visible = false;
  167.                     c++;
  168.                     i++;
  169.                 }
  170.                 else if (a == 1 & c != 1 & b != 1)//if choice 1 (talk to her)
  171.                 {
  172.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  173.                     label1.Text = "You both start running down many coridors, and you hear a whoosh of gas as the building starts the decontamination process. You are now sprinting along with her.";
  174.                     button3.Text = "Enter";
  175.                     button1.Enabled = false;
  176.                     button1.Visible = false;
  177.                     button2.Enabled = false;
  178.                     button2.Visible = false;
  179.                     a++;
  180.                     i++;
  181.                 }
  182.                 else if (b == 1 & a != 1 & c != 1)//if choice 3 (kill)
  183.                 {
  184.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  185.                     label1.Text = "You both start sprinting when you hear a whoosh of gas as the building starts the decontamination process.";
  186.                     button3.Text = "Enter";
  187.                     button1.Enabled = false;
  188.                     button1.Visible = false;
  189.                     button2.Enabled = false;
  190.                     button2.Visible = false;
  191.                     b++;
  192.                     i++;
  193.                 }
  194.             }
  195.             else if (i == 10)
  196.             {
  197.                 if (c == 2 & a != 2 & b != 2)//after you tumble through the door (choice 2)
  198.                 {
  199.                     label1.Text = "You are both sprinting now and you make it outside as the building floods with yellow gas.";
  200.                     c++;
  201.                     i++;
  202.                 }
  203.                 else if (a == 2 & c != 2 & b != 2)//after you are sprinting together (choice 1)
  204.                 {
  205.                     label1.Text = "You both sprint as fast as you can and you make it outside just as the building floods with yellow gas.";
  206.                     a++;
  207.                     i++;
  208.                 }
  209.                 else if (b == 2 & a != 2 & c != 2)//after you shake yourself off (choice 3)
  210.                 {
  211.                     label1.Text = "You are both sprinting and you make it to a chemical shower as the hiss of the gas becomes louder. You both grab a respirator and a space suit and struggle to get it on.  You latch it shut right as the building floods with yellow gas, and you cant see anything.  ''Hello!'' you shout to try to get her attention.  You notice that there is a flashlight mounted on your helmet, so you flip it on and look around. Suddenly a hand grasps your shoulder and you whip around. Thankfully it is only her, and she motions to start walking toword the exit.";
  212.                     b++;
  213.                     i++;
  214.                 }
  215.             }
  216.             else if (i == 11)
  217.             {
  218.                 if (c == 3 & a != 3 & b != 3)//after you make it outside - Run(choice 2)
  219.                 {
  220.                     label1.Text = "You turn to look back at the building and hear screaming inside. The doctor turns to look at you, ''That screaming you hear is from infected people. You see, some new filovirus has evolved inside the building, and it leaked. We don't know much about it other than the original virus ignores air pressure and it forces whoever gets sick attack other people. It is highly contagious, but you only have to worry about getting it if you are in contact with infected blood or bodily fluids. It is not airborn.''";
  221.                     c++;
  222.                     i++;
  223.                 }
  224.                 else if (a == 3 & c != 3 & b != 3)//after you make it outside - Talk(choice 1)
  225.                 {
  226.                     label1.Text = "You hear a large ammount of screaming inside the building. ''You remember the virus I was telling you about? Well those are the infected people screaming. Like I said the original filovirus ignores air pressure and forces people to attack one another. It is highly contagious, but it is not airborn. You only have to worry about infection if you come into contact with blood or bodily fluids.'' You turn back and look at the hospital, the screaming has stopped.";
  227.                     a++;
  228.                     i++;
  229.                 }
  230.                 else if (b == 3 & a != 3 & c != 3)//after you get stuck in the building(choice 3)
  231.                 {
  232.                     label1.Text = "You both are walking to the exit, and are going through coridors. Suddenly there is screaming in the rooms beside you, and the doors start pounding.  ''There are people in these rooms!'' You shout to the doctor and she replies, ''these people are infected with a new filovirus that has seemingly evolved in this building. The original virus was airborn, but when it transfered to people it became a contact-transfer virus. The virus ignores air pressure and forces the victom to attack other people. You don't have to worry about getting the virus unless you come into contact with blood or bodily fluids from someone who is infected.''";
  233.                     b++;
  234.                     i++;
  235.                 }
  236.             }
  237.             else if (i == 12)
  238.             {
  239.                 if (c == 4 & a != 4 & b != 4)//after explaination of the filovirus - Run(choice 2)
  240.                 {
  241.                     label1.TextAlign = ContentAlignment.MiddleLeft;
  242.                     label1.Text = "Suddenly the doors at the entrance of the building are getting pounded on. ''The F***!'' the doctor shouts as the doors get slammed open. The sight was grotesque; people with swollen and puffy eyes, and large wounds all over their bodies came limping and coughing out of the building. It reminded you of zombie movies you used to watch with your family. Your family, you haven't thought about your family for months on end, you were too busy being worried about yourself. The zombies were lunging towords the crowd now\n1. Defend the crowd.\n2. Run.";
  243.                     button1.Visible = true;
  244.                     button2.Visible = true;
  245.                     button1.Enabled = true;
  246.                     button2.Enabled = true;
  247.                     button1.Text = "1";
  248.                     button2.Text = "2";
  249.                     button3.Visible = false;
  250.                     button3.Enabled = false;
  251.                     c++;
  252.                     i++;
  253.                 }
  254.                 else if (a == 4 & c != 4 & b != 4)//after explaination of the filovirus - Talk(choice 1)
  255.                 {
  256.                     label1.TextAlign = ContentAlignment.MiddleLeft;
  257.                     label1.Text = "Suddenly the doors at the entrance of the building are getting pounded on. ''The F***!'' the doctor shouts as the doors get slammed open. The sight was grotesque; people with swollen and puffy eyes, and large wounds all over their bodies came limping and coughing out of the building. It reminded you of zombie movies you used to watch with your family. Your family, you haven't thought about your family for months on end, you were too busy being worried about yourself. The zombies were lunging towords the crowd now\n1. Defend the crowd.\n2. Run.";
  258.                     button1.Visible = true;
  259.                     button2.Visible = true;
  260.                     button1.Enabled = true;
  261.                     button2.Enabled = true;
  262.                     button1.Text = "1";
  263.                     button2.Text = "2";
  264.                     button3.Visible = false;
  265.                     button3.Enabled = false;
  266.                     a++;
  267.                     i++;
  268.                 }
  269.                 else if (b == 4 & a != 4 & c != 4)//after you see the doors pounding(choice 3)
  270.                 {
  271.                     label1.TextAlign = ContentAlignment.MiddleLeft;
  272.                     label1.Text = "One of the doors that was being poundeded suddenly got huge dents in it.  ''The F***!'' the doctor shouts as the door gets blasted off its hinges. The sight was grotesque; the person had swollen and puffy eyes, and large wounds all over the body. It was coughing and limping towords you, and it reminded you of zombie movies you used to watch with your family. Your family, you haven't thought about your family for months on end, you were too busy being worried about yourself. The zombie was lunging towords you now\n1. Attack the zombie.\n2. Run.";
  273.                     button1.Visible = true;
  274.                     button2.Visible = true;
  275.                     button1.Enabled = true;
  276.                     button2.Enabled = true;
  277.                     button1.Text = "1";
  278.                     button2.Text = "2";
  279.                     button3.Visible = false;
  280.                     button3.Enabled = false;
  281.                     b++;
  282.                     i++;
  283.                 }
  284.             }
  285.         }
  286.  
  287.         public void button1_Click(object sender, EventArgs e)
  288.         {
  289.             if (i == 3)
  290.             {
  291.                 label1.TextAlign = ContentAlignment.MiddleCenter;
  292.                 label1.Text = "You decide to look around and you find that the door hasn't been locked all the way.";
  293.                 button3.Enabled = true;
  294.                 button3.Visible = true;
  295.                 button1.Enabled = false;
  296.                 button1.Visible = false;
  297.                 button2.Enabled = false;
  298.                 button2.Visible = false;
  299.                 i++;
  300.             }
  301.             else if (i == 5)
  302.             {
  303.                 label1.TextAlign = ContentAlignment.MiddleCenter;
  304.                 label1.Text = "You try to slam the door open but you come back with your head ringing and dizzy vision.";
  305.                 button3.Enabled = true;
  306.                 button3.Visible = true;
  307.                 button1.Enabled = false;
  308.                 button1.Visible = false;
  309.                 button2.Enabled = false;
  310.                 button2.Visible = false;
  311.                 i++;
  312.             }
  313.             if (i == 9)
  314.             {
  315.                 if (a == 0 & b != 1 & c != 1)//if choice 1
  316.                 {
  317.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  318.                     label1.Text = "''Everyone has evacuated, we thought we got all the subjects out, but I remembered you were still in here,'' she explained, ''some filovirus that we don't understand much about has evolved in this building, and it leaked out. We don't know a lot about what we are up against, but we do know two things: It takes over the brain and makes you attack other people and it can leak through negative air pressure. Hurry we don't have much time before the entire building is decontaminated with chemical gas!''";
  319.                     button3.Text = "Enter";
  320.                     button1.Enabled = false;
  321.                     button1.Visible = false;
  322.                     button2.Enabled = false;
  323.                     button2.Visible = false;
  324.                     a++;
  325.                 }
  326.             }
  327.             if (i == 13)
  328.             {
  329.                 if (a == 5 & c != 5 & b != 5)
  330.                 {
  331.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  332.                     label1.Text = "END BETA";
  333.                     button1.Enabled = false;
  334.                     button1.Visible = false;
  335.                     button2.Enabled = false;
  336.                     button2.Visible = false;
  337.                 }
  338.                 else if (b == 5 & c != 5 & a != 5)
  339.                 {
  340.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  341.                     label1.Text = "END BETA";
  342.                     button1.Enabled = false;
  343.                     button1.Visible = false;
  344.                     button2.Enabled = false;
  345.                     button2.Visible = false;
  346.                 }
  347.                 else if (c == 5 & a != 5 & b != 5)
  348.                 {
  349.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  350.                     label1.Text = "END BETA";
  351.                     button1.Enabled = false;
  352.                     button1.Visible = false;
  353.                     button2.Enabled = false;
  354.                     button2.Visible = false;
  355.                 }
  356.             }
  357.         }
  358.  
  359.         public void button2_Click(object sender, EventArgs e)
  360.         {
  361.             if (i == 3)
  362.             {
  363.                 label1.TextAlign = ContentAlignment.MiddleCenter;
  364.                 label1.Text = "You wait for a day but nothing happens.";
  365.                 button3.Enabled = true;
  366.                 button3.Visible = true;
  367.                 button1.Enabled = false;
  368.                 button1.Visible = false;
  369.                 button2.Enabled = false;
  370.                 button2.Visible = false;
  371.                 i = 800;
  372.                 starve++;//you cant stay forever, you will starve! True story :3
  373.             }
  374.             else if (i == 5)
  375.             {
  376.                 label1.TextAlign = ContentAlignment.MiddleCenter;
  377.                 label1.Text = "You decide to stay in the room, but nothing happens.";
  378.                 button3.Enabled = true;
  379.                 button3.Visible = true;
  380.                 button1.Enabled = false;
  381.                 button1.Visible = false;
  382.                 button2.Enabled = false;
  383.                 button2.Visible = false;
  384.                 i = 600;
  385.                 starve++;//you cant stay forever, you will starve! True story :3
  386.             }
  387.             if (i == 9)
  388.             {
  389.                 if (b == 0 & a != 1 & c != 1)//if choice 3
  390.                 {
  391.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  392.                     label1.Text = "You run towords her with all your might, but she senses what you are doing and flips around.  She has you on the ground in moments with a gun to your head and starts to talk:\n''Listen, I don't have time for your bullshit, we have to get out of here! In moments they are going to release a toxic gas inside this building to decontaminate it of all life. You hear me? ALL LIFE! That includes us! Come on!''\nShe pulls you up and you both start running down the coridor.";
  393.                     button3.Text = "Enter";
  394.                     button1.Enabled = false;
  395.                     button1.Visible = false;
  396.                     button2.Enabled = false;
  397.                     button2.Visible = false;
  398.                     b++;
  399.                 }
  400.             }
  401.             if (i == 13)
  402.             {
  403.                 if (a == 5 & c != 5 & b != 5)
  404.                 {
  405.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  406.                     label1.Text = "END BETA";
  407.                     button1.Enabled = false;
  408.                     button1.Visible = false;
  409.                     button2.Enabled = false;
  410.                     button2.Visible = false;
  411.                 }
  412.                 else if (b == 5 & c != 5 & a != 5)
  413.                 {
  414.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  415.                     label1.Text = "END BETA";
  416.                     button1.Enabled = false;
  417.                     button1.Visible = false;
  418.                     button2.Enabled = false;
  419.                     button2.Visible = false;
  420.                 }
  421.                 else if (c == 5 & a != 5 & b != 5)
  422.                 {
  423.                     label1.TextAlign = ContentAlignment.MiddleCenter;
  424.                     label1.Text = "END BETA";
  425.                     button1.Enabled = false;
  426.                     button1.Visible = false;
  427.                     button2.Enabled = false;
  428.                     button2.Visible = false;
  429.                 }
  430.             }
  431.         }
  432.  
  433.         public void button4_Click(object sender, EventArgs e)
  434.         {
  435.             label1.TextAlign = ContentAlignment.MiddleCenter;
  436.             label1.Text = "Reset!";
  437.             button1.Enabled = false;
  438.             button1.Visible = false;
  439.             button2.Enabled = false;
  440.             button2.Visible = false;
  441.             button3.Enabled = true;
  442.             button3.Visible = true;
  443.             button3.Text = "Enter";
  444.             i = 0;
  445.             a = 0;
  446.             b = 0;
  447.             c = 0;
  448.             starve = 0;
  449.             reset++;
  450.         }
  451.     }
  452. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement