Try Rama’s tut
It seems that it would require c++ coding unless you save it as a very long string in the save game info