Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #I wasn't the one who wrote the code but I did edit it to fit in the newest changes to the PDF. All the comments below this line were written by the original person, not me. You can use this code by going to https://repl.it/languages/python3 and just copying and pasting it in. You can find the original code at http://pastebin.com/WAMmN3mv.
- import random
- test = []
- reroll = True
- #The variable is called test because this file started as a test of lists and by the time I wanted to change the variable name I had wrote it about 40 times
- print("This is not a standalone code and is to be used alongside the PDF document given in Magical Girl thread on TG on 4chan.\nThe document goes into detail on what everything does, this is simply to help create characters much quicker")
- print("\nIf you do not like your rolls, you can spend the following to change them: \n1 GOLD COIN \n3 SILVER COINS \n4 COPPER COINS \n")
- print("\nYou also have these stats, they are affected by certain options in this CYOA \nSTR: 4 \nAGI: 4 \nVIT: 4 \nMAG: 4\nLCK: 4\n")
- #Just provided these in case some one wants to edit the code to make it so you can do either of these (Change rolls or Display stats) in the code rather than IRL
- while reroll == True:
- #This was part of a failed reroll idea, read at the bottom for more, I'm leaving it in so someone can fix it
- for i in range(1,20):
- test.append(random.randint(1,20))
- #This has generated the 12 d20 for the dice roll at the beginning
- #now we make the character
- if test[0] > 10:
- test[0] = test[0] - 10
- print(str(test[0]+6) + " years old")
- #AGE
- #these are mainly for ease fixing, but i'll leave them anyway
- if test[1] < 7:
- print("Underdeveloped (" + str(test[1]) + ")")
- elif test[1] > 14:
- print("Overdeveloped (" + str(test[1]) + ")")
- else:
- print("Average (" + str(test[1]) + ")")
- #BODY
- #roll is shown for gold spending purposes
- #Now the long one
- if test[2] == 1:
- print("Fire (" + str(test[2]) + ")")
- elif test[2] == 2:
- print("Ice (" + str(test[2]) + ")")
- elif test[2] == 3:
- print("Air (" + str(test[2]) + ")")
- elif test[2] == 4:
- print("Spirit (" + str(test[2]) + ")")
- elif test[2] == 5:
- print("Reinforcement (" + str(test[2]) + ")")
- elif test[2] == 6:
- print("Physhic (" + str(test[2]) + ")")
- elif test[2] == 7:
- print("Time (" + str(test[2]) + ")")
- elif test[2] == 8:
- print("Lightning (" + str(test[2]) + ")")
- elif test[2] == 9:
- print("Sound (" + str(test[2]) + ")")
- elif test[2] == 10:
- print("Darkness (" + str(test[2]) + ")")
- elif test[2] == 11:
- print("Illusion (" + str(test[2]) + ")")
- elif test[2] == 12:
- print("Light (" + str(test[2]) + ")")
- elif test[2] == 13:
- print("Wood (" + str(test[2]) + ")")
- elif test[2] == 14:
- print("Empathic (" + str(test[2]) + ")")
- elif test[2] == 15:
- print("Water (" + str(test[2]) + ")")
- elif test[2] == 16:
- print("Gravity (" + str(test[2]) + ")")
- elif test[2] == 17:
- print("Stone (" + str(test[2]) + ")")
- elif test[2] == 18:
- print("Beast (" + str(test[2]) + ")")
- else:
- print("Something went wrong!")
- if (test[3] < 3):
- print("Lamia (" + str(test[3]) + ")")
- elif (test[3] > 18):
- print("Dark Magical Girl (" + str(test[3]) + ")")
- elif (test[3] < 5) & (test[3] > 2):
- print("Drider (" + str(test[3]) + ")")
- elif (test[3] < 7) & (test[3] > 4):
- print("Vampire (" + str(test[3]) + ")")
- elif (test[3] < 9) & (test[3] > 6):
- print("Fallen Angel (" + str(test[3]) + ")")
- elif (test[3] < 11) & (test[3] > 8):
- print("Dryad (" + str(test[3]) + ")")
- elif (test[3] < 13) & (test[3] > 10):
- print("Siren (" + str(test[3]) + ")")
- elif (test[3] < 19) & (test[3] > 16):
- print("Were (" + str(test[3]) + ")")
- elif (test[3] < 17) & (test[3] > 14):
- print("Djinn (" + str(test[3]) + ")")
- elif (test[3] < 15) & (test[3] > 12):
- print("Golem (" + str(test[3]) + ")")
- #SPECIALIZATION AND CORRUPTION
- #I KNOW THAT WAS INEFFICIENT BUT IT WORKED OK!
- if test[4] < 6:
- print("Melee (" + str(test[4]) + ")")
- if (test[4] < 11) & (test[4] > 5):
- print("Ranged (" + str(test[4]) + ")")
- if (test[4] < 16) & (test[4] > 10):
- print("Mystic (" + str(test[4]) + ")")
- if test[4] > 15:
- print("Fists (" + str(test[4]) + ")")
- #WEAPONS
- #I STOPPED USING ELIF BECAUSE IT WASN'T MAKING A DIFFERENCE AND ITS EASIER TO C&P
- if test[5] < 6:
- print("Skimpy (" + str(test[5]) + ")")
- if (test[5] < 11) & (test[5] > 5):
- print("Flowing (" + str(test[5]) + ")")
- if (test[5] < 16) & (test[5] > 10):
- print("Elaborate (" + str(test[5]) + ")")
- if test[5] > 15:
- print("Uniform (" + str(test[5]) + ")")
- #OUTFIT
- if (test[6] == 1) or (test[6] == 2):
- print("Killing Blow (" + str(test[6]) + ")")
- if (test[6] == 3) or (test[6] == 4):
- print("Hammerspace (" + str(test[6]) + ")")
- if (test[6] == 5) or (test[6] == 6):
- print("Familiar (" + str(test[6]) + ")")
- if (test[6] == 7) or (test[6] == 8):
- print("Focused Assualt (" + str(test[6]) + ")")
- if (test[6] == 9) or (test[6] == 10):
- print("Barrage (" + str(test[6]) + ")")
- if (test[6] == 11) or (test[6] == 12):
- print("Power of Friendship (" + str(test[6]) + ")")
- if (test[6] == 13) or (test[6] == 14):
- print("Duplication (" + str(test[6]) + ")")
- if (test[6] == 15) or (test[6] == 16):
- print("Third Eye (" + str(test[6]) + ")")
- if (test[6] == 17) or (test[6] == 18):
- print("Regeneration (" + str(test[6]) + ")")
- if (test[6] == 19) or (test[6] == 20):
- print("Tentacles (" + str(test[6]) + ")")
- #POWER
- #GET READY FOR THE REALLY LONG ONE
- if (test[7] == 1):
- print("Dual Weapon (" + str(test[7]) + ")")
- if (test[7] == 2):
- print("Martial Training (" + str(test[7]) + ")")
- if (test[7] == 3):
- print("Enhanced Weapon (" + str(test[7]) + ")")
- if (test[7] == 4):
- print("Mystic Artifact (" + str(test[7]) + ")")
- if (test[7] == 5):
- print("Gifted (" + str(test[7]) + ")")
- if (test[7] == 6):
- print("Flexibility (" + str(test[7]) + ")")
- if (test[7] == 7):
- print("Enhanced Transformation (" + str(test[7]) + ")")
- if (test[7] == 8):
- print("Disguise Artifact (" + str(test[7]) + ")")
- if (test[7] == 9):
- print("Blood Magic (" + str(test[7]) + ")")
- if (test[7] == 10):
- print("Hammerspace Handbag (" + str(test[7]) + ")")
- if (test[7] == 11):
- print("Enhanced Sustenance (" + str(test[7]) + ")")
- if (test[7] == 12):
- print("Enhanced Outfit (" + str(test[7]) + ")")
- if (test[7] == 13):
- print("Healing Artifact (" + str(test[7]) + ")")
- if (test[7] == 14):
- print("Allies (" + str(test[7]) + ")")
- if (test[7] == 15):
- print("Monstrous Metamorphosis (" + str(test[7]) + ")")
- if (test[7] == 16):
- print("Sorcery (" + str(test[7]) + ")")
- if (test[7] == 17):
- print("Wings (" + str(test[7]) + ")")
- if (test[7] == 18):
- print("Purification Artifact (" + str(test[7]) + ")")
- if (test[7] == 19):
- print("Awareness (" + str(test[7]) + ")")
- if (test[7] == 20):
- print("Big Friend (" + str(test[7]) + ")")
- #PERKS 1
- #KILL ME NOW
- if (test[8] == 1):
- print("Dual Weapon (" + str(test[8]) + ")")
- if (test[8] == 2):
- print("Martial Training (" + str(test[8]) + ")")
- if (test[8] == 3):
- print("Enhanced Weapon (" + str(test[8]) + ")")
- if (test[8] == 4):
- print("Mystic Artifact (" + str(test[8]) + ")")
- if (test[8] == 5):
- print("Gifted (" + str(test[8]) + ")")
- if (test[8] == 6):
- print("Flexibility (" + str(test[8]) + ")")
- if (test[8] == 7):
- print("Enhanced Transformation (" + str(test[8]) + ")")
- if (test[8] == 8):
- print("Disguise Artifact (" + str(test[8]) + ")")
- if (test[8] == 9):
- print("Blood Magic (" + str(test[8]) + ")")
- if (test[8] == 10):
- print("Hammerspace Handbag (" + str(test[8]) + ")")
- if (test[8] == 11):
- print("Enhanced Sustenance (" + str(test[8]) + ")")
- if (test[8] == 12):
- print("Enhanced Outfit (" + str(test[8]) + ")")
- if (test[8] == 13):
- print("Healing Artifact (" + str(test[8]) + ")")
- if (test[8] == 14):
- print("Allies (" + str(test[8]) + ")")
- if (test[8] == 15):
- print("Monstrous Metamorphosis (" + str(test[8]) + ")")
- if (test[8] == 16):
- print("Sorcery (" + str(test[8]) + ")")
- if (test[8] == 17):
- print("Wings (" + str(test[8]) + ")")
- if (test[8] == 18):
- print("Purification Artifact (" + str(test[8]) + ")")
- if (test[8] == 19):
- print("Awareness (" + str(test[8]) + ")")
- if (test[8] == 20):
- print("Big Friend (" + str(test[8]) + ")")
- #PERKS 2
- #THANK THE LORD FOR CTRL + G
- #KILLLLL MEEEEEEEEEEEE
- if (test[9] == 1):
- print("Interdimentional Tourist (" + str(test[9]) + ")")
- if (test[9] == 2):
- print("Closure (" + str(test[9]) + ")")
- if (test[9] == 3):
- print("Fated (" + str(test[9]) + ")")
- if (test[9] == 4):
- print("Training (" + str(test[9]) + ")")
- if (test[9] == 5):
- print("Interdimentional Home (" + str(test[9]) + ")")
- if (test[9] == 6):
- print("Incognito (" + str(test[9]) + ")")
- if (test[9] == 7):
- print("Environmental Sealing (" + str(test[9]) + ")")
- if (test[9] == 8):
- print("Get out of Jail (" + str(test[9]) + ")")
- if (test[9] == 9):
- print("Big Damn Hero (" + str(test[9]) + ")")
- if (test[9] == 10):
- print("Absolute Direction (" + str(test[9]) + ")")
- if (test[9] == 11):
- print("Big Backpack (" + str(test[9]) + ")")
- if (test[9] == 12):
- print("Natural Aging (" + str(test[9]) + ")")
- if (test[9] == 13):
- print("Masculinity (" + str(test[9]) + ")")
- if (test[9] == 14):
- print("Patron (" + str(test[9]) + ")")
- if (test[9] == 15):
- print("Money (" + str(test[9]) + ")")
- if (test[9] == 16):
- print("Twin Soul (" + str(test[9]) + ")")
- if (test[9] == 17):
- print("Soul Jar (" + str(test[9]) + ")")
- if (test[9] == 18):
- print("Eternal Style (" + str(test[9]) + ")")
- if (test[9] == 19):
- print("A Way Out (" + str(test[9]) + ")")
- if (test[9] == 20):
- print("Fake Parents(" + str(test[9]) + ")")
- #PERKS 3
- #NEXT ONES NOT AS BAD
- if (test[10] == 1):
- print("Interdimentional Tourist (" + str(test[10]) + ")")
- if (test[10] == 2):
- print("Closure (" + str(test[10]) + ")")
- if (test[10] == 3):
- print("Fated (" + str(test[10]) + ")")
- if (test[10] == 4):
- print("Training (" + str(test[10]) + ")")
- if (test[10] == 5):
- print("Interdimentional Home (" + str(test[10]) + ")")
- if (test[10] == 6):
- print("Incognito (" + str(test[10]) + ")")
- if (test[10] == 7):
- print("Environmental Sealing (" + str(test[10]) + ")")
- if (test[10] == 8):
- print("Get out of Jail (" + str(test[10]) + ")")
- if (test[10] == 9):
- print("Big Damn Hero (" + str(test[10]) + ")")
- if (test[10] == 10):
- print("Absolute Direction (" + str(test[10]) + ")")
- if (test[10] == 11):
- print("Big Backpack (" + str(test[10]) + ")")
- if (test[10] == 12):
- print("Natural Aging (" + str(test[10]) + ")")
- if (test[10] == 13):
- print("Masculinity (" + str(test[10]) + ")")
- if (test[10] == 14):
- print("Patron (" + str(test[10]) + ")")
- if (test[10] == 15):
- print("Money (" + str(test[10]) + ")")
- if (test[10] == 16):
- print("Twin Soul (" + str(test[10]) + ")")
- if (test[10] == 17):
- print("Soul Jar (" + str(test[10]) + ")")
- if (test[10] == 18):
- print("Eternal Style (" + str(test[10]) + ")")
- if (test[10] == 19):
- print("A Way Out (" + str(test[10]) + ")")
- if (test[10] == 20):
- print("Fake Parents(" + str(test[10]) + ")")
- #PERKS 4
- #AND NOW THE BIG PUSH
- if (test[11] == 1):
- print("Dual Weapon or Interdimentional Tourist (" + str(test[11]) + ")")
- if (test[11] == 2):
- print("Martial Training or Closure (" + str(test[11]) + ")")
- if (test[11] == 3):
- print("Enhanced Weapon or Fated(" + str(test[11]) + ")")
- if (test[11] == 4):
- print("Mystic Artifact or Training(" + str(test[11]) + ")")
- if (test[11] == 5):
- print("Gifted or Interdimentional Home(" + str(test[11]) + ")")
- if (test[11] == 6):
- print("Flexibility or Incognito(" + str(test[11]) + ")")
- if (test[11] == 7):
- print("Enhanced Transformation or Environmental Sealing(" + str(test[11]) + ")")
- if (test[11] == 8):
- print("Disguise Artifact or Get out of Jail(" + str(test[11]) + ")")
- if (test[11] == 9):
- print("Blood Magic or Big Damn Hero(" + str(test[11]) + ")")
- if (test[11] == 10):
- print("Hammerspace Handbag or Absolute Direction(" + str(test[11]) + ")")
- if (test[11] == 11):
- print("Enhanced Sustenance or Big Backpack(" + str(test[11]) + ")")
- if (test[11] == 12):
- print("Enhanced Outfit or Natural Aging(" + str(test[11]) + ")")
- if (test[11] == 13):
- print("Healing Artifact or Masculinity(" + str(test[11]) + ")")
- if (test[11] == 14):
- print("Allies or Patron(" + str(test[11]) + ")")
- if (test[11] == 15):
- print("Monstrous Metamorphosis or Money(" + str(test[11]) + ")")
- if (test[11] == 16):
- print("Sorcery or Twin Soul(" + str(test[11]) + ")")
- if (test[11] == 17):
- print("Wings or Soul Jar(" + str(test[11]) + ")")
- if (test[11] == 18):
- print("Purification Artifact or Eternal Style(" + str(test[11]) + ")")
- if (test[11] == 19):
- print("Awareness or A Way Out(" + str(test[11]) + ")")
- if (test[11] == 20):
- print("Big Friend or Fake Parents(" + str(test[11]) + ")")
- #PERKS 5
- #IT HAS BEEN DONE
- reroll = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement