The scripts made while modding Dwarf Fortress feel free to reuse those.