mob
proc
mutesave() //Save proc
var/firstletter=copytext(src.ckey, 1, 2)
var/savefile/F = new("players/[firstletter]/[src.ckey].sav")//makes a save file
F["mute"] << src.mute
Write(F) // Writes the stored files into one
mob
proc
muteload() //Load proc
var/firstletter=copytext(src.ckey, 1, 2)
if(fexists("players/[firstletter]/[src.ckey].sav"))
var/savefile/F = new("players/[firstletter]/[src.ckey].sav")
Read(F) //Reads it
F["mute"]<<src.mute
Problem description:
I want it to save the src.mute value..But it saves ALL of the variables they have. Help me please.
Write proc (datum)
Format:
Write(savefile/F)
When:
Called when the object is written to a save file.
Args:
F: the save file being written to
Default action:
Write the value of each variable to a directory by the same name as the variable. Variables marked tmp, global, or const and variables which are equal to their initial value are skipped.
Hiead