Search in the Spells section for 'save'. You'll get a few save/load systems. You can read the triggers, and you'll understand. It's all about attaching codes to different Game Cache info. The more info you want to store, to longer the code. As said: check out the triggers of those save/load systems, and you'll get what I mean.