This is part of The Medieval Village Simulator Project: https://scratch.mit.edu/discuss/topic/572927/ I have been working for a couple of days on a game inspired by Dwarf Fortress, but I am not sure that it is physically possible on Scratch. I decided to at least salvage something from it, so here is the character generator from it. You may be able to spot a few hold-overs from the original project in the code. More updates coming soon.
The latest version is here: https://scratch.mit.edu/projects/647493874/ Version 3 is here: https://scratch.mit.edu/projects/636996604/ Version 2 is here: https://scratch.mit.edu/projects/628237013/