Advertisement
Guest User

Untitled

a guest
Sep 30th, 2015
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 14.04 KB | None | 0 0
  1. #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.
  2.  
  3. import random
  4. test = []
  5. reroll = True
  6.  
  7. #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
  8.  
  9. 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")
  10. 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")
  11. 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")
  12.  
  13. #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
  14.  
  15. while reroll == True:
  16.  
  17. #This was part of a failed reroll idea, read at the bottom for more, I'm leaving it in so someone can fix it
  18.  
  19.    for i in range(1,20):
  20.       test.append(random.randint(1,20))
  21.  
  22.    #This has generated the 12 d20 for the dice roll at the beginning
  23.    #now we make the character
  24.  
  25.  
  26.    if test[0] > 10:
  27.       test[0] = test[0] - 10
  28.    
  29.    print(str(test[0]+6) + " years old")
  30.  
  31.    #AGE
  32.    #these are mainly for ease fixing, but i'll leave them anyway
  33.    
  34.    if test[1] < 7:
  35.       print("Underdeveloped (" + str(test[1]) + ")")
  36.    elif test[1] > 14:
  37.       print("Overdeveloped (" + str(test[1]) + ")")
  38.    else:
  39.       print("Average (" + str(test[1]) + ")")
  40.  
  41.    #BODY
  42.    #roll is shown for gold spending purposes
  43.    #Now the long one
  44.  
  45.    if test[2] == 1:
  46.       print("Fire (" + str(test[2]) + ")")
  47.    elif test[2] == 2:
  48.       print("Ice (" + str(test[2]) + ")")
  49.    elif test[2] == 3:
  50.       print("Air (" + str(test[2]) + ")")
  51.    elif test[2] == 4:
  52.       print("Spirit (" + str(test[2]) + ")")
  53.    elif test[2] == 5:
  54.       print("Reinforcement (" + str(test[2]) + ")")
  55.    elif test[2] == 6:
  56.       print("Physhic (" + str(test[2]) + ")")
  57.    elif test[2] == 7:
  58.       print("Time (" + str(test[2]) + ")")
  59.    elif test[2] == 8:
  60.       print("Lightning (" + str(test[2]) + ")")
  61.    elif test[2] == 9:
  62.       print("Sound (" + str(test[2]) + ")")
  63.    elif test[2] == 10:
  64.       print("Darkness (" + str(test[2]) + ")")
  65.    elif test[2] == 11:
  66.       print("Illusion (" + str(test[2]) + ")")
  67.    elif test[2] == 12:
  68.       print("Light (" + str(test[2]) + ")")
  69.    elif test[2] == 13:
  70.       print("Wood (" + str(test[2]) + ")")
  71.    elif test[2] == 14:
  72.       print("Empathic (" + str(test[2]) + ")")
  73.    elif test[2] == 15:
  74.       print("Water (" + str(test[2]) + ")")
  75.    elif test[2] == 16:
  76.       print("Gravity (" + str(test[2]) + ")")
  77.    elif test[2] == 17:
  78.       print("Stone (" + str(test[2]) + ")")
  79.    elif test[2] == 18:
  80.       print("Beast (" + str(test[2]) + ")")
  81.    else:
  82.       print("Something went wrong!")
  83.       if (test[3] < 3):
  84.             print("Lamia (" + str(test[3]) + ")")
  85.       elif (test[3] > 18):
  86.             print("Dark Magical Girl (" + str(test[3]) + ")")
  87.       elif (test[3] < 5) & (test[3] > 2):
  88.             print("Drider (" + str(test[3]) + ")")
  89.       elif (test[3] < 7) & (test[3] > 4):
  90.             print("Vampire (" + str(test[3]) + ")")
  91.       elif (test[3] < 9) & (test[3] > 6):
  92.             print("Fallen Angel (" + str(test[3]) + ")")
  93.       elif (test[3] < 11) & (test[3] > 8):
  94.             print("Dryad (" + str(test[3]) + ")")
  95.       elif (test[3] < 13) & (test[3] > 10):
  96.             print("Siren (" + str(test[3]) + ")")
  97.       elif (test[3] < 19) & (test[3] > 16):
  98.             print("Were (" + str(test[3]) + ")")
  99.       elif (test[3] < 17) & (test[3] > 14):
  100.             print("Djinn (" + str(test[3]) + ")")
  101.       elif (test[3] < 15) & (test[3] > 12):
  102.             print("Golem (" + str(test[3]) + ")")
  103.  
  104.    #SPECIALIZATION AND CORRUPTION
  105.    #I KNOW THAT WAS INEFFICIENT BUT IT WORKED OK!
  106.  
  107.    if test[4] < 6:
  108.       print("Melee (" + str(test[4]) + ")")
  109.    if (test[4] < 11) & (test[4] > 5):
  110.       print("Ranged (" + str(test[4]) + ")")
  111.    if (test[4] < 16) & (test[4] > 10):
  112.       print("Mystic (" + str(test[4]) + ")")
  113.    if test[4] > 15:
  114.       print("Fists (" + str(test[4]) + ")")
  115.  
  116.    #WEAPONS
  117.    #I STOPPED USING ELIF BECAUSE IT WASN'T MAKING A DIFFERENCE AND ITS EASIER TO C&P
  118.  
  119.    if test[5] < 6:
  120.       print("Skimpy (" + str(test[5]) + ")")
  121.    if (test[5] < 11) & (test[5] > 5):
  122.       print("Flowing (" + str(test[5]) + ")")
  123.    if (test[5] < 16) & (test[5] > 10):
  124.       print("Elaborate (" + str(test[5]) + ")")
  125.    if test[5] > 15:
  126.       print("Uniform (" + str(test[5]) + ")")
  127.  
  128.    #OUTFIT
  129.  
  130.    if (test[6] == 1) or (test[6] == 2):
  131.       print("Killing Blow (" + str(test[6]) + ")")
  132.    if (test[6] == 3) or (test[6] == 4):
  133.       print("Hammerspace (" + str(test[6]) + ")")
  134.    if (test[6] == 5) or (test[6] == 6):
  135.       print("Familiar (" + str(test[6]) + ")")
  136.    if (test[6] == 7) or (test[6] == 8):
  137.       print("Focused Assualt (" + str(test[6]) + ")")
  138.    if (test[6] == 9) or (test[6] == 10):
  139.       print("Barrage (" + str(test[6]) + ")")
  140.    if (test[6] == 11) or (test[6] == 12):
  141.       print("Power of Friendship (" + str(test[6]) + ")")
  142.    if (test[6] == 13) or (test[6] == 14):
  143.       print("Duplication (" + str(test[6]) + ")")
  144.    if (test[6] == 15) or (test[6] == 16):
  145.       print("Third Eye (" + str(test[6]) + ")")
  146.    if (test[6] == 17) or (test[6] == 18):
  147.       print("Regeneration (" + str(test[6]) + ")")
  148.    if (test[6] == 19) or (test[6] == 20):
  149.       print("Tentacles (" + str(test[6]) + ")")
  150.    
  151.    #POWER
  152.    #GET READY FOR THE REALLY LONG ONE
  153.  
  154.    if (test[7] == 1):
  155.       print("Dual Weapon (" + str(test[7]) + ")")
  156.    if (test[7] == 2):
  157.       print("Martial Training (" + str(test[7]) + ")")
  158.    if (test[7] == 3):
  159.       print("Enhanced Weapon (" + str(test[7]) + ")")
  160.    if (test[7] == 4):
  161.       print("Mystic Artifact (" + str(test[7]) + ")")
  162.    if (test[7] == 5):
  163.       print("Gifted (" + str(test[7]) + ")")
  164.    if (test[7] == 6):
  165.       print("Flexibility (" + str(test[7]) + ")")
  166.    if (test[7] == 7):
  167.       print("Enhanced Transformation (" + str(test[7]) + ")")
  168.    if (test[7] == 8):
  169.       print("Disguise Artifact (" + str(test[7]) + ")")
  170.    if (test[7] == 9):
  171.       print("Blood Magic (" + str(test[7]) + ")")
  172.    if (test[7] == 10):
  173.       print("Hammerspace Handbag (" + str(test[7]) + ")")
  174.    if (test[7] == 11):
  175.       print("Enhanced Sustenance (" + str(test[7]) + ")")
  176.    if (test[7] == 12):
  177.       print("Enhanced Outfit (" + str(test[7]) + ")")
  178.    if (test[7] == 13):
  179.       print("Healing Artifact (" + str(test[7]) + ")")
  180.    if (test[7] == 14):
  181.       print("Allies (" + str(test[7]) + ")")
  182.    if (test[7] == 15):
  183.       print("Monstrous Metamorphosis (" + str(test[7]) + ")")
  184.    if (test[7] == 16):
  185.       print("Sorcery (" + str(test[7]) + ")")
  186.    if (test[7] == 17):
  187.       print("Wings (" + str(test[7]) + ")")
  188.    if (test[7] == 18):
  189.       print("Purification Artifact (" + str(test[7]) + ")")
  190.    if (test[7] == 19):
  191.       print("Awareness (" + str(test[7]) + ")")
  192.    if (test[7] == 20):
  193.       print("Big Friend (" + str(test[7]) + ")")
  194.  
  195.  
  196.    #PERKS 1
  197.    #KILL ME NOW
  198.  
  199.    if (test[8] == 1):
  200.       print("Dual Weapon (" + str(test[8]) + ")")
  201.    if (test[8] == 2):
  202.       print("Martial Training (" + str(test[8]) + ")")
  203.    if (test[8] == 3):
  204.       print("Enhanced Weapon (" + str(test[8]) + ")")
  205.    if (test[8] == 4):
  206.       print("Mystic Artifact (" + str(test[8]) + ")")
  207.    if (test[8] == 5):
  208.       print("Gifted (" + str(test[8]) + ")")
  209.    if (test[8] == 6):
  210.       print("Flexibility (" + str(test[8]) + ")")
  211.    if (test[8] == 7):
  212.       print("Enhanced Transformation (" + str(test[8]) + ")")
  213.    if (test[8] == 8):
  214.       print("Disguise Artifact (" + str(test[8]) + ")")
  215.    if (test[8] == 9):
  216.       print("Blood Magic (" + str(test[8]) + ")")
  217.    if (test[8] == 10):
  218.       print("Hammerspace Handbag (" + str(test[8]) + ")")
  219.    if (test[8] == 11):
  220.       print("Enhanced Sustenance (" + str(test[8]) + ")")
  221.    if (test[8] == 12):
  222.       print("Enhanced Outfit (" + str(test[8]) + ")")
  223.    if (test[8] == 13):
  224.       print("Healing Artifact (" + str(test[8]) + ")")
  225.    if (test[8] == 14):
  226.       print("Allies (" + str(test[8]) + ")")
  227.    if (test[8] == 15):
  228.       print("Monstrous Metamorphosis (" + str(test[8]) + ")")
  229.    if (test[8] == 16):
  230.       print("Sorcery (" + str(test[8]) + ")")
  231.    if (test[8] == 17):
  232.       print("Wings (" + str(test[8]) + ")")
  233.    if (test[8] == 18):
  234.       print("Purification Artifact (" + str(test[8]) + ")")
  235.    if (test[8] == 19):
  236.       print("Awareness (" + str(test[8]) + ")")
  237.    if (test[8] == 20):
  238.       print("Big Friend (" + str(test[8]) + ")")
  239.  
  240.    #PERKS 2
  241.    #THANK THE LORD FOR CTRL + G
  242.    #KILLLLL MEEEEEEEEEEEE
  243.  
  244.    if (test[9] == 1):
  245.       print("Interdimentional Tourist (" + str(test[9]) + ")")
  246.    if (test[9] == 2):
  247.       print("Closure (" + str(test[9]) + ")")
  248.    if (test[9] == 3):
  249.       print("Fated (" + str(test[9]) + ")")
  250.    if (test[9] == 4):
  251.       print("Training (" + str(test[9]) + ")")
  252.    if (test[9] == 5):
  253.       print("Interdimentional Home (" + str(test[9]) + ")")
  254.    if (test[9] == 6):
  255.       print("Incognito (" + str(test[9]) + ")")
  256.    if (test[9] == 7):
  257.       print("Environmental Sealing (" + str(test[9]) + ")")
  258.    if (test[9] == 8):
  259.       print("Get out of Jail (" + str(test[9]) + ")")
  260.    if (test[9] == 9):
  261.       print("Big Damn Hero (" + str(test[9]) + ")")
  262.    if (test[9] == 10):
  263.       print("Absolute Direction (" + str(test[9]) + ")")
  264.    if (test[9] == 11):
  265.       print("Big Backpack (" + str(test[9]) + ")")
  266.    if (test[9] == 12):
  267.       print("Natural Aging (" + str(test[9]) + ")")
  268.    if (test[9] == 13):
  269.       print("Masculinity (" + str(test[9]) + ")")
  270.    if (test[9] == 14):
  271.       print("Patron (" + str(test[9]) + ")")
  272.    if (test[9] == 15):
  273.       print("Money (" + str(test[9]) + ")")
  274.    if (test[9] == 16):
  275.       print("Twin Soul (" + str(test[9]) + ")")
  276.    if (test[9] == 17):
  277.       print("Soul Jar (" + str(test[9]) + ")")
  278.    if (test[9] == 18):
  279.       print("Eternal Style (" + str(test[9]) + ")")
  280.    if (test[9] == 19):
  281.       print("A Way Out (" + str(test[9]) + ")")
  282.    if (test[9] == 20):
  283.       print("Fake Parents(" + str(test[9]) + ")")
  284.  
  285.    #PERKS 3
  286.    #NEXT ONES NOT AS BAD
  287.  
  288.    if (test[10] == 1):
  289.       print("Interdimentional Tourist (" + str(test[10]) + ")")
  290.    if (test[10] == 2):
  291.       print("Closure (" + str(test[10]) + ")")
  292.    if (test[10] == 3):
  293.       print("Fated (" + str(test[10]) + ")")
  294.    if (test[10] == 4):
  295.       print("Training (" + str(test[10]) + ")")
  296.    if (test[10] == 5):
  297.       print("Interdimentional Home (" + str(test[10]) + ")")
  298.    if (test[10] == 6):
  299.       print("Incognito (" + str(test[10]) + ")")
  300.    if (test[10] == 7):
  301.       print("Environmental Sealing (" + str(test[10]) + ")")
  302.    if (test[10] == 8):
  303.       print("Get out of Jail (" + str(test[10]) + ")")
  304.    if (test[10] == 9):
  305.       print("Big Damn Hero (" + str(test[10]) + ")")
  306.    if (test[10] == 10):
  307.       print("Absolute Direction (" + str(test[10]) + ")")
  308.    if (test[10] == 11):
  309.       print("Big Backpack (" + str(test[10]) + ")")
  310.    if (test[10] == 12):
  311.       print("Natural Aging (" + str(test[10]) + ")")
  312.    if (test[10] == 13):
  313.       print("Masculinity (" + str(test[10]) + ")")
  314.    if (test[10] == 14):
  315.       print("Patron (" + str(test[10]) + ")")
  316.    if (test[10] == 15):
  317.       print("Money (" + str(test[10]) + ")")
  318.    if (test[10] == 16):
  319.       print("Twin Soul (" + str(test[10]) + ")")
  320.    if (test[10] == 17):
  321.       print("Soul Jar (" + str(test[10]) + ")")
  322.    if (test[10] == 18):
  323.       print("Eternal Style (" + str(test[10]) + ")")
  324.    if (test[10] == 19):
  325.       print("A Way Out (" + str(test[10]) + ")")
  326.    if (test[10] == 20):
  327.       print("Fake Parents(" + str(test[10]) + ")")
  328.  
  329.    #PERKS 4
  330.    #AND NOW THE BIG PUSH
  331.  
  332.    if (test[11] == 1):
  333.       print("Dual Weapon or Interdimentional Tourist (" + str(test[11]) + ")")
  334.    if (test[11] == 2):
  335.       print("Martial Training or Closure (" + str(test[11]) + ")")
  336.    if (test[11] == 3):
  337.       print("Enhanced Weapon or Fated(" + str(test[11]) + ")")
  338.    if (test[11] == 4):
  339.       print("Mystic Artifact or Training(" + str(test[11]) + ")")
  340.    if (test[11] == 5):
  341.       print("Gifted or Interdimentional Home(" + str(test[11]) + ")")
  342.    if (test[11] == 6):
  343.       print("Flexibility or Incognito(" + str(test[11]) + ")")
  344.    if (test[11] == 7):
  345.       print("Enhanced Transformation or Environmental Sealing(" + str(test[11]) + ")")
  346.    if (test[11] == 8):
  347.       print("Disguise Artifact or Get out of Jail(" + str(test[11]) + ")")
  348.    if (test[11] == 9):
  349.       print("Blood Magic or Big Damn Hero(" + str(test[11]) + ")")
  350.    if (test[11] == 10):
  351.       print("Hammerspace Handbag or Absolute Direction(" + str(test[11]) + ")")
  352.    if (test[11] == 11):
  353.       print("Enhanced Sustenance or Big Backpack(" + str(test[11]) + ")")
  354.    if (test[11] == 12):
  355.       print("Enhanced Outfit or Natural Aging(" + str(test[11]) + ")")
  356.    if (test[11] == 13):
  357.       print("Healing Artifact or Masculinity(" + str(test[11]) + ")")
  358.    if (test[11] == 14):
  359.       print("Allies or Patron(" + str(test[11]) + ")")
  360.    if (test[11] == 15):
  361.       print("Monstrous Metamorphosis  or Money(" + str(test[11]) + ")")
  362.    if (test[11] == 16):
  363.       print("Sorcery or Twin Soul(" + str(test[11]) + ")")
  364.    if (test[11] == 17):
  365.         print("Wings or Soul Jar(" + str(test[11]) + ")")
  366.    if (test[11] == 18):
  367.       print("Purification Artifact or Eternal Style(" + str(test[11]) + ")")
  368.    if (test[11] == 19):
  369.       print("Awareness or A Way Out(" + str(test[11]) + ")")
  370.    if (test[11] == 20):
  371.       print("Big Friend or Fake Parents(" + str(test[11]) + ")")
  372.  
  373. #PERKS 5
  374. #IT HAS BEEN DONE
  375.  
  376.    reroll = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement