Saving a character list

Give each character a unique id (can be an integer variable) and then just have an array of integers that hold the values of the unlocked characters.