//Remember to create the files for each category in the hijack screen and add the category in the design view and make the countries list in this load event
switch(ListBox1.SelectedItem.ToString())
{
case"Animals":
loadsavepoint("Animals",10,Paths.KnowledgeInput+"Animals.lst","There are many animals out there! Can you list them all?"+Environment.NewLine+"Note that you get points for listing animals... not animal breeds!",animalslist);
break;
case"Fruits":
loadsavepoint("Fruits",10,Paths.KnowledgeInput+"Fruits.lst","Do you get your daily serving of fruit each day?"+Environment.NewLine+"Really...? See if you can list them then ;)",fruitslist);
break;
case"Countries":
loadsavepoint("Countries",10,Paths.KnowledgeInput+"Countries.lst","Ever wanted to travel the entire world?"+Environment.NewLine+"Well before you do see if you can list every country in the world!",countrieslist);
break;
case"Car Brands":
loadsavepoint("Car Brands",10,Paths.KnowledgeInput+"Car Brands.lst","Can you list every single car brand?"+Environment.NewLine+"Don't use words like automobiles, motors or cars!",carbrandslist);
break;
case"Game Consoles":
loadsavepoint("Game Consoles",10,Paths.KnowledgeInput+"Game Consoles.lst","Do you call yourself a gamer?"+Environment.NewLine+"Earn that title by listing non-handheld game consoles!",gameconsoleslist);
break;
case"Elements":
loadsavepoint("Elements",10,Paths.KnowledgeInput+"Elements.lst","Have you memorized the periodic table of elements?"+Environment.NewLine+"No? Well don't even attempt trying to guess them all here!",elementslist);
lblnextreward.Text="Reward for completing level "+level+" : "+rewardbase*level+"CP";
if(levelup==true)
{
decider.Interval=2000;
lblcurrentlevel.Text="Level Up!";
lblnextreward.Text="You have earned "+rewardbase*(level-1)+" Code Points!";
decider.Start();
}
else{
if(guessalreadydone==true)
{
lblcurrentlevel.Text="Already Guessed";
decider.Start();
}
else{
if(guesscorrect==true)
{
lblcurrentlevel.Text="Correct :)";
decider.Start();
}
else{
lblcurrentlevel.Text="Wrong :(";
decider.Start();
}
}
}
}
// ERROR: Handles clauses are not supported in C#
privatevoidme_closing()
{
tmrstoryline.Stop();
}
privatevoidmakeanimallist()
{
animalslist[0]="aardvark";
animalslist[1]="albatross";
animalslist[2]="alligator";
animalslist[3]="alpaca";
animalslist[4]="ant";
animalslist[5]="anteater";
animalslist[6]="antelope";
animalslist[7]="ape";
animalslist[8]="armadillo";
animalslist[9]="ass";
animalslist[10]="baboon";
animalslist[11]="badger";
animalslist[12]="barracuda";
animalslist[13]="bat";
animalslist[14]="bear";
animalslist[15]="beaver";
animalslist[16]="bee";
animalslist[17]="bison";
animalslist[18]="boar";
animalslist[19]="buffalo";
animalslist[20]="butterfly";
animalslist[21]="camel";
animalslist[22]="caribou";
animalslist[23]="cat";
animalslist[24]="caterpillar";
animalslist[25]="cow";
animalslist[26]="chamois";
animalslist[27]="cheetah";
animalslist[28]="chicken";
animalslist[29]="chimpanzee";
animalslist[30]="chinchilla";
animalslist[31]="chough";
animalslist[32]="clam";
animalslist[33]="cobra";
animalslist[34]="cockroach";
animalslist[35]="cod";
animalslist[36]="cormorant";
animalslist[37]="coyote";
animalslist[38]="crab";
animalslist[39]="crane";
animalslist[40]="crocodile";
animalslist[41]="crow";
animalslist[42]="curlew";
animalslist[43]="deer";
animalslist[44]="dinosaur";
animalslist[45]="dog";
animalslist[46]="dogfish";
animalslist[47]="dolphin";
animalslist[48]="donkey";
animalslist[49]="dotterel";
animalslist[50]="dove";
animalslist[51]="dragonfly";
animalslist[52]="duck";
animalslist[53]="dugong";
animalslist[54]="dunlin";
animalslist[55]="eagle";
animalslist[56]="echidna";
animalslist[57]="eel";
animalslist[58]="eland";
animalslist[59]="elephant";
animalslist[60]="elephant seal";
animalslist[61]="elk";
animalslist[62]="emu";
animalslist[63]="falcon";
animalslist[64]="ferret";
animalslist[65]="finch";
animalslist[66]="fish";
animalslist[67]="flamingo";
animalslist[68]="fly";
animalslist[69]="fox";
animalslist[70]="frog";
animalslist[71]="galago";
animalslist[72]="gaur";
animalslist[73]="gazelle";
animalslist[74]="gerbil";
animalslist[75]="giant panda";
animalslist[76]="giraffe";
animalslist[77]="gnat";
animalslist[78]="gnu";
animalslist[79]="goat";
animalslist[80]="goldfinch";
animalslist[81]="goldfish";
animalslist[82]="goose";
animalslist[83]="gorilla";
animalslist[84]="goshawk";
animalslist[85]="grasshopper";
animalslist[86]="grouse";
animalslist[87]="guanaco";
animalslist[88]="guineafowl";
animalslist[89]="guinea pig";
animalslist[90]="gull";
animalslist[91]="hamster";
animalslist[92]="hare";
animalslist[93]="hawk";
animalslist[94]="hedgehog";
animalslist[95]="heron";
animalslist[96]="herring";
animalslist[97]="hippopotamus";
animalslist[98]="hornet";
animalslist[99]="horse";
animalslist[100]="human";
animalslist[101]="humming bird";
animalslist[102]="hyena";
animalslist[103]="jackal";
animalslist[104]="jaguar";
animalslist[105]="jay";
animalslist[106]="jellyfish";
animalslist[107]="kangaroo";
animalslist[108]="koala";
animalslist[109]="komodo dragon";
animalslist[110]="kouprey";
animalslist[111]="kudu";
animalslist[112]="lizard";
animalslist[113]="lark";
animalslist[114]="lemur";
animalslist[115]="leopard";
animalslist[116]="lion";
animalslist[117]="llama";
animalslist[118]="lobster";
animalslist[119]="locust";
animalslist[120]="loris";
animalslist[121]="louse";
animalslist[122]="lyrebird";
animalslist[123]="magpie";
animalslist[124]="mallard";
animalslist[125]="manatee";
animalslist[126]="marten";
animalslist[127]="meerkat";
animalslist[128]="mink";
animalslist[129]="mole";
animalslist[130]="monkey";
animalslist[131]="moose";
animalslist[132]="mosquito";
animalslist[133]="mouse";
animalslist[134]="mule";
animalslist[135]="narwhal";
animalslist[136]="newt";
animalslist[137]="nightingale";
animalslist[138]="octopus";
animalslist[139]="okapi";
animalslist[140]="opossum";
animalslist[141]="oryx";
animalslist[142]="ostrich";
animalslist[143]="otter";
animalslist[144]="owl";
animalslist[145]="ox";
animalslist[146]="oyster";
animalslist[147]="panther";
animalslist[148]="parrot";
animalslist[149]="partridge";
animalslist[150]="peafowl";
animalslist[151]="pelican";
animalslist[152]="penguin";
animalslist[153]="pheasant";
animalslist[154]="pig";
animalslist[155]="pigeon";
animalslist[156]="pony";
animalslist[157]="porcupine";
animalslist[158]="porpoise";
animalslist[159]="prairie dog";
animalslist[160]="quail";
animalslist[161]="quelea";
animalslist[162]="rabbit";
animalslist[163]="raccoon";
animalslist[164]="rail";
animalslist[165]="ram";
animalslist[166]="rat";
animalslist[167]="raven";
animalslist[168]="red deer";
animalslist[169]="red panda";
animalslist[170]="reindeer";
animalslist[171]="rhinoceros";
animalslist[172]="rook";
animalslist[173]="ruff";
animalslist[174]="salamander";
animalslist[175]="salmon";
animalslist[176]="sand dollar";
animalslist[177]="sandpiper";
animalslist[178]="sardine";
animalslist[179]="scorpion";
animalslist[180]="sea lion";
animalslist[181]="sea urchin";
animalslist[182]="seahorse";
animalslist[183]="seal";
animalslist[184]="shark";
animalslist[185]="sheep";
animalslist[186]="shrew";
animalslist[187]="shrimp";
animalslist[188]="skunk";
animalslist[189]="snail";
animalslist[190]="snake";
animalslist[191]="spider";
animalslist[192]="squid";
animalslist[193]="squirrel";
animalslist[194]="starling";
animalslist[195]="stingray";
animalslist[196]="stink bug";
animalslist[197]="stork";
animalslist[198]="swallow";
animalslist[199]="swan";
animalslist[200]="tapir";
animalslist[201]="tarsier";
animalslist[202]="termite";
animalslist[203]="tiger";
animalslist[204]="toad";
animalslist[205]="trout";
animalslist[206]="turkey";
animalslist[207]="turtle";
animalslist[208]="vicuña";
animalslist[209]="viper";
animalslist[210]="vulture";
animalslist[211]="wallaby";
animalslist[212]="walrus";
animalslist[213]="wasp";
animalslist[214]="water buffalo";
animalslist[215]="weasel";
animalslist[216]="whale";
animalslist[217]="wolf";
animalslist[218]="wolverine";
animalslist[219]="wombat";
animalslist[220]="woodcock";
animalslist[221]="woodpecker";
animalslist[222]="worm";
animalslist[223]="wren";
animalslist[224]="yak";
animalslist[225]="zebra";
animalslist[226]="bird";
}
privatevoidmakefruitlist()
{
fruitslist[0]="apple";
fruitslist[1]="apricot";
fruitslist[2]="avocado";
fruitslist[3]="banana";
fruitslist[4]="breadfruit";
fruitslist[5]="bilberry";
fruitslist[6]="blackberry";
fruitslist[7]="blackcurrant";
fruitslist[8]="blueberry";
fruitslist[9]="boysenberry";
fruitslist[10]="cantaloupe";
fruitslist[11]="currant";
fruitslist[12]="cherry";
fruitslist[13]="cherimoya";
fruitslist[14]="chili";
fruitslist[15]="cloudberry";
fruitslist[16]="coconut";
fruitslist[17]="damson";
fruitslist[18]="date";
fruitslist[19]="dragonfruit";
fruitslist[20]="durian";
fruitslist[21]="elderberry";
fruitslist[22]="feijoa";
fruitslist[23]="fig";
fruitslist[24]="gooseberry";
fruitslist[25]="grape";
fruitslist[26]="grapefruit";
fruitslist[27]="guava";
fruitslist[28]="huckleberry";
fruitslist[29]="honeydew";
fruitslist[30]="jackfruit";
fruitslist[31]="jambul";
fruitslist[32]="jujube";
fruitslist[33]="kiwi fruit";
fruitslist[34]="kumquat";
fruitslist[35]="legume";
fruitslist[36]="lemon";
fruitslist[37]="lime";
fruitslist[38]="loquat";
fruitslist[39]="lychee";
fruitslist[40]="mango";
fruitslist[41]="melon";
fruitslist[42]="canary melon";
fruitslist[43]="cantaloupe";
fruitslist[44]="honeydew";
fruitslist[45]="watermelon";
fruitslist[46]="rock melon";
fruitslist[47]="nectarine";
fruitslist[48]="nut";
fruitslist[49]="orange";
fruitslist[50]="clementine";
fruitslist[51]="mandarine";
fruitslist[52]="tangerine";
fruitslist[53]="papaya";
fruitslist[54]="passionfruit";
fruitslist[55]="peach";
fruitslist[56]="bell pepper";
fruitslist[57]="pear";
fruitslist[58]="persimmon";
fruitslist[59]="physalis";
fruitslist[60]="plum";
fruitslist[61]="pineapple";
fruitslist[62]="pomegranate";
fruitslist[63]="pomelo";
fruitslist[64]="purple mangosteen";
fruitslist[65]="quince";
fruitslist[66]="raspberry";
fruitslist[67]="rambutan";
fruitslist[68]="redcurrant";
fruitslist[69]="salal berry";
fruitslist[70]="satsuma";
fruitslist[71]="star fruit";
fruitslist[72]="strawberry";
fruitslist[73]="tamarillo";
fruitslist[74]="tomato";
fruitslist[75]="ugli fruit";
}
//Based off United Nations member list with additions such as Vatican City - see this video about what a coutry is: https://www.youtube.com/watch?v=4AivEQmfPpk
privatevoidmakecountrieslist()
{
countrieslist[0]="afghanistan";
countrieslist[1]="albania";
countrieslist[2]="algeria";
countrieslist[3]="antigua and barbuda";
countrieslist[4]="andorra";
countrieslist[5]="angola";
countrieslist[8]="argentina";
countrieslist[9]="armenia";
countrieslist[10]="australia";
countrieslist[12]="austria";
countrieslist[14]="azerbaijan";
countrieslist[15]="bahamas";
countrieslist[16]="bahrain";
countrieslist[17]="bangladesh";
countrieslist[18]="barbados";
countrieslist[19]="belarus";
countrieslist[20]="belgium";
countrieslist[21]="belize";
countrieslist[22]="benin";
countrieslist[23]="bhutan";
countrieslist[24]="bolivia";
countrieslist[25]="bosnia";
countrieslist[26]="botswana";
countrieslist[27]="brunei darussalam";
countrieslist[28]="brazil";
countrieslist[29]="cabo verde";
countrieslist[30]="bulgaria";
countrieslist[31]="burkina faso";
countrieslist[32]="burundi";
countrieslist[33]="cambodia";
countrieslist[34]="cameroon";
countrieslist[35]="canada";
countrieslist[36]="central african republic";
countrieslist[37]="chad";
countrieslist[38]="chile";
countrieslist[39]="china";
countrieslist[40]="democratic people's republic of korea";