234 Release Notes
- Fixed: The \th setting was not properly handling numbers>20. (Spuzzum)
- Fixed: The -safe security wasn't always being applied to all
world/world.dmb, as previously documented.
- Dream Maker now preserves the current icon color & function when editing
different states. (Spuzzum)
- Added a 'tmp' variable type flag. Variables marked tmp are temporary or
transient, which means they should not be written to the savefile. This is
in preparation for a more automated save feature. You use it just like the
other flags global and const:
mob/var/tmp
mob/leader
followers[]
- Added issaved() for testing if a variable is supposed to be saved to the
savefile or not. It returns false if the variable is global, const, or
tmp. It requires a variable as an argument, and that would almost always be
an item in the vars list. Example:
mob/Write(savefile/F)
var/V
for(V in vars)
if(vars[V] != initial(vars[V])) continue //unmodified
if(issaved(vars[V]))
F[V] << vars[V]
mob/Read(savefile/F)
var/V
for(V in vars)
if(!(V in F)) continue //unmodified
if(issaved(vars[V]))
F[V] >> vars[V]
Those two procs nicely handle the bulk of save/load busywork. Any variables
that do not fit into this simple system (like references to external
objects) can just be marked tmp and handled manually.
- issaved() returns 0 for the following built-in variables:
ckey
type
vars
verbs
group
loc
x
y
z