ID:179439
 
Its time i learn to do savefile's.. I tried earlier and nothin worked :P I need a little help learnin' this.

Any help is wanted =]

-Rcet
I'll give you a really simple code for loading and saving all non tmp, global, or const vars:

mob/verb/Save()
var/savefile/F = new("[usr.ckey].sav")
Write(F)

mob/verb/Load()
var/savefile/F = new("[usr.ckey].sav")
Read(F)

Rcet wrote:
Its time i learn to do savefile's.. I tried earlier and nothin worked :P I need a little help learnin' this.

Have you tried the CharacterHandling library? That seems to do the job for most people. Here are a couple of demos showing how to use it.

byond://Deadron.SimpleSaving
byond://Deadron.CharacterSaving

For those who need to do something more customized, here is a discussion of savefiles that I wrote up:

http://www.deadron.com/Games/ByondBasicSavefiles.html