Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # A Stand Generator for Python
- #Imported stuff goes below
- import random
- # Global variables and lists go below. Global variables/databases are not bad practice, being bad at using them is bad practice.
- standAdjective = ["Red", "Blue", "Yellow", "Green", "Hot", "Cold", "Smooth", "Fluffy"]; #adjectives to be combined with the stand's mystical name part
- standMystical = { #the various Mystical things the stand could be
- "Greek" : ["Zeus", "Hera", "Hermes", "Ares" ],
- "Egypt" : ["Thoth", "Osiris", "Bast" ],
- "Tarot" : ["Tower", "Magician", "Moon", "Star", "Sun", "Hanged Man" ]
- }
- standAdjectiveForm = ["a bizzare", "a mighty", "a mutant" ]; #used for describing the stand
- standCoreForm = ["dog", "cat", "bird", "whale", "lemur" ]; #the core appearance of the stand
- standGrade = {0 : "Special", 1 : "A", 2 : "B", 3 : "C", 4 : "D", 5 : "E" }
- standType = ['Generalist', 'Self-Limited', 'Close-Ranged Power', 'Long-Ranged Manipulated', 'Long-Ranged Autopilot' ]
- #functions used throughout the code go here
- def det_standType(): #returns the type of stand the person will be generating
- random.seed()
- standTypeChoice = random.randrange(4)
- return standType[standTypeChoice]
- def det_standNameMystical(): #Choses a stand base with a 'mystical' theme
- random.seed()
- mysticChoices = standMystical.keys() # Pulls possible topics from the pool
- mysticChosen = mysticChoices[random.randrange(len(mysticChoices))] #Choses a topic
- baseChoicesNumber = len(standMystical[mysticChosen]) #draws number of possible bases from the topic
- baseChoicesOptions = standMystical[mysticChosen]
- baseChoicesFinal = baseChoicesOptions[random.randrange(int(baseChoicesNumber))]
- return baseChoicesFinal
- def det_standAdjective(): #choses an adjective for the stand name
- random.seed()
- standAdjectiveChoice = random.randrange(len(standAdjective))
- return standAdjective[standAdjectiveChoice]
- def det_standAdjectiveForm(): #choses an Adjective for the stand's form
- random.seed()
- standAdFormChoice = random.randrange(len(standAdjectiveForm))
- return standAdjectiveForm[standAdFormChoice]
- def det_standCoreForm(): #choses the core form of the stand
- random.seed()
- standFormChoice = random.randrange(len(standCoreForm))
- return standCoreForm[standFormChoice]
- def det_standGrade(category): #calculates the grading of the stand in accordance with the type generated
- random.seed()
- if category == 'Generalist':
- destructivePower = standGrade[random.randint(2, 4)]
- speedPower = standGrade[random.randint(2, 3)]
- rangePower = standGrade[random.randint(2, 4)]
- duraPower = standGrade[random.randint(3, 4)]
- precisePower = standGrade[random.randint(2, 4)]
- learnPower = standGrade[random.randint(1, 5)]
- standStats = (' Your stand is graded ' + destructivePower + ' in destructive power, ' + speedPower + ' in speed and reflexes, ' + rangePower + ' in the range at which it can operate, ' + duraPower + ' in the stand\'s endurance and ability to take punishment, ' + precisePower + ' in its dexterity and accuracy, or general precision of its movements, and ' + learnPower + ' in its potential to develop further given future training or experience.')
- return standStats
- elif category == 'Self-Limited':
- destructivePower = standGrade[random.randint(1, 4)]
- speedPower = standGrade[random.randint(1, 3)]
- rangePower = standGrade[0]
- duraPower = standGrade[random.randint(1, 2)]
- precisePower = standGrade[random.randint(1, 4)]
- learnPower = standGrade[random.randint(1, 4)]
- standStats =(' Your stand is graded ' + destructivePower + ' in destructive power, ' + speedPower + ' in speed and reflexes, ' + rangePower + ' in range because it is only able to access your very immediate surroundings, ' + duraPower + ' in the stand\'s endurance and ability to take punishment, ' + precisePower + ' in its dexterity and accuracy, or general precision of its movements, and ' + learnPower + ' in its potential to develop further given future training or experience.')
- return standStats
- elif category == 'Close-Ranged Power':
- destructivePower = standGrade[random.randint(1, 3)]
- speedPower = standGrade[random.randint(1, 4)]
- rangePower = standGrade[random.randint(3, 5)]
- duraPower = standGrade[random.randint(2, 3)]
- precisePower = standGrade[random.randint(1, 5)]
- learnPower = standGrade[random.randint(1, 5)]
- standStats =(' Your stand is graded ' + destructivePower + ' in destructive power, ' + speedPower + ' in speed and reflexes, ' + rangePower + ' in the range at which it can operate, ' + duraPower + ' in the stand\'s endurance and ability to take punishment, ' + precisePower + ' in its dexterity and accuracy, or general precision of its movements, and ' + learnPower + ' in its potential to develop further given future training or experience.')
- return standStats
- elif category == 'Long-Ranged Manipulated':
- destructivePower = standGrade[random.randint(2, 5)]
- speedPower = standGrade[random.randint(1, 5)]
- rangePower = standGrade[1]
- duraPower = standGrade[random.randint(3, 5)]
- precisePower = standGrade[random.randint(1, 3)]
- learnPower = standGrade[random.randint(1, 5)]
- standStats =(' Your stand is graded ' + destructivePower + ' in destructive power, ' + speedPower + ' in speed and reflexes, ' + rangePower + ' in the range at which it can operate, though it may be far longer, ' + duraPower + ' in the stand\'s endurance and ability to take punishment, ' + precisePower + ' in its dexterity and accuracy, or general precision of its movements, and ' + learnPower + ' in its potential to develop further given future training or experience.')
- return standStats
- elif category == 'Long-Range Autopilot':
- destructivePower = standGrade[random.randint(2, 5)]
- speedPower = standGrade[random.randint(2, 5)]
- rangePower = standGrade[0]
- duraPower = standGrade[random.randint(2, 5)]
- precisePower = standGrade[random.randint(4, 5)]
- learnPower = standGrade[random.randint(2, 5)]
- standStats =( 'Your stand is graded ' + destructivePower + ' in destructive power, ' + speedPower + ' in speed and reflexes, ' + rangePower + ' in range as a result of its ability to act completely independant from your command, ' + duraPower + ' in the stand\'s endurance and ability to take punishment, ' + precisePower + ' in its dexterity and accuracy, or general precision of its movements, and ' + learnPower + ' in its potential to develop further given future training or experience.')
- return standStats
- else:
- return 'WHOOPS PILZ DUN FUKT UP'
- type = det_standType()
- grade = det_standGrade(type)
- nameNoun = det_standNameMystical()
- nameAdjective = det_standAdjective()
- formNoun = det_standCoreForm()
- formAdjective = det_standAdjectiveForm()
- print('Your stand is a ' + type + '-type. It is called ' + nameAdjective + ' ' + nameNoun + ' and takes the form of a ' + formAdjective + ' ' + formNoun + '.')
- print(grade)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement