Script i used is as simple as it can be i think.
if anyone is interested.
But if anyone has a good way to make a list from a TXT file or something similar would be greatly appreciated.
//TextBoxes
public GameObject jobTextBox;
public GameObject AnimalTextBox;
public GameObject genderTextBox;
public void CreateCharacter()
{
pickRandomJob();
pickRandomAnimal();
pickGender();
}
private void pickRandomJob()
{
string[] job = new string[] { "Monster Handler", "Beekeeper", "Farmer", "HorseTrainer", "Miner", "Ranger", "Hunter", "Florist", "Plumber", "RaceCarDriver", "Astronaut", "ConstructionWorker", "Athlete", "Clown", "Dancer", "Gladiator", "Painter", "Musician", "Painter", "Stuntman",
"TattooArtist", "Wrestler", "Inkeeper", "Vendor", "Blacksmith", "Doctor", "Lawyer", "Assassin", "Crime Boss" , "Burglar", "Chef", "Nurse", "Pilot", "Nanny", "Builder", "Bartender", "SecurityGuard"
};
string RandomJob = job[Random.Range(0, job.Length)];
jobTextBox.GetComponent<Text>().text = "" + RandomJob;
}
private void pickRandomAnimal()
{
string[] animal = new string[] { "Parrot", "MuskRat","Baboon","Donkey","Mouse","Rat","Dog","Cat","Horse","Pig","Weasel","Vulture","WoodPecker", "Spider","Fly","Snake","Worm","Reptile","Lizard","Gator","Clown Fish","Pony","Pather","Lion","Giraff","Whale","Penguin",
"Koala","Leopard","KomodoDragon","Hamster","Hedgehog","Swine","Impala","Hippo","Hawk",
};
string randomAnimal = animal[Random.Range(0, animal.Length)];
AnimalTextBox.GetComponent<Text>().text = "" + randomAnimal;
}
private void pickGender()
{
string[] gender = new string[] { "Male", "Female",
};
string randomGender = gender[Random.Range(0, gender.Length)];
genderTextBox.GetComponent<Text>().text = "" + randomGender;
}
}