Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- def random_key(x):
- return random.choice(list(x.keys()))
- graph = {
- "Rustblood": {
- "Derse Dreamer": {
- "True Aries": {
- "Time": {}
- },
- "Arsces": {
- "Life": {}
- },
- "Arrius": {
- "Hope": {}
- },
- },
- "Prospit Dreamer": {
- "Arist": {
- "Time": {}
- },
- "Arsci": {
- "Life": {}
- },
- "Arnius": {
- "Hope": {}
- },
- },
- },
- "Bronzeblood": {
- "Derse Dreamer": {
- "Taurun": {
- "Breath": {}
- },
- "Tauries": {
- "Time": {}
- },
- "Taursces": {
- "Life": {}
- },
- },
- "Prospit": {
- "True Taurus": {
- "Breath": {}
- },
- "Taurist": {
- "Time": {}
- },
- "Taursci": {
- "Life": {}
- },
- },
- },
- }
- classes = {
- "Witch": {
- },
- "Heir": {
- },
- "Lord": {
- },
- "Muse": {
- },
- }
- choices = []
- classselection = []
- level = graph
- level2 = classes
- while level:
- key = random_key(level)
- level = level[key]
- choices.append(key)
- while level2:
- key2 = random_key(level2)
- level2 = level2[key2]
- classselection.append(key2)
- print("Your troll is a " + classselection[0] + " of " + choices[3] + "!")
Add Comment
Please, Sign In to add comment