GUI can do the same thing..
A save/load code is basically like an algorithm.
It takes certain data (like hero level, gold, hero type, etc.) and scrambles it into a code. Different things will stand for certain things, say A is 1 and B is 2, and you have a level 12 hero it would be:
AB
Make sense (hopefully
)?
So after you get your save trigger to scramble and store the data, you make a load data to do the opposite: Unscramble and create the hero (of that certain type), set his level, and gold.
Hopefully this helps make the save/load thing make more sense.