ID:150977
Jun 16 2001, 9:54 am
|
|
Once again i need some help.. i need something that will store obj's for people.. but store the var or whatever on them so when its saved its saved in thier file? i need it like a chest area.. but i cant figure out how to store the paths of the objs or what to do.. any help is appreciated
|
In response to Deadron
|
|
im not using any library things that i know of lol
|
In response to WildBlood
|
|
On 6/16/01 1:29 pm WildBlood wrote:
im not using any library things that i know of lol Well it still holds true...if you are storing a mob in a savefile, all the objects and vars on the mob will be saved automatically. You might want to check out: byond://Deadron.CharacterSaving It will install the CharacterHandling library for you and provide you with sample code for how to use it. Then you don't have to spend any time figuring out how to use savefiles. |
In response to Deadron
|
|
hes not trying to save an object on a mob.. hes trying to save objects in a var of the mob the is not m.contents. he is trying to make a place to store your stuff when you go adventureing (so you dont lose it when you die..) |
In response to jobe
|
|
On 6/17/01 10:26 am jobe wrote:
hes not trying to save an object on a mob.. hes trying to save objects in a var of the mob the is not m.contents. This will still work automatically. |
If you are using the CharacterHandling library, then anything in the mob's inventory or in their vars will automatically be saved to the savefile.
In fact you have to do something special to keep it from being saved...you would have to declare the variable as tmp.