ID:161287
 
mob
Write(savefile/F)
F["x"]<<x
F["y"]<<y
F["z"]<<z
F["icon"]<<icon
F["overlays"]<<overlays
F["mob"]<<src
Read(F)
F["x"]>>x
F["y"]>>y
F["z"]>>z
F["icon"]>>icon
F["overlays"]>>overlays
F["mob"]>>src
loc=locate(x,y,z)

(Note: don't worry about the icon and overlays, It's so because I need them later to read the icon of the mob.)

How could I save a list to that kind of saving? I tried a couple things, but whatever I tried it erased the list seemingly.

So, how exactly do I save a list in the F["list"]<< and F["list"]>>?

Thanks for your time,

Rick
</<<>
</<>
mob
Write(savefile/F)
F["x"]<<x
F["y"]<<y
F["z"]<<z
F["icon"]<<icon
F["overlays"]<<overlays
F["contents"]<<contents
F["name"]<<name
var/u = personal.Copy()
F["list"]<<u
Read(savefile/F)
F["icon"]>>icon
F["overlays"]>>overlays
F["contents"]>>contents
F["name"]>>name
var/list/x = new
F["list"]>>x
var/y = x.Copy()
personal = y
loc=locate(F["x"],F["y"],F["z"])


Test verb:
mob/verb
p()
for(var/t in usr.personal)
usr<<"[t]: [usr.personal[t]]"


It works fine, but whenever I put F["verbs"]<<verbs and F["verbs"]>>verbs it fails to load the stuff after it. One problem solved, one created. >_<
In response to Sokkiejjj
The verbs list is not saved. Scizzes has a method to save the verbs list and load it appropriately in [link] however. If that doesn't work, Kakashi made one at [link]. I haven't tested either of them, but there's a multitude of topics on the forum that have to do with saving/loading verbs.
In response to Sokkiejjj
Probably because the way you are saving and loading verbs is making it crash. [link] is pretty fool-proof.
In response to Garthor
Thank you DOS and Garthor. It's fixed. ^_^