ID:147385
 
If there a way so save the world variables? like time, etc?

Here is what I would like to base it off


proc
Save()
var/savefile/F = new("save/world")
Write(F)

When i try to use world/proc or just proc it says Write() undifined somehting
Konamix wrote:
If there a way so save the world variables? like time, etc?

proc
Save()
var/savefile/F = new("save/world")
Write(F)


This usually works for me. :P

<code>var/world_var = 123 proc/Save() var/savefile/F = new("save/world") F["world_var"] << world_var proc/Load() var/savefile/F = new("save/world") F["world_var"] >> world_var</code>
In response to Foomer
thanks a bunch!