How do i go about saving a game like this?

If you move all the variables into a structure variable, you can jsonify the structure and write it to storage. You can then read from storage, and save the read-in data into a new character.