Advanced topic, decent scripting knowledge and experience required.
Basic Lua knowledge
This tutorial will teach you how to save data!