In my game you either get a certain level and you get spells or if you learn them from a scroll and when you get the spell it adds the verb but the verb doesnt get saved if you logout then back in, even if you save. Is there a way to make my save proc save the chars verbs, heres my coding for save and load:
mob
proc
SaveChar(mob/M as mob)
var/savefile/F = new("players/[src.key]/[src.key].sav")
F["name"] << name
F["X"] << src.x
F["Y"] << src.y
F["Z"] << src.z
F["Mob"] << src.client.mob
Load(mob/M as mob)
var/savefile/F = new("players/[src.key]/[src.key].sav")
var/X
var/Y
var/Z
var/mob/newmob = new()
F["name"] >> name
F["X"] >> X
F["Y"] >> Y
F["Z"] >> Z
F["Mob"] >> newmob
newmob.loc = locate(X,Y,Z)
del(src)
</<></<></<></<></< >
ID:175376
Apr 29 2003, 11:21 am
|
|
In response to Jon88
|
|
AHHH now i get a runtime error when i load saying:
runtime error: Cannot write to atom.verbs. proc name: Load (/mob/proc/Load) source file: main.dm,87 usr: Crio (/mob) src: Crio (/mob) call stack: Crio (/mob): Load(null) Load (5,11,2) (/turf/Load): Click(Load (5,11,2) (/turf/Load)) |
In response to Koolguy900095
|
|
*cough*
|
F["verbs"] << src.verbs
F["verbs"] >> src.verbs