import java.applet.*; import java.awt.*; import java.awt.event.*; import java.lang.*; import java.math.*; import javax.swing.*; class CharacterMaker2 extends Applet implements ItemListener { double rand = 0; double hand2 = 0; double head = 0; double body = 0; double other = 0; double secondary = 0; double reaction = 0; double support = 0; double movement = 0; double HP = 0; double MP = 0; double PA = 0; double MA = 0; double SP = 0; double Br = 0; double Fa = 0; String Zodiac = ""; String Sex = ""; String Race = ""; String Hand1 = ""; String Hand2 = ""; String Head = ""; String Body = ""; String Other = ""; String Main = ""; String Secondary = ""; String Reaction = ""; String Support = ""; String Movement = ""; String Temp = ""; Label ClassLabel = new Label("Class"); Label SexLabel = new Label("Sex"); Label ZodiacLabel = new Label("Zodiac"); Label BrLabel = new Label("Brave"); Label FaLabel = new Label("Faith"); Label PALabel = new Label("PA"); Label MALabel = new Label("MA"); Label SPLabel = new Label("SP"); Label HPLabel = new Label("HP"); Label MPLabel = new Label("MP"); Label Hand1Label = new Label("Hand1"); Label Hand2Label = new Label("Hand2"); Label HeadLabel = new Label("Head"); Label BodyLabel = new Label("Body"); Label OtherLabel = new Label("Accessory"); Label MainLabel = new Label("Primary"); Label SecondaryLabel = new Label("Secondary"); Label ReactionLabel = new Label("Reactionary"); Label SupportLabel = new Label("Support"); Label MovementLabel = new Label("Movement"); Label BlankLabel = new Label(""); Label CMakerLabel = new Label("CharacterMaker v3.0"); String[] AllTheClasses = {"Squire" ,"Chemist","Knight","Archer","Monk","Priest","Wizard","Time Mage","Summoner","Thief","Mediator","Oracle" ,"Geomancer","Lancer","Samurai","Ninja","Calculator","Bard","Dancer","Mime","Byblos","Divine Knight" ,"Dragoner","Engineer","Heaven Knight","Hell Knight","Holy Dragon","Holy Knight","Holy Swordsman","Soldier" ,"Steel Giant","Temple Knight","Angel of Death","Arc Duke","Arc Knight I","Arc Knight II","Arc Knight III" ,"Arc Knight IV","Arc Witch","Arch Angel","Assassin I","Assassin II","Astrologist","Bi-Count","Bishop" ,"Cardinal","Cleric I","Cleric II","Dark Knight","Divine Knight I","Divine Knight II","Divine Knight III" ,"Dragoner","Duke","Engineer I","Engineer II","Ghost of Fury","High Priest","Holy Angel","Holy Knight I" ,"Holy Priest","Holy Swordsman","Impure King","Knight Blade","Phony Saint","Princess","Regulator","Rune Knight" ,"Sorcerer","Squire I","Squire II","Squire III","Undead Archer","Undead Knight","Undead Oracle" ,"Undead Summoner","Undead Time Mage","Undead Wizard","Warlock","White Knight I","White Knight II"}; List ClassList = new List(); TextField tbox = new TextField(""); public void init() { GridBagLayout myLayout = new GridBagLayout(); GridBagConstraints GBC = new GridBagConstraints(); setLayout(myLayout); setBackground(Color.black); setForeground(Color.white); for (int i = 0; i < AllTheClasses.length; i++) { ClassList.add(AllTheClasses[i]); } ClassList.addItemListener(this); GBC.fill = GridBagConstraints.BOTH; GBC.weightx = 1.0; GBC.weighty = 1.0; GBC.gridheight = 13; myLayout.setConstraints(ClassList, GBC); add(ClassList); GBC.gridheight = 1; GBC.gridwidth = GridBagConstraints.REMAINDER; myLayout.setConstraints(CMakerLabel, GBC); add(CMakerLabel); GBC.gridwidth = 1; GBC.gridwidth = GridBagConstraints.REMAINDER; myLayout.setConstraints(ZodiacLabel, GBC); add(ZodiacLabel); GBC.gridwidth = 1; myLayout.setConstraints(SexLabel, GBC); add(SexLabel); myLayout.setConstraints(ClassLabel, GBC); add(ClassLabel); GBC.gridwidth = GridBagConstraints.RELATIVE; add(new Label("")); GBC.gridwidth = GridBagConstraints.REMAINDER; add(new Label("")); GBC.gridwidth = 1; add(new Label("Br:")); myLayout.setConstraints(BrLabel, GBC); add(BrLabel); GBC.gridwidth = GridBagConstraints.RELATIVE; add(new Label("Fa:")); GBC.gridwidth = GridBagConstraints.REMAINDER; myLayout.setConstraints(FaLabel, GBC); add(FaLabel); GBC.gridwidth = 1; add(new Label("HP:")); myLayout.setConstraints(HPLabel, GBC); add(HPLabel); GBC.gridwidth = GridBagConstraints.RELATIVE; add(new Label("MP:")); GBC.gridwidth = GridBagConstraints.REMAINDER; myLayout.setConstraints(MPLabel, GBC); add(MPLabel); GBC.gridwidth = 1; add(new Label("PA:")); myLayout.setConstraints(PALabel, GBC); add(PALabel); add(new Label("MA:")); myLayout.setConstraints(MALabel, GBC); add(MALabel); GBC.gridwidth = GridBagConstraints.RELATIVE; add(new Label("SP:")); GBC.gridwidth = GridBagConstraints.REMAINDER; myLayout.setConstraints(SPLabel, GBC); add(SPLabel); GBC.gridwidth = 1; GBC.gridwidth = GridBagConstraints.REMAINDER; myLayout.setConstraints(BlankLabel, GBC); add(BlankLabel); GBC.gridwidth = 1; GBC.gridwidth = GridBagConstraints.RELATIVE; myLayout.setConstraints(Hand1Label, GBC); add(Hand1Label); GBC.gridwidth = GridBagConstraints.REMAINDER; myLayout.setConstraints(MainLabel, GBC); add(MainLabel); GBC.gridwidth = 1; GBC.gridwidth = GridBagConstraints.RELATIVE; myLayout.setConstraints(Hand2Label, GBC); add(Hand2Label); GBC.gridwidth = GridBagConstraints.REMAINDER; myLayout.setConstraints(SecondaryLabel, GBC); add(SecondaryLabel); GBC.gridwidth = 1; GBC.gridwidth = GridBagConstraints.RELATIVE; myLayout.setConstraints(HeadLabel, GBC); add(HeadLabel); GBC.gridwidth = GridBagConstraints.REMAINDER; myLayout.setConstraints(ReactionLabel, GBC); add(ReactionLabel); GBC.gridwidth = 1; GBC.gridwidth = GridBagConstraints.RELATIVE; myLayout.setConstraints(BodyLabel, GBC); add(BodyLabel); GBC.gridwidth = GridBagConstraints.REMAINDER; myLayout.setConstraints(SupportLabel, GBC); add(SupportLabel); GBC.gridwidth = 1; GBC.gridwidth = GridBagConstraints.RELATIVE; myLayout.setConstraints(OtherLabel, GBC); add(OtherLabel); GBC.gridwidth = GridBagConstraints.REMAINDER; myLayout.setConstraints(MovementLabel, GBC); add(MovementLabel); GBC.gridwidth = 1; GBC.gridwidth = GridBagConstraints.REMAINDER; myLayout.setConstraints(tbox, GBC); add(tbox); GBC.gridwidth = 1; } public void itemStateChanged(ItemEvent e) { Br = Math.round(33 + Math.random() * 64); Fa = Math.round(33 + Math.random() * 64); if (Math.random() < .5) { Sex = "Male"; Race = "Human"; HP = 72; MP = 26; PA = 3.25; MA = 3; SP = 3; } else { Sex = "Female"; Race = "Human"; HP = 68; MP = 28; PA = 3; MA = 3.25; SP = 3; } if (ClassList.getSelectedItem() == "Squire") { HP = Math.round(HP * 4.00); MP = Math.round(MP * 3.00); PA = Math.round(PA * 3.60); MA = Math.round(MA * 3.20); SP = Math.round(SP * 4.00); if (Math.random() < .5) { Hand1Label.setText(randomizeSword()); } else { if (Math.random() < .5) { Hand1Label.setText(randomizeAxe()); } else { if (Math.random() < .5) { Hand1Label.setText(randomizeDagger()); } else { Hand1Label.setText(randomizeHammer()); } } } Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeClothes()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Basic Skill"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } if (SupportLabel.getText() == "Equip Sword") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Chemist") { HP = Math.round(HP * 3.20); MP = Math.round(MP * 3.00); PA = Math.round(PA * 3.00); MA = Math.round(MA * 3.20); SP = Math.round(SP * 4.00); if (Math.random() < .5) { Hand1Label.setText(randomizeGun()); } else { Hand1Label.setText(randomizeDagger()); } Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeClothes()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Item"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } if (SupportLabel.getText() == "Equip Gun" | SupportLabel.getText() == "Throw") { Support = randomizeSupport(); } } if (ClassList.getSelectedItem() == "Knight") { HP = Math.round(HP * 4.80); MP = Math.round(MP * 3.20); PA = Math.round(PA * 4.80); MA = Math.round(MA * 3.20); SP = Math.round(SP * 4.00); if (Math.random() < .5) { Hand1Label.setText(randomizeSword()); } else { Hand1Label.setText(randomizeKnightSword()); } Hand2Label.setText(randomizeShield()); HeadLabel.setText(randomizeHelmet()); if (Math.random() < .5) { Hand1Label.setText(randomizeArmor()); } else { Hand1Label.setText(randomizeRobe()); } OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Battle Skill"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } if (SupportLabel.getText() == "Equip Sword" | SupportLabel.getText() == "Equip Shield" | SupportLabel.getText() == "Equip Armor") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Archer") { HP = Math.round(HP * 4.00); MP = Math.round(MP * 2.60); PA = Math.round(PA * 4.40); MA = Math.round(MA * 3.20); SP = Math.round(SP * 4.00); if (Math.random() < .5) { Hand1Label.setText(randomizeBow()); } else { Hand1Label.setText(randomizeCrossbow()); } Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeClothes()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Charge"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } if (SupportLabel.getText() == "Equip Crossbow") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Monk") { HP = Math.round(HP * 5.40); MP = Math.round(MP * 3.20); PA = Math.round(PA * 5.10); MA = Math.round(MA * 3.20); SP = Math.round(SP * 4.40); Hand1Label.setText("None"); Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeClothes()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Punch Art"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } if (SupportLabel.getText() == "Martial Arts") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Priest") { HP = Math.round(HP * 3.20); MP = Math.round(MP * 4.80); PA = Math.round(PA * 3.60); MA = Math.round(MA * 4.40); SP = Math.round(SP * 4.40); Hand1Label.setText(randomizeStaff()); Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeRobe()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("White Magic"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } } if (ClassList.getSelectedItem() == "Wizard") { HP = Math.round(HP * 3.00); MP = Math.round(MP * 4.80); PA = Math.round(PA * 2.40); MA = Math.round(MA * 6.00); SP = Math.round(SP * 4.00); Hand1Label.setText(randomizeRod()); Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeRobe()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Black Magic"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } } if (ClassList.getSelectedItem() == "Time Mage") { HP = Math.round(HP * 3.00); MP = Math.round(MP * 4.80); PA = Math.round(PA * 2.00); MA = Math.round(MA * 5.10); SP = Math.round(SP * 4.00); Hand1Label.setText(randomizeStaff()); Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeRobe()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Time Magic"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } } if (ClassList.getSelectedItem() == "Summoner") { HP = Math.round(HP * 2.80); MP = Math.round(MP * 5.00); PA = Math.round(PA * 2.00); MA = Math.round(MA * 5.00); SP = Math.round(SP * 3.60); if (Math.random() < .5) { Hand1Label.setText(randomizeStaff()); } else { Hand1Label.setText(randomizeRod()); } Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeRobe()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Time Magic"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } } if (ClassList.getSelectedItem() == "Thief") { HP = Math.round(HP * 3.60); MP = Math.round(MP * 2.00); PA = Math.round(PA * 4.00); MA = Math.round(MA * 2.40); SP = Math.round(SP * 4.40); Hand1Label.setText(randomizeDagger()); Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeClothes()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Steal"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } } if (ClassList.getSelectedItem() == "Mediator") { HP = Math.round(HP * 3.20); MP = Math.round(MP * 2.80); PA = Math.round(PA * 3.00); MA = Math.round(MA * 3.00); SP = Math.round(SP * 4.00); if (Math.random() < .5) { Hand1Label.setText(randomizeGun()); } else { Hand1Label.setText(randomizeDagger()); } Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeRobe()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Talk Skill"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } if (SupportLabel.getText() == "Monster Talk") { SecondaryLabel.setText(randomizeSecondary()); } } if (ClassList.getSelectedItem() == "Oracle") { HP = Math.round(HP * 3.00); MP = Math.round(MP * 4.40); PA = Math.round(PA * 2.00); MA = Math.round(MA * 4.80); SP = Math.round(SP * 4.00); if (Math.random() < .5) { Hand1Label.setText(randomizeStaff()); } else { if (Math.random() < .5) { Hand1Label.setText(randomizeRod()); } else { if (Math.random() < .5) { Hand1Label.setText(randomizeStick()); } else { Hand1Label.setText(randomizeDictionary()); } } } Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeRobe()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Yin Yang Magic"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } } if (ClassList.getSelectedItem() == "Geomancer") { HP = Math.round(HP * 4.40); MP = Math.round(MP * 3.80); PA = Math.round(PA * 4.40); MA = Math.round(MA * 4.20); SP = Math.round(SP * 4.00); if (Math.random() < .5) { Hand1Label.setText(randomizeSword()); } else { Hand1Label.setText(randomizeAxe()); } Hand2Label.setText(randomizeShield()); HeadLabel.setText(randomizeHat()); if (Math.random() < .5) { BodyLabel.setText(randomizeRobe()); } else { BodyLabel.setText(randomizeClothes()); } OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Geomancy"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } if (SupportLabel.getText() == "Equip Sword" | SupportLabel.getText() == "Equip Shield") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Lancer") { HP = Math.round(HP * 4.80); MP = Math.round(MP * 2.00); PA = Math.round(PA * 4.80); MA = Math.round(MA * 2.00); SP = Math.round(SP * 4.00); Hand1Label.setText(randomizeSpear()); Hand2Label.setText(randomizeShield()); HeadLabel.setText(randomizeHelmet()); BodyLabel.setText(randomizeArmor()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Jump"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } if (SupportLabel.getText() == "Equip Spear" | SupportLabel.getText() == "Equip Armor" | SupportLabel.getText() == "Two Swords" | SupportLabel.getText() == "Equip Shield") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Samurai") { HP = Math.round(HP * 3.00); MP = Math.round(MP * 3.00); PA = Math.round(PA * 5.10); MA = Math.round(MA * 3.60); SP = Math.round(SP * 4.00); Hand1Label.setText(randomizeKatana()); Hand2Label.setText("none"); HeadLabel.setText(randomizeHelmet()); BodyLabel.setText(randomizeArmor()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Draw Out"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } if (SupportLabel.getText() == "Equip Knife" | SupportLabel.getText() == "Equip Armor") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Ninja") { HP = Math.round(HP * 2.80); MP = Math.round(MP * 2.00); PA = Math.round(PA * 4.80); MA = Math.round(MA * 3.00); SP = Math.round(SP * 4.80); Hand1Label.setText(randomizeNinjaSword()); Hand2Label.setText(randomizeNinjaSword()); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeClothes()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Throw"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } if (SupportLabel.getText() == "Two Swords") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Calculator") { HP = Math.round(HP * 2.60); MP = Math.round(MP * 3.20); PA = Math.round(PA * 2.00); MA = Math.round(MA * 2.80); SP = Math.round(SP * 2.00); Hand1Label.setText(randomizeDictionary()); Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeClothes()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Math Skill"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } } if (ClassList.getSelectedItem() == "Bard") { HP = Math.round(HP * 2.20); MP = Math.round(MP * 2.00); PA = Math.round(PA * 1.20); MA = Math.round(MA * 4.60); SP = Math.round(SP * 4.00); Sex = "Male"; Hand1Label.setText(randomizeHarp()); Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeClothes()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Sing"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } } if (ClassList.getSelectedItem() == "Dancer") { HP = Math.round(HP * 2.40); MP = Math.round(MP * 2.00); PA = Math.round(PA * 4.40); MA = Math.round(MA * 3.80); SP = Math.round(SP * 4.00); Sex = "Female"; Hand1Label.setText(randomizeFabric()); Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeClothes()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Dance"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (MainLabel.getText() == SecondaryLabel.getText()) { SecondaryLabel.setText(randomizeSecondary()); } } if (ClassList.getSelectedItem() == "Mime") { HP = Math.round(HP * 5.60); MP = Math.round(MP * 2.00); PA = Math.round(PA * 4.80); MA = Math.round(MA * 4.60); SP = Math.round(SP * 4.80); Hand1Label.setText("None"); Hand2Label.setText("None"); HeadLabel.setText("None"); BodyLabel.setText("None"); OtherLabel.setText("None"); MainLabel.setText("Mimic"); SecondaryLabel.setText("None"); ReactionLabel.setText("None"); SupportLabel.setText("None"); MovementLabel.setText("None"); } if (ClassList.getSelectedItem() == "Byblos") { HP = Math.round(HP * 5.20); MP = Math.round(MP * 4.40); PA = Math.round(PA * 4.00); MA = Math.round(MA * 4.00); SP = Math.round(SP * 4.10); Hand1Label.setText("None"); Hand2Label.setText("None"); HeadLabel.setText("None"); BodyLabel.setText("None"); OtherLabel.setText("None"); MainLabel.setText("Parasite"); SecondaryLabel.setText("None"); ReactionLabel.setText("None"); SupportLabel.setText(""); MovementLabel.setText(""); } if (ClassList.getSelectedItem() == "Divine Knight") { HP = Math.round(HP * 5.00); MP = Math.round(MP * 3.20); PA = Math.round(PA * 4.80); MA = Math.round(MA * 3.60); SP = Math.round(SP * 4.20); if (Math.random() < .5) { Hand1Label.setText(randomizeSword()); } else { if (Math.random() < .5) { Hand1Label.setText(randomizeKnightSword()); } else { Hand1Label.setText(randomizeSpear()); } } Hand2Label.setText(randomizeShield()); HeadLabel.setText(randomizeHelmet()); if (Math.random() < .5) { BodyLabel.setText(randomizeArmor()); } else { BodyLabel.setText(randomizeRobe()); } OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Mighty Sword"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (SupportLabel.getText() == "Equip Spear" | SupportLabel.getText() == "Equip Sword" | SupportLabel.getText() == "Equip Armor" | SupportLabel.getText() == "Two Swords") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Dragoner") { HP = Math.round(HP * 5.60); MP = Math.round(MP * 4.60); PA = Math.round(PA * 4.80); MA = Math.round(MA * 4.40); SP = Math.round(SP * 4.80); Hand1Label.setText("None"); Hand2Label.setText("None"); HeadLabel.setText("None"); BodyLabel.setText("None"); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Dragon"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (SupportLabel.getText() == "Two Swords") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Engineer") { HP = Math.round(HP * 4.00); MP = Math.round(MP * 3.00); PA = Math.round(PA * 3.80); MA = Math.round(MA * 4.00); SP = Math.round(SP * 4.60); Hand1Label.setText(randomizeGun()); Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeClothes()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Snipe"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (SupportLabel.getText() == "Equip Gun") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Heaven Knight") { HP = Math.round(HP * 3.60); MP = Math.round(MP * 4.00); PA = Math.round(PA * 3.20); MA = Math.round(MA * 4.00); SP = Math.round(SP * 4.60); if (Math.random() < .5) { Hand1Label.setText(randomizeStick()); } else { Hand1Label.setText(randomizeStaff()); } Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); if (Math.random() < .5) { BodyLabel.setText(randomizeClothes()); } else { BodyLabel.setText(randomizeRobe()); } OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Truth"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); } if (ClassList.getSelectedItem() == "Hell Knight") { HP = Math.round(HP * 4.00); MP = Math.round(MP * 4.40); PA = Math.round(PA * 4.20); MA = Math.round(MA * 4.00); SP = Math.round(SP * 4.40); if (Math.random() < .5) { Hand1Label.setText(randomizeStick()); } else { Hand1Label.setText(randomizeStaff()); } Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); if (Math.random() < .5) { BodyLabel.setText(randomizeClothes()); } else { BodyLabel.setText(randomizeRobe()); } OtherLabel.setText(randomizeAccessory()); MainLabel.setText("UnTruth"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); } if (ClassList.getSelectedItem() == "Holy Dragon") { HP = Math.round(HP * 4.00); MP = Math.round(MP * 4.40); PA = Math.round(PA * 4.20); MA = Math.round(MA * 4.00); SP = Math.round(SP * 4.40); Hand1Label.setText("None"); Hand2Label.setText("None"); HeadLabel.setText("None"); BodyLabel.setText("None"); OtherLabel.setText("None"); MainLabel.setText("Holy Bracelet"); SecondaryLabel.setText("None"); ReactionLabel.setText("None"); SupportLabel.setText("None"); MovementLabel.setText("None"); } if (ClassList.getSelectedItem() == "Holy Knight") { HP = Math.round(HP * 5.60); MP = Math.round(MP * 4.00); PA = Math.round(PA * 4.00); MA = Math.round(MA * 4.00); SP = Math.round(SP * 4.00); if (Math.random() < .5) { Hand1Label.setText(randomizeSword()); } else { Hand1Label.setText(randomizeKnightSword()); } Hand2Label.setText(randomizeShield()); HeadLabel.setText(randomizeHelmet()); BodyLabel.setText(randomizeArmor()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Holy Sword"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (SupportLabel.getText() == "Equip Sword" | SupportLabel.getText() == "Equip Armor" | SupportLabel.getText() == "Equip Shield") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Holy Swordsman") { HP = Math.round(HP * 6.40); MP = Math.round(MP * 4.80); PA = Math.round(PA * 4.80); MA = Math.round(MA * 4.00); SP = Math.round(SP * 4.40); if (Math.random() < .5) { Hand1Label.setText(randomizeSword()); } else { if (Math.random() < .5) { Hand1Label.setText(randomizeKnightSword()); } else { if (Math.random() < .5) { Hand1Label.setText(randomizeKatana()); } } } Hand2Label.setText(randomizeShield()); HeadLabel.setText(randomizeHelmet()); if (Math.random() < .5) { BodyLabel.setText(randomizeArmor()); } else { BodyLabel.setText(randomizeRobe()); } OtherLabel.setText(randomizeAccessory()); MainLabel.setText("All Sword-Skills"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (SupportLabel.getText() == "Equip Knife" | SupportLabel.getText() == "Equip Armor" | SupportLabel.getText() == "Equip Sword" | SupportLabel.getText() == "Equip Shield") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Soldier") { HP = Math.round(HP * 5.00); MP = Math.round(MP * 4.64); PA = Math.round(PA * 4.90); MA = Math.round(MA * 4.80); SP = Math.round(SP * 4.00); Hand1Label.setText(randomizeSword()); Hand2Label.setText("None"); HeadLabel.setText(randomizeHat()); BodyLabel.setText(randomizeClothes()); OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Limit"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (SupportLabel.getText() == "Equip Sword") { SupportLabel.setText(randomizeSupport()); } } if (ClassList.getSelectedItem() == "Steel Giant") { HP = Math.round(HP * 4.60); MP = Math.round(MP * 0.00); PA = Math.round(PA * 5.60); MA = Math.round(MA * 0.00); SP = Math.round(SP * 4.20); Hand1Label.setText("None"); Hand2Label.setText("None"); HeadLabel.setText("None"); BodyLabel.setText("None"); OtherLabel.setText("None"); MainLabel.setText("Work"); SecondaryLabel.setText("None"); ReactionLabel.setText("None"); SupportLabel.setText("Defense UP"); MovementLabel.setText("None"); } if (ClassList.getSelectedItem() == "Temple Knight") { HP = Math.round(HP * 4.88); MP = Math.round(MP * 5.80); PA = Math.round(PA * 5.00); MA = Math.round(MA * 4.20); SP = Math.round(SP * 4.20); if (Math.random() < .5) { Hand1Label.setText(randomizeSword()); } else { Hand1Label.setText(randomizeKnightSword()); } Hand2Label.setText(randomizeShield()); HeadLabel.setText(randomizeHelmet()); if (Math.random() < .5) { BodyLabel.setText(randomizeRobe()); } else { BodyLabel.setText(randomizeArmor()); } OtherLabel.setText(randomizeAccessory()); MainLabel.setText("Magic Sword"); SecondaryLabel.setText(randomizeSecondary()); ReactionLabel.setText(randomizeReaction()); SupportLabel.setText(randomizeSupport()); MovementLabel.setText(randomizeMovement()); if (SupportLabel.getText() == "Equip Sword" | SupportLabel.getText() == "Equip Armor" | SupportLabel.getText() == "Equip Shield") { SupportLabel.setText(randomizeSupport()); } } if (SupportLabel.getText() == "Equip Sword") {Hand1Label.setText(randomizeSword());} if (SupportLabel.getText() == "Equip Shield") {Hand2Label.setText(randomizeShield());} if (SupportLabel.getText() == "Equip Knife") {Hand1Label.setText(randomizeKatana());} if (SupportLabel.getText() == "Equip Gun") {Hand1Label.setText(randomizeGun());} if (SupportLabel.getText() == "Equip Crossbow") {Hand1Label.setText(randomizeCrossbow());} if (SupportLabel.getText() == "Equip Armor") {BodyLabel.setText(randomizeArmor()); HeadLabel.setText(randomizeHelmet());} if (SupportLabel.getText() == "Two Swords") {Hand2Label.setText(Hand1Label.getText());} if (SupportLabel.getText() == "Two Hands") {Hand2Label.setText("None");} if (SupportLabel.getText() == "Equip Spear") {Hand1Label.setText(randomizeSpear());} if (Sex == "Female") { if (rand < .25) { HeadLabel.setText(randomizeRibbon());} if (rand < .25) { OtherLabel.setText(randomizePerfume());} if (rand < .25) { Hand1Label.setText(randomizeBag());} } HPLabel.setText(HP + ""); MPLabel.setText(MP + ""); PALabel.setText(PA + ""); MALabel.setText(MA + ""); SPLabel.setText(SP + ""); BrLabel.setText(Br + ""); FaLabel.setText(Fa + ""); SexLabel.setText(Sex); ClassLabel.setText(ClassList.getSelectedItem()); ZodiacLabel.setText(randomizeZodiac()); displayStats(); } public String randomizeSword() { rand = Math.round(Math.random() * 12); if (rand == 0) { Temp = "Ancient Sword"; rand = -1; } if (rand == 1) { Temp = "Blood Sword"; rand = -1; } if (rand == 2) { Temp = "Broad Sword"; rand = -1; } if (rand == 3) { Temp = "Coral Sword"; rand = -1; } if (rand == 4) { Temp = "Diamond Sword"; rand = -1; } if (rand == 5) { Temp = "Ice Brand"; rand = -1; } if (rand == 6) { Temp = "Iron Sword"; rand = -1; } if (rand == 7) { Temp = "Long Sword"; rand = -1; } if (rand == 8) { Temp = "Mythril Sword"; rand = -1; } if (rand == 9) { Temp = "Platinum Sword"; rand = -1; } if (rand == 10) { MA += 2; Temp = "Rune Sword"; rand = -1; } if (rand == 11) { Temp = "Sleep Sword"; rand = -1; } if (rand == 12) { Temp = "Nagrarock"; rand = -1; } return Temp; } public String randomizeKnightSword() { rand = Math.round(Math.random() * 4); if (rand == 0) { Temp = "Nagrarock"; rand = -1; } if (rand == 1) { Temp = "Save the Queen"; rand = -1; } if (rand == 2) { Temp = "Excalibur"; rand = -1; } if (rand == 3) { Temp = "Defender"; rand = -1; } if (rand == 4) { Temp = "Chaos Blade"; rand = -1; } return Temp; } public String randomizeDagger() { rand = Math.round(Math.random() * 9); if (rand == 0) { Temp = "Air Knife"; rand = -1; } if (rand == 1) { Temp = "Assassin Dagger"; rand = -1; } if (rand == 2) { Temp = "Blind Knife"; rand = -1; } if (rand == 3) { Temp = "Dagger"; rand = -1; } if (rand == 4) { Temp = "Mage Masher"; rand = -1; } if (rand == 5) { Temp = "Main Gauche"; rand = -1; } if (rand == 6) { Temp = "Mythril Knife"; rand = -1; } if (rand == 7) { Temp = "Orichalum"; rand = -1; } if (rand == 8) { Temp = "Platina Dagger"; rand = -1; } if (rand == 9) { Temp = "Zorlin Shape"; rand = -1; } return Temp; } public String randomizeNinjaSword() { rand = Math.round(Math.random() * 6); if (rand == 0) { Temp = "Hidden Knife"; rand = -1; } if (rand == 1) { Temp = "Iga Knife"; rand = -1; } if (rand == 2) { Temp = "Ninja Edge"; rand = -1; } if (rand == 3) { Temp = "Ninja Knife"; rand = -1; } if (rand == 4) { Temp = "Short Edge"; rand = -1; } if (rand == 5) { Temp = "Spell Edge"; rand = -1; } if (rand == 6) { Temp = "Koga Knife"; rand = -1; } return Temp; } public String randomizeKatana() { rand = Math.round(Math.random() * 9); if (rand == 0) { Temp = "Asura Knife"; rand = -1; } if (rand == 1) { Temp = "Bizen Boat"; rand = -1; } if (rand == 2) { Temp = "Chirijiraden"; rand = -1; } if (rand == 3) { Temp = "Heaven's Cloud"; rand = -1; } if (rand == 4) { Temp = "Kikuichimoji"; rand = -1; } if (rand == 5) { Temp = "Kiyomori"; rand = -1; } if (rand == 6) { Temp = "Koutetsu Knife"; rand = -1; } if (rand == 7) { Temp = "Masamune"; rand = -1; } if (rand == 8) { Temp = "Murasame"; rand = -1; } if (rand == 9) { Temp = "Muramasa"; rand = -1; } return Temp; } public String randomizeAxe() { rand = Math.round(Math.random() * 2); if (rand == 0) { Temp = "Battle Axe"; rand = -1; } if (rand == 1) { Temp = "Giant Axe"; rand = -1; } if (rand == 2) { Temp = "Slasher"; rand = -1; } return Temp; } public String randomizeRod() { rand = Math.round(Math.random() * 7); if (rand == 0) { Temp = "Dragon Rod"; rand = -1; } if (rand == 1) { Temp = "Faith Rod"; rand = -1; } if (rand == 2) { Temp = "Flame Rod"; rand = -1; } if (rand == 3) { Temp = "Ice Rod"; rand = -1; } if (rand == 4) { Temp = "Poison Rod"; rand = -1; } if (rand == 5) { Temp = "Rod"; rand = -1; } if (rand == 6) { Temp = "Thunder Rod"; rand = -1; } if (rand == 7) { MA += 2; Temp = "Wizard Rod"; rand = -1; } return Temp; } public String randomizeStaff() { rand = Math.round(Math.random() * 5); if (rand == 0) { Temp = "Gold Staff"; rand = -1; } if (rand == 1) { Temp = "Healing Staff"; rand = -1; } if (rand == 2) { Temp = "Oak Staff"; rand = -1; } if (rand == 3) { Temp = "Rainbow Staff"; rand = -1; } if (rand == 4) { Temp = "White Staff"; rand = -1; } if (rand == 5) { MA += 1; Temp = "Wizard Staff"; rand = -1; } if (rand == 6) { MA += 1; PA += 2; Temp = "Mace of Zeus"; rand = -1; } if (rand == 7) { Temp = "Sage Staff"; rand = -1; } return Temp; } public String randomizeHammer() { rand = Math.round(Math.random() * 3); if (rand == 0) { Temp = "Flail"; rand = -1; } if (rand == 1) { Temp = "Flame Whip"; rand = -1; } if (rand == 2) { Temp = "Morning Star"; rand = -1; } if (rand == 3) { Temp = "Scorpion Tail"; rand = -1; } return Temp; } public String randomizeGun() { rand = Math.round(Math.random() * 4); if (rand == 0) { Temp = "Blast Gun"; rand = -1; } if (rand == 1) { Temp = "Blaze Gun"; rand = -1; } if (rand == 2) { Temp = "Glacier Gun"; rand = -1; } if (rand == 3) { Temp = "Mythril Gun"; rand = -1; } if (rand == 4) { Temp = "Rowanda Gun"; rand = -1; } return Temp; } public String randomizeCrossbow() { rand = Math.round(Math.random() * 5); if (rand == 0) { Temp = "Bow Gun"; rand = -1; } if (rand == 1) { Temp = "Cross Bow"; rand = -1; } if (rand == 2) { Temp = "Gastrifitis"; rand = -1; } if (rand == 3) { Temp = "Hunting Bow"; rand = -1; } if (rand == 4) { Temp = "Night Killer"; rand = -1; } if (rand == 5) { Temp = "Poison Bow"; rand = -1; } return Temp; } public String randomizeBow() { rand = Math.round(Math.random() * 8); if (rand == 0) { Temp = "Ice Bow"; } if (rand == 1) { Temp = "Lightning Bow"; } if (rand == 2) { Temp = "Long Bow"; } if (rand == 3) { Temp = "Mythril Bow"; } if (rand == 4) { Temp = "Perseus Bow"; } if (rand == 5) { Temp = "Silver Bow"; } if (rand == 6) { Temp = "Ultimus Bow"; } if (rand == 7) { Temp = "Windslash Bow"; } if (rand == 8) { Temp = "Yoichi Bow"; } return Temp; } public String randomizeHarp() { rand = Math.round(Math.random() * 2); if (rand == 0) { Temp = "Bloody Strings"; } if (rand == 1) { Temp = "Ramia Harp"; } if (rand == 2) { Temp = "Faerie Harp"; } return Temp; } public String randomizeDictionary() { rand = Math.round(Math.random() * 3); if (rand == 0) { Temp = "Battle Dict"; } if (rand == 1) { Temp = "Monster Dict"; } if (rand == 2) { Temp = "Papyrus Plate"; } if (rand == 3) { Temp = "Madlegman"; } return Temp; } public String randomizeSpear() { rand = Math.round(Math.random() * 7); if (rand == 0) { Temp = "Dragon Whisker"; } if (rand == 1) { Temp = "Holy Lance"; } if (rand == 2) { Temp = "Javelin I"; } if (rand == 3) { Temp = "Javelin II"; } if (rand == 4) { Temp = "Mythril Spear"; } if (rand == 5) { Temp = "Oberisk"; } if (rand == 6) { Temp = "Partisan"; } if (rand == 7) { Temp = "Spear"; } return Temp; } public String randomizeStick() { rand = Math.round(Math.random() * 6); if (rand == 0) { Temp = "Battle Bamboo"; } if (rand == 1) { Temp = "Cypress Rod"; } if (rand == 2) { Temp = "Gokou Rod"; } if (rand == 3) { Temp = "Iron Fan"; } if (rand == 4) { Temp = "Musk Rod"; } if (rand == 5) { Temp = "Octagon Rod"; } if (rand == 6) { Temp = "Whale Whisker"; } return Temp; } public String randomizeBag() { rand = Math.round(Math.random() * 3); if (rand == 0) { MA += 1; Temp = "C Bag"; } if (rand == 1) { SP += 1; Temp = "H Bag"; } if (rand == 2) { Temp = "P Bag"; } if (rand == 3) { Temp = "FS Bag"; } return Temp; } public String randomizeFabric() { rand = Math.round(Math.random() * 2); if (rand == 0) { Temp = "Cashmere"; } if (rand == 1) { Temp = "Persia"; } if (rand == 2) { Temp = "Ryozan Silk"; } return Temp; } public String randomizeShield() { rand = Math.round(Math.random() * 15); if (rand == 0) { Temp = "Aegis Shield"; } if (rand == 1) { Temp = "Bronze Shield"; } if (rand == 2) { Temp = "Buckler"; } if (rand == 3) { Temp = "Crystal Shield"; } if (rand == 4) { Temp = "Diamond Shield"; } if (rand == 5) { Temp = "Escutcheon I"; } if (rand == 6) { Temp = "Escutcheon II"; } if (rand == 7) { Temp = "Flame Shield"; } if (rand == 8) { Temp = "Genji Shield"; } if (rand == 9) { Temp = "Gold Shield"; } if (rand == 10) { Temp = "Ice Shield"; } if (rand == 11) { Temp = "Kaiser Plate"; } if (rand == 12) { Temp = "Mythril Shield"; } if (rand == 13) { Temp = "Platina Shield"; } if (rand == 14) { Temp = "Round Shield"; } if (rand == 15) { Temp = "Venetian Shield"; } return Temp; } public String randomizeHelmet() { rand = Math.round(Math.random() * 12); if (rand == 0) { HP += 40; Temp = "Barbuta"; } if (rand == 1) { HP += 20; Temp = "Bronze Helmet"; } if (rand == 2) { HP += 100; Temp = "Circlet"; } if (rand == 3) { HP += 70; Temp = "Cross Helmet"; } if (rand == 4) { HP += 120; Temp = "Crystal Helmet"; } if (rand == 5) { HP += 80; Temp = "Diamond Helmet"; } if (rand == 6) { HP += 130; Temp = "Genji Helmet"; } if (rand == 7) { HP += 60; Temp = "Gold Helmet"; } if (rand == 8) { HP += 30; Temp = "Iron Helmet"; } if (rand == 9) { HP += 10; Temp = "Leather Helmet"; } if (rand == 10) { HP += 50; Temp = "Mythril Helmet"; } if (rand == 11) { HP += 90; Temp = "Platina Helmet"; } if (rand == 12) { HP += 150; Temp = "Grand Helmet"; } return Temp; } public String randomizeHat() { rand = Math.round(Math.random() * 11); if (rand == 0) { HP += 72; Temp = "Black Hood"; } if (rand == 1) { HP += 16; MP += 5; Temp = "Feather Hat"; } if (rand == 2) { HP += 88; MP += 15; MA += 1; SP += 1; Temp = "Flash Hat"; } if (rand == 3) { HP += 80; MP += 50; Temp = "Golden Hairpin"; } if (rand == 4) { HP += 48; SP += 1; Temp = "Green Beret"; } if (rand == 5) { HP += 32; PA += 1; Temp = "Headgear"; } if (rand == 6) { HP += 64; MP += 20; MA += 1; Temp = "Holy Miter"; } if (rand == 7) { HP += 8; Temp = "Leather Hat"; } if (rand == 8) { HP += 24; MP += 8; Temp = "Red Hood"; } if (rand == 9) { HP += 100; SP += 2; Temp = "Thief Hat"; } if (rand == 10) { HP += 40; MP += 12; MA += 1; Temp = "Triangle Hat"; } if (rand == 11) { HP += 56; PA += 2; Temp = "Twist Headband"; } return Temp; } public String randomizeRibbon() { rand = Math.round(Math.random() * 2); if (rand == 0) { HP += 20; Temp = "Barette"; } if (rand == 1) { HP += 20; Temp = "Cachusa"; } if (rand == 2) { HP += 10; Temp = "Ribbon"; } return Temp; } public String randomizeArmor() { rand = Math.round(Math.random() * 12); if (rand == 0) { HP += 30; Temp = "Bronze Armor"; } if (rand == 1) { HP += 100; Temp = "Carabini Mail"; } if (rand == 2) { HP += 40; Temp = "Chain Mail"; } if (rand == 3) { HP += 110; Temp = "Crystal Mail"; } if (rand == 4) { HP += 80; Temp = "Diamond Armor"; } if (rand == 5) { HP += 150; Temp = "Genji Armor"; } if (rand == 6) { HP += 70; Temp = "Gold Armor"; } if (rand == 7) { HP += 60; Temp = "Leather Armor"; } if (rand == 8) { HP += 20; Temp = "Linen Cuirass"; } if (rand == 9) { HP += 50; Temp = "Mythril Armor"; } if (rand == 10) { HP += 80; Temp = "Platina Armor"; } if (rand == 11) { HP += 60; Temp = "Plate Mail"; } if (rand == 12) { HP += 130; Temp = "Reflect Mail"; } return Temp; } public String randomizeClothes() { rand = Math.round(Math.random() * 12); if (rand == 0) { HP += 36; Temp = "Adaman Vest"; } if (rand == 1) { HP += 100; Temp = "Black Costume"; } if (rand == 2) { HP += 50; Temp = "Brigandine"; } if (rand == 3) { HP += 24; Temp = "Chain Vest"; } if (rand == 4) { HP += 5; Temp = "Clothes"; } if (rand == 5) { HP += 85; MP += 10; Temp = "Earth Clothes"; } if (rand == 6) { HP += 60; PA += 1; Temp = "Judo Outfit"; } if (rand == 7) { HP += 10; Temp = "Leather Outfit"; } if (rand == 8) { HP += 18; Temp = "Leather Vest"; } if (rand == 9) { HP += 30; Temp = "Mythril Vest"; } if (rand == 10) { HP += 70; PA += 2; Temp = "Power Sleeve"; } if (rand == 11) { HP += 150; MP += 30; Temp = "Rubber Costume"; } if (rand == 12) { HP += 42; MP += 15; Temp = "Wizard Outfit"; } return Temp; } public String randomizeRobe() { rand = Math.round(Math.random() * 7); if (rand == 0) { HP += 60; MP += 30; Temp = "Black Robe"; } if (rand == 1) { HP += 40; MP += 28; Temp = "Chameleon Robe"; } if (rand == 2) { HP += 75; MP += 50; Temp = "Light Robe"; } if (rand == 3) { HP += 10; MP += 10; Temp = "Linen Robe"; } if (rand == 4) { HP += 100; MP += 80; PA += 2; MA += 1; Temp = "Robe of Lords"; } if (rand == 5) { HP += 20; MP += 16; Temp = "Silk Robe"; } if (rand == 6) { HP += 50; MP += 34; Temp = "White Robe"; } if (rand == 7) { HP += 30; MP += 22; MA += 2; Temp = "Wizard Robe"; } return Temp; } public String randomizeAccessory() { rand = Math.round(Math.random() * 25); if (rand == 0) { Temp = "Battle Boots"; } if (rand == 1) { Temp = "Feather Boots"; } if (rand == 2) { Temp = "Germinas Boots"; } if (rand == 3) { MA += 1; Temp = "Red Shoes"; } if (rand == 4) { Temp = "Rubber Shoes"; } if (rand == 5) { Temp = "Spike Boots"; } if (rand == 6) { SP += 1; Temp = "Sprint Boots"; } if (rand == 7) { PA += 3; Temp = "Bracer"; } if (rand == 8) { PA += 2; MA += 2; Temp = "Genji Gauntlet"; } if (rand == 9) { MA += 2; Temp = "Magic Gauntlet"; } if (rand == 10) { PA += 1; Temp = "Power Wrist"; } if (rand == 11) { Temp = "Angel Ring"; } if (rand == 12) { Temp = "Defense Ring"; } if (rand == 13) { Temp = "Magic Ring"; } if (rand == 14) { Temp = "Reflect Ring"; } if (rand == 15) { Temp = "108 Gems"; } if (rand == 16) { MA += 1; Temp = "Defense Armlet"; } if (rand == 17) { PA += 1; MA += 1; Temp = "Diamond Armlet"; } if (rand == 18) { Temp = "Jade Armlet"; } if (rand == 19) { SP += 1; Temp = "N-Kai Armlet"; } if (rand == 20) { Temp = "Dracula Mantle"; } if (rand == 21) { Temp = "Elf Mantle"; } if (rand == 22) { Temp = "Feather Mantle"; } if (rand == 23) { Temp = "Leather Mantle"; } if (rand == 24) { Temp = "Small Mantle"; } if (rand == 25) { MA += 1; Temp = "Wizard Mantle"; } return Temp; } public String randomizePerfume() { rand = Math.round(Math.random() * 3); if (rand == 0) { Temp = "Chantage"; } if (rand == 1) { Temp = "Seteimeson"; } if (rand == 2) { Temp = "Cherche"; } if (rand == 3) { Temp = "Salty Rage"; } return Temp; } public String randomizeSecondary() { rand = Math.round(Math.random() * 15); if (rand == 0) { Temp = "Basic Skill"; } if (rand == 1) { Temp = "Punch Art"; } if (rand == 2) { Temp = "Throw"; } if (rand == 3) { Temp = "Battle Skill"; } if (rand == 4) { Temp = "Charge"; } if (rand == 5) { Temp = "Time Magic"; } if (rand == 6) { Temp = "Yin Yang Magic"; } if (rand == 7) { Temp = "Black Magic"; } if (rand == 8) { Temp = "White Magic"; } if (rand == 9) { Temp = "Summon Magic"; } if (rand == 10) { Temp = "Talk Skill"; } if (rand == 11) { Temp = "Jump"; } if (rand == 12) { Temp = "Steal"; } if (rand == 13) { Temp = "Punch Art"; } if (rand == 14) { Temp = "Draw Out"; } if (rand == 15) { Temp = "Geomancy"; } if (rand == 16) { Temp = "Sing"; } if (rand == 17) { Temp = "Dance"; } return Temp; } public String randomizeReaction() { rand = Math.round(Math.random() * 18); if (rand == 0) { Temp = "Blade Grasp"; } if (rand == 1) { Temp = "Auto Potion"; } if (rand == 2) { Temp = "Catch"; } if (rand == 3) { Temp = "Mp Switch"; } if (rand == 4) { Temp = "Finger Guard"; } if (rand == 5) { Temp = "Hp Restore"; } if (rand == 6) { Temp = "Hamedo"; } if (rand == 7) { Temp = "Counter Flood"; } if (rand == 8) { Temp = "Counter Magic"; } if (rand == 9) { Temp = "Regenerator"; } if (rand == 10) { Temp = "Counter Tackle"; } if (rand == 11) { Temp = "Weapon Guard"; } if (rand == 12) { Temp = "Sunken State"; } if (rand == 13) { Temp = "Abandon"; } if (rand == 14) { Temp = "Caution"; } if (rand == 15) { Temp = "Counter"; } if (rand == 16) { Temp = "Counter Tackle"; } if (rand == 17) { Temp = "Critical Quick"; } if (rand == 18) { Temp = "Damage Split"; } return Temp; } public String randomizeSupport() { rand = Math.round(Math.random() * 18); if (rand == 0) { Temp = "Magic Attack UP"; } if (rand == 1) { Temp = "Attack UP"; } if (rand == 2) { Temp = "Concentrate"; } if (rand == 3) { Temp = "Maintenance"; } if (rand == 4) { Temp = "Defense UP"; } if (rand == 5) { Temp = "Magic Defense UP"; } if (rand == 6) { Temp = "Equip Sword"; } if (rand == 7) { Temp = "Equip Gun"; } if (rand == 8) { Temp = "Equip Armor"; } if (rand == 9) { Temp = "Equip Shield"; } if (rand == 10) { Temp = "Equip Spear"; } if (rand == 11) { Temp = "Equip Knife"; } if (rand == 12) { Temp = "Thow Item"; } if (rand == 13) { Temp = "Defend"; } if (rand == 14) { Temp = "Equip Axe"; } if (rand == 15) { Temp = "Short Charge"; } if (rand == 16) { Hand2 = "None"; Temp = "Two Hands"; } if (rand == 17) { Temp = "Equip Crossbow"; } if (rand == 17) { Temp = "Two Swords"; Hand2 = Hand1; } return Temp; } public String randomizeMovement() { rand = Math.round(Math.random() * 9); if (rand == 0) { Temp = "Move +1"; } if (rand == 1) { Temp = "Move +2"; } if (rand == 2) { Temp = "Teleport"; } if (rand == 3) { Temp = "Any Ground"; } if (rand == 4) { Temp = "Walk on Water"; } if (rand == 5) { Temp = "Fly"; } if (rand == 6) { Temp = "Move Mp-UP"; } if (rand == 7) { Temp = "Move Hp-UP"; } if (rand == 8) { Temp = "Float"; } if (rand == 9) { Temp = "Move +3"; } return Temp; } public String randomizeZodiac() { rand = Math.round(Math.random() * 11); if (rand == 0) { Temp = "Aries"; } if (rand == 1) { Temp = "Taurus"; } if (rand == 2) { Temp = "Gemini"; } if (rand == 3) { Temp = "Cancer"; } if (rand == 4) { Temp = "Libra"; } if (rand == 5) { Temp = "Scorpio"; } if (rand == 6) { Temp = "Saggitarius"; } if (rand == 7) { Temp = "Capricorn"; } if (rand == 8) { Temp = "Aquarious"; } if (rand == 9) { Temp = "Pisces"; } if (rand == 10) { Temp = "Leo"; } if (rand == 11) { Temp = "Virgo"; } return Temp; } public void displayStats() { Temp = ZodiacLabel.getText()+"\n"; Temp += Sex + " " + ClassLabel.getText() + "\n"; Temp += "Hp: "+HPLabel.getText()+" "; Temp +="Mp: "+MPLabel.getText()+"\n"; Temp += "PA: "+PALabel.getText()+" "; Temp +="MA: "+MALabel.getText()+" "; Temp +="SP: "+SPLabel.getText()+"\n"; Temp +="Br: "+BrLabel.getText()+" "; Temp +="Fa: "+FaLabel.getText()+"\n"; Temp +="\n"; Temp +=Hand1Label.getText()+"\n"; Temp +=Hand2Label.getText()+"\n"; Temp +=HeadLabel.getText()+"\n"; Temp +=BodyLabel.getText()+"\n"; Temp +=OtherLabel.getText()+"\n"; Temp +="\n"; Temp +=SecondaryLabel.getText()+"\n"; Temp +=ReactionLabel.getText()+"\n"; Temp +=SupportLabel.getText()+"\n"; Temp +=MovementLabel.getText()+"\n"; tbox.setText(Temp); repaint(); HP = 0; MP = 0; PA = 0; SP = 0; MA = 0; Br = 0; Fa = 0; Hand1 = "None"; Hand2 = "None"; Head = "None"; Body = "None"; Other = "None"; } }