Problem description: Is there a way to have it automatically save all mob variables? I don't want to take the time to invidually tell it write every single mob variable.
ID:933804
Aug 16 2012, 11:13 am
|
|
#2 Aug 16 2012, 11:46 am
|
|
Thanks very much. I assume that x,y,and z cooridnates are temp variables. Now how would I tell it to save it? would I just do like F["last_x"] << src.x
| |
#3 Aug 16 2012, 11:52 am
|
||
Yes. And when you access the savefile for loading, just do:
| ||
If you're loading from a null location, you'll need to set the loc, not the individual variables. What I've done in my most recent project is save a list:
| ||
tmp variables - these are never saved.
const variables - these never change from their default value, so they aren't saved.
And any variable that hasn't changed from it's default value. For example:
If _x doesn't change from the default value (1) or from the value assigned by Read(), it won't be saved.
static variables I'm not sure about.