mob |
And so on. It would save on variable spaces, and potentially bolster editing savefiles. I don't believe I have seen a savefile editor that can edit a list. (I may be mistaken however.) The biggest problem I can see is trying to remember which of the 20 values is which, but, if you simply keep a list written (or printed) up beside you, that would alleviate that problem.
Your thoughts and input are greatly appreciated.
But aside from that DM already stores all variables inside of the 'vars' list, so you can access it like 'src.vars["my_var"]' to get the value of my_var.
As for the savefile editing thing, they can easily edit any value stored in non-encrypted means. The best way to prevent savefile editing is use a hashing method, which uses md5() to create a hash based on the person's variables. If anything is edited the hash will no longer be valid and you'll know editing has been done.