Advertisement
Guest User

code

a guest
Oct 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 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.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace Bobby2pistolz
  12. {
  13. public partial class Form1 : Form
  14. {
  15. public Form1()
  16. {
  17. InitializeComponent();
  18. }
  19.  
  20. //Random Function
  21. Random rnd = new Random();
  22.  
  23. //Bobby 2 Pistolz Characteristics
  24. int b2pHealth = 1000;
  25. int b2pStamina = 60;
  26. int b2pStrength = 100;
  27. int b2pIntellegence = 65;
  28. int b2pSummary;
  29.  
  30. //Gordon Ramsay Characteristics
  31. int grHealth = 750;
  32. int grStamina = 70;
  33. int grStrength = 80;
  34. int grIntellegence = 65;
  35. int grSummary;
  36.  
  37. private void button1_Click(object sender, EventArgs e)
  38. {
  39. int ansr = rnd.Next(0, 1); //int ansr = rnd.Next(0, 100);
  40.  
  41. if (ansr == 0) //if (ansr > 25)
  42. {
  43. Form2 frm2 = new Form2();
  44. frm2.Show();
  45. this.Hide();
  46. } else
  47. {
  48. Form3 frm3 = new Form3();
  49. frm3.Show();
  50. this.Hide();
  51. }
  52.  
  53. b2pSummary = b2pHealth + b2pStamina + b2pStrength + b2pStamina + b2pIntellegence;
  54. grSummary = grHealth + grStamina + grStrength + grStamina + grIntellegence;
  55.  
  56. if (b2pSummary > grSummary)
  57. {
  58. //your code here
  59. }
  60. }
  61. }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement