I have figured out how to use Arrays to save which treasure chest has been opened or not.
It's now impossible to open the same chest more than once in a playthrough.
Also, clearing a save slot will also make the player being able to open the previously opened treasure chests again.
|