I just told everyone. It doesnt use game cache and it doesnt use "cookies". Okay, I'll explain more. When you have the player type -save or however else you want them to save their hero, you set a bunch of variables to the attributes of the hero, the gold the player has, and whatever else you want to save. You could also convert the numbers to letter (a=1, g=2, d=3) and so on to make it harder to break. Then, you display the whole code as one line (or if it is too big, you save it as multiple lines. When the player wants to restore their hero in another game, they will type in the code and you will have the triggers decode the code and create a new unit which is their hero and give it the values of the attributes and the gold and whatever else you decided to save from their code. As I said, not really that hard (in my opinion). |