mob/var
Exists=0
client
proc
Load()
var/savefile/load
load = new ("Player Saves/[mob.ckey].sav")
load["mob"] >> src.mob
load["x"] >> src.mob.x
load["y"] >> src.mob.y
load["z"] >> src.mob.z
Save()
if(!src)return
if(!src.mob)return
var/savefile/save
save = new ("Player Saves/[mob.ckey].sav")
save["mob"] << src.mob
save["x"] << src.mob.x
save["y"] << src.mob.y
save["z"] << src.mob.z
mob
Logout()
src.client.Save()
world<<"[src] has logged out"
del(src)
Login()
if(src.Exists==1)
src.client.Load()
else
src.verbs-=typesof(/mob/verb)
if(src.client.key == "Guest")
del(src.client)
src.loc = locate(16,16,2)
src<<"If you take the blue pill, you return to the matrix, and you forget everything of us<br>But if you take the red pill, i will show you, just how far, the rabbithole goes"
switch(input("What pill do you take?","The choice") in list("I take the blue pill","I take the red pill"))
if("I take the blue pill")
src<<"Then you return to the matrix..."
sleep(20)
del(src)
else
var/N = input("Please choose your name...","?")as text
if(!N)
src<<"You dont wanna play games? Mr Anderson?"
sleep(20)
del(src)
if(Check_For_Illigal(N,Special) == TRUE)
src<<"You cannot change the rules of the game, only bend them..."
sleep(20)
del(src)
src.name="[N]"
src<<browse(welcome,"window=Welcome;size=320x420;can_close=1;can_resize=1;can_minimize=1")
src.loc=locate(12,41,1)
src.icon='Shark1.dmi'
src.icon_state="0,1"
src.verbs+=typesof(/mob/verb)
src.Exists=1
src.client.Save()
Problem description:
Well the problem is semi obvious, the save just doesnt work. lol i set the var Exists=0 so that from the start it isnt real, then once you make a char it becomes 1 so that it just loads
Btw, if there is an error in the indentation around the line, you dont wanna play games? Mr Anderson?, ignore it, its jjust my copy and paste skills fail lol