client/proc/Save()
var/savefile/F=new("Save_Files/[src.ckey].sav")
var/mob/characters/V=usr
V.verbstuff()
F<<V
F<<V.x
F<<V.y
F<<V.z
F<<V.verbstuff
client/proc/Load()
var/savefile/F=new("Save_Files/[src.ckey].sav")
var/mob/characters/V=usr
F>>V
F>>V.x
F>>V.y
F>>V.z
F>>V.verbstuff
V.addverbs()
mob
New()
..()
src.verbstuff = new()
mob
proc
verbstuff()
for(var/verb/O in src.verbs)
src.verbstuff.Add(O)
mob
proc
addverbs()
for(var/verb/O in src.verbstuff)
src.verbs.Add(O)
And here's my chooseCharacter mob that's invisible.
mob
other
chooseCharacter
Login()
world << "<i><font color=blue><b>[usr]</b></font> is creating a character.</i>"
usr.loc = locate(7,7,4)
Logout()
..()
var
chooseHair
chooseRace
chooseSkin
Now, here's the code for the "Load" graphic. Once a user clicks this it should load their character.
turf
Load
icon = 'load.bmp'
Click()
usr.client.Load()
..()
The problem I'm having is that the mob doesn't go to his location. I checked the location of the mob after I click "Load" and it's 0,0,0 and the screen is black -_-. Please help.
Lummox JR