I have a question concerning the nature of DFHack - are the variable names of objects created by Toady, or does the DFHack team have to actually figure out what they do and name them that way?
I don't think there's a single answer to the question:
- I think some information has been extracted through disassembly.
- Some info probably comes from Toady.
- The bulk of it is retaining what has been mapped earlier, sometimes with a bit of shifting around.
- Much of the "new" things (i.e. identification of things that hasn't been identified earlier, even if the mapping has been known for a long time) is named by "inventing" a suitable name, while trying to use the names DF uses when possible.
Is there any way of getting a list of all historical events related to a historical figure? Like what is shown on the legends screen?
Mostly, I would say. Either you'd have to scour the historical info for entries that refer to the historical figure, and that means you'll have to know the fields where HF Ids are stored, which relies on DFHack mapping of the fields (and a lot of processing of the entries to get the rest of the info), or use the alternative approach that is to scour the exported legends info (which e.g. Legends Viewer uses, to great effect). Neither method probably provides the full picture, however, as Toady doesn't export everything in the entries, and DFHack hasn't mapped everything (in the ideal world, where DFHack structures has mapped everything, you'd be able to extract more than what Legends Mode tells you).