RPG Game
I'm a beginner. Just started learning python a few weeks ago but haven't actively done anything. My first project (no where near done. at all.) I was wondering how i could have the game file save to my computer. so i could open different characters. <code> import math import time print("""This is pain V 0.01. By Kody Noe A long term side project. Caps do matter. If told to type somthing as 'Example' don't type it as 'example' or it won't work """) #Jaida's Worm (Wormfish) WF= 'Wormfish' #Character things charName = input("{}: What is your name, adventurer?".format(WF)) charHealth = 100 charMana = 100 charGold = 100 charInventory = 0 charHealthMax = 100 charHealthMin = 0 charInv= {"Health Potion" : 0 , "Mana Potion" : 0 ,} #Potion things HealthPotion = charHealth + 25 ManaPotion = charMana + 25 #Progiest things ProgiestPotionsMax = 3 ProgiestManaPotionCount = 3 ProgiestHealthPotionCount = 3 ProgiestShop= "Health Potion: {} | Mana Potion: {}".format(ProgiestHealthPotionCount,ProgiestManaPotionCount, ) Progiest = print("Progiest: Welcome to the town of TinSpire, {} , How may I help you?".format(charName)) userAnswer = input("""Options: Shop Talk Leave {} : """.format(charName)) if userAnswer == 'Shop': print("Progiest: Welcome to my shop!") print("{}".format(ProgiestShop)) input("Would you like to buy something? ('Yes' or 'No')") if 'Yes': input("Type 'Health Potion' or 'Mana Potion' ") if ' Health Potion': input("Buy one Health Potion for 20 gold? ('Yes' or 'No')") if 'Yes': print("Bought one Health Potion for 20 gold") if userAnswer == 'Talk': print("Progiest: What would you like to talk about?") if userAnswer == 'Leave': print("Progiest: Goodbye {}".format(charName)) </code>