예제 #1
0
        private void nCharSubmit_Click(object sender, EventArgs e)
        {
            bool good = true;

            if (nCharName.Text.Length <= 0)
            {
                nCharAlert.Text = "Invalid Character Name";
                good            = false;
            }

            if (good)
            {
                CDATA.cName       = nCharName.Text;
                CDATA.cArch1      = EDATA.addSpace(nCharArch1.Text);
                CDATA.cArch2      = EDATA.addSpace(nCharArch2.Text);
                CDATA.cArch3      = EDATA.addSpace(nCharArch3.Text);
                CDATA.cBackground = nCharBackground.Text;
                CDATA.cMot1       = nCharMot1.Text;
                CDATA.cMot2       = nCharMot2.Text;
                CDATA.cMot3       = nCharMot3.Text;
                Int32.TryParse("0", out CDATA.cLevel);
                Int32.TryParse(nCharPer.Text, out CDATA.cAttributes[0]);
                Int32.TryParse(nCharCog.Text, out CDATA.cAttributes[1]);
                Int32.TryParse(nCharDex.Text, out CDATA.cAttributes[2]);
                Int32.TryParse(nCharVit.Text, out CDATA.cAttributes[3]);
                Int32.TryParse(nCharChar.Text, out CDATA.cAttributes[4]);
                Int32.TryParse(nCharWill.Text, out CDATA.cAttributes[5]);
                this.Close();
            }
        }
예제 #2
0
 private void nCharSubmit_Click(object sender, EventArgs e)
 {
     CDATA.cSkillName[0] = EDATA.addSpace(nCharBackgroundR1.Text);
     CDATA.cSkillName[1] = EDATA.addSpace(nCharBackgroundR2.Text);
     CDATA.cSkillName[2] = EDATA.addSpace(nCharBackgroundR22.Text);
     CDATA.cSkillName[3] = EDATA.addSpace(nCharBackgroundR3.Text);
     CDATA.cCkillName[0] = EDATA.addSpace(nCharBackgroundCS.Text);
     this.Close();
 }
