/// <summary> /// Random Character /// </summary> private void randomButton_Click(object sender, EventArgs e) { Character random = new Character(); for(int x = 0; x < 6; x++) { random.baseAS[x] = Calculations.rollAbilityScore(); } random.setRace(Calculations.randomRace()); random.setStats(random.race.getStats()); random.setStrMod(Calculations.calcMod(random.getSTR())); random.setDexMod(Calculations.calcMod(random.getDEX())); random.setConMod(Calculations.calcMod(random.getCON())); random.setWisMod(Calculations.calcMod(random.getWIS())); random.setIntelMod(Calculations.calcMod(random.getINT())); random.setChaMod(Calculations.calcMod(random.getCHA())); random.setClass(Calculations.randomClass()); random.setBackground(Calculations.randomBackground()); random.name = Calculations.randomName(); random.player = "Random"; random.age = ""; random.eye = ""; random.height = ""; random.hair = ""; random.weight = ""; random.skin = ""; random.alignment = ""; random.backstory = ""; random.skills = Calculations.calcSkills(random.statmods, random.proficiency, random.profbonus); PDFInterface.finalize(random); }