In response to Bakasensei
Bakasensei wrote:
if(m.HP>9000) //ITS OVER 9000!


lol. I just saw that episode a few days ago. What's with everyone quoting that?
In response to FiveUSSJ
Also, i don't think you are saving the mob's variable either.

mob
Write(var/savefile/F)
..()
F["last_x"]<<last_x
F["last_y"]<<last_y
F["last_z"]<<last_z
Read(var/savefile/F)
..()
F["last_x"]>>last_x
F["last_y"]>>last_y
F["last_z"]>>last_z
loc=locate(last_x,last_y,last_z)
proc
LoadCharacter()
var/SAVE_FOLDER = "Save/[src.ckey].sav"
worldlog+="[src]/[src.key]([src.client.address]) enters game.<br>"
if(fexists(SAVE_FOLDER))
var/savefile/F = new("Save/[src.ckey].sav")
//Dont think that is needed as the savefile was opened.
/*
F["last_x"] >> src.last_x
F["last_y"] >> src.last_y
F["last_z"] >> src.last_z

I prefer using Write() and Load() for saving and loading
player's old locations my dude.
*/

//Hmm this is the error line
F["mob"] >> src
F["verbs"] >> src.verbs//not sure if this would work

// src.loc=locate(src.last_x,src.last_y,src.last_z)
Name()
world<<"[src] has logged in."
SaveChar()
src.last_x=src.x
src.last_y=src.y
src.last_z=src.z
var/savefile/F = new("Save/[src.ckey].sav") // This creates a new file called your key.sav in the file Save
/*
F["last_x"] << src.last_x// This stuff saves the players location
F["last_y"] << src.last_y
F["last_z"] << src.last_z
I prefer using Write() and Load() for saving and loading
player's old locations my dude.
*/

F["mob"] << src
for(var/K in src.verbs)
F["verbs"] << K
//Dont think that is needed


I haven't tested it yet, you should do it remember to back-up the opne you got before copy/paste this one(that's what most of people does here, no offense).
In response to Speedro
It's a silly YouTube/internet meme.
In response to FiveUSSJ
The error is pretty self-explanatory; you cannot write to the verbs variable. It's value is constantly a hard-fixed list, and you can't directly set its value so as to change it to another list, such as one loaded from a savefile.
What you can however is manipulate the existing list the variable references. And as such, to virtually reset a verbs list to a given list, you could do this (look up the procs and operators involved):
var/list/my_list //load from savefile or whatever
verbs.Cut() //empty the list - remove all elements
verbs += my_list //add the elements in my_list to verbs

Naturally the result is that verbs ends up really as a copy of my_list; it holds all the same elements.
In response to Kaioken
Thanks, Kaioken, that works :D Thank you all for helping me ^^
Page: 1 2