예제 #3
0
        private void nCharSubmit_Click(object sender, EventArgs e)
        {
            bool good = true;

            if (!EDATA.abilityCheck(SR0.Text))
            {
                good = false;
            }
            if (!EDATA.abilityCheck(SR1.Text))
            {
                good = false;
            }
            if (!EDATA.abilityCheck(SR2.Text))
            {
                good = false;
            }
            if (!EDATA.abilityCheck(SR3.Text))
            {
                good = false;
            }
            if (!EDATA.abilityCheck(SR4.Text))
            {
                good = false;
            }
            if (!EDATA.abilityCheck(SR5.Text))
            {
                good = false;
            }
            if (!EDATA.abilityCheck(SR6.Text))
            {
                good = false;
            }
            if (!EDATA.abilityCheck(SR7.Text))
            {
                good = false;
            }
            if (!EDATA.abilityCheck(SR8.Text))
            {
                good = false;
            }
            if (!EDATA.abilityCheck(SR9.Text))
            {
                good = false;
            }
            if (!EDATA.abilityCheck(SR10.Text))
            {
                good = false;
            }
            if (!EDATA.abilityCheck(SR11.Text))
            {
                good = false;
            }

            if (good)
            {
                CDATA.cAbilityName[0]  = EDATA.addSpace(SN0.Text);
                CDATA.cAbilityName[1]  = EDATA.addSpace(SN1.Text);
                CDATA.cAbilityName[2]  = EDATA.addSpace(SN2.Text);
                CDATA.cAbilityName[3]  = EDATA.addSpace(SN3.Text);
                CDATA.cAbilityName[4]  = EDATA.addSpace(SN4.Text);
                CDATA.cAbilityName[5]  = EDATA.addSpace(SN5.Text);
                CDATA.cAbilityName[6]  = EDATA.addSpace(SN6.Text);
                CDATA.cAbilityName[7]  = EDATA.addSpace(SN7.Text);
                CDATA.cAbilityName[8]  = EDATA.addSpace(SN8.Text);
                CDATA.cAbilityName[9]  = EDATA.addSpace(SN9.Text);
                CDATA.cAbilityName[10] = EDATA.addSpace(SN10.Text);
                CDATA.cAbilityName[11] = EDATA.addSpace(SN11.Text);

                CDATA.cAbilityRank[0]  = EDATA.intToNum(SR0.Text);
                CDATA.cAbilityRank[1]  = EDATA.intToNum(SR1.Text);
                CDATA.cAbilityRank[2]  = EDATA.intToNum(SR2.Text);
                CDATA.cAbilityRank[3]  = EDATA.intToNum(SR3.Text);
                CDATA.cAbilityRank[4]  = EDATA.intToNum(SR4.Text);
                CDATA.cAbilityRank[5]  = EDATA.intToNum(SR5.Text);
                CDATA.cAbilityRank[6]  = EDATA.intToNum(SR6.Text);
                CDATA.cAbilityRank[7]  = EDATA.intToNum(SR7.Text);
                CDATA.cAbilityRank[8]  = EDATA.intToNum(SR8.Text);
                CDATA.cAbilityRank[9]  = EDATA.intToNum(SR9.Text);
                CDATA.cAbilityRank[10] = EDATA.intToNum(SR10.Text);
                CDATA.cAbilityRank[11] = EDATA.intToNum(SR11.Text);

                if (A1.Checked == true)
                {
                    CDATA.cAbilityMasteryA[0] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryA[0] = 0;
                }
                if (A2.Checked == true)
                {
                    CDATA.cAbilityMasteryA[1] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryA[1] = 0;
                }
                if (A3.Checked == true)
                {
                    CDATA.cAbilityMasteryA[2] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryA[2] = 0;
                }
                if (A4.Checked == true)
                {
                    CDATA.cAbilityMasteryA[3] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryA[3] = 0;
                }
                if (A5.Checked == true)
                {
                    CDATA.cAbilityMasteryA[4] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryA[4] = 0;
                }
                if (A6.Checked == true)
                {
                    CDATA.cAbilityMasteryA[5] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryA[5] = 0;
                }
                if (A7.Checked == true)
                {
                    CDATA.cAbilityMasteryA[6] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryA[6] = 0;
                }
                if (A8.Checked == true)
                {
                    CDATA.cAbilityMasteryA[7] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryA[7] = 0;
                }
                if (A9.Checked == true)
                {
                    CDATA.cAbilityMasteryA[8] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryA[8] = 0;
                }
                if (A10.Checked == true)
                {
                    CDATA.cAbilityMasteryA[9] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryA[9] = 0;
                }
                if (A11.Checked == true)
                {
                    CDATA.cAbilityMasteryA[10] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryA[10] = 0;
                }
                if (A12.Checked == true)
                {
                    CDATA.cAbilityMasteryA[11] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryA[11] = 0;
                }

                if (B1.Checked == true)
                {
                    CDATA.cAbilityMasteryB[0] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryB[0] = 0;
                }
                if (B2.Checked == true)
                {
                    CDATA.cAbilityMasteryB[1] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryB[1] = 0;
                }
                if (B3.Checked == true)
                {
                    CDATA.cAbilityMasteryB[2] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryB[2] = 0;
                }
                if (B4.Checked == true)
                {
                    CDATA.cAbilityMasteryB[3] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryB[3] = 0;
                }
                if (B5.Checked == true)
                {
                    CDATA.cAbilityMasteryB[4] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryB[4] = 0;
                }
                if (B6.Checked == true)
                {
                    CDATA.cAbilityMasteryB[5] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryB[5] = 0;
                }
                if (B7.Checked == true)
                {
                    CDATA.cAbilityMasteryB[6] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryB[6] = 0;
                }
                if (B8.Checked == true)
                {
                    CDATA.cAbilityMasteryB[7] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryB[7] = 0;
                }
                if (B9.Checked == true)
                {
                    CDATA.cAbilityMasteryB[8] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryB[8] = 0;
                }
                if (B10.Checked == true)
                {
                    CDATA.cAbilityMasteryB[9] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryB[9] = 0;
                }
                if (B11.Checked == true)
                {
                    CDATA.cAbilityMasteryB[10] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryB[10] = 0;
                }
                if (B12.Checked == true)
                {
                    CDATA.cAbilityMasteryB[11] = 1;
                }
                else
                {
                    CDATA.cAbilityMasteryB[11] = 0;
                }

                if (O1.Checked == true)
                {
                    CDATA.cAbilityOverload[0] = 1;
                }
                else
                {
                    CDATA.cAbilityOverload[0] = 0;
                }
                if (O2.Checked == true)
                {
                    CDATA.cAbilityOverload[1] = 1;
                }
                else
                {
                    CDATA.cAbilityOverload[1] = 0;
                }
                if (O3.Checked == true)
                {
                    CDATA.cAbilityOverload[2] = 1;
                }
                else
                {
                    CDATA.cAbilityOverload[2] = 0;
                }
                if (O4.Checked == true)
                {
                    CDATA.cAbilityOverload[3] = 1;
                }
                else
                {
                    CDATA.cAbilityOverload[3] = 0;
                }
                if (O5.Checked == true)
                {
                    CDATA.cAbilityOverload[4] = 1;
                }
                else
                {
                    CDATA.cAbilityOverload[4] = 0;
                }
                if (O6.Checked == true)
                {
                    CDATA.cAbilityOverload[5] = 1;
                }
                else
                {
                    CDATA.cAbilityOverload[5] = 0;
                }
                if (O7.Checked == true)
                {
                    CDATA.cAbilityOverload[6] = 1;
                }
                else
                {
                    CDATA.cAbilityOverload[6] = 0;
                }
                if (O8.Checked == true)
                {
                    CDATA.cAbilityOverload[7] = 1;
                }
                else
                {
                    CDATA.cAbilityOverload[7] = 0;
                }
                if (O9.Checked == true)
                {
                    CDATA.cAbilityOverload[8] = 1;
                }
                else
                {
                    CDATA.cAbilityOverload[8] = 0;
                }
                if (O10.Checked == true)
                {
                    CDATA.cAbilityOverload[9] = 1;
                }
                else
                {
                    CDATA.cAbilityOverload[9] = 0;
                }
                if (O11.Checked == true)
                {
                    CDATA.cAbilityOverload[10] = 1;
                }
                else
                {
                    CDATA.cAbilityOverload[10] = 0;
                }
                if (O12.Checked == true)
                {
                    CDATA.cAbilityOverload[11] = 1;
                }
                else
                {
                    CDATA.cAbilityOverload[11] = 0;
                }

                if (P1.Checked == true)
                {
                    CDATA.cAbilityApotheosis[0] = 1;
                }
                else
                {
                    CDATA.cAbilityApotheosis[0] = 0;
                }
                if (P2.Checked == true)
                {
                    CDATA.cAbilityApotheosis[1] = 1;
                }
                else
                {
                    CDATA.cAbilityApotheosis[1] = 0;
                }
                if (P3.Checked == true)
                {
                    CDATA.cAbilityApotheosis[2] = 1;
                }
                else
                {
                    CDATA.cAbilityApotheosis[2] = 0;
                }
                if (P4.Checked == true)
                {
                    CDATA.cAbilityApotheosis[3] = 1;
                }
                else
                {
                    CDATA.cAbilityApotheosis[3] = 0;
                }
                if (P5.Checked == true)
                {
                    CDATA.cAbilityApotheosis[4] = 1;
                }
                else
                {
                    CDATA.cAbilityApotheosis[4] = 0;
                }
                if (P6.Checked == true)
                {
                    CDATA.cAbilityApotheosis[5] = 1;
                }
                else
                {
                    CDATA.cAbilityApotheosis[5] = 0;
                }
                if (P7.Checked == true)
                {
                    CDATA.cAbilityApotheosis[6] = 1;
                }
                else
                {
                    CDATA.cAbilityApotheosis[6] = 0;
                }
                if (P8.Checked == true)
                {
                    CDATA.cAbilityApotheosis[7] = 1;
                }
                else
                {
                    CDATA.cAbilityApotheosis[7] = 0;
                }
                if (P9.Checked == true)
                {
                    CDATA.cAbilityApotheosis[8] = 1;
                }
                else
                {
                    CDATA.cAbilityApotheosis[8] = 0;
                }
                if (P10.Checked == true)
                {
                    CDATA.cAbilityApotheosis[9] = 1;
                }
                else
                {
                    CDATA.cAbilityApotheosis[9] = 0;
                }
                if (P11.Checked == true)
                {
                    CDATA.cAbilityApotheosis[10] = 1;
                }
                else
                {
                    CDATA.cAbilityApotheosis[10] = 0;
                }
                if (P12.Checked == true)
                {
                    CDATA.cAbilityApotheosis[11] = 1;
                }
                else
                {
                    CDATA.cAbilityApotheosis[11] = 0;
                }

                Program.mainform.writeDATA();
                this.Close();
            }
            else
            {
                report.Text = "Invalid Skill Rank";
            }
        }
