B
BlueJguywithoutskill
Hello,
I wanted to write a program for a table top Game (Heroscape, which should give me random units and if a unit got support units there should be a chance that it give me them too. And that until i got my points.
Tt do like planned for some units but then just stop to give out anymore and just loading .... hope somebody can help me.... if there are questions pls just ask them
public class ZufaelligeFiguren
{
public String [] Name;
public int [] Punkte;
public int [] Stuetze;
public int [] help;
public int [] zahl;
public int [] nochda;
public ZufaelligeFiguren()
{
Name = new String [159];
Stuetze = new int [159];
Punkte = new int [159];
nochda = new int [159];
help = new int [159];
zahl = new int [159];
Name[0] = "Cyprien Esenwein";
Punkte[0] = 150;
Stuetze[0] = 0;
Name[1] = "Otonashi";
Punkte[1] = 10;
Stuetze[1] = 0;
Name[2] = "Isamu";
Punkte[2] = 10;
Stuetze[2] = 0;
Name[3] = "Kyntela Gwyn"; //Elf
Punkte[3] = 20;
Stuetze[3] = 8;
zahl[3] = 0;
help[1] = 49; //Sonlen
help[2] = 47; //Ulginesh
help[3] = 33; //Syvarris
help[4] = 32; //Jorhdawn
help[5] = 27; //Chardris
help[6] = 25; //Emirroon
help[7] = 11; //Arkmer
help[8] = 105; //Warriors of Ashra
Name[4] = "Marcu Esenwein";
Punkte[4] = 20;
Stuetze[4] = 0;
Name[5] = "Dumutef Guard" ; //Devourer
Punkte[5] = 25;
Stuetze[5] = 2;
zahl[5] = 8;
help[9] = 4; //Marcu Esenwein
help[10] = 14; //Rechets of Bogdan
Name[6] = "Marrden Nagrubs"; //Hivelord
Punkte[6] = 30;
Stuetze[6] = 2;
zahl[6] = 10;
help[11] = 51; //Su-Bak-Na
help[12] = 55; //Tor-Kul-Na
Name[7] = "Fyorlag Spiders"; //Predator
Punkte[7] = 40;
Stuetze[7] = 1;
zahl[7] = 12;
help[13] = 123; //Wyvern
Name[8] = "Ashigaru Yari";
Punkte[8] = 40;
Stuetze[8] = 0;
Name[9] = "Sonya Esenwein";
Punkte[9] = 45;
Stuetze[9] = 1;
zahl[9] = 13;
help[14] = 0; //Cyprien Esenwein
Name[10] = "Tarn Viking Warriors";
Punkte[10] = 50;
Stuetze[10] = 0;
Name[11] = "Arkmer"; //Elf
Punkte[11] = 50;
Stuetze[11] = 8;
zahl[11] = 14;
help[15] = 49; //Sonlen
help[16] = 47; //Ulginesh
help[17] = 33; //Syvarris
help[18] = 32; //Jorhdawn
help[19] = 27; //Chardris
help[20] = 25; //Emirroon
help[21] = 3; //Kyntella Gwyn
help[22] = 105; //Warriors of Ashra
Name[12] = "Marro Warriors";
Punkte[12] = 50;
Stuetze[12] = 0;
Name[13] = "Iskra Esenwein"; //Rechets of Bogdan
Punkte[13] = 50;
Stuetze[13] = 1;
zahl[13] = 22;
help[23] = 14; //Rechets of Bogdan
Name[14] = "Rechets of Bogdan"; //Iskra Esenwein
Punkte[14] = 50;
Stuetze[14] = 1;
zahl[14] = 23;
help[24] = 13; //Iskra Esenwein
Name[15] = "Marro Drudge";
Punkte[15] = 50;
Stuetze[15] = 0;
Name[16] = "Ashigaru Harquebus";
Punkte[16] = 60;
Stuetze[16] = 0;
Name[17] = "Izumi Samurai";
Punkte[17] = 60;
Stuetze[17] = 0;
Name[18] = "Shiori";
Punkte[18] = 60;
Stuetze[18] = 0;
Name[19] = "Marro Stingers";
Punkte[19] = 60;
Stuetze[19] = 0;
Name[20] = "Zettian Guards";
Punkte[20] = 70;
Stuetze[20] = 0;
Name[21] = "10th Regiment of Foot";
Punkte[21] = 75;
Stuetze[21] = 0;
Name[22] = "Thorgrimm the Viking Champion";
Punkte[22] = 80;
Stuetze[22] = 0;
Name[23] = "Finn the Viking Champion";
Punkte[23] = 80;
Stuetze[23] = 0;
Name[24] = "Realin the Kyrie Varrior";
Punkte[24] = 80;
Stuetze[24] = 0;
Name[25] = "Emirroon"; //Elf
Punkte[25] = 80;
Stuetze[25] = 8;
zahl[25] = 24;
help[25] = 49; //Sonlen
help[26] = 47; //Ulginesh
help[27] = 33; //Syvarris
help[28] = 32; //Jorhdawn
help[29] = 27; //Chardris
help[30] = 11; //Arkmer
help[31] = 3; //Kyntella Gwyn
help[32] = 105; //Warriors of Ashra
Name[26] = "Wolves of Badru"; //Darklord
Punkte[26] = 80;
Stuetze[26] = 1;
zahl[26] = 32;
help[33] = 154; //Werewolf Lord
Name[27] = "Chardris"; //Elf Wizard
Punkte[27] = 90;
Stuetze[27] = 5;
zahl[27] = 33;
help[34] = 3; //Kyntella Gwyn
help[35] = 11; //Arkmer
help[36] = 25; //Emirroon
help[37] = 32; //Jorhdawn
help[38] = 47; //Ulginesh
Name[28] = "Ne-Gok-Sa";
Punkte[28] = 90;
Stuetze[28] = 0;
Name[29] = "Warden 816"; //Guard
Punkte[29] = 90;
Stuetze[29] = 6;
zahl[29] = 38;
help[39] = 20; //Zettian Guards
help[40] = 6; //Marrden Nagrubs
help[41] = 5; //Dumutef Guard
help[42] = 99; //Drow Chainfighter
help[43] = 110; //Blastatrons
help[44] = 127; //Granite Guardians
Name[45] = "Krav Maga Agents";
Punkte[30] = 100;
Stuetze[30] = 0;
Name[31] = "Agent Carr";
Punkte[31] = 100;
Stuetze[31] = 0;
Name[32] = "Jorhdawn"; //Elf Wizard
Punkte[32] = 100;
Stuetze[32] = 5;
zahl[32] = 45;
help[46] = 3; //Kyntella Gwyn
help[47] = 11; //Arkmer
help[48] = 25; //Emirroon
help[49] = 27; //Chardris
help[50] = 47; //Ulginesh
Name[33] = "Syvarris";
Punkte[33] = 100;
Stuetze[33] = 0;
Name[34] = "Duend";
Punkte[34] = 110;
Stuetze[34] = 0;
Name[35] = "Airborne Elite";
Punkte[35] = 110;
Stuetze[35] = 0;
Name[36] = "Sgt. Drake Alexander";
Punkte[36] = 110;
Stuetze[36] = 0;
Name[37] = "Moriko";
Punkte[37] = 110;
Stuetze[37] = 0;
Name[38] = "Brunak";
Punkte[38] = 110;
Stuetze[38] = 0;
Name[39] = "Templar Cavalry";
Punkte[39] = 120;
Stuetze[39] = 0;
Name[40] = "Raelin the Kyrie Warrior";
Punkte[40] = 120;
Stuetze[40] = 0;
Name[41] = "Grimnak"; //Orc Warrior
Punkte[41] = 120;
Stuetze[41] = 1;
zahl[41] = 50;
help[51] = 88; //Blade Gruts
Name[42] = "Deathwalker 8000";
Punkte[42] = 130;
Stuetze[42] = 0;
Name[43] = "Grok Riders"; //Marror Warlord
Punkte[43] = 130;
Stuetze[43] = 1;
zahl[43] = 51;
help[52] = 28; //Ne-Gok-Sa
Name[44] = "Deathwalker 9000"; //Souldborg guard
Punkte[44] = 140;
Stuetze[44] = 2;
zahl[44] = 52;
help[53] = 20; //Zettian Guards
help[54] = 110; //Blastatrons
Name[45] = "Major Q10";
Punkte[45] = 150;
Stuetze[45] = 0;
Name[46] = "Sir Dupis"; //Knights
Punkte[46] = 150;
Stuetze[46] = 2;
zahl[46] = 54;
help[55] = 39; //Templar Cavalry
help[56] = 114; //Phantom Knights
Name[47] = "Ulginesh"; //Elf Wizard
Punkte[47] = 150;
Stuetze[47] = 5;
zahl[47] = 56;
help[57] = 3; //Kyntella Gwyn
help[58] = 11; //Arkmer
help[59] = 25; //Emirroon
help[60] = 27; //Chardris
help[61] = 32; //Jorhdawn
Name[48] = "Mimring";
Punkte[48] = 150;
Stuetze[48] = 0;
Name[49] = "Sonlen";
Punkte[49] = 160;
Stuetze[49] = 0;
Name[50] = "Marro Hive"; //small/medium common marro squad
Punkte[50] = 160;
Stuetze[50] = 3;
zahl[48] = 61;
help[62] = 19; //Marro Stingers
help[63] = 15; //Marro Drudge
help[64] = 82; //Marro Dividers
Name[51] = "Su-Bak-Na"; //marro/wulsino army card (20ger Wuerfel Faehigkeit
Punkte[51] = 160;
Stuetze[51] = 7;
zahl[51] = 64;
help[65] = 59; //Tor-Kul-Na
help[66] = 50; //Marro Hive
help[67] = 28; //Ne-Gok-Sa
help[68] = 62; //Marrden Hounds
help[69] = 19; //Marro Stingers
help[60] = 12; //Marro Warriors
help[71] = 82; //Marro Dividers
Name[52] = "Sgt. Drake Alexander";
Punkte[52] = 170;
Stuetze[52] = 0;
Name[53] = "Kato Katsuro"; //Samurai hero/squad
Punkte[53] = 200;
Stuetze[53] = 3;
zahl[53] = 71;
help[72] = 8; //Ashigaru Yari
help[73] = 16; //Ashigaru Harquebus
help[74] = 17; //Izumi Samurai
Name[54] = "Charos";
Punkte[54] = 210;
Stuetze[54] = 0;
Name[55] = "Tor-Kul-Na";
Punkte[55] = 220;
Stuetze[55] = 0;
Name[56] = "Johnny 'Shotgun' Sullivan";
Punkte[56] = 65;
Stuetze[56] = 0;
Name[57] = "Saylind the Kyrie Warrior";
Punkte[57] = 80;
Stuetze[57] = 0;
Name[58] = "Concan the Kyrie Warrior"; //Knights/Sentinels
Punkte[58] = 80;
Stuetze[58] = 4;
zahl[58] = 74;
help[75] = 65; //Sentinels of Jandar
help[76] = 46; //Sir Dupis
help[77] = 39; //Templar Cavalry
help[78] = 114; //Phantom Kights
Name[59] = "Shaolin Monks";
Punkte[59] = 80;
Stuetze[59] = 0;
Name[60] = "MacDirk Warriors"; //Human Champion
Punkte[60] = 80;
Stuetze[60] = 4;
zahl[60] = 78;
help[79] = 22; //Thorgrimm the Viking Champion
help[80] = 23; //Finn the Viking Champion
help[81] = 66; //Alistair MacDirk
help[82] = 120; //Sir Hawthorne
Name[61] = "Gorillinators";
Punkte[61] = 90;
Stuetze[61] = 0;
Name[62] = "Marrden Hounds";
Punkte[62] = 90;
Stuetze[62] = 0;
Name[63] = "Deathwalker 7000";
Punkte[63] = 100;
Stuetze[63] = 0;
Name[64] = "Microcorp Agents";
Punkte[64] = 100;
Stuetze[64] = 0;
Name[65] = "Sentinels of Jandar";
Punkte[65] = 110;
Stuetze[65] = 0;
Name[66] = "Alistair MacDirk";
Punkte[66] = 110;
Stuetze[66] = 0;
Name[67] = "Spider-Man";
Punkte[67] = 160;
Stuetze[67] = 0;
Name[68] = "Silver Surfer";
Punkte[68] = 320;
Stuetze[68] = 0;
Name[69] = "Abomination";
Punkte[69] = 320;
Stuetze[69] = 0;
Name[70] = "Thanos";
Punkte[70] = 360;
Stuetze[70] = 0;
Name[71] = "Captain Amerika";
Punkte[71] = 220;
Stuetze[71] = 0;
Name[72] = "Red Skull";
Punkte[72] = 190;
Stuetze[72] = 0;
Name[73] = "Doctor Doom";
Punkte[73] = 245;
Stuetze[73] = 0;
Name[74] = "Incredible Hulk";
Punkte[74] = 370;
Stuetze[74] = 0;
Name[75] = "Mohican River Tribe"; //unique Tribesman hero
Punkte[75] = 70;
Stuetze[75] = 1;
zahl[75] = 82;
help[83] = 84; //Brave Arrow
Name[76] = "Omnicron Repulsor"; //Jandar Souldborg
Punkte[76] = 40;
Stuetze[76] = 1;
zahl[76] = 83;
help[84] = 97; //Omnicron Snipers
Name[77] = "The Axegrinders of Burning Forge"; //Dwarf Hero
Punkte[77] = 70;
Stuetze[77] = 3;
zahl[77] = 84;
help[85] = 86; //Migol Ironwill
help[86] = 109; //Darrak Ambershardd
help[87] = 132; //Morgrimm Forgehammer
Name[78] = "Venom";
Punkte[78] = 150;
Stuetze[78] = 0;
Name[79] = "Iron Man";
Punkte[79] = 240;
Stuetze[79] = 0;
Name[80] = "Capuan Gladiators"; //human Gladiator Hero /Gladiator
Punkte[80] = 70;
Stuetze[80] = 0;
Name[81] = "Protectors of Ullar";
Punkte[81] = 110;
Stuetze[81] = 0;
Name[82] = "Marro Dividers";
Punkte[82] = 50;
Stuetze[82] = 0;
Name[83] = "Atlaga the Kyrie Warrior"; //Kyrie
Punkte[83] = 90;
Stuetze[83] = 8;
zahl[83] = 87;
help[88] = 65; //Sentinels of Jandar
help[89] = 81; //Protectors of Ullar
help[90] = 57; //Saylind the Kyrie Warrior
help[91] = 58; //Concan the Kyrie Warrior
help[92] = 24; //Raelin the Kyrie Warrior
help[93] = 40; //Raelin the Kyrie Warrior
help[94] = 90; //Kelda the Kyrie Warrior
help[95] = 92; //Taelord the Kyrie Warrior
Name[84] = "Brave Arrow"; //Scout
Punkte[84] = 50;
Stuetze[84] = 4;
zahl[84] = 95;
help[96] = 7; //Fyorlag Spyders
help[97] = 157; //Venoc Vipers
help[98] = 75; //Mohican River Tribe
help[99] = 126; //Elite Onyx Vipers
Name[85] = "Kumiko";
Punkte[85] = 80;
Stuetze[85] = 0;
Name[86] = "Migol Ironwill";
Punkte[86] = 110;
Stuetze[86] = 0;
Name[87] = "Tul-Bak-Ra"; //Marro Squad
Punkte[87] = 130;
Stuetze[87] = 5;
zahl[87] = 99;
help[100] = 19; //Marro Stingers
help[101] = 15; //Marro Drudge
help[102] = 82; //Marro Dividers
help[103] = 43; //Grok Riders
help[104] = 12; //Marro Warriors
Name[88] = "Blade Gruts"; //Orc Champion
Punkte[88] = 40;
Stuetze[88] = 3;
zahl[88] = 104;
help[105] = 94; //Tornak
help[106] = 106; //Nerak the Glacian Swog Rider
help[107] = 41; //Grimnak
Name[89] = "Arrow Gruts"; //Beast
Punkte[89] = 40;
Stuetze[89] = 2;
zahl[89] = 107;
help[108] = 48; //Mimring
help[109] = 117; //Ice Troll Berserker
Name[90] = "Kelda the Kyrie Warrior";
Punkte[90] = 80;
Stuetze[90] = 0;
Name[91] = "Marcus Decimus Gallus"; //Soldier
Punkte[91] = 100;
Stuetze[91] = 6;
zahl[91] = 109;
help[110] = 96; //Roman Legionnaires
help[111] = 35; //Sgt. Drake Alexander
help[112] = 36; //Airborne Elite
help[113] = 52; //Sgt. Drake Alexander
help[114] = 71; //Catain Amerika
help[115] = 147; //Warforge Soldier
Name[92] = "Taelord the Kyrie Warrior";
Punkte[92] = 180;
Stuetze[92] = 0;
Name[93] = "Venoc Warlord"; //Scout/frency power
Punkte[93] = 120;
Stuetze[93] = 4;
zahl[93] = 115;
help[116] = 7; //Fyorlag Spyders
help[117] = 157; //Venoc Vipers
help[118] = 75; //Mohican River Tribe
help[119] = 126; //Elite Onyx Vipers
Name[94] = "Tornak"; //Orc Warrior
Punkte[94] = 100;
Stuetze[94] = 1;
zahl[94] = 119;
help[120] = 88; //Blade Gruts
Name[95] = "Roman Archers";
Punkte[95] = 55;
Stuetze[95] = 0;
Name[96] = "Roman Legionnaires"; //Warlords
Punkte[96] = 50;
Stuetze[96] = 5;
zahl[96] = 119;
help[120] = 91; //Marcus Decimus Gallus
help[121] = 92; //Taelord the Kyrie Warrior
help[122] = 93; //Venoc Warlord
help[123] = 132; //Morgrimm Forgehammer
help[124] = 28; // Ne-Gok-Sa
Name[97] = "Omnicron Snipers";
Punkte[97] = 100;
Stuetze[97] = 0;
Name[98] = "Sahuagin Raider";
Punkte[98] = 25;
Stuetze[98] = 0;
Name[99] = "Drow Chainfighter";
Punkte[99] = 25;
Stuetze[99] = 0;
Name[100] = "Water Elemental";
Punkte[100] = 30;
Stuetze[100] = 0;
Name[101] = "Air Elemental";
Punkte[101] = 30;
Stuetze[101] = 0;
Name[102] = "Fire Elemental";
Punkte[102] = 35;
Stuetze[102] = 0;
Name[103] = "Earth Elemental";
Punkte[103] = 35;
Stuetze[103] = 0;
Name[104] = "Deathreavers";
Punkte[104] = 40;
Stuetze[104] = 0;
Name[105] = "Warriors of Ashra";
Punkte[105] = 50;
Stuetze[105] = 0;
Name[106] = "Nerak the Glacian Swog Rider"; //Orcs
Punkte[106] = 50;
Stuetze[106] = 5;
zahl[106] = 124;
help[125] = 88; //Blade Gruts
help[126] = 89; //Arrow Gruts
help[127] = 107; //Death Chasers of Thesk
help[128] = 94; //Tornak
help[129] = 41; //Grimnak
Name[107] = "Death Chasers of Theesk"; //Large and Wild Hero
Punkte[107] = 55;
Stuetze[107] = 3;
zahl[107] = 129;
help[130] = 106; //Nerak the Glacian Swog Rider
help[131] = 122; //Ogre Pulverizer
help[132] = 155; //Ogre Warhulk
Name[108] = "Greenscale Warriors";
Punkte[108] = 60;
Stuetze[108] = 0;
Name[109] = "Darrak Ambershardd";
Punkte[109] = 60;
Stuetze[109] = 0;
Name[110] = "Blastatrons"; //Gladiatrons/Vydar Souldborgs
Punkte[110] = 60;
Stuetze[110] = 1;
zahl[110] = 132;
help[133] = 45; //Major Q10
Name[111] = "Death Knights of Valkrill"; //small,medium or large relentless hero
Punkte[111] = 60;
Stuetze[111] = 4;
zahl[111] = 133;
help[134] = 4; //Marvu Esenwein
help[135] = 120; //Sir Hawthorne
help[136] = 92; //Taelord the Kyrie Warrior
help[137] = 101; //Air Elemental
Name[112] = "Mezzedemon Warmongers";
Punkte[112] = 65;
Stuetze[112] = 0;
Name[113] = "Deepwyrm Drow";
Punkte[113] = 70;
Stuetze[113] = 0;
Name[114] = "Phantom Knights";
Punkte[114] = 70;
Stuetze[114] = 0;
Name[115] = "Horned Skull Brutes"; //small goblins
Punkte[115] = 75;
Stuetze[115] = 1;
zahl[115] = 137;
help[138] = 146; //Goblin Cutters
Name[116] = "Erevan Sunshadow";
Punkte[116] = 80;
Stuetze[116] = 0;
Name[117] = "Ice Troll Berserker";
Punkte[117] = 85;
Stuetze[117] = 0;
Name[118] = "Feral Troll";
Punkte[118] = 90;
Stuetze[118] = 0;
Name[119] = "Brandis Skyhunter";
Punkte[119] = 90;
Stuetze[119] = 0;
Name[120] = "Sir Hawthorne";
Punkte[120] = 90;
Stuetze[120] = 0;
Name[121] = "Ogre Pulverizer";
Punkte[121] = 100;
Stuetze[121] = 0;
Name[122] = "Ana Karithon";
Punkte[122] = 100;
Stuetze[122] = 0;
Name[123] = "Wyvern";
Punkte[123] = 100;
Stuetze[123] = 0;
Name[124] = "Pelloth"; //Drow
Punkte[124] = 100;
Stuetze[124] = 3;
zahl[124] = 138;
help[139] = 158; //Estivara
help[140] = 113; //Deepwyrm Drow
help[141] = 99; //Drow Chainfighter
Name[125] = "Deathstalker";
Punkte[125] = 100;
Stuetze[125] = 0;
Name[126] = "Elite Onyx Vipers";
Punkte[126] = 100;
Stuetze[126] = 0;
Name[127] = "Granite Guardians";
Punkte[127] = 100;
Stuetze[127] = 0;
Name[128] = "Sharwin Wildborn";
Punkte[128] = 110;
Stuetze[128] = 0;
Name[129] = "Quassatch Hunters";
Punkte[129] = 100;
Stuetze[129] = 0;
Name[130] = "Evar Scarcarver";
Punkte[130] = 110;
Stuetze[130] = 0;
Name[131] = "Fen Hydra";
Punkte[131] = 120;
Stuetze[131] = 0;
Name[132] = "Morgrimm Forgehammer";
Punkte[132] = 120;
Stuetze[132] = 0;
Name[133] = "Torin";
Punkte[133] = 120;
Stuetze[133] = 0;
Name[134] = "Tandros Kreel";
Punkte[134] = 120;
Stuetze[134] = 0;
Name[135] = "Siege";
Punkte[135] = 120;
Stuetze[135] = 0;
Name[136] = "Greater Ice Elemental";
Punkte[136] = 130;
Stuetze[136] = 0;
Name[137] = "Eltahal";
Punkte[137] = 140;
Stuetze[137] = 0;
Name[138] = "Othkurik the black Dragon";
Punkte[138] = 140;
Stuetze[138] = 0;
Name[139] = "Frost Giant of Morh";
Punkte[139] = 140;
Stuetze[139] = 0;
Name[140] = "Master of the Hunt";
Punkte[140] = 140;
Stuetze[140] = 0;
Name[141] = "Moltenclaw";
Punkte[141] = 170;
Stuetze[141] = 0;
Name[142] = "Black Wyrmling"; //Wyrmling
Punkte[142] = 30;
Stuetze[142] = 3;
zahl[142] = 141;
help[142] = 143; //Red Wyrmling
help[143] = 144; //White Wyrmling
help[144] = 145; //Blue Wyrmling
Name[143] = "Red Wyrmling"; //Wyrmling
Punkte[143] = 30;
Stuetze[143] = 3;
zahl[142] = 144;
help[145] = 142; //Black Wyrmling
help[146] = 144; //White Wyrmling
help[147] = 145; //Blue Wyrmling
Name[144] = "White Wyrmling"; //Wyrmling
Punkte[144] = 30;
Stuetze[144] = 3;
zahl[142] = 147;
help[148] = 143; //Red Wyrmling
help[149] = 142; //Black Wyrmling
help[150] = 145; //Blue Wyrmling
Name[145] = "Blue Wyrmling"; //Wyrmling
Punkte[145] = 35;
Stuetze[145] = 3;
zahl[142] = 150;
help[151] = 143; //Red Wyrmling
help[152] = 144; //White Wyrmling
help[153] = 142; //Black Wyrmling
Name[146] = "Goblin Cutters";
Punkte[146] = 50;
Stuetze[146] = 0;
Name[147] = "Warforge Soldiers";
Punkte[147] = 80;
Stuetze[147] = 0;
Name[148] = "Heirloom";
Punkte[148] = 90;
Stuetze[148] = 0;
Name[149] = "Iron golem";
Punkte[149] = 100;
Stuetze[149] = 0;
Name[150] = "Mind Flayer Mastermind";
Punkte[150] = 100;
Stuetze[150] = 0;
Name[151] = "Mika Connour";
Punkte[151] = 110;
Stuetze[151] = 0;
Name[152] = "Rhogar Dragonspine";
Punkte[152] = 110;
Stuetze[152] = 0;
Name[153] = "Kurrok the Elementalist"; //kleiner oder mittlerer Elemental
Punkte[153] = 120;
Stuetze[153] = 4;
zahl[153] = 153;
help[154] = 110; //Water Elemental
help[155] = 111; //Air Elemtental
help[156] = 112; //Fire Elemental
help[157] = 113; //Earth Elemental
Name[154] = "Werewolf Lord";
Punkte[154] = 140;
Stuetze[154] = 0;
Name[155] = "Ogre Warhulk";
Punkte[155] = 150;
Stuetze[155] = 0;
Name[156] = "Shurrok";
Punkte[156] = 160;
Stuetze[156] = 0;
Name[157] = "Venoc Vipers";
Punkte[157] = 40;
Stuetze[157] = 0;
Name[158] = "Estivara";
Punkte[158] = 80;
Stuetze[158] = 1;
zahl[158] = 157;
help[158] = 7; //Fyorlag Spiders
for (int i=0;i<=158;i++)
{
nochda = 1;
nochda[6] = 2;
nochda[15] = 2;
nochda[19] = 2;
}
}
public void Zufallsmonster (int PunkteproSpieler, int Spielerzahl)
{
int a = PunkteproSpieler;
int b = Spielerzahl;
int p = 0;
for(int j = 1; j<=Spielerzahl; j++)
{
p = 0;
System.out.println("Spieler" + j + ":");
while (p < a)
{
int k = (int) ((Math.random() * 158)+1);
if (nochda[k]>=1&&k!=159)
{
System.out.println(Name[k]+" "+Punkte[k]);
nochda[k]=nochda[k]-1;
p=p+Punkte[k];
int c = (int) (Math.random()*10);
int g = 10;
while(c<7 && Stuetze[k]>0 && p < a)
{
int d = (int) (((Math.random() * Stuetze[k]) +1) + zahl[k]);
if (nochda[help[d]]!=0&&d!=Stuetze[k]+1+zahl[k])
{
System.out.println(Name[help[d]]+" "+Punkte[help[d]]);
nochda[help[d]]=nochda[help[d]]-1;
p=p+Punkte[help[d]];
for (int l = d;l<=Stuetze[k]-1;l++ )
{
help[l]=help[l+1];
Stuetze[k]=Stuetze[k]-1;
}
c = (int)(Math.random()*g);
g = g-1;
}
}
}
}
System.out.println("Gesamtpunkte : " + p);
System.out.println("-------------------------------------------");
}
}
}
I wanted to write a program for a table top Game (Heroscape, which should give me random units and if a unit got support units there should be a chance that it give me them too. And that until i got my points.
Tt do like planned for some units but then just stop to give out anymore and just loading .... hope somebody can help me.... if there are questions pls just ask them
public class ZufaelligeFiguren
{
public String [] Name;
public int [] Punkte;
public int [] Stuetze;
public int [] help;
public int [] zahl;
public int [] nochda;
public ZufaelligeFiguren()
{
Name = new String [159];
Stuetze = new int [159];
Punkte = new int [159];
nochda = new int [159];
help = new int [159];
zahl = new int [159];
Name[0] = "Cyprien Esenwein";
Punkte[0] = 150;
Stuetze[0] = 0;
Name[1] = "Otonashi";
Punkte[1] = 10;
Stuetze[1] = 0;
Name[2] = "Isamu";
Punkte[2] = 10;
Stuetze[2] = 0;
Name[3] = "Kyntela Gwyn"; //Elf
Punkte[3] = 20;
Stuetze[3] = 8;
zahl[3] = 0;
help[1] = 49; //Sonlen
help[2] = 47; //Ulginesh
help[3] = 33; //Syvarris
help[4] = 32; //Jorhdawn
help[5] = 27; //Chardris
help[6] = 25; //Emirroon
help[7] = 11; //Arkmer
help[8] = 105; //Warriors of Ashra
Name[4] = "Marcu Esenwein";
Punkte[4] = 20;
Stuetze[4] = 0;
Name[5] = "Dumutef Guard" ; //Devourer
Punkte[5] = 25;
Stuetze[5] = 2;
zahl[5] = 8;
help[9] = 4; //Marcu Esenwein
help[10] = 14; //Rechets of Bogdan
Name[6] = "Marrden Nagrubs"; //Hivelord
Punkte[6] = 30;
Stuetze[6] = 2;
zahl[6] = 10;
help[11] = 51; //Su-Bak-Na
help[12] = 55; //Tor-Kul-Na
Name[7] = "Fyorlag Spiders"; //Predator
Punkte[7] = 40;
Stuetze[7] = 1;
zahl[7] = 12;
help[13] = 123; //Wyvern
Name[8] = "Ashigaru Yari";
Punkte[8] = 40;
Stuetze[8] = 0;
Name[9] = "Sonya Esenwein";
Punkte[9] = 45;
Stuetze[9] = 1;
zahl[9] = 13;
help[14] = 0; //Cyprien Esenwein
Name[10] = "Tarn Viking Warriors";
Punkte[10] = 50;
Stuetze[10] = 0;
Name[11] = "Arkmer"; //Elf
Punkte[11] = 50;
Stuetze[11] = 8;
zahl[11] = 14;
help[15] = 49; //Sonlen
help[16] = 47; //Ulginesh
help[17] = 33; //Syvarris
help[18] = 32; //Jorhdawn
help[19] = 27; //Chardris
help[20] = 25; //Emirroon
help[21] = 3; //Kyntella Gwyn
help[22] = 105; //Warriors of Ashra
Name[12] = "Marro Warriors";
Punkte[12] = 50;
Stuetze[12] = 0;
Name[13] = "Iskra Esenwein"; //Rechets of Bogdan
Punkte[13] = 50;
Stuetze[13] = 1;
zahl[13] = 22;
help[23] = 14; //Rechets of Bogdan
Name[14] = "Rechets of Bogdan"; //Iskra Esenwein
Punkte[14] = 50;
Stuetze[14] = 1;
zahl[14] = 23;
help[24] = 13; //Iskra Esenwein
Name[15] = "Marro Drudge";
Punkte[15] = 50;
Stuetze[15] = 0;
Name[16] = "Ashigaru Harquebus";
Punkte[16] = 60;
Stuetze[16] = 0;
Name[17] = "Izumi Samurai";
Punkte[17] = 60;
Stuetze[17] = 0;
Name[18] = "Shiori";
Punkte[18] = 60;
Stuetze[18] = 0;
Name[19] = "Marro Stingers";
Punkte[19] = 60;
Stuetze[19] = 0;
Name[20] = "Zettian Guards";
Punkte[20] = 70;
Stuetze[20] = 0;
Name[21] = "10th Regiment of Foot";
Punkte[21] = 75;
Stuetze[21] = 0;
Name[22] = "Thorgrimm the Viking Champion";
Punkte[22] = 80;
Stuetze[22] = 0;
Name[23] = "Finn the Viking Champion";
Punkte[23] = 80;
Stuetze[23] = 0;
Name[24] = "Realin the Kyrie Varrior";
Punkte[24] = 80;
Stuetze[24] = 0;
Name[25] = "Emirroon"; //Elf
Punkte[25] = 80;
Stuetze[25] = 8;
zahl[25] = 24;
help[25] = 49; //Sonlen
help[26] = 47; //Ulginesh
help[27] = 33; //Syvarris
help[28] = 32; //Jorhdawn
help[29] = 27; //Chardris
help[30] = 11; //Arkmer
help[31] = 3; //Kyntella Gwyn
help[32] = 105; //Warriors of Ashra
Name[26] = "Wolves of Badru"; //Darklord
Punkte[26] = 80;
Stuetze[26] = 1;
zahl[26] = 32;
help[33] = 154; //Werewolf Lord
Name[27] = "Chardris"; //Elf Wizard
Punkte[27] = 90;
Stuetze[27] = 5;
zahl[27] = 33;
help[34] = 3; //Kyntella Gwyn
help[35] = 11; //Arkmer
help[36] = 25; //Emirroon
help[37] = 32; //Jorhdawn
help[38] = 47; //Ulginesh
Name[28] = "Ne-Gok-Sa";
Punkte[28] = 90;
Stuetze[28] = 0;
Name[29] = "Warden 816"; //Guard
Punkte[29] = 90;
Stuetze[29] = 6;
zahl[29] = 38;
help[39] = 20; //Zettian Guards
help[40] = 6; //Marrden Nagrubs
help[41] = 5; //Dumutef Guard
help[42] = 99; //Drow Chainfighter
help[43] = 110; //Blastatrons
help[44] = 127; //Granite Guardians
Name[45] = "Krav Maga Agents";
Punkte[30] = 100;
Stuetze[30] = 0;
Name[31] = "Agent Carr";
Punkte[31] = 100;
Stuetze[31] = 0;
Name[32] = "Jorhdawn"; //Elf Wizard
Punkte[32] = 100;
Stuetze[32] = 5;
zahl[32] = 45;
help[46] = 3; //Kyntella Gwyn
help[47] = 11; //Arkmer
help[48] = 25; //Emirroon
help[49] = 27; //Chardris
help[50] = 47; //Ulginesh
Name[33] = "Syvarris";
Punkte[33] = 100;
Stuetze[33] = 0;
Name[34] = "Duend";
Punkte[34] = 110;
Stuetze[34] = 0;
Name[35] = "Airborne Elite";
Punkte[35] = 110;
Stuetze[35] = 0;
Name[36] = "Sgt. Drake Alexander";
Punkte[36] = 110;
Stuetze[36] = 0;
Name[37] = "Moriko";
Punkte[37] = 110;
Stuetze[37] = 0;
Name[38] = "Brunak";
Punkte[38] = 110;
Stuetze[38] = 0;
Name[39] = "Templar Cavalry";
Punkte[39] = 120;
Stuetze[39] = 0;
Name[40] = "Raelin the Kyrie Warrior";
Punkte[40] = 120;
Stuetze[40] = 0;
Name[41] = "Grimnak"; //Orc Warrior
Punkte[41] = 120;
Stuetze[41] = 1;
zahl[41] = 50;
help[51] = 88; //Blade Gruts
Name[42] = "Deathwalker 8000";
Punkte[42] = 130;
Stuetze[42] = 0;
Name[43] = "Grok Riders"; //Marror Warlord
Punkte[43] = 130;
Stuetze[43] = 1;
zahl[43] = 51;
help[52] = 28; //Ne-Gok-Sa
Name[44] = "Deathwalker 9000"; //Souldborg guard
Punkte[44] = 140;
Stuetze[44] = 2;
zahl[44] = 52;
help[53] = 20; //Zettian Guards
help[54] = 110; //Blastatrons
Name[45] = "Major Q10";
Punkte[45] = 150;
Stuetze[45] = 0;
Name[46] = "Sir Dupis"; //Knights
Punkte[46] = 150;
Stuetze[46] = 2;
zahl[46] = 54;
help[55] = 39; //Templar Cavalry
help[56] = 114; //Phantom Knights
Name[47] = "Ulginesh"; //Elf Wizard
Punkte[47] = 150;
Stuetze[47] = 5;
zahl[47] = 56;
help[57] = 3; //Kyntella Gwyn
help[58] = 11; //Arkmer
help[59] = 25; //Emirroon
help[60] = 27; //Chardris
help[61] = 32; //Jorhdawn
Name[48] = "Mimring";
Punkte[48] = 150;
Stuetze[48] = 0;
Name[49] = "Sonlen";
Punkte[49] = 160;
Stuetze[49] = 0;
Name[50] = "Marro Hive"; //small/medium common marro squad
Punkte[50] = 160;
Stuetze[50] = 3;
zahl[48] = 61;
help[62] = 19; //Marro Stingers
help[63] = 15; //Marro Drudge
help[64] = 82; //Marro Dividers
Name[51] = "Su-Bak-Na"; //marro/wulsino army card (20ger Wuerfel Faehigkeit
Punkte[51] = 160;
Stuetze[51] = 7;
zahl[51] = 64;
help[65] = 59; //Tor-Kul-Na
help[66] = 50; //Marro Hive
help[67] = 28; //Ne-Gok-Sa
help[68] = 62; //Marrden Hounds
help[69] = 19; //Marro Stingers
help[60] = 12; //Marro Warriors
help[71] = 82; //Marro Dividers
Name[52] = "Sgt. Drake Alexander";
Punkte[52] = 170;
Stuetze[52] = 0;
Name[53] = "Kato Katsuro"; //Samurai hero/squad
Punkte[53] = 200;
Stuetze[53] = 3;
zahl[53] = 71;
help[72] = 8; //Ashigaru Yari
help[73] = 16; //Ashigaru Harquebus
help[74] = 17; //Izumi Samurai
Name[54] = "Charos";
Punkte[54] = 210;
Stuetze[54] = 0;
Name[55] = "Tor-Kul-Na";
Punkte[55] = 220;
Stuetze[55] = 0;
Name[56] = "Johnny 'Shotgun' Sullivan";
Punkte[56] = 65;
Stuetze[56] = 0;
Name[57] = "Saylind the Kyrie Warrior";
Punkte[57] = 80;
Stuetze[57] = 0;
Name[58] = "Concan the Kyrie Warrior"; //Knights/Sentinels
Punkte[58] = 80;
Stuetze[58] = 4;
zahl[58] = 74;
help[75] = 65; //Sentinels of Jandar
help[76] = 46; //Sir Dupis
help[77] = 39; //Templar Cavalry
help[78] = 114; //Phantom Kights
Name[59] = "Shaolin Monks";
Punkte[59] = 80;
Stuetze[59] = 0;
Name[60] = "MacDirk Warriors"; //Human Champion
Punkte[60] = 80;
Stuetze[60] = 4;
zahl[60] = 78;
help[79] = 22; //Thorgrimm the Viking Champion
help[80] = 23; //Finn the Viking Champion
help[81] = 66; //Alistair MacDirk
help[82] = 120; //Sir Hawthorne
Name[61] = "Gorillinators";
Punkte[61] = 90;
Stuetze[61] = 0;
Name[62] = "Marrden Hounds";
Punkte[62] = 90;
Stuetze[62] = 0;
Name[63] = "Deathwalker 7000";
Punkte[63] = 100;
Stuetze[63] = 0;
Name[64] = "Microcorp Agents";
Punkte[64] = 100;
Stuetze[64] = 0;
Name[65] = "Sentinels of Jandar";
Punkte[65] = 110;
Stuetze[65] = 0;
Name[66] = "Alistair MacDirk";
Punkte[66] = 110;
Stuetze[66] = 0;
Name[67] = "Spider-Man";
Punkte[67] = 160;
Stuetze[67] = 0;
Name[68] = "Silver Surfer";
Punkte[68] = 320;
Stuetze[68] = 0;
Name[69] = "Abomination";
Punkte[69] = 320;
Stuetze[69] = 0;
Name[70] = "Thanos";
Punkte[70] = 360;
Stuetze[70] = 0;
Name[71] = "Captain Amerika";
Punkte[71] = 220;
Stuetze[71] = 0;
Name[72] = "Red Skull";
Punkte[72] = 190;
Stuetze[72] = 0;
Name[73] = "Doctor Doom";
Punkte[73] = 245;
Stuetze[73] = 0;
Name[74] = "Incredible Hulk";
Punkte[74] = 370;
Stuetze[74] = 0;
Name[75] = "Mohican River Tribe"; //unique Tribesman hero
Punkte[75] = 70;
Stuetze[75] = 1;
zahl[75] = 82;
help[83] = 84; //Brave Arrow
Name[76] = "Omnicron Repulsor"; //Jandar Souldborg
Punkte[76] = 40;
Stuetze[76] = 1;
zahl[76] = 83;
help[84] = 97; //Omnicron Snipers
Name[77] = "The Axegrinders of Burning Forge"; //Dwarf Hero
Punkte[77] = 70;
Stuetze[77] = 3;
zahl[77] = 84;
help[85] = 86; //Migol Ironwill
help[86] = 109; //Darrak Ambershardd
help[87] = 132; //Morgrimm Forgehammer
Name[78] = "Venom";
Punkte[78] = 150;
Stuetze[78] = 0;
Name[79] = "Iron Man";
Punkte[79] = 240;
Stuetze[79] = 0;
Name[80] = "Capuan Gladiators"; //human Gladiator Hero /Gladiator
Punkte[80] = 70;
Stuetze[80] = 0;
Name[81] = "Protectors of Ullar";
Punkte[81] = 110;
Stuetze[81] = 0;
Name[82] = "Marro Dividers";
Punkte[82] = 50;
Stuetze[82] = 0;
Name[83] = "Atlaga the Kyrie Warrior"; //Kyrie
Punkte[83] = 90;
Stuetze[83] = 8;
zahl[83] = 87;
help[88] = 65; //Sentinels of Jandar
help[89] = 81; //Protectors of Ullar
help[90] = 57; //Saylind the Kyrie Warrior
help[91] = 58; //Concan the Kyrie Warrior
help[92] = 24; //Raelin the Kyrie Warrior
help[93] = 40; //Raelin the Kyrie Warrior
help[94] = 90; //Kelda the Kyrie Warrior
help[95] = 92; //Taelord the Kyrie Warrior
Name[84] = "Brave Arrow"; //Scout
Punkte[84] = 50;
Stuetze[84] = 4;
zahl[84] = 95;
help[96] = 7; //Fyorlag Spyders
help[97] = 157; //Venoc Vipers
help[98] = 75; //Mohican River Tribe
help[99] = 126; //Elite Onyx Vipers
Name[85] = "Kumiko";
Punkte[85] = 80;
Stuetze[85] = 0;
Name[86] = "Migol Ironwill";
Punkte[86] = 110;
Stuetze[86] = 0;
Name[87] = "Tul-Bak-Ra"; //Marro Squad
Punkte[87] = 130;
Stuetze[87] = 5;
zahl[87] = 99;
help[100] = 19; //Marro Stingers
help[101] = 15; //Marro Drudge
help[102] = 82; //Marro Dividers
help[103] = 43; //Grok Riders
help[104] = 12; //Marro Warriors
Name[88] = "Blade Gruts"; //Orc Champion
Punkte[88] = 40;
Stuetze[88] = 3;
zahl[88] = 104;
help[105] = 94; //Tornak
help[106] = 106; //Nerak the Glacian Swog Rider
help[107] = 41; //Grimnak
Name[89] = "Arrow Gruts"; //Beast
Punkte[89] = 40;
Stuetze[89] = 2;
zahl[89] = 107;
help[108] = 48; //Mimring
help[109] = 117; //Ice Troll Berserker
Name[90] = "Kelda the Kyrie Warrior";
Punkte[90] = 80;
Stuetze[90] = 0;
Name[91] = "Marcus Decimus Gallus"; //Soldier
Punkte[91] = 100;
Stuetze[91] = 6;
zahl[91] = 109;
help[110] = 96; //Roman Legionnaires
help[111] = 35; //Sgt. Drake Alexander
help[112] = 36; //Airborne Elite
help[113] = 52; //Sgt. Drake Alexander
help[114] = 71; //Catain Amerika
help[115] = 147; //Warforge Soldier
Name[92] = "Taelord the Kyrie Warrior";
Punkte[92] = 180;
Stuetze[92] = 0;
Name[93] = "Venoc Warlord"; //Scout/frency power
Punkte[93] = 120;
Stuetze[93] = 4;
zahl[93] = 115;
help[116] = 7; //Fyorlag Spyders
help[117] = 157; //Venoc Vipers
help[118] = 75; //Mohican River Tribe
help[119] = 126; //Elite Onyx Vipers
Name[94] = "Tornak"; //Orc Warrior
Punkte[94] = 100;
Stuetze[94] = 1;
zahl[94] = 119;
help[120] = 88; //Blade Gruts
Name[95] = "Roman Archers";
Punkte[95] = 55;
Stuetze[95] = 0;
Name[96] = "Roman Legionnaires"; //Warlords
Punkte[96] = 50;
Stuetze[96] = 5;
zahl[96] = 119;
help[120] = 91; //Marcus Decimus Gallus
help[121] = 92; //Taelord the Kyrie Warrior
help[122] = 93; //Venoc Warlord
help[123] = 132; //Morgrimm Forgehammer
help[124] = 28; // Ne-Gok-Sa
Name[97] = "Omnicron Snipers";
Punkte[97] = 100;
Stuetze[97] = 0;
Name[98] = "Sahuagin Raider";
Punkte[98] = 25;
Stuetze[98] = 0;
Name[99] = "Drow Chainfighter";
Punkte[99] = 25;
Stuetze[99] = 0;
Name[100] = "Water Elemental";
Punkte[100] = 30;
Stuetze[100] = 0;
Name[101] = "Air Elemental";
Punkte[101] = 30;
Stuetze[101] = 0;
Name[102] = "Fire Elemental";
Punkte[102] = 35;
Stuetze[102] = 0;
Name[103] = "Earth Elemental";
Punkte[103] = 35;
Stuetze[103] = 0;
Name[104] = "Deathreavers";
Punkte[104] = 40;
Stuetze[104] = 0;
Name[105] = "Warriors of Ashra";
Punkte[105] = 50;
Stuetze[105] = 0;
Name[106] = "Nerak the Glacian Swog Rider"; //Orcs
Punkte[106] = 50;
Stuetze[106] = 5;
zahl[106] = 124;
help[125] = 88; //Blade Gruts
help[126] = 89; //Arrow Gruts
help[127] = 107; //Death Chasers of Thesk
help[128] = 94; //Tornak
help[129] = 41; //Grimnak
Name[107] = "Death Chasers of Theesk"; //Large and Wild Hero
Punkte[107] = 55;
Stuetze[107] = 3;
zahl[107] = 129;
help[130] = 106; //Nerak the Glacian Swog Rider
help[131] = 122; //Ogre Pulverizer
help[132] = 155; //Ogre Warhulk
Name[108] = "Greenscale Warriors";
Punkte[108] = 60;
Stuetze[108] = 0;
Name[109] = "Darrak Ambershardd";
Punkte[109] = 60;
Stuetze[109] = 0;
Name[110] = "Blastatrons"; //Gladiatrons/Vydar Souldborgs
Punkte[110] = 60;
Stuetze[110] = 1;
zahl[110] = 132;
help[133] = 45; //Major Q10
Name[111] = "Death Knights of Valkrill"; //small,medium or large relentless hero
Punkte[111] = 60;
Stuetze[111] = 4;
zahl[111] = 133;
help[134] = 4; //Marvu Esenwein
help[135] = 120; //Sir Hawthorne
help[136] = 92; //Taelord the Kyrie Warrior
help[137] = 101; //Air Elemental
Name[112] = "Mezzedemon Warmongers";
Punkte[112] = 65;
Stuetze[112] = 0;
Name[113] = "Deepwyrm Drow";
Punkte[113] = 70;
Stuetze[113] = 0;
Name[114] = "Phantom Knights";
Punkte[114] = 70;
Stuetze[114] = 0;
Name[115] = "Horned Skull Brutes"; //small goblins
Punkte[115] = 75;
Stuetze[115] = 1;
zahl[115] = 137;
help[138] = 146; //Goblin Cutters
Name[116] = "Erevan Sunshadow";
Punkte[116] = 80;
Stuetze[116] = 0;
Name[117] = "Ice Troll Berserker";
Punkte[117] = 85;
Stuetze[117] = 0;
Name[118] = "Feral Troll";
Punkte[118] = 90;
Stuetze[118] = 0;
Name[119] = "Brandis Skyhunter";
Punkte[119] = 90;
Stuetze[119] = 0;
Name[120] = "Sir Hawthorne";
Punkte[120] = 90;
Stuetze[120] = 0;
Name[121] = "Ogre Pulverizer";
Punkte[121] = 100;
Stuetze[121] = 0;
Name[122] = "Ana Karithon";
Punkte[122] = 100;
Stuetze[122] = 0;
Name[123] = "Wyvern";
Punkte[123] = 100;
Stuetze[123] = 0;
Name[124] = "Pelloth"; //Drow
Punkte[124] = 100;
Stuetze[124] = 3;
zahl[124] = 138;
help[139] = 158; //Estivara
help[140] = 113; //Deepwyrm Drow
help[141] = 99; //Drow Chainfighter
Name[125] = "Deathstalker";
Punkte[125] = 100;
Stuetze[125] = 0;
Name[126] = "Elite Onyx Vipers";
Punkte[126] = 100;
Stuetze[126] = 0;
Name[127] = "Granite Guardians";
Punkte[127] = 100;
Stuetze[127] = 0;
Name[128] = "Sharwin Wildborn";
Punkte[128] = 110;
Stuetze[128] = 0;
Name[129] = "Quassatch Hunters";
Punkte[129] = 100;
Stuetze[129] = 0;
Name[130] = "Evar Scarcarver";
Punkte[130] = 110;
Stuetze[130] = 0;
Name[131] = "Fen Hydra";
Punkte[131] = 120;
Stuetze[131] = 0;
Name[132] = "Morgrimm Forgehammer";
Punkte[132] = 120;
Stuetze[132] = 0;
Name[133] = "Torin";
Punkte[133] = 120;
Stuetze[133] = 0;
Name[134] = "Tandros Kreel";
Punkte[134] = 120;
Stuetze[134] = 0;
Name[135] = "Siege";
Punkte[135] = 120;
Stuetze[135] = 0;
Name[136] = "Greater Ice Elemental";
Punkte[136] = 130;
Stuetze[136] = 0;
Name[137] = "Eltahal";
Punkte[137] = 140;
Stuetze[137] = 0;
Name[138] = "Othkurik the black Dragon";
Punkte[138] = 140;
Stuetze[138] = 0;
Name[139] = "Frost Giant of Morh";
Punkte[139] = 140;
Stuetze[139] = 0;
Name[140] = "Master of the Hunt";
Punkte[140] = 140;
Stuetze[140] = 0;
Name[141] = "Moltenclaw";
Punkte[141] = 170;
Stuetze[141] = 0;
Name[142] = "Black Wyrmling"; //Wyrmling
Punkte[142] = 30;
Stuetze[142] = 3;
zahl[142] = 141;
help[142] = 143; //Red Wyrmling
help[143] = 144; //White Wyrmling
help[144] = 145; //Blue Wyrmling
Name[143] = "Red Wyrmling"; //Wyrmling
Punkte[143] = 30;
Stuetze[143] = 3;
zahl[142] = 144;
help[145] = 142; //Black Wyrmling
help[146] = 144; //White Wyrmling
help[147] = 145; //Blue Wyrmling
Name[144] = "White Wyrmling"; //Wyrmling
Punkte[144] = 30;
Stuetze[144] = 3;
zahl[142] = 147;
help[148] = 143; //Red Wyrmling
help[149] = 142; //Black Wyrmling
help[150] = 145; //Blue Wyrmling
Name[145] = "Blue Wyrmling"; //Wyrmling
Punkte[145] = 35;
Stuetze[145] = 3;
zahl[142] = 150;
help[151] = 143; //Red Wyrmling
help[152] = 144; //White Wyrmling
help[153] = 142; //Black Wyrmling
Name[146] = "Goblin Cutters";
Punkte[146] = 50;
Stuetze[146] = 0;
Name[147] = "Warforge Soldiers";
Punkte[147] = 80;
Stuetze[147] = 0;
Name[148] = "Heirloom";
Punkte[148] = 90;
Stuetze[148] = 0;
Name[149] = "Iron golem";
Punkte[149] = 100;
Stuetze[149] = 0;
Name[150] = "Mind Flayer Mastermind";
Punkte[150] = 100;
Stuetze[150] = 0;
Name[151] = "Mika Connour";
Punkte[151] = 110;
Stuetze[151] = 0;
Name[152] = "Rhogar Dragonspine";
Punkte[152] = 110;
Stuetze[152] = 0;
Name[153] = "Kurrok the Elementalist"; //kleiner oder mittlerer Elemental
Punkte[153] = 120;
Stuetze[153] = 4;
zahl[153] = 153;
help[154] = 110; //Water Elemental
help[155] = 111; //Air Elemtental
help[156] = 112; //Fire Elemental
help[157] = 113; //Earth Elemental
Name[154] = "Werewolf Lord";
Punkte[154] = 140;
Stuetze[154] = 0;
Name[155] = "Ogre Warhulk";
Punkte[155] = 150;
Stuetze[155] = 0;
Name[156] = "Shurrok";
Punkte[156] = 160;
Stuetze[156] = 0;
Name[157] = "Venoc Vipers";
Punkte[157] = 40;
Stuetze[157] = 0;
Name[158] = "Estivara";
Punkte[158] = 80;
Stuetze[158] = 1;
zahl[158] = 157;
help[158] = 7; //Fyorlag Spiders
for (int i=0;i<=158;i++)
{
nochda = 1;
nochda[6] = 2;
nochda[15] = 2;
nochda[19] = 2;
}
}
public void Zufallsmonster (int PunkteproSpieler, int Spielerzahl)
{
int a = PunkteproSpieler;
int b = Spielerzahl;
int p = 0;
for(int j = 1; j<=Spielerzahl; j++)
{
p = 0;
System.out.println("Spieler" + j + ":");
while (p < a)
{
int k = (int) ((Math.random() * 158)+1);
if (nochda[k]>=1&&k!=159)
{
System.out.println(Name[k]+" "+Punkte[k]);
nochda[k]=nochda[k]-1;
p=p+Punkte[k];
int c = (int) (Math.random()*10);
int g = 10;
while(c<7 && Stuetze[k]>0 && p < a)
{
int d = (int) (((Math.random() * Stuetze[k]) +1) + zahl[k]);
if (nochda[help[d]]!=0&&d!=Stuetze[k]+1+zahl[k])
{
System.out.println(Name[help[d]]+" "+Punkte[help[d]]);
nochda[help[d]]=nochda[help[d]]-1;
p=p+Punkte[help[d]];
for (int l = d;l<=Stuetze[k]-1;l++ )
{
help[l]=help[l+1];
Stuetze[k]=Stuetze[k]-1;
}
c = (int)(Math.random()*g);
g = g-1;
}
}
}
}
System.out.println("Gesamtpunkte : " + p);
System.out.println("-------------------------------------------");
}
}
}