So basically I am trying to recreate opening a loot box in Overwatch into a runnable program in python. I'm trying to make it take four random items in an array and display them each time the user types 'open' to open a box. After every box is opened, I want it to loop and ask if they want to open another one, or if they don't and then stop the program. Here's my code so far:
import random# welcome
print("Welcome to the Overwatch Loot Box Simulator!")OpenBox = input("Type 'open' to open a loot box!")OverwatchSkins = ['Legendary: Oni Genji','Epic: Frostbite Pharah','Rare: Banana Winston','Rare: Cobalt Reinhardt','Epic: Synaesthesia Lucio','Legendary: Lone Wolf Hanzo','Rare: Rose Widowmaker','Rare: Celestial Mercy','Epic: Carbon Fiber D.VA','Legendary: Dr. Junkenstein Junkrat','Epic: Nihon Genji','Rare: Blood Reaper','Rare: Ebony McCree','Epic: Demon Hanzo','Rare: Peridot Ana','Rare: Lemonlime D.VA','Epic: Taegeukgi D.VA','Legendary: Mei-rry Mei','Legendary: Augmented Sombra','Rare: Technomancer Symmetra','Rare: Mud Roadhog'
]if OpenBox == "open":print(random.choice(OverwatchSkins))
the OverwatchSkins array would just be filled up with more names later on. Any help is greatly appreciated!