예제 #4
0
        private void nCharSubmit_Click(object sender, EventArgs e)
        {
            bool good = true;

            if (!EDATA.skillCheck(SR0.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR1.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR2.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR3.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR4.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR5.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR6.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR7.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR8.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR9.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR10.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR11.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR12.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR13.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR14.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR15.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR16.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR17.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR18.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(SR19.Text))
            {
                good = false;
            }

            if (!EDATA.skillCheck(NR0.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR1.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR2.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR3.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR4.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR5.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR6.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR7.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR8.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR9.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR10.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR11.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR12.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR13.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR14.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR15.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR16.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR17.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR18.Text))
            {
                good = false;
            }
            if (!EDATA.skillCheck(NR19.Text))
            {
                good = false;
            }

            if (good)
            {
                CDATA.cSkillName[0]  = EDATA.addSpace(NS0.Text);
                CDATA.cSkillName[1]  = EDATA.addSpace(NS1.Text);
                CDATA.cSkillName[2]  = EDATA.addSpace(NS2.Text);
                CDATA.cSkillName[3]  = EDATA.addSpace(NS3.Text);
                CDATA.cSkillName[4]  = EDATA.addSpace(NS4.Text);
                CDATA.cSkillName[5]  = EDATA.addSpace(NS5.Text);
                CDATA.cSkillName[6]  = EDATA.addSpace(NS6.Text);
                CDATA.cSkillName[7]  = EDATA.addSpace(NS7.Text);
                CDATA.cSkillName[8]  = EDATA.addSpace(NS8.Text);
                CDATA.cSkillName[9]  = EDATA.addSpace(NS9.Text);
                CDATA.cSkillName[10] = EDATA.addSpace(NS10.Text);
                CDATA.cSkillName[11] = EDATA.addSpace(NS11.Text);
                CDATA.cSkillName[12] = EDATA.addSpace(NS12.Text);
                CDATA.cSkillName[13] = EDATA.addSpace(NS13.Text);
                CDATA.cSkillName[14] = EDATA.addSpace(NS14.Text);
                CDATA.cSkillName[15] = EDATA.addSpace(NS15.Text);
                CDATA.cSkillName[16] = EDATA.addSpace(NS16.Text);
                CDATA.cSkillName[17] = EDATA.addSpace(NS17.Text);
                CDATA.cSkillName[18] = EDATA.addSpace(NS18.Text);
                CDATA.cSkillName[19] = EDATA.addSpace(NS19.Text);

                CDATA.cSkillRank[0]  = EDATA.intToNum(NR0.Text);
                CDATA.cSkillRank[1]  = EDATA.intToNum(NR1.Text);
                CDATA.cSkillRank[2]  = EDATA.intToNum(NR2.Text);
                CDATA.cSkillRank[3]  = EDATA.intToNum(NR3.Text);
                CDATA.cSkillRank[4]  = EDATA.intToNum(NR4.Text);
                CDATA.cSkillRank[5]  = EDATA.intToNum(NR5.Text);
                CDATA.cSkillRank[6]  = EDATA.intToNum(NR6.Text);
                CDATA.cSkillRank[7]  = EDATA.intToNum(NR7.Text);
                CDATA.cSkillRank[8]  = EDATA.intToNum(NR8.Text);
                CDATA.cSkillRank[9]  = EDATA.intToNum(NR9.Text);
                CDATA.cSkillRank[10] = EDATA.intToNum(NR10.Text);
                CDATA.cSkillRank[11] = EDATA.intToNum(NR11.Text);
                CDATA.cSkillRank[12] = EDATA.intToNum(NR12.Text);
                CDATA.cSkillRank[13] = EDATA.intToNum(NR13.Text);
                CDATA.cSkillRank[14] = EDATA.intToNum(NR14.Text);
                CDATA.cSkillRank[15] = EDATA.intToNum(NR15.Text);
                CDATA.cSkillRank[16] = EDATA.intToNum(NR16.Text);
                CDATA.cSkillRank[17] = EDATA.intToNum(NR17.Text);
                CDATA.cSkillRank[18] = EDATA.intToNum(NR18.Text);
                CDATA.cSkillRank[19] = EDATA.intToNum(NR19.Text);

                CDATA.cCkillName[0]  = EDATA.addSpace(SN0.Text);
                CDATA.cCkillName[1]  = EDATA.addSpace(SN1.Text);
                CDATA.cCkillName[2]  = EDATA.addSpace(SN2.Text);
                CDATA.cCkillName[3]  = EDATA.addSpace(SN3.Text);
                CDATA.cCkillName[4]  = EDATA.addSpace(SN4.Text);
                CDATA.cCkillName[5]  = EDATA.addSpace(SN5.Text);
                CDATA.cCkillName[6]  = EDATA.addSpace(SN6.Text);
                CDATA.cCkillName[7]  = EDATA.addSpace(SN7.Text);
                CDATA.cCkillName[8]  = EDATA.addSpace(SN8.Text);
                CDATA.cCkillName[9]  = EDATA.addSpace(SN9.Text);
                CDATA.cCkillName[10] = EDATA.addSpace(SN10.Text);
                CDATA.cCkillName[11] = EDATA.addSpace(SN11.Text);
                CDATA.cCkillName[12] = EDATA.addSpace(SN12.Text);
                CDATA.cCkillName[13] = EDATA.addSpace(SN13.Text);
                CDATA.cCkillName[14] = EDATA.addSpace(SN14.Text);
                CDATA.cCkillName[15] = EDATA.addSpace(SN15.Text);
                CDATA.cCkillName[16] = EDATA.addSpace(SN16.Text);
                CDATA.cCkillName[17] = EDATA.addSpace(SN17.Text);
                CDATA.cCkillName[18] = EDATA.addSpace(SN18.Text);
                CDATA.cCkillName[19] = EDATA.addSpace(SN19.Text);

                CDATA.cCkillRank[0]  = EDATA.intToNum(SR0.Text);
                CDATA.cCkillRank[1]  = EDATA.intToNum(SR1.Text);
                CDATA.cCkillRank[2]  = EDATA.intToNum(SR2.Text);
                CDATA.cCkillRank[3]  = EDATA.intToNum(SR3.Text);
                CDATA.cCkillRank[4]  = EDATA.intToNum(SR4.Text);
                CDATA.cCkillRank[5]  = EDATA.intToNum(SR5.Text);
                CDATA.cCkillRank[6]  = EDATA.intToNum(SR6.Text);
                CDATA.cCkillRank[7]  = EDATA.intToNum(SR7.Text);
                CDATA.cCkillRank[8]  = EDATA.intToNum(SR8.Text);
                CDATA.cCkillRank[9]  = EDATA.intToNum(SR9.Text);
                CDATA.cCkillRank[10] = EDATA.intToNum(SR10.Text);
                CDATA.cCkillRank[11] = EDATA.intToNum(SR11.Text);
                CDATA.cCkillRank[12] = EDATA.intToNum(SR12.Text);
                CDATA.cCkillRank[13] = EDATA.intToNum(SR13.Text);
                CDATA.cCkillRank[14] = EDATA.intToNum(SR14.Text);
                CDATA.cCkillRank[15] = EDATA.intToNum(SR15.Text);
                CDATA.cCkillRank[16] = EDATA.intToNum(SR16.Text);
                CDATA.cCkillRank[17] = EDATA.intToNum(SR17.Text);
                CDATA.cCkillRank[18] = EDATA.intToNum(SR18.Text);
                CDATA.cCkillRank[19] = EDATA.intToNum(SR19.Text);

                Program.mainform.writeDATA();
                this.Close();
            }
            else
            {
                report.Text = "Invalid Skill Rank";
            }
        }