Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Easily printable list of ALL tribes and their prices
- tribe_list = '''(Free Human Tribes)
- Xin-Xi
- Imperius
- Bardur
- Oumaji
- ($1 Human Tribes)
- Kickoo
- Hoodrick
- Vengir
- Zebasi
- Ai-Mo
- Quetzali
- Yadakk
- ($2 Special Tribes)
- Aquarion
- Elyrion
- Polaris
- Cymanti
- ($4 Human Tribe)
- Luxidoor'''
- # Easily printable list of FREE tribes
- free_tribe_list = '''(Free Human Tribes)
- Xin-Xi
- Imperius
- Bardur
- Oumaji'''
- # Easily printable list of PAID tribes and their prices
- paid_tribe_list = '''($1 Human Tribes)
- Kickoo
- Hoodrick
- Vengir
- Zebasi
- Ai-Mo
- Quetzali
- Yadakk
- ($2 Special Tribes)
- Aquarion
- Elyrion
- Polaris
- Cymanti
- ($4 Human Tribe)
- Luxidoor'''
- # Easily printable end messages
- xin_xi_msg = "Cut down your enemies with Xin-Xi!"
- imperius_msg = 'The Imperius would love you. Fight "Defensive" wars and spread "Civilization" today!'
- bardur_msg = "Plunder the square with Bardur!"
- oumaji_msg = "Roam the endless desert with Oumaji!"
- kickoo_msg = "Try the Kickoo! They have so much fish!"
- hoodrick_msg = "Pelt your enemies from the trees with the Hoodrick! Make them regret ever being born!"
- vengir_msg = "Vengir is for you. Fight back against the oppressors!"
- zebasi_msg = "You must prefer the scientific Zebasi"
- ai_mo_msg = "Try the Ai-Mo. They kinda look like Aang."
- quetzali_msg = "Show your devotion to the bird gods with Quetzali"
- yadakk_msg = "Overwhelm your foes with sheer numbers with the Yadakk nomads"
- aquarion_msg = "Explore the ocean with Aquarion!"
- elyrion_msg = "Raise polytuars and DRAGONS (Yes! DRAGONS!!!) with Elyrion!"
- polaris_msg = "Curse the entire square to a frigid paradise with Polaris!"
- cymanti_msg = "Show the true power of insects with Cymanti"
- luxidoor_msg = "Luxidoor seems up your alley. They have funny hats"
- # Start of program
- print("Welcome to the Polytopia Tribe Reccomendation Program (PTRP)")
- enter = int(input("enter 1 to start, 2 to quit: "))
- while enter == 1:
- print("I know this defeats the purpose of it, but...")
- tribe_decide = input("Do you have a tribe in mind? (yes/no): ")
- while tribe_decide.lower() != "yes" and tribe_decide.lower() != "no":
- tribe_decide = input("Invalid option, try again: ")
- if tribe_decide.lower() == "yes":
- funds = float(input("Cool, how much cash ($) you got: "))
- while funds < 0:
- funds = float(input("Invalid number, try again: "))
- if funds < 1:
- print("Sorry, you need at least $1")
- purchasing = True
- eastern_tribe = False
- western_tribe = False
- super_tribe = False
- else:
- print("Good. We're gonna have fun!")
- purchasing = False
- ##############################################
- #Option 1, First sections off from Eastern, Western, or Super tribes
- if purchasing == False:
- #Section off to 3 groups
- tribe_style = input("(Eastern), (Western), or (Mythical) world? ")
- while tribe_style.lower() != "eastern" and tribe_style.lower() != "western" and tribe_style.lower() != "mythical":
- tribe_style = input("Invalid option, try again: ")
- if tribe_style.lower() == "eastern":
- eastern_tribe = True
- western_tribe = False
- super_tribe = False
- elif tribe_style.lower() == "western":
- western_tribe = True
- eastern_tribe = False
- super_tribe = False
- else:
- eastern_tribe = False
- western_tribe = False
- super_tribe = True
- #####
- #Group 1 - Eastern Tribes
- #Xin-Xi, Oumaji, Kickoo, Luxidoor, Zebasi, Ai-Mo, Yadakk
- if eastern_tribe == True and purchasing == False:
- print('"Eastern!" is incredibly broad so we have to narrow it down a bit')
- farm_sword = input("Do you prefer to (stay) home and build up your resources, or (explore) and take them from others")
- while farm_sword.lower() != "stay" and farm_sword.lower() != "explore":
- farm_sword = input("Invalid option, try again: ")
- if farm_sword.lower() == "stay":
- stay_preference = "Do you prefer the company of (elephants), or the taste of fresh (wheat)? Perhaps (fish):"
- while stay_preference.lower() != "elephants" and stay_preference.lower() != "wheat" and stay_preference.lower() != "fish":
- stay_preference = input("Invalid option, try again: ")
- if stay_preference.lower() == "fish":
- print(kickoo_msg)
- elif stay_preference.lower() == "wheat":
- print(zebasi_msg)
- elif stay_preference.lower() == "elephants":
- print(luxidoor_msg)
- else:
- explore_preference = input("With (sword)s? On (horse)back? Or your bare (hands)" )
- while explore_preference.lower() != "hands" and explore_preference.lower() != "sword" and explore_preference.lower() != "horse":
- explore_preference = input("Invalid option, try again: ")
- if explore_preference.lower() == "hands":
- print(ai_mo_msg)
- elif explore_preference.lower() == "sword":
- print(xin_xi_msg)
- elif explore_preference.lower() == "horse":
- explore_terrain = input("Do you fight best in the (steppe) or the (desert): ")
- while explore_terrain.lower() != "steppe" and explore_terrain.lower() != "desert":
- explore_terrain = input("Invalid option, try again: ")
- if explore_terrain.lower() == "steppe":
- print(yadakk_msg)
- else:
- print(oumaji_msg)
- #####
- #Group 2 - Western Tribes
- #Imperius, Bardur, Hoodrick, Vengir, Quetzali
- elif western_tribe == True and purchasing == False:
- print("So... 'Western' world... ")
- input("... Are you white? ")
- print("Just kidding, do you like birds (yes/no)?")
- birds = input("They're nice right: ")
- while birds.lower() != "yes" and birds.lower() != "no":
- birds = input("Invalid option, try again: ")
- if birds.lower() == "yes":
- print("Either way, " + quetzali_msg)
- else:
- print("Oh...")
- castle = input("Well, castles look nice right (yes/no): ")
- while castle.lower() != "yes" and castle.lower() != "no":
- castle = input("Invalid option, try again: ")
- if castle.lower() == "yes":
- castle_style = input("You like Old (English) or (Gothic) architecture? ")
- while castle_style.lower() != "english" and castle_style.lower() != "gothic":
- castle_style = input("Invalid option, try again: ")
- if castle_style.lower() == "english":
- print(hoodrick_msg)
- else:
- print(vengir_msg)
- else:
- print("Wow! seriously!?")
- print("You must really hate development and nature in general")
- print("...")
- print("There are TWO tribes that hate nature and development. Like you. But first:")
- weather = input("Do you prefer the endless, frigid (winter) or so much (heat) you literally just melt away?")
- while weather.lower() != "winter" and weather.lower() != "heat":
- weather = input("Invalid option, try again: ")
- if weather.lower() == "heat":
- print(imperius_msg)
- else:
- print(bardur_msg)
- #####
- # Group 3 - Mythical Tribes
- # Polaris, Cymanti, Elyrion, Aquarion
- elif super_tribe == True and purchasing == False:
- print("Wendigo, Dragons, fishmen, and 80 foot centipedes.")
- print("We'll figure out what works for you!")
- water_fight = input("Do you feel comfortable sending your army into the ocean (yes/no): ")
- while water_fight.lower() != "yes" and water_fight.lower() != "no":
- water_fight = input("Invalid option, try again: ")
- if water_fight.lower() == "yes":
- water_love = input("Okay, but do you actually LIKE fighting in water (yes/no)")
- while water_love.lower() != "yes" and water_love.lower() != "no":
- water_love = input("Invalid option, try again: ")
- if water_love.lower() == "yes":
- print(aquarion_msg)
- else:
- print("Luckily for you, Polaris are super effective against naval units")
- print(polaris_msg)
- else:
- print("You may hate naval combat, but it's gonna bit you in the ass later")
- print("Sorry")
- creature_preference = input("Which do you like more? (Dragons) or (Centipedes)?")
- while creature_preference.lower() != "dragons" and creature_preference.lower() != "centipedes":
- creature_preference = input("Invalid option, try again: ")
- if creature_preference.lower() == "dragons":
- print(elyrion_msg)
- else:
- print(cymanti_msg)
- ##############################################
- #Option 2
- # Here, ask for how many tribes user wants to purchase, loop purchase screen until finished
- #Unsure how to loop back to purchase screen if user buys more than their funds allow
- elif purchasing == True:
- cost = 0
- if funds < 19:
- print("You get the following for free:")
- print("---------")
- print(free_tribe_list)
- print("---------")
- print("Here are all the paid tribes")
- print("---------")
- print(paid_tribe_list)
- print("---------")
- bought_tribes = int(input("How many tribes do you plan on buying (Numbers only, 1234 etc.): "))
- while bought_tribes <= 0 or bought_tribes >= 13:
- if bought_tribes >= 13:
- print("There are only 12 tribes")
- bought_tribes = int(input("How many: "))
- else:
- print("Invalid number")
- bought_tribes = int(input("How many: "))
- print("---------")
- print(paid_tribe_list)
- print("---------")
- for amount in range(bought_tribes):
- item = input("Type the name of the tribe you want to buy: ")
- if item.lower() == "elyrion" or item.lower() == "polaris" or item.lower() == "aquarion" or item.lower() == "cymanti":
- funds -= 2
- cost += 2
- if cost > funds:
- print("Whoops! You bought more than you can afford!")
- break
- elif item.lower() == "luxidoor":
- funds -= 4
- cost += 4
- if cost > funds:
- print("Whoops! You bought more than you can afford!")
- break
- else:
- funds -= 1
- cost += 1
- if cost > funds:
- print("Whoops! You bought more than you can afford!")
- break
- print("You have purchased " + item + "!")
- if cost > funds:
- print("Whoops! You bought more than you can afford!")
- else:
- print("Thank you!")
- else:
- print("You can buy every tribe if you want!")
- print("Just do that!")
- enter = int(input("enter 1 to start, 2 to quit: "))
- print("Thanks for using the PTRP")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement