I'm working on a solo adventure RPG console game, similar to a MUD but with no Multi-user.. so a D... I'm trying to save the current function the player is in so that they can load their save.
something like:
def Save()
save = open("Save.txt", "w")
save.write(func)
save.write(Player_Name)
# etc.
so that on the main screen they can choose load and the code would read:
def Load()
load = open("Save.txt", "r")
Func = load.readline()
Player_Name = load.readline()
# etc.
and then after it reads the doc it loads the correct function for where they are in my game (each chapter has its own function)
any assistance on how to make this work would be awesome!
thanks guys (and gals)