ID:754041
May 19 2012, 6:23 pm
|
|
Whats a more simple way to saving vars then just saving them to the save proc
| |
#1 May 19 2012, 7:00 pm
|
|
Read and Write .. I guess but personally I don't like using them.
| |
#2 May 19 2012, 7:01 pm
|
|
so is better if i stay with adding to save proc and load proc
| |
#3 May 19 2012, 10:49 pm
|
|
As far as I know, Read() and Write() are called any time you do an operation with a /savefile. You can save the mob and then in Write(), decide if there are certain variables you don't want to save (for example, you may not save the icon, overlay, and underlay variables as they contain icon data, which will massively bloat your savefiles).
Note that you don't need to bother with tmp variables, as they're not saved to begin with. | |
#4 May 20 2012, 6:25 am
|
||
Simplest way:
Don't do it like that, though. You want the most efficient, safe way; not necessarily the cleanest or shortest. | ||
#5 May 20 2012, 9:54 am
|
|
I think save proc and load proc is simpler for me.
| |