the code i have for my saving is this:
Save_Char()
var/savefile/S = new ("Player/[src.mob.ckey]")
S["mob"] << src.mob
S["x"] << src.mob.x
S["y"] << src.mob.y
S["z"] << src.mob.z
____________________________________________________________
how would i modify that so it could save the items in the players invetory too?
ID:270994
Dec 3 2006, 10:52 am (Edited on Dec 3 2006, 10:57 am)
|
|
In response to Revojake
|
|
Revojake wrote:
Dark-Millenia wrote: Save_Char() ____________________________________________________________ Save_Char() Thats my GUESS! K thanks i will see what other people say too casue i don't like going with guesses but that seems pretty probable to be an answer for it. |
In response to Dark-Millenia
|
|
oh I forgot to add the " after the first src.contents.
|
In response to Revojake
|
|
Shouldnt the S["Mob"] Part cover that mobs contents as well?
Unless you've made it so that all the mobs items are kept in a different variable list then contents... |
Save_Char() However, this is probably not how you want it. You had S["mob"]<<src.mob which implies that you want to save the mob and every variable that it has (not saving single variables). Try this: client/verb |
In response to Android Data
|
|
Android Data wrote:
Read(savefile/F) Correct me if I'm wrong, but loading directly from the savefile like this doesn't seem to be safe. =/ |
In response to Android Data
|
|
Android Data wrote:
> Save_Char() However, this is probably not how you want it. You had S["mob"]<<src.mob which implies that you want to save the mob and every variable that it has (not saving single variables). > client/verb android how would i modify that to tile screen way like </DM> turf load1 Click() </DM> what would i do to make load work for clicking and in a turf. |
Thats my GUESS!