ID:140354
 
Code:
mob
verb
setbgcolor(c as color)
set hidden = 1
bgcolor = c
winset(usr,"default","background-color=[bgcolor]")


mob
var

bgcolor = 0
saved_x
saved_y
saved_z



Write(savefile/F)
saved_x = x
saved_y = y
saved_z = z

..()
Read(savefile/F)

..()
Move(locate(saved_x,saved_y,saved_z))


Problem description:

Ive tried for a half hour to get the player chosen background color to save but I keep failing! Please give advice, and please dont link me to the dm guide XD.
First of all, the saved_blah variables are superfluous. What you should instead be doing is just writing x,y,z to the savefile:

mob/Write(var/savefile/F)
..()
F["x"] << x
F["y"] << y
F["z"] << z

mob/Read(var/savefile/F)
..()
loc = locate(F["x"], F["y"], F["z"])


As for the background color not being saved... it IS being saved. You just aren't loading it. You'll need to do a winset() upon reading the savefile, though you also want to do if(client) to ensure the mob being loaded is actually a player's mob.