I'll post the puzzle information here to make it clear what the parts of the puzzle are.
"Every 99 years the Demon Lord returns and then, when the darkness becomes overwhelming, a Chosen Hero appears."
Each of the pedestals in the gallery room has the names of heroes and what year they appeared.