ID:158671
 
I'm not that good at savefiles and stuff, and I don't know how I'm suppose to record a variable that tells me if it's there first time playing.
The only idea I've gotten so far was:
world
New()
var/savefile/Z=new("Hosting/SaveFiles/HasPlayed.savv")
Z["HasPlayed"]>>HasPlayed
..()
Del()
var/savefile/Z=new("Hosting/SaveFiles/HasPlayed.savv")
Z["HasPlayed"]<<HasPlayed
..()

var/list/HasPlayed = list()
mob/Login()
if(key in HasPlayed)
... // Loading stuff
else
... // Creation & tutorial stuff
HasPlayed += key


Question: Is there a better way to do this?
Not sure, but if all you want is to tell if they've played or not and nothing else, you can just do, text2file() with the person key, and do the fexists, file exists, and then that will tell u, you'd create the file on logout, check for existance on login, but if you want save other stuff, you want to use savefile like your saying there.
In response to Superbike32
Thanks.