Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace Bobby2pistolz
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- //Random Function
- Random rnd = new Random();
- //Bobby 2 Pistolz Characteristics
- int b2pHealth = 1000;
- int b2pStamina = 60;
- int b2pStrength = 100;
- int b2pIntellegence = 65;
- int b2pSummary;
- //Gordon Ramsay Characteristics
- int grHealth = 750;
- int grStamina = 70;
- int grStrength = 80;
- int grIntellegence = 65;
- int grSummary;
- private void button1_Click(object sender, EventArgs e)
- {
- int ansr = rnd.Next(0, 1); //int ansr = rnd.Next(0, 100);
- if (ansr == 0) //if (ansr > 25)
- {
- Form2 frm2 = newForm2();
- frm2.Show();
- this.Hide();
- } else
- {
- Form3 frm2 = newForm3();
- frm3.Show();
- this.Hide();
- }
- b2pSummary = b2pHealth + b2pStamina + b2pStrength + b2pStamina + b2pIntellegence;
- grSummary = grHealth + grStamina + grStrength + grStamina + grIntellegence;
- if (b2pSummary > grSummary)
- {
- //your code here
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement