ID:177137
![]() Oct 26 2002, 7:09 am
|
|
Could someone please give me the code for a mapsave proc?
|
![]() Oct 27 2002, 1:23 am
|
|
Hello? Anyone listening?
|
Mapsaving isn't a one-way thing. It can be very complicated depending on exactly what you want included, and how you want it to be used in regards to reading the saved information, whether it be for loading or else... Maybe you should be a little more specific as to what you need to know, or give us a little code to work with?
-Kosh |
Let me make it more simple. I need to save 2 variables. One is a universal variable (time) and the other is an object variable (Lock). I need to save (Lock) when the user runs a verb (Change_Locks) and I need (time) saved on command (eg by a verb or proc). That make it any simpler?
|
Hazman wrote:
Let me make it more simple. I need to save 2 variables. One is a universal variable (time) and the other is an object variable (Lock). I need to save (Lock) when the user runs a verb (Change_Locks) and I need (time) saved on command (eg by a verb or proc). That make it any simpler? Ah. Yes, it does. (And thanks for waiting before bumping it; you chose a good time frame to do so.) Saving an entire map of turfs is indeed a complicated process, as I've recently discovered myself. However, if you're only saving a global var and vars for other objs or characters, it's not as bad. Your save proc would look something like this: var/starttime=0 // ticks elapsed in previous sessions Lummox JR |
Jeezy pete.
proc/mapsave() |
Nice mapsave there, but I still have my origional vars out of place. All I need is a simple script that saves [lock] to the savefile under a directory [doors]. I'd be able to work off that to produce a [time] save proc, to.
|
is thisfor real, this seems too simple, Is LoW correct on this matter at all? It looks WAY too simple...
Erm... I've been trying to work something like this, and every time I end up with a 400 line process... |